diff --git a/.azure-pipelines/daily-ci-build.yml b/.azure-pipelines/daily-ci-build.yml deleted file mode 100644 index 6fce8a432b3..00000000000 --- a/.azure-pipelines/daily-ci-build.yml +++ /dev/null @@ -1,65 +0,0 @@ -trigger: none -pr: none - -schedules: - - cron: '0 0 * * *' - 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 - featureFlags: - golang: - internalModuleProxy: - enabled: true - 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 Go Beta SDK - steps: - - checkout: self - submodules: recursive - - - task: GoTool@0 - displayName: Set up Go - inputs: - version: '1.25.0' - - - script: go install - displayName: Install dependencies - workingDirectory: $(Build.SourcesDirectory) - - - script: go build ./... - displayName: Build SDK - workingDirectory: $(Build.SourcesDirectory) - - - script: go test ./... - displayName: Run unit tests - workingDirectory: $(Build.SourcesDirectory)/tests diff --git a/.config/1espt/PipelineAutobaseliningConfig.yml b/.config/1espt/PipelineAutobaseliningConfig.yml deleted file mode 100644 index d6aad2e1b28..00000000000 --- a/.config/1espt/PipelineAutobaseliningConfig.yml +++ /dev/null @@ -1,16 +0,0 @@ -## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details. - -pipelines: - 680: - retail: - source: - credscan: - lastModifiedDate: 2026-05-21 - policheck: - lastModifiedDate: 2026-05-21 - eslint: - lastModifiedDate: 2026-05-21 - armory: - lastModifiedDate: 2026-05-21 - accessibilityinsights: - lastModifiedDate: 2026-05-21 diff --git a/.config/guardian/.gdnbaselines b/.config/guardian/.gdnbaselines deleted file mode 100644 index ef89a7eafdb..00000000000 --- a/.config/guardian/.gdnbaselines +++ /dev/null @@ -1,627 +0,0 @@ -{ - "properties": { - "helpUri": "https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/microsoft-guardian/general/baselines" - }, - "version": "1.0.0", - "baselines": { - "default": { - "name": "default", - "createdDate": "2026-05-21 00:12:33Z", - "lastUpdatedDate": "2026-05-21 00:12:33Z" - } - }, - "results": { - "4f6c828aaae4b6151a0f13feb1b39a2c15de951667ffc74201942c695dd88b64": { - "signature": "4f6c828aaae4b6151a0f13feb1b39a2c15de951667ffc74201942c695dd88b64", - "alternativeSignatures": [ - "4f7a0597c440c1d3f7d785610370c728f55cc9aa028da72bf3426493d08d2439", - "07b4ffb2504182a42f5dcc1862946a715922169496b5c86c080c441ab0bd623d" - ], - "target": "kiota-dom-export.txt", - "line": 355171, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "1f14b4c9207b2cc6bb5632ff42be7d8f6cd5621e7aaddea03a51f78e10523169": { - "signature": "1f14b4c9207b2cc6bb5632ff42be7d8f6cd5621e7aaddea03a51f78e10523169", - "alternativeSignatures": [ - "25821befc49c163cbe992a71a546c513e90ed3f93ab8d500d5ab6c0fa10b7e80", - "f2064f3b2bb11eb3bdef63ee66370b5a89fafc4c1e0ef15891e9e4391a9f0744" - ], - "target": "kiota-dom-export.txt", - "line": 355172, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "e52c22bb62c07bc3ce9e3fbfa938af4ae251e23e5848a08759f1e7e8eddb68e2": { - "signature": "e52c22bb62c07bc3ce9e3fbfa938af4ae251e23e5848a08759f1e7e8eddb68e2", - "alternativeSignatures": [ - "61dfc036bfba2e42b6ce7be62fca57afdd88a5b93a7b63f8690b5b6457df3974", - "d86ea51abc95dad619af9dc65baa7fdfb40b26a2391869673599dc7be51b325e" - ], - "target": "kiota-dom-export.txt", - "line": 355173, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "194e0ce158999b7454f7bff186229e4925f7add4d1d7ad3de610b2a55e858e50": { - "signature": "194e0ce158999b7454f7bff186229e4925f7add4d1d7ad3de610b2a55e858e50", - "alternativeSignatures": [ - "bb7ac0ef6db9f28e2bcdd1770d512f23e6f04d4e1f2c46494830fa7d76f38352", - "543e9806c04c3824730fa3f53ddc13da93d2f4e4b627209f3df29a2a27e1b627" - ], - "target": "kiota-dom-export.txt", - "line": 355174, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "2ff86e23aed7ccf4766909005b50b4668f217a66ca3ccf423c192aaff93ee230": { - "signature": "2ff86e23aed7ccf4766909005b50b4668f217a66ca3ccf423c192aaff93ee230", - "alternativeSignatures": [ - "f76c769f5bb908f52c0e8425543e247985f0c4cbd361d103e4388600f7b4332b", - "7f09d6bfd24681903dbd084a93622778355a330d4ecc3ebd6d26330eeef6a50a" - ], - "target": "kiota-dom-export.txt", - "line": 355176, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "fa0d49f00dd2da20e760413c1d6c5801d70adc9946a86da5e80b739adce967d3": { - "signature": "fa0d49f00dd2da20e760413c1d6c5801d70adc9946a86da5e80b739adce967d3", - "alternativeSignatures": [ - "c0c343a29fbaf30ce77052f12cbd9c07897968f305f45cf082a5a86906d43556", - "538c81a257471a5237e36bb5a1780fd521a7e44c65bc45df3807e15122acf0b2" - ], - "target": "kiota-dom-export.txt", - "line": 355178, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "d4bf24da66a5bf77d697b4317c0d2e77feb3b98c81ba62f0bebbd71e573c0fac": { - "signature": "d4bf24da66a5bf77d697b4317c0d2e77feb3b98c81ba62f0bebbd71e573c0fac", - "alternativeSignatures": [ - "39e71596ddb323630d11d5de0032da109b0f10f072a2bb8d4de7bd083144166d", - "82d86fa7f7a0de032bbb4bf491ef6c150e82872c8fda7dfb6a015a6f85eb8552" - ], - "target": "kiota-dom-export.txt", - "line": 355179, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "8c0b1b37a4c2772353bf8fccd4f2dfcc5925fbc6a245833294cf8610e4fdf487": { - "signature": "8c0b1b37a4c2772353bf8fccd4f2dfcc5925fbc6a245833294cf8610e4fdf487", - "alternativeSignatures": [ - "bf7464e1a9255cafd3d47bdcef9770c7e424e5d503d2814ce7562f9e80a0d7c4", - "818d527e54f82b5a87f98221c64ce5af0196f6b74dc86d83c3410c8bbd936f3b" - ], - "target": "kiota-dom-export.txt", - "line": 355180, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "bbe28c2acb09fe33eaaf6a86a16b7114958c51ca18f0152f419ff49da326df20": { - "signature": "bbe28c2acb09fe33eaaf6a86a16b7114958c51ca18f0152f419ff49da326df20", - "alternativeSignatures": [ - "8ced8ab2fa8cf298fcc504b2215d969e86a672185e0d9703121921fa6e5c4104", - "3548cde486912e7be070cfe9d95aa5c4696bf61c19cba4a1c2ed31a66dfe2dbb" - ], - "target": "kiota-dom-export.txt", - "line": 355181, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "414515b9f0cafac39c70fa0ee490b222bd07c6a67bad7c47532070b6b9e30175": { - "signature": "414515b9f0cafac39c70fa0ee490b222bd07c6a67bad7c47532070b6b9e30175", - "alternativeSignatures": [ - "985cc1b361fcf089a2c370a10f83cdddfcbb8d7d8785b667e6cf56eff38053a8", - "b924472aed5c3c2768f5b33e84ffb5d34641a1533a5033d52a4c62c2de6aaf8e" - ], - "target": "kiota-dom-export.txt", - "line": 355182, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "a9f780353958f8ce0ce4c17b7a9e2ede3428bd77032325b0591bb7d109ace135": { - "signature": "a9f780353958f8ce0ce4c17b7a9e2ede3428bd77032325b0591bb7d109ace135", - "alternativeSignatures": [ - "cbfb394307636c29b4a119874fd23f2f073f314ff91298e3e95ed3b90ba62c4a", - "84b5efb2e3ee7600ebade5a12afa9a25b629e14e4f88b87b39390445fa47a27e" - ], - "target": "kiota-dom-export.txt", - "line": 355184, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "e4faa8cbc91227836259f41484235408b83721ec49ebf22122e7e6eda96d29e8": { - "signature": "e4faa8cbc91227836259f41484235408b83721ec49ebf22122e7e6eda96d29e8", - "alternativeSignatures": [ - "fe7248d1ad2df8b02066b496bfde0d67691002ba1498856f4c763f51e5a53902", - "adccb9330ea0aad73cba31969a1273756d9e59b4d679e751c7d1c8d10a0ab4c0" - ], - "target": "kiota-dom-export.txt", - "line": 355186, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "df7d42ee8f3391026607bd7aab112fd21bf50355d941af488d8ab4e6ff1fdff6": { - "signature": "df7d42ee8f3391026607bd7aab112fd21bf50355d941af488d8ab4e6ff1fdff6", - "alternativeSignatures": [ - "305e05b133cc5bd8744a0690f27acf4b0bb006f67002236f68498272b1f1b5d6", - "60630c0203ccbd6ca01ee05b0cff10cf9af7e4830bcd366ef1d764033757f601" - ], - "target": "kiota-dom-export.txt", - "line": 355187, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "1d8a8e36d2b814f2f6447cd4cd2396d818842dca12e39a5bb4c6118ff5f1a359": { - "signature": "1d8a8e36d2b814f2f6447cd4cd2396d818842dca12e39a5bb4c6118ff5f1a359", - "alternativeSignatures": [ - "f821f8852e42476bcbc5d08b40d61b2192f5fa8a11a717e43a38c61ab0dfb5cc", - "fb35b53c84bd72c024463780708056ac37f302002afcaed4e2a5d404b324a275" - ], - "target": "kiota-dom-export.txt", - "line": 355188, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "a10265d1723e63e04168431c8737d008c9949e1dbdb37a6457e3e9069c169f02": { - "signature": "a10265d1723e63e04168431c8737d008c9949e1dbdb37a6457e3e9069c169f02", - "alternativeSignatures": [ - "f64753fb53faea69f89c728a3876c74cc65bee02cf39f1cd41cf69f9ab22f99d", - "77907997069abe03c70798fad100b97c65e26f92bcea85a054138fc797b77a67" - ], - "target": "kiota-dom-export.txt", - "line": 355189, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "e4a39c4bb51ad3bc255ec07f75b1d527ee0134e5bbccb4a712184f8381af8464": { - "signature": "e4a39c4bb51ad3bc255ec07f75b1d527ee0134e5bbccb4a712184f8381af8464", - "alternativeSignatures": [ - "58d76d6f48bd9642e509606b0193c52ac4b1656af70d595d75e5f78ca1a2d5df", - "66415e3e6adf9fc650b2f10635cd937c2e75373ad1e942a29d26ae75e4eab5b4" - ], - "target": "kiota-dom-export.txt", - "line": 355190, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "bff99b39339b8ee10a5b902cf1ec275b9ec5ba6fd78a780b8db08f523d92786a": { - "signature": "bff99b39339b8ee10a5b902cf1ec275b9ec5ba6fd78a780b8db08f523d92786a", - "alternativeSignatures": [ - "fba10503cadf6cd31146282e72eb3492283689f9353c38c3550e535747fb8ae5", - "f1b4733f1356048f33dc38354534934ec8c95cb9e456bc8fb25f724069b294eb" - ], - "target": "kiota-dom-export.txt", - "line": 355191, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "c8bc1c6f8112a776754254a85e4cb2de11fab1b514f40e971407315cdbfc16c5": { - "signature": "c8bc1c6f8112a776754254a85e4cb2de11fab1b514f40e971407315cdbfc16c5", - "alternativeSignatures": [ - "903265385435c7ef0e7dd713278241c76015ca6971711d8f2006a475e548adba", - "b1ad94f3201bc87173dea8bdd4c851c3943f914d316e23043c39293a29508923" - ], - "target": "kiota-dom-export.txt", - "line": 355192, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "91a3e5ba34f52c5b22a0a9419eeb6debc4898136c6ee78abb5530463a708e96a": { - "signature": "91a3e5ba34f52c5b22a0a9419eeb6debc4898136c6ee78abb5530463a708e96a", - "alternativeSignatures": [ - "a0d6d39ca20b39c51efb7bf9b26f63d6e4a91f8ad6022956c48fcec2ff7e4477", - "f46f6d7b397a2c954c431afb7144f3d06839a4bbd82169cf7c318a7d0218e7d4" - ], - "target": "kiota-dom-export.txt", - "line": 355193, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "9594d0b0d3787cb9c12326d907d44cf6eea85cded9cf56474b82aa6a56e6128f": { - "signature": "9594d0b0d3787cb9c12326d907d44cf6eea85cded9cf56474b82aa6a56e6128f", - "alternativeSignatures": [ - "0417e50e5b44ae44f34e8de209c7711751b7e12a4a815aedb287730bc869448b", - "202ad8f378b1cdd090e8e09a40bf247fffe860e5d00d6abe9699b10a112e426d" - ], - "target": "kiota-dom-export.txt", - "line": 355194, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "7accf96b9651ebc24906015043c3e03911f04930016a55fb1fb4552e726275d5": { - "signature": "7accf96b9651ebc24906015043c3e03911f04930016a55fb1fb4552e726275d5", - "alternativeSignatures": [ - "3885da9a7ffcb0fc3f602acd7a6a20910f15652c307b95f151a69698ae42b4e9", - "a3dc10bc5ecad9854a50e5fb79786a75255f26a72f9425540192d14b1bec03f8" - ], - "target": "kiota-dom-export.txt", - "line": 355195, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "2f5a4a0950c4f7df62ed5f50a63ca6df5016e3e5940ed6369a2ef0100f0013a6": { - "signature": "2f5a4a0950c4f7df62ed5f50a63ca6df5016e3e5940ed6369a2ef0100f0013a6", - "alternativeSignatures": [ - "da30ce36513bd040e0801686ab049a8d81093aded3d5d18f3fe03d1b3b9d75d0", - "591b6551a3aad741632640dfb72b751e7fa86c9f604229f55cac01ed0d7622a3" - ], - "target": "kiota-dom-export.txt", - "line": 355196, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "3d1027ce8d2724a9c952fee5be926b5b3f187cf845073dd664ae493a77159664": { - "signature": "3d1027ce8d2724a9c952fee5be926b5b3f187cf845073dd664ae493a77159664", - "alternativeSignatures": [ - "6ff07b0d61ad821a1de65116391a4fe14e387502842f8fd699aae0843e2fd2cf", - "adb838cbab61bd66ba3ea4a9aa3f21552ef580f212b9aef37227f84ff3a1b740" - ], - "target": "kiota-dom-export.txt", - "line": 355197, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "bb525b0d714864424b31bc2cab442440e2c32346554c88e16b6f5a1b2489324a": { - "signature": "bb525b0d714864424b31bc2cab442440e2c32346554c88e16b6f5a1b2489324a", - "alternativeSignatures": [ - "7319b9a705ca8b55cc263950c64cceb311dc6a87050414ecc271f4fa712a45c4", - "bbf3a8ad2eb07de37d3d25288c174334a8c291e922264b547a64047a43532101" - ], - "target": "kiota-dom-export.txt", - "line": 355198, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "49a2e3064588ebfeebd985391b455328f0a8d99cda50a4854efdb366f4748f1c": { - "signature": "49a2e3064588ebfeebd985391b455328f0a8d99cda50a4854efdb366f4748f1c", - "alternativeSignatures": [ - "81ecc56d12106334e864fe41b0c16031fb68fe533806c5f98ea05f35628c4611", - "f07412687875d3c213ee8ef41458b898e6d9a074b410b126e832d4baca604543" - ], - "target": "kiota-dom-export.txt", - "line": 355199, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "6d1897644565790b69862b492f9850e7a2ccd59b162257177350a6387d55ff0a": { - "signature": "6d1897644565790b69862b492f9850e7a2ccd59b162257177350a6387d55ff0a", - "alternativeSignatures": [ - "f1330dcd2f69e6c57c47d4c5b2f2917e17c7fba9134c167e7105aa7c88d0a966", - "8b8a60be00c85c7d2f957523b8120465f26997739f1a31653facc4d53e0779a3" - ], - "target": "kiota-dom-export.txt", - "line": 355201, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "0c3f10f3d1ebd79a528e13d854cd0c98914491aed4ca7b3a9da3a249a4dc4c9e": { - "signature": "0c3f10f3d1ebd79a528e13d854cd0c98914491aed4ca7b3a9da3a249a4dc4c9e", - "alternativeSignatures": [ - "b81c7427a5736316f5efcc0b78116e4832cf804be341617141a72ef2dfd43d28", - "fa11932b0fddd2144b2216da678fb716a0af15c2401254f982d6fca8a049ba02" - ], - "target": "kiota-dom-export.txt", - "line": 355202, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "ed319fca0957881e354b6cfc02b8fca6ef148cb90d6843ca1776dd9810f92a9a": { - "signature": "ed319fca0957881e354b6cfc02b8fca6ef148cb90d6843ca1776dd9810f92a9a", - "alternativeSignatures": [ - "d378783cd50e18df29504e865fda0675ccce24d7c1cd08db6a53fbc976de1dc8", - "fc3b0bf44594e0c6dd43999d38b11f886fd70968e95766862f9118941555dc2a" - ], - "target": "kiota-dom-export.txt", - "line": 355207, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "6223ed41b2757dc251b8e4ab5c8a02265da89030510c040c7b12ecd3f9461b89": { - "signature": "6223ed41b2757dc251b8e4ab5c8a02265da89030510c040c7b12ecd3f9461b89", - "alternativeSignatures": [ - "b4ecfa961bca3dcc1ef9dc91435991ad1dbb3d339ec6762ac4b754fe8ef5f3de", - "4ba01ceb907540b9fd9ff1afccd1704f65bd85c4693eac63b82dba4a5982d526" - ], - "target": "kiota-dom-export.txt", - "line": 355208, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "6fcb14827e386bdb8b96f28f7c4f327028144adbbc515a715b7527626ac84da1": { - "signature": "6fcb14827e386bdb8b96f28f7c4f327028144adbbc515a715b7527626ac84da1", - "alternativeSignatures": [ - "2dbd8e3e05faff6adc388b5679215a2e0094682c00a4a24d488122cc3adc312f", - "9251bdd6e7a1333385ce8fbfb85239b45c3837b130e63d37fcdbfc5fb5591ae0" - ], - "target": "kiota-dom-export.txt", - "line": 355209, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "a485b2d1fd5a5887db653984374d62cdd3ea3dd088f01b89af3b8ce915668112": { - "signature": "a485b2d1fd5a5887db653984374d62cdd3ea3dd088f01b89af3b8ce915668112", - "alternativeSignatures": [ - "caaa4a45aeb3b5e8a28e9de7a117e038cfd1c8055b475764d9ae3be7bd51bd07", - "cc3c4cdd3708a5a3109530f594b097073b3556b07d0825bb90c622ad7041be06" - ], - "target": "kiota-dom-export.txt", - "line": 355210, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "5d3e371ffaf42c30be499c505c37a83aab09595390f9ca424f129e5d6a4b9078": { - "signature": "5d3e371ffaf42c30be499c505c37a83aab09595390f9ca424f129e5d6a4b9078", - "alternativeSignatures": [ - "61adfd6db79a11561fd3df463b512d1b9cb1d5351ebbe4e8021d7b918cb72245", - "024f018b2483489123c85e8a73f06d121d655fc7412af54e20a40e163329e594" - ], - "target": "kiota-dom-export.txt", - "line": 355212, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "a332419abc094d4045347b9549a2ee8c1dc81f1ac6d01dc711bc100029684587": { - "signature": "a332419abc094d4045347b9549a2ee8c1dc81f1ac6d01dc711bc100029684587", - "alternativeSignatures": [ - "ef01abf16729ca60fbdfb256a10535e233d9e1e4023cac0c03093acb3bd72120", - "515ada1fdc1dcba1dbf4865b0cefa45e587c88e22a2eb4df35d13fdb6ce70a8b" - ], - "target": "kiota-dom-export.txt", - "line": 355213, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - }, - "1e04d424f76e6efcfecc544c49475cd38ccebd259062fefe79ee5cb4313ab5b3": { - "signature": "1e04d424f76e6efcfecc544c49475cd38ccebd259062fefe79ee5cb4313ab5b3", - "alternativeSignatures": [ - "20b9dfb099df000cd748a6cf15b71d22ee21568705aa705abbd8e56104106293", - "de6afc7fd35f3457b12c04192c3f3e58887abf6d7454510874a0d069f9c36e0e" - ], - "target": "kiota-dom-export.txt", - "line": 355214, - "uriBaseId": "file:///D:/a/_work/1/s/", - "memberOf": [ - "default" - ], - "tool": "credscan", - "ruleId": "CSCAN-GENERAL0060", - "createdDate": "2026-05-21 00:12:33Z", - "expirationDate": "2026-11-07 00:22:35Z", - "justification": "This error is baselined with an expiration date of 180 days from 2026-05-21 00:22:35Z" - } - } -} \ No newline at end of file diff --git a/accessreviews/item_apply_decisions_request_builder.go b/accessreviews/item_apply_decisions_request_builder.go index 3d31fdee414..f8c93443dce 100644 --- a/accessreviews/item_apply_decisions_request_builder.go +++ b/accessreviews/item_apply_decisions_request_builder.go @@ -33,7 +33,7 @@ func NewItemApplyDecisionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f urlParams["request-raw-url"] = rawUrl return NewItemApplyDecisionsRequestBuilderInternal(urlParams, requestAdapter) } -// Post in the Microsoft Entra access reviews feature, apply the decisions of a completed accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. After an access review is finished, either because it reached the end date or an administrator stopped it manually, and auto-apply wasn't configured for the review, you can call Apply to apply the changes. Until apply occurs, the decisions to remove access rights do not appear on the source resource, the users for instance retain their group memberships. By calling apply, the outcome of the review is implemented by updating the group or application. If a user's access was denied in the review, when an administrator calls this API, Microsoft Entra ID removes their membership or application assignment. After an access review is finished, and auto-apply was configured, then the status of the review will change from Completed through intermediate states and finally will change to state Applied. You should expect to see denied users, if any, being removed from the resource group membership or app assignment in a few minutes. A configured auto applying review, or selecting Apply doesn't have an effect on a group that originates in an on-premises directory or a dynamic group. If you want to change a group that originates on-premises, download the results and apply those changes to the representation of the group in that directory. +// Post in the Microsoft Entra access reviews feature, apply the decisions of a completed accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. After an access review is finished, either because it reached the end date or an administrator stopped it manually, and auto-apply wasn't configured for the review, you can call Apply to apply the changes. Until apply occurs, the decisions to remove access rights don't appear on the source resource, the users for instance retain their group memberships. By calling apply, the outcome of the review is implemented by updating the group or application. If a user's access was denied in the review, when an administrator calls this API, Microsoft Entra ID removes their membership or application assignment. After an access review is finished, and auto-apply was configured, then the status of the review will change from Completed through intermediate states and finally will change to state Applied. You should expect to see denied users, if any, being removed from the resource group membership or app assignment in a few minutes. A configured auto applying review, or selecting Apply doesn't have an effect on a group that originates in an on-premises directory or a dynamic group. If you want to change a group that originates on-premises, download the results and apply those changes to the representation of the group in that directory. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -52,7 +52,7 @@ func (m *ItemApplyDecisionsRequestBuilder) Post(ctx context.Context, requestConf } return nil } -// ToPostRequestInformation in the Microsoft Entra access reviews feature, apply the decisions of a completed accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. After an access review is finished, either because it reached the end date or an administrator stopped it manually, and auto-apply wasn't configured for the review, you can call Apply to apply the changes. Until apply occurs, the decisions to remove access rights do not appear on the source resource, the users for instance retain their group memberships. By calling apply, the outcome of the review is implemented by updating the group or application. If a user's access was denied in the review, when an administrator calls this API, Microsoft Entra ID removes their membership or application assignment. After an access review is finished, and auto-apply was configured, then the status of the review will change from Completed through intermediate states and finally will change to state Applied. You should expect to see denied users, if any, being removed from the resource group membership or app assignment in a few minutes. A configured auto applying review, or selecting Apply doesn't have an effect on a group that originates in an on-premises directory or a dynamic group. If you want to change a group that originates on-premises, download the results and apply those changes to the representation of the group in that directory. +// ToPostRequestInformation in the Microsoft Entra access reviews feature, apply the decisions of a completed accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. After an access review is finished, either because it reached the end date or an administrator stopped it manually, and auto-apply wasn't configured for the review, you can call Apply to apply the changes. Until apply occurs, the decisions to remove access rights don't appear on the source resource, the users for instance retain their group memberships. By calling apply, the outcome of the review is implemented by updating the group or application. If a user's access was denied in the review, when an administrator calls this API, Microsoft Entra ID removes their membership or application assignment. After an access review is finished, and auto-apply was configured, then the status of the review will change from Completed through intermediate states and finally will change to state Applied. You should expect to see denied users, if any, being removed from the resource group membership or app assignment in a few minutes. A configured auto applying review, or selecting Apply doesn't have an effect on a group that originates in an on-premises directory or a dynamic group. If you want to change a group that originates on-premises, download the results and apply those changes to the representation of the group in that directory. // returns a *RequestInformation when successful func (m *ItemApplyDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemApplyDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/accessreviews/item_instances_item_apply_decisions_request_builder.go b/accessreviews/item_instances_item_apply_decisions_request_builder.go index c96ac621474..e62b655ea79 100644 --- a/accessreviews/item_instances_item_apply_decisions_request_builder.go +++ b/accessreviews/item_instances_item_apply_decisions_request_builder.go @@ -33,7 +33,7 @@ func NewItemInstancesItemApplyDecisionsRequestBuilder(rawUrl string, requestAdap urlParams["request-raw-url"] = rawUrl return NewItemInstancesItemApplyDecisionsRequestBuilderInternal(urlParams, requestAdapter) } -// Post in the Microsoft Entra access reviews feature, apply the decisions of a completed accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. After an access review is finished, either because it reached the end date or an administrator stopped it manually, and auto-apply wasn't configured for the review, you can call Apply to apply the changes. Until apply occurs, the decisions to remove access rights do not appear on the source resource, the users for instance retain their group memberships. By calling apply, the outcome of the review is implemented by updating the group or application. If a user's access was denied in the review, when an administrator calls this API, Microsoft Entra ID removes their membership or application assignment. After an access review is finished, and auto-apply was configured, then the status of the review will change from Completed through intermediate states and finally will change to state Applied. You should expect to see denied users, if any, being removed from the resource group membership or app assignment in a few minutes. A configured auto applying review, or selecting Apply doesn't have an effect on a group that originates in an on-premises directory or a dynamic group. If you want to change a group that originates on-premises, download the results and apply those changes to the representation of the group in that directory. +// Post in the Microsoft Entra access reviews feature, apply the decisions of a completed accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. After an access review is finished, either because it reached the end date or an administrator stopped it manually, and auto-apply wasn't configured for the review, you can call Apply to apply the changes. Until apply occurs, the decisions to remove access rights don't appear on the source resource, the users for instance retain their group memberships. By calling apply, the outcome of the review is implemented by updating the group or application. If a user's access was denied in the review, when an administrator calls this API, Microsoft Entra ID removes their membership or application assignment. After an access review is finished, and auto-apply was configured, then the status of the review will change from Completed through intermediate states and finally will change to state Applied. You should expect to see denied users, if any, being removed from the resource group membership or app assignment in a few minutes. A configured auto applying review, or selecting Apply doesn't have an effect on a group that originates in an on-premises directory or a dynamic group. If you want to change a group that originates on-premises, download the results and apply those changes to the representation of the group in that directory. // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInstancesItemApplyDecisionsRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemInstancesItemApplyDecisionsRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -49,7 +49,7 @@ func (m *ItemInstancesItemApplyDecisionsRequestBuilder) Post(ctx context.Context } return nil } -// ToPostRequestInformation in the Microsoft Entra access reviews feature, apply the decisions of a completed accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. After an access review is finished, either because it reached the end date or an administrator stopped it manually, and auto-apply wasn't configured for the review, you can call Apply to apply the changes. Until apply occurs, the decisions to remove access rights do not appear on the source resource, the users for instance retain their group memberships. By calling apply, the outcome of the review is implemented by updating the group or application. If a user's access was denied in the review, when an administrator calls this API, Microsoft Entra ID removes their membership or application assignment. After an access review is finished, and auto-apply was configured, then the status of the review will change from Completed through intermediate states and finally will change to state Applied. You should expect to see denied users, if any, being removed from the resource group membership or app assignment in a few minutes. A configured auto applying review, or selecting Apply doesn't have an effect on a group that originates in an on-premises directory or a dynamic group. If you want to change a group that originates on-premises, download the results and apply those changes to the representation of the group in that directory. +// ToPostRequestInformation in the Microsoft Entra access reviews feature, apply the decisions of a completed accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. After an access review is finished, either because it reached the end date or an administrator stopped it manually, and auto-apply wasn't configured for the review, you can call Apply to apply the changes. Until apply occurs, the decisions to remove access rights don't appear on the source resource, the users for instance retain their group memberships. By calling apply, the outcome of the review is implemented by updating the group or application. If a user's access was denied in the review, when an administrator calls this API, Microsoft Entra ID removes their membership or application assignment. After an access review is finished, and auto-apply was configured, then the status of the review will change from Completed through intermediate states and finally will change to state Applied. You should expect to see denied users, if any, being removed from the resource group membership or app assignment in a few minutes. A configured auto applying review, or selecting Apply doesn't have an effect on a group that originates in an on-premises directory or a dynamic group. If you want to change a group that originates on-premises, download the results and apply those changes to the representation of the group in that directory. // returns a *RequestInformation when successful func (m *ItemInstancesItemApplyDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemInstancesItemApplyDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/17616429c76f308776603863abdc156016ce08faa5b915472a3b8bbb2f230e3c.go b/admin/17616429c76f308776603863abdc156016ce08faa5b915472a3b8bbb2f230e3c.go index 9265da58652..080e07efaff 100644 --- a/admin/17616429c76f308776603863abdc156016ce08faa5b915472a3b8bbb2f230e3c.go +++ b/admin/17616429c76f308776603863abdc156016ce08faa5b915472a3b8bbb2f230e3c.go @@ -33,7 +33,7 @@ func NewWindowsUpdatesDeploymentAudiencesItemMembersItemMicrosoftGraphWindowsUpd urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesDeploymentAudiencesItemMembersItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilderInternal(urlParams, requestAdapter) } -// Post add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it does not already exist. You can also use the method addMembersById to add members. +// Post add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it doesn't already exist. You can also use the method addMembersById to add members. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -52,7 +52,7 @@ func (m *WindowsUpdatesDeploymentAudiencesItemMembersItemMicrosoftGraphWindowsUp } return nil } -// ToPostRequestInformation add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it does not already exist. You can also use the method addMembersById to add members. +// ToPostRequestInformation add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it doesn't already exist. You can also use the method addMembersById to add members. // returns a *RequestInformation when successful func (m *WindowsUpdatesDeploymentAudiencesItemMembersItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilder) ToPostRequestInformation(ctx context.Context, body WindowsUpdatesDeploymentAudiencesItemMembersItemMicrosoftGraphWindowsUpdatesAddMembersAddMembersPostRequestBodyable, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemMembersItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/25ffb69a33a1daabe9f68981cccc5eaf9b48da77ab5d175b6398ebbca3f55686.go b/admin/25ffb69a33a1daabe9f68981cccc5eaf9b48da77ab5d175b6398ebbca3f55686.go index 904942eb609..ebf04a9b687 100644 --- a/admin/25ffb69a33a1daabe9f68981cccc5eaf9b48da77ab5d175b6398ebbca3f55686.go +++ b/admin/25ffb69a33a1daabe9f68981cccc5eaf9b48da77ab5d175b6398ebbca3f55686.go @@ -33,7 +33,7 @@ func NewWindowsUpdatesDeploymentAudiencesItemMicrosoftGraphWindowsUpdatesUpdateA urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesDeploymentAudiencesItemMicrosoftGraphWindowsUpdatesUpdateAudienceByIdRequestBuilderInternal(urlParams, requestAdapter) } -// Post update the members and exclusions collections of a deploymentAudience with updatableAsset resources of the same type. Adding an azureADDevice to the members or exclusions collections of a deployment audience automatically creates a Microsoft Entra device object if it does not already exist. If the same updatableAsset gets included in the exclusions and members collections of a deploymentAudience, deployment will not apply to that asset. You can also use the method updateAudience to update the deploymentAudience. +// Post update the members and exclusions collections of a deploymentAudience with updatableAsset resources of the same type. Adding an azureADDevice to the members or exclusions collections of a deployment audience automatically creates a Microsoft Entra device object if it doesn't already exist. If the same updatableAsset gets included in the exclusions and members collections of a deploymentAudience, deployment will not apply to that asset. You can also use the method updateAudience to update the deploymentAudience. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -52,7 +52,7 @@ func (m *WindowsUpdatesDeploymentAudiencesItemMicrosoftGraphWindowsUpdatesUpdate } return nil } -// ToPostRequestInformation update the members and exclusions collections of a deploymentAudience with updatableAsset resources of the same type. Adding an azureADDevice to the members or exclusions collections of a deployment audience automatically creates a Microsoft Entra device object if it does not already exist. If the same updatableAsset gets included in the exclusions and members collections of a deploymentAudience, deployment will not apply to that asset. You can also use the method updateAudience to update the deploymentAudience. +// ToPostRequestInformation update the members and exclusions collections of a deploymentAudience with updatableAsset resources of the same type. Adding an azureADDevice to the members or exclusions collections of a deployment audience automatically creates a Microsoft Entra device object if it doesn't already exist. If the same updatableAsset gets included in the exclusions and members collections of a deploymentAudience, deployment will not apply to that asset. You can also use the method updateAudience to update the deploymentAudience. // returns a *RequestInformation when successful func (m *WindowsUpdatesDeploymentAudiencesItemMicrosoftGraphWindowsUpdatesUpdateAudienceByIdRequestBuilder) ToPostRequestInformation(ctx context.Context, body WindowsUpdatesDeploymentAudiencesItemMicrosoftGraphWindowsUpdatesUpdateAudienceByIdUpdateAudienceByIdPostRequestBodyable, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemMicrosoftGraphWindowsUpdatesUpdateAudienceByIdRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/35a86c564f77c3d9947d7beda007b53d46270b2e90cfc9523293ab9362405b1f.go b/admin/35a86c564f77c3d9947d7beda007b53d46270b2e90cfc9523293ab9362405b1f.go index 0f33c5ec22f..8002c6e34c4 100644 --- a/admin/35a86c564f77c3d9947d7beda007b53d46270b2e90cfc9523293ab9362405b1f.go +++ b/admin/35a86c564f77c3d9947d7beda007b53d46270b2e90cfc9523293ab9362405b1f.go @@ -33,7 +33,7 @@ func NewWindowsUpdatesDeploymentsItemAudienceMembersItemMicrosoftGraphWindowsUpd urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesDeploymentsItemAudienceMembersItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilderInternal(urlParams, requestAdapter) } -// Post add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it does not already exist. You can also use the method addMembersById to add members. +// Post add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it doesn't already exist. You can also use the method addMembersById to add members. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -52,7 +52,7 @@ func (m *WindowsUpdatesDeploymentsItemAudienceMembersItemMicrosoftGraphWindowsUp } return nil } -// ToPostRequestInformation add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it does not already exist. You can also use the method addMembersById to add members. +// ToPostRequestInformation add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it doesn't already exist. You can also use the method addMembersById to add members. // returns a *RequestInformation when successful func (m *WindowsUpdatesDeploymentsItemAudienceMembersItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilder) ToPostRequestInformation(ctx context.Context, body WindowsUpdatesDeploymentsItemAudienceMembersItemMicrosoftGraphWindowsUpdatesAddMembersAddMembersPostRequestBodyable, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceMembersItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/42174874d36c942dd3cf8fb0191aa45db58356901550b5e2cadc3735771a38b6.go b/admin/42174874d36c942dd3cf8fb0191aa45db58356901550b5e2cadc3735771a38b6.go index 9c34d79a6ac..1641ba3be18 100644 --- a/admin/42174874d36c942dd3cf8fb0191aa45db58356901550b5e2cadc3735771a38b6.go +++ b/admin/42174874d36c942dd3cf8fb0191aa45db58356901550b5e2cadc3735771a38b6.go @@ -33,7 +33,7 @@ func NewWindowsUpdatesDeploymentsItemAudienceExclusionsItemMicrosoftGraphWindows urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesDeploymentsItemAudienceExclusionsItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilderInternal(urlParams, requestAdapter) } -// Post add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it does not already exist. You can also use the method addMembersById to add members. +// Post add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it doesn't already exist. You can also use the method addMembersById to add members. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -52,7 +52,7 @@ func (m *WindowsUpdatesDeploymentsItemAudienceExclusionsItemMicrosoftGraphWindow } return nil } -// ToPostRequestInformation add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it does not already exist. You can also use the method addMembersById to add members. +// ToPostRequestInformation add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it doesn't already exist. You can also use the method addMembersById to add members. // returns a *RequestInformation when successful func (m *WindowsUpdatesDeploymentsItemAudienceExclusionsItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilder) ToPostRequestInformation(ctx context.Context, body WindowsUpdatesDeploymentsItemAudienceExclusionsItemMicrosoftGraphWindowsUpdatesAddMembersAddMembersPostRequestBodyable, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceExclusionsItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/46a8c20d7586b3374fd944fe2ce1dce982ee2d3cbbaae6d919ac08191aaf0ea2.go b/admin/46a8c20d7586b3374fd944fe2ce1dce982ee2d3cbbaae6d919ac08191aaf0ea2.go new file mode 100644 index 00000000000..a5f2fc37444 --- /dev/null +++ b/admin/46a8c20d7586b3374fd944fe2ce1dce982ee2d3cbbaae6d919ac08191aaf0ea2.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder provides operations to manage the apiUsageReportMetrics property of the microsoft.graph.sharePointReportSettings entity. +type ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderGetQueryParameters the collection of API usage report metrics and the status of their enablement. +type ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderGetQueryParameters +} +// ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderInternal instantiates a new ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder and sets the default values. +func NewReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder) { + m := &ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/reportSettings/sharePoint/apiUsageReportMetrics/{apiUsageReportEnablementStatus%2Dmetric}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder instantiates a new ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder and sets the default values. +func NewReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property apiUsageReportMetrics for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the collection of API usage report metrics and the status of their enablement. +// returns a ApiUsageReportEnablementStatusable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApiUsageReportEnablementStatusFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusable), nil +} +// Patch update the navigation property apiUsageReportMetrics in admin +// returns a ApiUsageReportEnablementStatusable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusable, requestConfiguration *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApiUsageReportEnablementStatusFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusable), nil +} +// ToDeleteRequestInformation delete navigation property apiUsageReportMetrics for admin +// returns a *RequestInformation when successful +func (m *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation the collection of API usage report metrics and the status of their enablement. +// returns a *RequestInformation when successful +func (m *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property apiUsageReportMetrics in admin +// returns a *RequestInformation when successful +func (m *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusable, requestConfiguration *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder when successful +func (m *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder) WithUrl(rawUrl string)(*ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder) { + return NewReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/482202b5952a73d6dc8f9f38befda2e2a825617dfb0a3fccf9eb85ac9c200b8c.go b/admin/482202b5952a73d6dc8f9f38befda2e2a825617dfb0a3fccf9eb85ac9c200b8c.go index d17863781d2..21f6f105794 100644 --- a/admin/482202b5952a73d6dc8f9f38befda2e2a825617dfb0a3fccf9eb85ac9c200b8c.go +++ b/admin/482202b5952a73d6dc8f9f38befda2e2a825617dfb0a3fccf9eb85ac9c200b8c.go @@ -33,7 +33,7 @@ func NewWindowsUpdatesDeploymentsItemAudienceMicrosoftGraphWindowsUpdatesUpdateA urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesDeploymentsItemAudienceMicrosoftGraphWindowsUpdatesUpdateAudienceByIdRequestBuilderInternal(urlParams, requestAdapter) } -// Post update the members and exclusions collections of a deploymentAudience with updatableAsset resources of the same type. Adding an azureADDevice to the members or exclusions collections of a deployment audience automatically creates a Microsoft Entra device object if it does not already exist. If the same updatableAsset gets included in the exclusions and members collections of a deploymentAudience, deployment will not apply to that asset. You can also use the method updateAudience to update the deploymentAudience. +// Post update the members and exclusions collections of a deploymentAudience with updatableAsset resources of the same type. Adding an azureADDevice to the members or exclusions collections of a deployment audience automatically creates a Microsoft Entra device object if it doesn't already exist. If the same updatableAsset gets included in the exclusions and members collections of a deploymentAudience, deployment will not apply to that asset. You can also use the method updateAudience to update the deploymentAudience. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -52,7 +52,7 @@ func (m *WindowsUpdatesDeploymentsItemAudienceMicrosoftGraphWindowsUpdatesUpdate } return nil } -// ToPostRequestInformation update the members and exclusions collections of a deploymentAudience with updatableAsset resources of the same type. Adding an azureADDevice to the members or exclusions collections of a deployment audience automatically creates a Microsoft Entra device object if it does not already exist. If the same updatableAsset gets included in the exclusions and members collections of a deploymentAudience, deployment will not apply to that asset. You can also use the method updateAudience to update the deploymentAudience. +// ToPostRequestInformation update the members and exclusions collections of a deploymentAudience with updatableAsset resources of the same type. Adding an azureADDevice to the members or exclusions collections of a deployment audience automatically creates a Microsoft Entra device object if it doesn't already exist. If the same updatableAsset gets included in the exclusions and members collections of a deploymentAudience, deployment will not apply to that asset. You can also use the method updateAudience to update the deploymentAudience. // returns a *RequestInformation when successful func (m *WindowsUpdatesDeploymentsItemAudienceMicrosoftGraphWindowsUpdatesUpdateAudienceByIdRequestBuilder) ToPostRequestInformation(ctx context.Context, body WindowsUpdatesDeploymentsItemAudienceMicrosoftGraphWindowsUpdatesUpdateAudienceByIdUpdateAudienceByIdPostRequestBodyable, requestConfiguration *WindowsUpdatesDeploymentsItemAudienceMicrosoftGraphWindowsUpdatesUpdateAudienceByIdRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/782f7fe213bc4ad66ed397d59e4c2ff3c269105c2dbed8bc7e4d1890d1a01848.go b/admin/782f7fe213bc4ad66ed397d59e4c2ff3c269105c2dbed8bc7e4d1890d1a01848.go index bdf82a3cdd7..001b149dc83 100644 --- a/admin/782f7fe213bc4ad66ed397d59e4c2ff3c269105c2dbed8bc7e4d1890d1a01848.go +++ b/admin/782f7fe213bc4ad66ed397d59e4c2ff3c269105c2dbed8bc7e4d1890d1a01848.go @@ -33,7 +33,7 @@ func NewWindowsUpdatesUpdatePoliciesItemAudienceMembersItemMicrosoftGraphWindows urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesUpdatePoliciesItemAudienceMembersItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilderInternal(urlParams, requestAdapter) } -// Post add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it does not already exist. You can also use the method addMembersById to add members. +// Post add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it doesn't already exist. You can also use the method addMembersById to add members. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -52,7 +52,7 @@ func (m *WindowsUpdatesUpdatePoliciesItemAudienceMembersItemMicrosoftGraphWindow } return nil } -// ToPostRequestInformation add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it does not already exist. You can also use the method addMembersById to add members. +// ToPostRequestInformation add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it doesn't already exist. You can also use the method addMembersById to add members. // returns a *RequestInformation when successful func (m *WindowsUpdatesUpdatePoliciesItemAudienceMembersItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilder) ToPostRequestInformation(ctx context.Context, body WindowsUpdatesUpdatePoliciesItemAudienceMembersItemMicrosoftGraphWindowsUpdatesAddMembersAddMembersPostRequestBodyable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceMembersItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/e23ad7f750dad080873c4bee14a78b1bcb15bd25076a180be1966451e82ab8e2.go b/admin/e23ad7f750dad080873c4bee14a78b1bcb15bd25076a180be1966451e82ab8e2.go index e36d4d76dd7..fe70fb83130 100644 --- a/admin/e23ad7f750dad080873c4bee14a78b1bcb15bd25076a180be1966451e82ab8e2.go +++ b/admin/e23ad7f750dad080873c4bee14a78b1bcb15bd25076a180be1966451e82ab8e2.go @@ -33,7 +33,7 @@ func NewWindowsUpdatesUpdatePoliciesItemAudienceExclusionsItemMicrosoftGraphWind urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesUpdatePoliciesItemAudienceExclusionsItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilderInternal(urlParams, requestAdapter) } -// Post add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it does not already exist. You can also use the method addMembersById to add members. +// Post add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it doesn't already exist. You can also use the method addMembersById to add members. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -52,7 +52,7 @@ func (m *WindowsUpdatesUpdatePoliciesItemAudienceExclusionsItemMicrosoftGraphWin } return nil } -// ToPostRequestInformation add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it does not already exist. You can also use the method addMembersById to add members. +// ToPostRequestInformation add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it doesn't already exist. You can also use the method addMembersById to add members. // returns a *RequestInformation when successful func (m *WindowsUpdatesUpdatePoliciesItemAudienceExclusionsItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilder) ToPostRequestInformation(ctx context.Context, body WindowsUpdatesUpdatePoliciesItemAudienceExclusionsItemMicrosoftGraphWindowsUpdatesAddMembersAddMembersPostRequestBodyable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceExclusionsItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/e9760beaeb713ab39025d69841f1dc793da76cd738ae56362ea98eeb049e1645.go b/admin/e9760beaeb713ab39025d69841f1dc793da76cd738ae56362ea98eeb049e1645.go index 5e22a8bfab3..1552ec5a80f 100644 --- a/admin/e9760beaeb713ab39025d69841f1dc793da76cd738ae56362ea98eeb049e1645.go +++ b/admin/e9760beaeb713ab39025d69841f1dc793da76cd738ae56362ea98eeb049e1645.go @@ -33,7 +33,7 @@ func NewWindowsUpdatesDeploymentAudiencesItemExclusionsItemMicrosoftGraphWindows urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesDeploymentAudiencesItemExclusionsItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilderInternal(urlParams, requestAdapter) } -// Post add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it does not already exist. You can also use the method addMembersById to add members. +// Post add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it doesn't already exist. You can also use the method addMembersById to add members. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -52,7 +52,7 @@ func (m *WindowsUpdatesDeploymentAudiencesItemExclusionsItemMicrosoftGraphWindow } return nil } -// ToPostRequestInformation add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it does not already exist. You can also use the method addMembersById to add members. +// ToPostRequestInformation add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it doesn't already exist. You can also use the method addMembersById to add members. // returns a *RequestInformation when successful func (m *WindowsUpdatesDeploymentAudiencesItemExclusionsItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilder) ToPostRequestInformation(ctx context.Context, body WindowsUpdatesDeploymentAudiencesItemExclusionsItemMicrosoftGraphWindowsUpdatesAddMembersAddMembersPostRequestBodyable, requestConfiguration *WindowsUpdatesDeploymentAudiencesItemExclusionsItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/f592dfa8e000f1869b158ba4c89b7fe0eb3ee93053f2922ffcf74794cfef1444.go b/admin/f592dfa8e000f1869b158ba4c89b7fe0eb3ee93053f2922ffcf74794cfef1444.go index 0e23ff86a5a..47037ebafe5 100644 --- a/admin/f592dfa8e000f1869b158ba4c89b7fe0eb3ee93053f2922ffcf74794cfef1444.go +++ b/admin/f592dfa8e000f1869b158ba4c89b7fe0eb3ee93053f2922ffcf74794cfef1444.go @@ -33,7 +33,7 @@ func NewWindowsUpdatesUpdatePoliciesItemAudienceMicrosoftGraphWindowsUpdatesUpda urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesUpdatePoliciesItemAudienceMicrosoftGraphWindowsUpdatesUpdateAudienceByIdRequestBuilderInternal(urlParams, requestAdapter) } -// Post update the members and exclusions collections of a deploymentAudience with updatableAsset resources of the same type. Adding an azureADDevice to the members or exclusions collections of a deployment audience automatically creates a Microsoft Entra device object if it does not already exist. If the same updatableAsset gets included in the exclusions and members collections of a deploymentAudience, deployment will not apply to that asset. You can also use the method updateAudience to update the deploymentAudience. +// Post update the members and exclusions collections of a deploymentAudience with updatableAsset resources of the same type. Adding an azureADDevice to the members or exclusions collections of a deployment audience automatically creates a Microsoft Entra device object if it doesn't already exist. If the same updatableAsset gets included in the exclusions and members collections of a deploymentAudience, deployment will not apply to that asset. You can also use the method updateAudience to update the deploymentAudience. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -52,7 +52,7 @@ func (m *WindowsUpdatesUpdatePoliciesItemAudienceMicrosoftGraphWindowsUpdatesUpd } return nil } -// ToPostRequestInformation update the members and exclusions collections of a deploymentAudience with updatableAsset resources of the same type. Adding an azureADDevice to the members or exclusions collections of a deployment audience automatically creates a Microsoft Entra device object if it does not already exist. If the same updatableAsset gets included in the exclusions and members collections of a deploymentAudience, deployment will not apply to that asset. You can also use the method updateAudience to update the deploymentAudience. +// ToPostRequestInformation update the members and exclusions collections of a deploymentAudience with updatableAsset resources of the same type. Adding an azureADDevice to the members or exclusions collections of a deployment audience automatically creates a Microsoft Entra device object if it doesn't already exist. If the same updatableAsset gets included in the exclusions and members collections of a deploymentAudience, deployment will not apply to that asset. You can also use the method updateAudience to update the deploymentAudience. // returns a *RequestInformation when successful func (m *WindowsUpdatesUpdatePoliciesItemAudienceMicrosoftGraphWindowsUpdatesUpdateAudienceByIdRequestBuilder) ToPostRequestInformation(ctx context.Context, body WindowsUpdatesUpdatePoliciesItemAudienceMicrosoftGraphWindowsUpdatesUpdateAudienceByIdUpdateAudienceByIdPostRequestBodyable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemAudienceMicrosoftGraphWindowsUpdatesUpdateAudienceByIdRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/people_profile_property_settings_profile_property_setting_item_request_builder.go b/admin/people_profile_property_settings_profile_property_setting_item_request_builder.go index eadaea0477f..581a85c1942 100644 --- a/admin/people_profile_property_settings_profile_property_setting_item_request_builder.go +++ b/admin/people_profile_property_settings_profile_property_setting_item_request_builder.go @@ -57,7 +57,7 @@ func NewPeopleProfilePropertySettingsProfilePropertySettingItemRequestBuilder(ra urlParams["request-raw-url"] = rawUrl return NewPeopleProfilePropertySettingsProfilePropertySettingItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a profilePropertySetting object. +// Delete delete a profilePropertySetting object. You shouldn't delete a profilePropertySetting that includes a source precedence configuration. Instead, patch it to a default state that contains only the Microsoft Entra ID source reference. This delete operation is supported but fails unless the prioritizedSourceUrls property contains only the Entra ID source reference. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -122,7 +122,7 @@ func (m *PeopleProfilePropertySettingsProfilePropertySettingItemRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePropertySettingable), nil } -// ToDeleteRequestInformation delete a profilePropertySetting object. +// ToDeleteRequestInformation delete a profilePropertySetting object. You shouldn't delete a profilePropertySetting that includes a source precedence configuration. Instead, patch it to a default state that contains only the Microsoft Entra ID source reference. This delete operation is supported but fails unless the prioritizedSourceUrls property contains only the Entra ID source reference. // returns a *RequestInformation when successful func (m *PeopleProfilePropertySettingsProfilePropertySettingItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *PeopleProfilePropertySettingsProfilePropertySettingItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/people_profile_property_settings_request_builder.go b/admin/people_profile_property_settings_request_builder.go index c5fe5f544c2..1cc31deda6d 100644 --- a/admin/people_profile_property_settings_request_builder.go +++ b/admin/people_profile_property_settings_request_builder.go @@ -14,7 +14,7 @@ import ( type PeopleProfilePropertySettingsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// PeopleProfilePropertySettingsRequestBuilderGetQueryParameters get a collection of profilePropertySetting objects that define the configuration for user profile properties in an organization. The id property identifies each resource object uniquely. +// PeopleProfilePropertySettingsRequestBuilderGetQueryParameters get a collection of profilePropertySetting objects that define the configuration for user profile property settings in an organization. The id property identifies each resource object uniquely. type PeopleProfilePropertySettingsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,7 +79,7 @@ func NewPeopleProfilePropertySettingsRequestBuilder(rawUrl string, requestAdapte func (m *PeopleProfilePropertySettingsRequestBuilder) Count()(*PeopleProfilePropertySettingsCountRequestBuilder) { return NewPeopleProfilePropertySettingsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a collection of profilePropertySetting objects that define the configuration for user profile properties in an organization. The id property identifies each resource object uniquely. +// Get get a collection of profilePropertySetting objects that define the configuration for user profile property settings in an organization. The id property identifies each resource object uniquely. // returns a ProfilePropertySettingCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -125,7 +125,7 @@ func (m *PeopleProfilePropertySettingsRequestBuilder) Post(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePropertySettingable), nil } -// ToGetRequestInformation get a collection of profilePropertySetting objects that define the configuration for user profile properties in an organization. The id property identifies each resource object uniquely. +// ToGetRequestInformation get a collection of profilePropertySetting objects that define the configuration for user profile property settings in an organization. The id property identifies each resource object uniquely. // returns a *RequestInformation when successful func (m *PeopleProfilePropertySettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PeopleProfilePropertySettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/report_settings_request_builder.go b/admin/report_settings_request_builder.go index 57785c68753..ed42360f1b7 100644 --- a/admin/report_settings_request_builder.go +++ b/admin/report_settings_request_builder.go @@ -119,6 +119,11 @@ func (m *ReportSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee76 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdminReportSettingsable), nil } +// SharePoint provides operations to manage the sharePoint property of the microsoft.graph.adminReportSettings entity. +// returns a *ReportSettingsSharePointRequestBuilder when successful +func (m *ReportSettingsRequestBuilder) SharePoint()(*ReportSettingsSharePointRequestBuilder) { + return NewReportSettingsSharePointRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property reportSettings for admin // returns a *RequestInformation when successful func (m *ReportSettingsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ReportSettingsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/admin/report_settings_share_point_api_usage_report_metrics_count_request_builder.go b/admin/report_settings_share_point_api_usage_report_metrics_count_request_builder.go new file mode 100644 index 00000000000..da886005360 --- /dev/null +++ b/admin/report_settings_share_point_api_usage_report_metrics_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder provides operations to count the resources in the collection. +type ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilderGetQueryParameters get the number of the resource +type ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilderGetQueryParameters +} +// NewReportSettingsSharePointApiUsageReportMetricsCountRequestBuilderInternal instantiates a new ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder and sets the default values. +func NewReportSettingsSharePointApiUsageReportMetricsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder) { + m := &ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/reportSettings/sharePoint/apiUsageReportMetrics/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder instantiates a new ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder and sets the default values. +func NewReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReportSettingsSharePointApiUsageReportMetricsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder when successful +func (m *ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder) WithUrl(rawUrl string)(*ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder) { + return NewReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/report_settings_share_point_api_usage_report_metrics_request_builder.go b/admin/report_settings_share_point_api_usage_report_metrics_request_builder.go new file mode 100644 index 00000000000..f2e7348fb36 --- /dev/null +++ b/admin/report_settings_share_point_api_usage_report_metrics_request_builder.go @@ -0,0 +1,158 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReportSettingsSharePointApiUsageReportMetricsRequestBuilder provides operations to manage the apiUsageReportMetrics property of the microsoft.graph.sharePointReportSettings entity. +type ReportSettingsSharePointApiUsageReportMetricsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReportSettingsSharePointApiUsageReportMetricsRequestBuilderGetQueryParameters get the list of SharePoint API usage report metrics and their enablement status for the tenant. Currently, only the EgressReport metric is supported. +type ReportSettingsSharePointApiUsageReportMetricsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ReportSettingsSharePointApiUsageReportMetricsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportSettingsSharePointApiUsageReportMetricsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ReportSettingsSharePointApiUsageReportMetricsRequestBuilderGetQueryParameters +} +// ReportSettingsSharePointApiUsageReportMetricsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportSettingsSharePointApiUsageReportMetricsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByApiUsageReportEnablementStatusMetric provides operations to manage the apiUsageReportMetrics property of the microsoft.graph.sharePointReportSettings entity. +// returns a *ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder when successful +func (m *ReportSettingsSharePointApiUsageReportMetricsRequestBuilder) ByApiUsageReportEnablementStatusMetric(apiUsageReportEnablementStatusMetric string)(*ReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if apiUsageReportEnablementStatusMetric != "" { + urlTplParams["apiUsageReportEnablementStatus%2Dmetric"] = apiUsageReportEnablementStatusMetric + } + return NewReportSettingsSharePointApiUsageReportMetricsApiUsageReportEnablementStatusMetricItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewReportSettingsSharePointApiUsageReportMetricsRequestBuilderInternal instantiates a new ReportSettingsSharePointApiUsageReportMetricsRequestBuilder and sets the default values. +func NewReportSettingsSharePointApiUsageReportMetricsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportSettingsSharePointApiUsageReportMetricsRequestBuilder) { + m := &ReportSettingsSharePointApiUsageReportMetricsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/reportSettings/sharePoint/apiUsageReportMetrics{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewReportSettingsSharePointApiUsageReportMetricsRequestBuilder instantiates a new ReportSettingsSharePointApiUsageReportMetricsRequestBuilder and sets the default values. +func NewReportSettingsSharePointApiUsageReportMetricsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportSettingsSharePointApiUsageReportMetricsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReportSettingsSharePointApiUsageReportMetricsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder when successful +func (m *ReportSettingsSharePointApiUsageReportMetricsRequestBuilder) Count()(*ReportSettingsSharePointApiUsageReportMetricsCountRequestBuilder) { + return NewReportSettingsSharePointApiUsageReportMetricsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get the list of SharePoint API usage report metrics and their enablement status for the tenant. Currently, only the EgressReport metric is supported. +// returns a ApiUsageReportEnablementStatusCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/sharepointreportsettings-list-apiusagereportmetrics?view=graph-rest-beta +func (m *ReportSettingsSharePointApiUsageReportMetricsRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportSettingsSharePointApiUsageReportMetricsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApiUsageReportEnablementStatusCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusCollectionResponseable), nil +} +// Post create new navigation property to apiUsageReportMetrics for admin +// returns a ApiUsageReportEnablementStatusable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReportSettingsSharePointApiUsageReportMetricsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusable, requestConfiguration *ReportSettingsSharePointApiUsageReportMetricsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApiUsageReportEnablementStatusFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusable), nil +} +// ToGetRequestInformation get the list of SharePoint API usage report metrics and their enablement status for the tenant. Currently, only the EgressReport metric is supported. +// returns a *RequestInformation when successful +func (m *ReportSettingsSharePointApiUsageReportMetricsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportSettingsSharePointApiUsageReportMetricsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to apiUsageReportMetrics for admin +// returns a *RequestInformation when successful +func (m *ReportSettingsSharePointApiUsageReportMetricsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusable, requestConfiguration *ReportSettingsSharePointApiUsageReportMetricsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ReportSettingsSharePointApiUsageReportMetricsRequestBuilder when successful +func (m *ReportSettingsSharePointApiUsageReportMetricsRequestBuilder) WithUrl(rawUrl string)(*ReportSettingsSharePointApiUsageReportMetricsRequestBuilder) { + return NewReportSettingsSharePointApiUsageReportMetricsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/report_settings_share_point_disable_api_usage_report_post_request_body.go b/admin/report_settings_share_point_disable_api_usage_report_post_request_body.go new file mode 100644 index 00000000000..327176e2b49 --- /dev/null +++ b/admin/report_settings_share_point_disable_api_usage_report_post_request_body.go @@ -0,0 +1,116 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ReportSettingsSharePointDisableApiUsageReportPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewReportSettingsSharePointDisableApiUsageReportPostRequestBody instantiates a new ReportSettingsSharePointDisableApiUsageReportPostRequestBody and sets the default values. +func NewReportSettingsSharePointDisableApiUsageReportPostRequestBody()(*ReportSettingsSharePointDisableApiUsageReportPostRequestBody) { + m := &ReportSettingsSharePointDisableApiUsageReportPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateReportSettingsSharePointDisableApiUsageReportPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateReportSettingsSharePointDisableApiUsageReportPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportSettingsSharePointDisableApiUsageReportPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ReportSettingsSharePointDisableApiUsageReportPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ReportSettingsSharePointDisableApiUsageReportPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ReportSettingsSharePointDisableApiUsageReportPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["metric"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMetric(val) + } + return nil + } + return res +} +// GetMetric gets the metric property value. The metric property +// returns a *string when successful +func (m *ReportSettingsSharePointDisableApiUsageReportPostRequestBody) GetMetric()(*string) { + val, err := m.GetBackingStore().Get("metric") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ReportSettingsSharePointDisableApiUsageReportPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("metric", m.GetMetric()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ReportSettingsSharePointDisableApiUsageReportPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ReportSettingsSharePointDisableApiUsageReportPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetMetric sets the metric property value. The metric property +func (m *ReportSettingsSharePointDisableApiUsageReportPostRequestBody) SetMetric(value *string)() { + err := m.GetBackingStore().Set("metric", value) + if err != nil { + panic(err) + } +} +type ReportSettingsSharePointDisableApiUsageReportPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetMetric()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetMetric(value *string)() +} diff --git a/admin/report_settings_share_point_disable_api_usage_report_request_builder.go b/admin/report_settings_share_point_disable_api_usage_report_request_builder.go new file mode 100644 index 00000000000..97ead327eb9 --- /dev/null +++ b/admin/report_settings_share_point_disable_api_usage_report_request_builder.go @@ -0,0 +1,79 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReportSettingsSharePointDisableApiUsageReportRequestBuilder provides operations to call the disableApiUsageReport method. +type ReportSettingsSharePointDisableApiUsageReportRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReportSettingsSharePointDisableApiUsageReportRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportSettingsSharePointDisableApiUsageReportRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewReportSettingsSharePointDisableApiUsageReportRequestBuilderInternal instantiates a new ReportSettingsSharePointDisableApiUsageReportRequestBuilder and sets the default values. +func NewReportSettingsSharePointDisableApiUsageReportRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportSettingsSharePointDisableApiUsageReportRequestBuilder) { + m := &ReportSettingsSharePointDisableApiUsageReportRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/reportSettings/sharePoint/disableApiUsageReport", pathParameters), + } + return m +} +// NewReportSettingsSharePointDisableApiUsageReportRequestBuilder instantiates a new ReportSettingsSharePointDisableApiUsageReportRequestBuilder and sets the default values. +func NewReportSettingsSharePointDisableApiUsageReportRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportSettingsSharePointDisableApiUsageReportRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReportSettingsSharePointDisableApiUsageReportRequestBuilderInternal(urlParams, requestAdapter) +} +// Post disable a SharePoint API usage report metric for the tenant. After you disable a metric, SharePoint stops collecting and reporting data for that specific usage metric. +// returns a ApiUsageReportEnablementStatusable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/sharepointreportsettings-disableapiusagereport?view=graph-rest-beta +func (m *ReportSettingsSharePointDisableApiUsageReportRequestBuilder) Post(ctx context.Context, body ReportSettingsSharePointDisableApiUsageReportPostRequestBodyable, requestConfiguration *ReportSettingsSharePointDisableApiUsageReportRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApiUsageReportEnablementStatusFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusable), nil +} +// ToPostRequestInformation disable a SharePoint API usage report metric for the tenant. After you disable a metric, SharePoint stops collecting and reporting data for that specific usage metric. +// returns a *RequestInformation when successful +func (m *ReportSettingsSharePointDisableApiUsageReportRequestBuilder) ToPostRequestInformation(ctx context.Context, body ReportSettingsSharePointDisableApiUsageReportPostRequestBodyable, requestConfiguration *ReportSettingsSharePointDisableApiUsageReportRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ReportSettingsSharePointDisableApiUsageReportRequestBuilder when successful +func (m *ReportSettingsSharePointDisableApiUsageReportRequestBuilder) WithUrl(rawUrl string)(*ReportSettingsSharePointDisableApiUsageReportRequestBuilder) { + return NewReportSettingsSharePointDisableApiUsageReportRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/report_settings_share_point_enable_api_usage_report_post_request_body.go b/admin/report_settings_share_point_enable_api_usage_report_post_request_body.go new file mode 100644 index 00000000000..47cdfa891a1 --- /dev/null +++ b/admin/report_settings_share_point_enable_api_usage_report_post_request_body.go @@ -0,0 +1,116 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ReportSettingsSharePointEnableApiUsageReportPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewReportSettingsSharePointEnableApiUsageReportPostRequestBody instantiates a new ReportSettingsSharePointEnableApiUsageReportPostRequestBody and sets the default values. +func NewReportSettingsSharePointEnableApiUsageReportPostRequestBody()(*ReportSettingsSharePointEnableApiUsageReportPostRequestBody) { + m := &ReportSettingsSharePointEnableApiUsageReportPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateReportSettingsSharePointEnableApiUsageReportPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateReportSettingsSharePointEnableApiUsageReportPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportSettingsSharePointEnableApiUsageReportPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ReportSettingsSharePointEnableApiUsageReportPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ReportSettingsSharePointEnableApiUsageReportPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ReportSettingsSharePointEnableApiUsageReportPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["metric"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMetric(val) + } + return nil + } + return res +} +// GetMetric gets the metric property value. The metric property +// returns a *string when successful +func (m *ReportSettingsSharePointEnableApiUsageReportPostRequestBody) GetMetric()(*string) { + val, err := m.GetBackingStore().Get("metric") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ReportSettingsSharePointEnableApiUsageReportPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("metric", m.GetMetric()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ReportSettingsSharePointEnableApiUsageReportPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ReportSettingsSharePointEnableApiUsageReportPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetMetric sets the metric property value. The metric property +func (m *ReportSettingsSharePointEnableApiUsageReportPostRequestBody) SetMetric(value *string)() { + err := m.GetBackingStore().Set("metric", value) + if err != nil { + panic(err) + } +} +type ReportSettingsSharePointEnableApiUsageReportPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetMetric()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetMetric(value *string)() +} diff --git a/admin/report_settings_share_point_enable_api_usage_report_request_builder.go b/admin/report_settings_share_point_enable_api_usage_report_request_builder.go new file mode 100644 index 00000000000..6db8ffc746f --- /dev/null +++ b/admin/report_settings_share_point_enable_api_usage_report_request_builder.go @@ -0,0 +1,79 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReportSettingsSharePointEnableApiUsageReportRequestBuilder provides operations to call the enableApiUsageReport method. +type ReportSettingsSharePointEnableApiUsageReportRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReportSettingsSharePointEnableApiUsageReportRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportSettingsSharePointEnableApiUsageReportRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewReportSettingsSharePointEnableApiUsageReportRequestBuilderInternal instantiates a new ReportSettingsSharePointEnableApiUsageReportRequestBuilder and sets the default values. +func NewReportSettingsSharePointEnableApiUsageReportRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportSettingsSharePointEnableApiUsageReportRequestBuilder) { + m := &ReportSettingsSharePointEnableApiUsageReportRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/reportSettings/sharePoint/enableApiUsageReport", pathParameters), + } + return m +} +// NewReportSettingsSharePointEnableApiUsageReportRequestBuilder instantiates a new ReportSettingsSharePointEnableApiUsageReportRequestBuilder and sets the default values. +func NewReportSettingsSharePointEnableApiUsageReportRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportSettingsSharePointEnableApiUsageReportRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReportSettingsSharePointEnableApiUsageReportRequestBuilderInternal(urlParams, requestAdapter) +} +// Post enable a SharePoint API usage report metric for the tenant. After you enable a metric, SharePoint starts collecting and reporting data for that specific usage metric. +// returns a ApiUsageReportEnablementStatusable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/sharepointreportsettings-enableapiusagereport?view=graph-rest-beta +func (m *ReportSettingsSharePointEnableApiUsageReportRequestBuilder) Post(ctx context.Context, body ReportSettingsSharePointEnableApiUsageReportPostRequestBodyable, requestConfiguration *ReportSettingsSharePointEnableApiUsageReportRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApiUsageReportEnablementStatusFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApiUsageReportEnablementStatusable), nil +} +// ToPostRequestInformation enable a SharePoint API usage report metric for the tenant. After you enable a metric, SharePoint starts collecting and reporting data for that specific usage metric. +// returns a *RequestInformation when successful +func (m *ReportSettingsSharePointEnableApiUsageReportRequestBuilder) ToPostRequestInformation(ctx context.Context, body ReportSettingsSharePointEnableApiUsageReportPostRequestBodyable, requestConfiguration *ReportSettingsSharePointEnableApiUsageReportRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ReportSettingsSharePointEnableApiUsageReportRequestBuilder when successful +func (m *ReportSettingsSharePointEnableApiUsageReportRequestBuilder) WithUrl(rawUrl string)(*ReportSettingsSharePointEnableApiUsageReportRequestBuilder) { + return NewReportSettingsSharePointEnableApiUsageReportRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/report_settings_share_point_request_builder.go b/admin/report_settings_share_point_request_builder.go new file mode 100644 index 00000000000..9b9c95c8b06 --- /dev/null +++ b/admin/report_settings_share_point_request_builder.go @@ -0,0 +1,175 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReportSettingsSharePointRequestBuilder provides operations to manage the sharePoint property of the microsoft.graph.adminReportSettings entity. +type ReportSettingsSharePointRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReportSettingsSharePointRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportSettingsSharePointRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ReportSettingsSharePointRequestBuilderGetQueryParameters a container for SharePoint-specific report settings. Access the SharePoint API usage report metrics through the operations defined on the sharePointReportSettings resource type. +type ReportSettingsSharePointRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ReportSettingsSharePointRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportSettingsSharePointRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ReportSettingsSharePointRequestBuilderGetQueryParameters +} +// ReportSettingsSharePointRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportSettingsSharePointRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ApiUsageReportMetrics provides operations to manage the apiUsageReportMetrics property of the microsoft.graph.sharePointReportSettings entity. +// returns a *ReportSettingsSharePointApiUsageReportMetricsRequestBuilder when successful +func (m *ReportSettingsSharePointRequestBuilder) ApiUsageReportMetrics()(*ReportSettingsSharePointApiUsageReportMetricsRequestBuilder) { + return NewReportSettingsSharePointApiUsageReportMetricsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewReportSettingsSharePointRequestBuilderInternal instantiates a new ReportSettingsSharePointRequestBuilder and sets the default values. +func NewReportSettingsSharePointRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportSettingsSharePointRequestBuilder) { + m := &ReportSettingsSharePointRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/reportSettings/sharePoint{?%24expand,%24select}", pathParameters), + } + return m +} +// NewReportSettingsSharePointRequestBuilder instantiates a new ReportSettingsSharePointRequestBuilder and sets the default values. +func NewReportSettingsSharePointRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportSettingsSharePointRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReportSettingsSharePointRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sharePoint for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReportSettingsSharePointRequestBuilder) Delete(ctx context.Context, requestConfiguration *ReportSettingsSharePointRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// DisableApiUsageReport provides operations to call the disableApiUsageReport method. +// returns a *ReportSettingsSharePointDisableApiUsageReportRequestBuilder when successful +func (m *ReportSettingsSharePointRequestBuilder) DisableApiUsageReport()(*ReportSettingsSharePointDisableApiUsageReportRequestBuilder) { + return NewReportSettingsSharePointDisableApiUsageReportRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EnableApiUsageReport provides operations to call the enableApiUsageReport method. +// returns a *ReportSettingsSharePointEnableApiUsageReportRequestBuilder when successful +func (m *ReportSettingsSharePointRequestBuilder) EnableApiUsageReport()(*ReportSettingsSharePointEnableApiUsageReportRequestBuilder) { + return NewReportSettingsSharePointEnableApiUsageReportRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get a container for SharePoint-specific report settings. Access the SharePoint API usage report metrics through the operations defined on the sharePointReportSettings resource type. +// returns a SharePointReportSettingsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReportSettingsSharePointRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportSettingsSharePointRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharePointReportSettingsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSharePointReportSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharePointReportSettingsable), nil +} +// Patch update the navigation property sharePoint in admin +// returns a SharePointReportSettingsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ReportSettingsSharePointRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharePointReportSettingsable, requestConfiguration *ReportSettingsSharePointRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharePointReportSettingsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateSharePointReportSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharePointReportSettingsable), nil +} +// ToDeleteRequestInformation delete navigation property sharePoint for admin +// returns a *RequestInformation when successful +func (m *ReportSettingsSharePointRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ReportSettingsSharePointRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation a container for SharePoint-specific report settings. Access the SharePoint API usage report metrics through the operations defined on the sharePointReportSettings resource type. +// returns a *RequestInformation when successful +func (m *ReportSettingsSharePointRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportSettingsSharePointRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property sharePoint in admin +// returns a *RequestInformation when successful +func (m *ReportSettingsSharePointRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharePointReportSettingsable, requestConfiguration *ReportSettingsSharePointRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ReportSettingsSharePointRequestBuilder when successful +func (m *ReportSettingsSharePointRequestBuilder) WithUrl(rawUrl string)(*ReportSettingsSharePointRequestBuilder) { + return NewReportSettingsSharePointRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/service_announcement_health_overviews_item_issues_item_incident_report_request_builder.go b/admin/service_announcement_health_overviews_item_issues_item_incident_report_request_builder.go index abb340b89ce..d061c0cc386 100644 --- a/admin/service_announcement_health_overviews_item_issues_item_incident_report_request_builder.go +++ b/admin/service_announcement_health_overviews_item_issues_item_incident_report_request_builder.go @@ -33,7 +33,7 @@ func NewServiceAnnouncementHealthOverviewsItemIssuesItemIncidentReportRequestBui urlParams["request-raw-url"] = rawUrl return NewServiceAnnouncementHealthOverviewsItemIssuesItemIncidentReportRequestBuilderInternal(urlParams, requestAdapter) } -// Get provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. +// Get provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document doesn't exist for the issue. // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -56,7 +56,7 @@ func (m *ServiceAnnouncementHealthOverviewsItemIssuesItemIncidentReportRequestBu } return res.([]byte), nil } -// ToGetRequestInformation provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. +// ToGetRequestInformation provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document doesn't exist for the issue. // returns a *RequestInformation when successful func (m *ServiceAnnouncementHealthOverviewsItemIssuesItemIncidentReportRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ServiceAnnouncementHealthOverviewsItemIssuesItemIncidentReportRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/service_announcement_issues_item_incident_report_request_builder.go b/admin/service_announcement_issues_item_incident_report_request_builder.go index edefbe65732..deb02e9f1d5 100644 --- a/admin/service_announcement_issues_item_incident_report_request_builder.go +++ b/admin/service_announcement_issues_item_incident_report_request_builder.go @@ -33,7 +33,7 @@ func NewServiceAnnouncementIssuesItemIncidentReportRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewServiceAnnouncementIssuesItemIncidentReportRequestBuilderInternal(urlParams, requestAdapter) } -// Get provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. +// Get provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document doesn't exist for the issue. // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -56,7 +56,7 @@ func (m *ServiceAnnouncementIssuesItemIncidentReportRequestBuilder) Get(ctx cont } return res.([]byte), nil } -// ToGetRequestInformation provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. +// ToGetRequestInformation provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document doesn't exist for the issue. // returns a *RequestInformation when successful func (m *ServiceAnnouncementIssuesItemIncidentReportRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ServiceAnnouncementIssuesItemIncidentReportRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/service_announcement_issues_service_health_issue_item_request_builder.go b/admin/service_announcement_issues_service_health_issue_item_request_builder.go index 93d2036cc05..d5cc93e2286 100644 --- a/admin/service_announcement_issues_service_health_issue_item_request_builder.go +++ b/admin/service_announcement_issues_service_health_issue_item_request_builder.go @@ -21,7 +21,7 @@ type ServiceAnnouncementIssuesServiceHealthIssueItemRequestBuilderDeleteRequestC // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ServiceAnnouncementIssuesServiceHealthIssueItemRequestBuilderGetQueryParameters retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. +// ServiceAnnouncementIssuesServiceHealthIssueItemRequestBuilderGetQueryParameters retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue doesn't exist for the tenant. type ServiceAnnouncementIssuesServiceHealthIssueItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -73,7 +73,7 @@ func (m *ServiceAnnouncementIssuesServiceHealthIssueItemRequestBuilder) Delete(c } return nil } -// Get retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. +// Get retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue doesn't exist for the tenant. // returns a ServiceHealthIssueable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -132,7 +132,7 @@ func (m *ServiceAnnouncementIssuesServiceHealthIssueItemRequestBuilder) ToDelete requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. +// ToGetRequestInformation retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue doesn't exist for the tenant. // returns a *RequestInformation when successful func (m *ServiceAnnouncementIssuesServiceHealthIssueItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ServiceAnnouncementIssuesServiceHealthIssueItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/service_announcement_messages_archive_post_response.go b/admin/service_announcement_messages_archive_post_response.go index 33351e3f21d..1bbc6d5808d 100644 --- a/admin/service_announcement_messages_archive_post_response.go +++ b/admin/service_announcement_messages_archive_post_response.go @@ -18,6 +18,8 @@ func NewServiceAnnouncementMessagesArchivePostResponse()(*ServiceAnnouncementMes } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateServiceAnnouncementMessagesArchivePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/admin/service_announcement_messages_favorite_post_response.go b/admin/service_announcement_messages_favorite_post_response.go index 16346e5f38a..d0d80bee59f 100644 --- a/admin/service_announcement_messages_favorite_post_response.go +++ b/admin/service_announcement_messages_favorite_post_response.go @@ -18,6 +18,8 @@ func NewServiceAnnouncementMessagesFavoritePostResponse()(*ServiceAnnouncementMe } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateServiceAnnouncementMessagesFavoritePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/admin/service_announcement_messages_mark_read_post_response.go b/admin/service_announcement_messages_mark_read_post_response.go index 503817ad5b8..55a02847e30 100644 --- a/admin/service_announcement_messages_mark_read_post_response.go +++ b/admin/service_announcement_messages_mark_read_post_response.go @@ -18,6 +18,8 @@ func NewServiceAnnouncementMessagesMarkReadPostResponse()(*ServiceAnnouncementMe } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateServiceAnnouncementMessagesMarkReadPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/admin/service_announcement_messages_mark_unread_post_response.go b/admin/service_announcement_messages_mark_unread_post_response.go index 7d876da8706..84b867cc501 100644 --- a/admin/service_announcement_messages_mark_unread_post_response.go +++ b/admin/service_announcement_messages_mark_unread_post_response.go @@ -18,6 +18,8 @@ func NewServiceAnnouncementMessagesMarkUnreadPostResponse()(*ServiceAnnouncement } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateServiceAnnouncementMessagesMarkUnreadPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/admin/service_announcement_messages_service_update_message_item_request_builder.go b/admin/service_announcement_messages_service_update_message_item_request_builder.go index 441b7a4d81b..33cde99a6b6 100644 --- a/admin/service_announcement_messages_service_update_message_item_request_builder.go +++ b/admin/service_announcement_messages_service_update_message_item_request_builder.go @@ -21,7 +21,7 @@ type ServiceAnnouncementMessagesServiceUpdateMessageItemRequestBuilderDeleteRequ // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ServiceAnnouncementMessagesServiceUpdateMessageItemRequestBuilderGetQueryParameters retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. +// ServiceAnnouncementMessagesServiceUpdateMessageItemRequestBuilderGetQueryParameters retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message doesn't exist for the tenant. type ServiceAnnouncementMessagesServiceUpdateMessageItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -83,7 +83,7 @@ func (m *ServiceAnnouncementMessagesServiceUpdateMessageItemRequestBuilder) Dele } return nil } -// Get retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. +// Get retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message doesn't exist for the tenant. // returns a ServiceUpdateMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -137,7 +137,7 @@ func (m *ServiceAnnouncementMessagesServiceUpdateMessageItemRequestBuilder) ToDe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. +// ToGetRequestInformation retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message doesn't exist for the tenant. // returns a *RequestInformation when successful func (m *ServiceAnnouncementMessagesServiceUpdateMessageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ServiceAnnouncementMessagesServiceUpdateMessageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/service_announcement_messages_unarchive_post_response.go b/admin/service_announcement_messages_unarchive_post_response.go index 57d3608240b..7f4bb577f14 100644 --- a/admin/service_announcement_messages_unarchive_post_response.go +++ b/admin/service_announcement_messages_unarchive_post_response.go @@ -18,6 +18,8 @@ func NewServiceAnnouncementMessagesUnarchivePostResponse()(*ServiceAnnouncementM } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateServiceAnnouncementMessagesUnarchivePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/admin/service_announcement_messages_unfavorite_post_response.go b/admin/service_announcement_messages_unfavorite_post_response.go index b0d0595461d..c5fca77541d 100644 --- a/admin/service_announcement_messages_unfavorite_post_response.go +++ b/admin/service_announcement_messages_unfavorite_post_response.go @@ -18,6 +18,8 @@ func NewServiceAnnouncementMessagesUnfavoritePostResponse()(*ServiceAnnouncement } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateServiceAnnouncementMessagesUnfavoritePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/admin/windows_updates_updatable_assets_item_microsoft_graph_windows_updates_add_members_request_builder.go b/admin/windows_updates_updatable_assets_item_microsoft_graph_windows_updates_add_members_request_builder.go index 0fefd6b18c2..446dfd4eafb 100644 --- a/admin/windows_updates_updatable_assets_item_microsoft_graph_windows_updates_add_members_request_builder.go +++ b/admin/windows_updates_updatable_assets_item_microsoft_graph_windows_updates_add_members_request_builder.go @@ -33,7 +33,7 @@ func NewWindowsUpdatesUpdatableAssetsItemMicrosoftGraphWindowsUpdatesAddMembersR urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesUpdatableAssetsItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilderInternal(urlParams, requestAdapter) } -// Post add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it does not already exist. You can also use the method addMembersById to add members. +// Post add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it doesn't already exist. You can also use the method addMembersById to add members. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -52,7 +52,7 @@ func (m *WindowsUpdatesUpdatableAssetsItemMicrosoftGraphWindowsUpdatesAddMembers } return nil } -// ToPostRequestInformation add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it does not already exist. You can also use the method addMembersById to add members. +// ToPostRequestInformation add members to an updatableAssetGroup. You can add azureADDevice resources as members, but may not add updatableAssetGroup resources as members. Adding a Microsoft Entra device as a member of an updatable asset group automatically creates an azureADDevice object, if it doesn't already exist. You can also use the method addMembersById to add members. // returns a *RequestInformation when successful func (m *WindowsUpdatesUpdatableAssetsItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilder) ToPostRequestInformation(ctx context.Context, body WindowsUpdatesUpdatableAssetsItemMicrosoftGraphWindowsUpdatesAddMembersAddMembersPostRequestBodyable, requestConfiguration *WindowsUpdatesUpdatableAssetsItemMicrosoftGraphWindowsUpdatesAddMembersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/windows_updates_updatable_assets_microsoft_graph_windows_updates_enroll_assets_request_builder.go b/admin/windows_updates_updatable_assets_microsoft_graph_windows_updates_enroll_assets_request_builder.go index 942847c8d37..4b4e73b02f4 100644 --- a/admin/windows_updates_updatable_assets_microsoft_graph_windows_updates_enroll_assets_request_builder.go +++ b/admin/windows_updates_updatable_assets_microsoft_graph_windows_updates_enroll_assets_request_builder.go @@ -33,7 +33,7 @@ func NewWindowsUpdatesUpdatableAssetsMicrosoftGraphWindowsUpdatesEnrollAssetsReq urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesUpdatableAssetsMicrosoftGraphWindowsUpdatesEnrollAssetsRequestBuilderInternal(urlParams, requestAdapter) } -// Post enroll updatableAsset resources in update management by Windows Autopatch. You can enroll an azureADDevice resource in update management, but may not enroll an updatableAssetGroup in update management. Enrolling a Microsoft Entra device in update management automatically creates an azureADDevice object if it does not already exist. You can also use the method enrollAssetsById to enroll assets. +// Post enroll updatableAsset resources in update management by Windows Autopatch. You can enroll an azureADDevice resource in update management, but may not enroll an updatableAssetGroup in update management. Enrolling a Microsoft Entra device in update management automatically creates an azureADDevice object if it doesn't already exist. You can also use the method enrollAssetsById to enroll assets. // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *WindowsUpdatesUpdatableAssetsMicrosoftGraphWindowsUpdatesEnrollAssetsRequestBuilder) Post(ctx context.Context, body WindowsUpdatesUpdatableAssetsMicrosoftGraphWindowsUpdatesEnrollAssetsEnrollAssetsPostRequestBodyable, requestConfiguration *WindowsUpdatesUpdatableAssetsMicrosoftGraphWindowsUpdatesEnrollAssetsRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -49,7 +49,7 @@ func (m *WindowsUpdatesUpdatableAssetsMicrosoftGraphWindowsUpdatesEnrollAssetsRe } return nil } -// ToPostRequestInformation enroll updatableAsset resources in update management by Windows Autopatch. You can enroll an azureADDevice resource in update management, but may not enroll an updatableAssetGroup in update management. Enrolling a Microsoft Entra device in update management automatically creates an azureADDevice object if it does not already exist. You can also use the method enrollAssetsById to enroll assets. +// ToPostRequestInformation enroll updatableAsset resources in update management by Windows Autopatch. You can enroll an azureADDevice resource in update management, but may not enroll an updatableAssetGroup in update management. Enrolling a Microsoft Entra device in update management automatically creates an azureADDevice object if it doesn't already exist. You can also use the method enrollAssetsById to enroll assets. // returns a *RequestInformation when successful func (m *WindowsUpdatesUpdatableAssetsMicrosoftGraphWindowsUpdatesEnrollAssetsRequestBuilder) ToPostRequestInformation(ctx context.Context, body WindowsUpdatesUpdatableAssetsMicrosoftGraphWindowsUpdatesEnrollAssetsEnrollAssetsPostRequestBodyable, requestConfiguration *WindowsUpdatesUpdatableAssetsMicrosoftGraphWindowsUpdatesEnrollAssetsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/administrativeunits/item_get_member_groups_post_request_body.go b/administrativeunits/item_get_member_groups_post_request_body.go index 4c0751c1d9c..1fa0742cb7f 100644 --- a/administrativeunits/item_get_member_groups_post_request_body.go +++ b/administrativeunits/item_get_member_groups_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberGroupsPostRequestBody()(*ItemGetMemberGroupsPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberGroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/administrativeunits/item_get_member_objects_post_request_body.go b/administrativeunits/item_get_member_objects_post_request_body.go index a33c903e530..628d14e7598 100644 --- a/administrativeunits/item_get_member_objects_post_request_body.go +++ b/administrativeunits/item_get_member_objects_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberObjectsPostRequestBody()(*ItemGetMemberObjectsPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberObjectsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/administrativeunits/item_members_ref_request_builder.go b/administrativeunits/item_members_ref_request_builder.go index 97d59a6aa25..8b553ac5d15 100644 --- a/administrativeunits/item_members_ref_request_builder.go +++ b/administrativeunits/item_members_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemMembersRefRequestBuilderPostRequestConfiguration struct { // NewItemMembersRefRequestBuilderInternal instantiates a new ItemMembersRefRequestBuilder and sets the default values. func NewItemMembersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMembersRefRequestBuilder) { m := &ItemMembersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/administrativeUnits/{administrativeUnit%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -144,7 +144,7 @@ func (m *ItemMembersRefRequestBuilder) ToDeleteRequestInformation(ctx context.Co // ToGetRequestInformation users and groups that are members of this administrative unit. Supports $expand. // returns a *RequestInformation when successful func (m *ItemMembersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -158,7 +158,7 @@ func (m *ItemMembersRefRequestBuilder) ToGetRequestInformation(ctx context.Conte // ToPostRequestInformation use this API to add a member (user, group, or device) to an administrative unit or to create a new group within an administrative unit. All group types can be created within an administrative unit. Note: Currently, it's only possible to add one member at a time to an administrative unit.` // returns a *RequestInformation when successful func (m *ItemMembersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemMembersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/administrativeUnits/{administrativeUnit%2Did}/members/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/app/calls_item_participants_admit_all_from_lobby_post_request_body.go b/app/calls_item_participants_admit_all_from_lobby_post_request_body.go new file mode 100644 index 00000000000..7c05561bf52 --- /dev/null +++ b/app/calls_item_participants_admit_all_from_lobby_post_request_body.go @@ -0,0 +1,116 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package app + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type CallsItemParticipantsAdmitAllFromLobbyPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCallsItemParticipantsAdmitAllFromLobbyPostRequestBody instantiates a new CallsItemParticipantsAdmitAllFromLobbyPostRequestBody and sets the default values. +func NewCallsItemParticipantsAdmitAllFromLobbyPostRequestBody()(*CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) { + m := &CallsItemParticipantsAdmitAllFromLobbyPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCallsItemParticipantsAdmitAllFromLobbyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCallsItemParticipantsAdmitAllFromLobbyPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCallsItemParticipantsAdmitAllFromLobbyPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetClientContext gets the clientContext property value. The clientContext property +// returns a *string when successful +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) GetClientContext()(*string) { + val, err := m.GetBackingStore().Get("clientContext") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientContext"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientContext(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("clientContext", m.GetClientContext()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetClientContext sets the clientContext property value. The clientContext property +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) SetClientContext(value *string)() { + err := m.GetBackingStore().Set("clientContext", value) + if err != nil { + panic(err) + } +} +type CallsItemParticipantsAdmitAllFromLobbyPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetClientContext()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetClientContext(value *string)() +} diff --git a/app/calls_item_participants_admit_all_from_lobby_request_builder.go b/app/calls_item_participants_admit_all_from_lobby_request_builder.go new file mode 100644 index 00000000000..4b67f10fcdf --- /dev/null +++ b/app/calls_item_participants_admit_all_from_lobby_request_builder.go @@ -0,0 +1,76 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package app + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CallsItemParticipantsAdmitAllFromLobbyRequestBuilder provides operations to call the admitAllFromLobby method. +type CallsItemParticipantsAdmitAllFromLobbyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CallsItemParticipantsAdmitAllFromLobbyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CallsItemParticipantsAdmitAllFromLobbyRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCallsItemParticipantsAdmitAllFromLobbyRequestBuilderInternal instantiates a new CallsItemParticipantsAdmitAllFromLobbyRequestBuilder and sets the default values. +func NewCallsItemParticipantsAdmitAllFromLobbyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CallsItemParticipantsAdmitAllFromLobbyRequestBuilder) { + m := &CallsItemParticipantsAdmitAllFromLobbyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/app/calls/{call%2Did}/participants/admitAllFromLobby", pathParameters), + } + return m +} +// NewCallsItemParticipantsAdmitAllFromLobbyRequestBuilder instantiates a new CallsItemParticipantsAdmitAllFromLobbyRequestBuilder and sets the default values. +func NewCallsItemParticipantsAdmitAllFromLobbyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CallsItemParticipantsAdmitAllFromLobbyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCallsItemParticipantsAdmitAllFromLobbyRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action admitAllFromLobby +// returns a AdmitAllFromLobbyOperationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CallsItemParticipantsAdmitAllFromLobbyRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsAdmitAllFromLobbyPostRequestBodyable, requestConfiguration *CallsItemParticipantsAdmitAllFromLobbyRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdmitAllFromLobbyOperationable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAdmitAllFromLobbyOperationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdmitAllFromLobbyOperationable), nil +} +// ToPostRequestInformation invoke action admitAllFromLobby +// returns a *RequestInformation when successful +func (m *CallsItemParticipantsAdmitAllFromLobbyRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsAdmitAllFromLobbyPostRequestBodyable, requestConfiguration *CallsItemParticipantsAdmitAllFromLobbyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CallsItemParticipantsAdmitAllFromLobbyRequestBuilder when successful +func (m *CallsItemParticipantsAdmitAllFromLobbyRequestBuilder) WithUrl(rawUrl string)(*CallsItemParticipantsAdmitAllFromLobbyRequestBuilder) { + return NewCallsItemParticipantsAdmitAllFromLobbyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/app/calls_item_participants_item_admit_from_lobby_post_request_body.go b/app/calls_item_participants_item_admit_from_lobby_post_request_body.go new file mode 100644 index 00000000000..6cb0958abc7 --- /dev/null +++ b/app/calls_item_participants_item_admit_from_lobby_post_request_body.go @@ -0,0 +1,116 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package app + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type CallsItemParticipantsItemAdmitFromLobbyPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCallsItemParticipantsItemAdmitFromLobbyPostRequestBody instantiates a new CallsItemParticipantsItemAdmitFromLobbyPostRequestBody and sets the default values. +func NewCallsItemParticipantsItemAdmitFromLobbyPostRequestBody()(*CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) { + m := &CallsItemParticipantsItemAdmitFromLobbyPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCallsItemParticipantsItemAdmitFromLobbyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCallsItemParticipantsItemAdmitFromLobbyPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCallsItemParticipantsItemAdmitFromLobbyPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetClientContext gets the clientContext property value. The clientContext property +// returns a *string when successful +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) GetClientContext()(*string) { + val, err := m.GetBackingStore().Get("clientContext") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientContext"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientContext(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("clientContext", m.GetClientContext()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetClientContext sets the clientContext property value. The clientContext property +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) SetClientContext(value *string)() { + err := m.GetBackingStore().Set("clientContext", value) + if err != nil { + panic(err) + } +} +type CallsItemParticipantsItemAdmitFromLobbyPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetClientContext()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetClientContext(value *string)() +} diff --git a/app/calls_item_participants_item_admit_from_lobby_request_builder.go b/app/calls_item_participants_item_admit_from_lobby_request_builder.go new file mode 100644 index 00000000000..827acd2f794 --- /dev/null +++ b/app/calls_item_participants_item_admit_from_lobby_request_builder.go @@ -0,0 +1,76 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package app + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CallsItemParticipantsItemAdmitFromLobbyRequestBuilder provides operations to call the admitFromLobby method. +type CallsItemParticipantsItemAdmitFromLobbyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CallsItemParticipantsItemAdmitFromLobbyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CallsItemParticipantsItemAdmitFromLobbyRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCallsItemParticipantsItemAdmitFromLobbyRequestBuilderInternal instantiates a new CallsItemParticipantsItemAdmitFromLobbyRequestBuilder and sets the default values. +func NewCallsItemParticipantsItemAdmitFromLobbyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CallsItemParticipantsItemAdmitFromLobbyRequestBuilder) { + m := &CallsItemParticipantsItemAdmitFromLobbyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/app/calls/{call%2Did}/participants/{participant%2Did}/admitFromLobby", pathParameters), + } + return m +} +// NewCallsItemParticipantsItemAdmitFromLobbyRequestBuilder instantiates a new CallsItemParticipantsItemAdmitFromLobbyRequestBuilder and sets the default values. +func NewCallsItemParticipantsItemAdmitFromLobbyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CallsItemParticipantsItemAdmitFromLobbyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCallsItemParticipantsItemAdmitFromLobbyRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action admitFromLobby +// returns a AdmitFromLobbyOperationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CallsItemParticipantsItemAdmitFromLobbyRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsItemAdmitFromLobbyPostRequestBodyable, requestConfiguration *CallsItemParticipantsItemAdmitFromLobbyRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdmitFromLobbyOperationable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAdmitFromLobbyOperationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdmitFromLobbyOperationable), nil +} +// ToPostRequestInformation invoke action admitFromLobby +// returns a *RequestInformation when successful +func (m *CallsItemParticipantsItemAdmitFromLobbyRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsItemAdmitFromLobbyPostRequestBodyable, requestConfiguration *CallsItemParticipantsItemAdmitFromLobbyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CallsItemParticipantsItemAdmitFromLobbyRequestBuilder when successful +func (m *CallsItemParticipantsItemAdmitFromLobbyRequestBuilder) WithUrl(rawUrl string)(*CallsItemParticipantsItemAdmitFromLobbyRequestBuilder) { + return NewCallsItemParticipantsItemAdmitFromLobbyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/app/calls_item_participants_item_remove_from_lobby_post_request_body.go b/app/calls_item_participants_item_remove_from_lobby_post_request_body.go new file mode 100644 index 00000000000..688d448aadf --- /dev/null +++ b/app/calls_item_participants_item_remove_from_lobby_post_request_body.go @@ -0,0 +1,116 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package app + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type CallsItemParticipantsItemRemoveFromLobbyPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCallsItemParticipantsItemRemoveFromLobbyPostRequestBody instantiates a new CallsItemParticipantsItemRemoveFromLobbyPostRequestBody and sets the default values. +func NewCallsItemParticipantsItemRemoveFromLobbyPostRequestBody()(*CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) { + m := &CallsItemParticipantsItemRemoveFromLobbyPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCallsItemParticipantsItemRemoveFromLobbyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCallsItemParticipantsItemRemoveFromLobbyPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCallsItemParticipantsItemRemoveFromLobbyPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetClientContext gets the clientContext property value. The clientContext property +// returns a *string when successful +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) GetClientContext()(*string) { + val, err := m.GetBackingStore().Get("clientContext") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientContext"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientContext(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("clientContext", m.GetClientContext()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetClientContext sets the clientContext property value. The clientContext property +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) SetClientContext(value *string)() { + err := m.GetBackingStore().Set("clientContext", value) + if err != nil { + panic(err) + } +} +type CallsItemParticipantsItemRemoveFromLobbyPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetClientContext()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetClientContext(value *string)() +} diff --git a/app/calls_item_participants_item_remove_from_lobby_request_builder.go b/app/calls_item_participants_item_remove_from_lobby_request_builder.go new file mode 100644 index 00000000000..3b39c550a97 --- /dev/null +++ b/app/calls_item_participants_item_remove_from_lobby_request_builder.go @@ -0,0 +1,76 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package app + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CallsItemParticipantsItemRemoveFromLobbyRequestBuilder provides operations to call the removeFromLobby method. +type CallsItemParticipantsItemRemoveFromLobbyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CallsItemParticipantsItemRemoveFromLobbyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CallsItemParticipantsItemRemoveFromLobbyRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCallsItemParticipantsItemRemoveFromLobbyRequestBuilderInternal instantiates a new CallsItemParticipantsItemRemoveFromLobbyRequestBuilder and sets the default values. +func NewCallsItemParticipantsItemRemoveFromLobbyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CallsItemParticipantsItemRemoveFromLobbyRequestBuilder) { + m := &CallsItemParticipantsItemRemoveFromLobbyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/app/calls/{call%2Did}/participants/{participant%2Did}/removeFromLobby", pathParameters), + } + return m +} +// NewCallsItemParticipantsItemRemoveFromLobbyRequestBuilder instantiates a new CallsItemParticipantsItemRemoveFromLobbyRequestBuilder and sets the default values. +func NewCallsItemParticipantsItemRemoveFromLobbyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CallsItemParticipantsItemRemoveFromLobbyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCallsItemParticipantsItemRemoveFromLobbyRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action removeFromLobby +// returns a RemoveFromLobbyOperationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CallsItemParticipantsItemRemoveFromLobbyRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsItemRemoveFromLobbyPostRequestBodyable, requestConfiguration *CallsItemParticipantsItemRemoveFromLobbyRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemoveFromLobbyOperationable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateRemoveFromLobbyOperationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemoveFromLobbyOperationable), nil +} +// ToPostRequestInformation invoke action removeFromLobby +// returns a *RequestInformation when successful +func (m *CallsItemParticipantsItemRemoveFromLobbyRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsItemRemoveFromLobbyPostRequestBodyable, requestConfiguration *CallsItemParticipantsItemRemoveFromLobbyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CallsItemParticipantsItemRemoveFromLobbyRequestBuilder when successful +func (m *CallsItemParticipantsItemRemoveFromLobbyRequestBuilder) WithUrl(rawUrl string)(*CallsItemParticipantsItemRemoveFromLobbyRequestBuilder) { + return NewCallsItemParticipantsItemRemoveFromLobbyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/app/calls_item_participants_participant_item_request_builder.go b/app/calls_item_participants_participant_item_request_builder.go index ebd8e1f4b00..edb13a85d42 100644 --- a/app/calls_item_participants_participant_item_request_builder.go +++ b/app/calls_item_participants_participant_item_request_builder.go @@ -44,6 +44,11 @@ type CallsItemParticipantsParticipantItemRequestBuilderPatchRequestConfiguration // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// AdmitFromLobby provides operations to call the admitFromLobby method. +// returns a *CallsItemParticipantsItemAdmitFromLobbyRequestBuilder when successful +func (m *CallsItemParticipantsParticipantItemRequestBuilder) AdmitFromLobby()(*CallsItemParticipantsItemAdmitFromLobbyRequestBuilder) { + return NewCallsItemParticipantsItemAdmitFromLobbyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NewCallsItemParticipantsParticipantItemRequestBuilderInternal instantiates a new CallsItemParticipantsParticipantItemRequestBuilder and sets the default values. func NewCallsItemParticipantsParticipantItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CallsItemParticipantsParticipantItemRequestBuilder) { m := &CallsItemParticipantsParticipantItemRequestBuilder{ @@ -118,6 +123,11 @@ func (m *CallsItemParticipantsParticipantItemRequestBuilder) Patch(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Participantable), nil } +// RemoveFromLobby provides operations to call the removeFromLobby method. +// returns a *CallsItemParticipantsItemRemoveFromLobbyRequestBuilder when successful +func (m *CallsItemParticipantsParticipantItemRequestBuilder) RemoveFromLobby()(*CallsItemParticipantsItemRemoveFromLobbyRequestBuilder) { + return NewCallsItemParticipantsItemRemoveFromLobbyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // StartHoldMusic provides operations to call the startHoldMusic method. // returns a *CallsItemParticipantsItemStartHoldMusicRequestBuilder when successful func (m *CallsItemParticipantsParticipantItemRequestBuilder) StartHoldMusic()(*CallsItemParticipantsItemStartHoldMusicRequestBuilder) { diff --git a/app/calls_item_participants_request_builder.go b/app/calls_item_participants_request_builder.go index c9e6120f772..705c7da0aea 100644 --- a/app/calls_item_participants_request_builder.go +++ b/app/calls_item_participants_request_builder.go @@ -49,6 +49,11 @@ type CallsItemParticipantsRequestBuilderPostRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// AdmitAllFromLobby provides operations to call the admitAllFromLobby method. +// returns a *CallsItemParticipantsAdmitAllFromLobbyRequestBuilder when successful +func (m *CallsItemParticipantsRequestBuilder) AdmitAllFromLobby()(*CallsItemParticipantsAdmitAllFromLobbyRequestBuilder) { + return NewCallsItemParticipantsAdmitAllFromLobbyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ByParticipantId provides operations to manage the participants property of the microsoft.graph.call entity. // returns a *CallsItemParticipantsParticipantItemRequestBuilder when successful func (m *CallsItemParticipantsRequestBuilder) ByParticipantId(participantId string)(*CallsItemParticipantsParticipantItemRequestBuilder) { diff --git a/app/calls_item_play_prompt_post_request_body.go b/app/calls_item_play_prompt_post_request_body.go index b57da038c39..9632f4fa521 100644 --- a/app/calls_item_play_prompt_post_request_body.go +++ b/app/calls_item_play_prompt_post_request_body.go @@ -19,6 +19,8 @@ func NewCallsItemPlayPromptPostRequestBody()(*CallsItemPlayPromptPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + loopValue := false + m.SetLoop(&loopValue) return m } // CreateCallsItemPlayPromptPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/app/calls_item_record_post_request_body.go b/app/calls_item_record_post_request_body.go index 0489c889f12..e6f120d038d 100644 --- a/app/calls_item_record_post_request_body.go +++ b/app/calls_item_record_post_request_body.go @@ -19,6 +19,12 @@ func NewCallsItemRecordPostRequestBody()(*CallsItemRecordPostRequestBody) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + bargeInAllowedValue := false + m.SetBargeInAllowed(&bargeInAllowedValue) + playBeepValue := false + m.SetPlayBeep(&playBeepValue) + streamWhileRecordingValue := false + m.SetStreamWhileRecording(&streamWhileRecordingValue) return m } // CreateCallsItemRecordPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/app/calls_item_record_response_post_request_body.go b/app/calls_item_record_response_post_request_body.go index d723bcb4d63..4355c3c099e 100644 --- a/app/calls_item_record_response_post_request_body.go +++ b/app/calls_item_record_response_post_request_body.go @@ -19,6 +19,12 @@ func NewCallsItemRecordResponsePostRequestBody()(*CallsItemRecordResponsePostReq } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + bargeInAllowedValue := false + m.SetBargeInAllowed(&bargeInAllowedValue) + playBeepValue := false + m.SetPlayBeep(&playBeepValue) + streamWhileRecordingValue := false + m.SetStreamWhileRecording(&streamWhileRecordingValue) return m } // CreateCallsItemRecordResponsePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/app/calls_item_redirect_post_request_body.go b/app/calls_item_redirect_post_request_body.go index 8353c71d40c..584bdb335d6 100644 --- a/app/calls_item_redirect_post_request_body.go +++ b/app/calls_item_redirect_post_request_body.go @@ -19,6 +19,10 @@ func NewCallsItemRedirectPostRequestBody()(*CallsItemRedirectPostRequestBody) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + maskCalleeValue := false + m.SetMaskCallee(&maskCalleeValue) + maskCallerValue := false + m.SetMaskCaller(&maskCallerValue) return m } // CreateCallsItemRedirectPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/applications/item_app_management_policies_ref_request_builder.go b/applications/item_app_management_policies_ref_request_builder.go index 4cb522d12f3..af674cd18b5 100644 --- a/applications/item_app_management_policies_ref_request_builder.go +++ b/applications/item_app_management_policies_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemAppManagementPoliciesRefRequestBuilderPostRequestConfiguration struct { // NewItemAppManagementPoliciesRefRequestBuilderInternal instantiates a new ItemAppManagementPoliciesRefRequestBuilder and sets the default values. func NewItemAppManagementPoliciesRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemAppManagementPoliciesRefRequestBuilder) { m := &ItemAppManagementPoliciesRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -147,7 +147,7 @@ func (m *ItemAppManagementPoliciesRefRequestBuilder) ToDeleteRequestInformation( // ToGetRequestInformation the appManagementPolicy applied to this application. // returns a *RequestInformation when successful func (m *ItemAppManagementPoliciesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppManagementPoliciesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -161,7 +161,7 @@ func (m *ItemAppManagementPoliciesRefRequestBuilder) ToGetRequestInformation(ctx // ToPostRequestInformation assign an appManagementPolicy policy object to an application or service principal object. The application or service principal adopts this policy over the tenant-wide tenantAppManagementPolicy setting. Only one policy object can be assigned to an application or service principal. // returns a *RequestInformation when successful func (m *ItemAppManagementPoliciesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemAppManagementPoliciesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/applications/item_get_member_groups_post_request_body.go b/applications/item_get_member_groups_post_request_body.go index 97ee925adf5..4f4f362dfa2 100644 --- a/applications/item_get_member_groups_post_request_body.go +++ b/applications/item_get_member_groups_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberGroupsPostRequestBody()(*ItemGetMemberGroupsPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberGroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/applications/item_get_member_objects_post_request_body.go b/applications/item_get_member_objects_post_request_body.go index 76ba5a1e131..19d3d18a1ff 100644 --- a/applications/item_get_member_objects_post_request_body.go +++ b/applications/item_get_member_objects_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberObjectsPostRequestBody()(*ItemGetMemberObjectsPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberObjectsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/applications/item_owners_ref_request_builder.go b/applications/item_owners_ref_request_builder.go index 38f36944ea7..29ff7f0c299 100644 --- a/applications/item_owners_ref_request_builder.go +++ b/applications/item_owners_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemOwnersRefRequestBuilderPostRequestConfiguration struct { // NewItemOwnersRefRequestBuilderInternal instantiates a new ItemOwnersRefRequestBuilder and sets the default values. func NewItemOwnersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOwnersRefRequestBuilder) { m := &ItemOwnersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ItemOwnersRefRequestBuilder) ToDeleteRequestInformation(ctx context.Con // ToGetRequestInformation retrieve a list of owners for an application that are directoryObject types. // returns a *RequestInformation when successful func (m *ItemOwnersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/applications/{application%2Did}/owners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ItemOwnersRefRequestBuilder) ToGetRequestInformation(ctx context.Contex // ToPostRequestInformation add an owner to an application. Application owners can be individual users, the associated service principal, or another service principal. // returns a *RequestInformation when successful func (m *ItemOwnersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemOwnersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/applications/{application%2Did}/owners/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/applications/item_synchronization_jobs_item_validate_credentials_post_request_body.go b/applications/item_synchronization_jobs_item_validate_credentials_post_request_body.go index 44274736854..14a20b5859b 100644 --- a/applications/item_synchronization_jobs_item_validate_credentials_post_request_body.go +++ b/applications/item_synchronization_jobs_item_validate_credentials_post_request_body.go @@ -19,6 +19,8 @@ func NewItemSynchronizationJobsItemValidateCredentialsPostRequestBody()(*ItemSyn } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + useSavedCredentialsValue := false + m.SetUseSavedCredentials(&useSavedCredentialsValue) return m } // CreateItemSynchronizationJobsItemValidateCredentialsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/applications/item_synchronization_jobs_validate_credentials_post_request_body.go b/applications/item_synchronization_jobs_validate_credentials_post_request_body.go index 8bcf173192e..15ab14fe085 100644 --- a/applications/item_synchronization_jobs_validate_credentials_post_request_body.go +++ b/applications/item_synchronization_jobs_validate_credentials_post_request_body.go @@ -19,6 +19,8 @@ func NewItemSynchronizationJobsValidateCredentialsPostRequestBody()(*ItemSynchro } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + useSavedCredentialsValue := false + m.SetUseSavedCredentials(&useSavedCredentialsValue) return m } // CreateItemSynchronizationJobsValidateCredentialsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/applications/item_token_issuance_policies_ref_request_builder.go b/applications/item_token_issuance_policies_ref_request_builder.go index 9b17ab82e28..f16c9923d80 100644 --- a/applications/item_token_issuance_policies_ref_request_builder.go +++ b/applications/item_token_issuance_policies_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemTokenIssuancePoliciesRefRequestBuilderPostRequestConfiguration struct { // NewItemTokenIssuancePoliciesRefRequestBuilderInternal instantiates a new ItemTokenIssuancePoliciesRefRequestBuilder and sets the default values. func NewItemTokenIssuancePoliciesRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTokenIssuancePoliciesRefRequestBuilder) { m := &ItemTokenIssuancePoliciesRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ItemTokenIssuancePoliciesRefRequestBuilder) ToDeleteRequestInformation( // ToGetRequestInformation list the tokenIssuancePolicy objects that are assigned to an application. // returns a *RequestInformation when successful func (m *ItemTokenIssuancePoliciesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTokenIssuancePoliciesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ItemTokenIssuancePoliciesRefRequestBuilder) ToGetRequestInformation(ctx // ToPostRequestInformation assign a tokenIssuancePolicy to an application. // returns a *RequestInformation when successful func (m *ItemTokenIssuancePoliciesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemTokenIssuancePoliciesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/applications/item_token_lifetime_policies_ref_request_builder.go b/applications/item_token_lifetime_policies_ref_request_builder.go index 17bb0e42c42..9bca4c7a2ca 100644 --- a/applications/item_token_lifetime_policies_ref_request_builder.go +++ b/applications/item_token_lifetime_policies_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemTokenLifetimePoliciesRefRequestBuilderPostRequestConfiguration struct { // NewItemTokenLifetimePoliciesRefRequestBuilderInternal instantiates a new ItemTokenLifetimePoliciesRefRequestBuilder and sets the default values. func NewItemTokenLifetimePoliciesRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTokenLifetimePoliciesRefRequestBuilder) { m := &ItemTokenLifetimePoliciesRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ItemTokenLifetimePoliciesRefRequestBuilder) ToDeleteRequestInformation( // ToGetRequestInformation list the tokenLifetimePolicy objects that are assigned to an application or servicePrincipal. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. // returns a *RequestInformation when successful func (m *ItemTokenLifetimePoliciesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTokenLifetimePoliciesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ItemTokenLifetimePoliciesRefRequestBuilder) ToGetRequestInformation(ctx // ToPostRequestInformation assign a tokenLifetimePolicy to an application or servicePrincipal. You can have multiple tokenLifetimePolicy policies in a tenant but can assign only one tokenLifetimePolicy per application. // returns a *RequestInformation when successful func (m *ItemTokenLifetimePoliciesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemTokenLifetimePoliciesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/applicationtemplates/application_templates_request_builder.go b/applicationtemplates/application_templates_request_builder.go index c11cead9d5d..eed9fa72211 100644 --- a/applicationtemplates/application_templates_request_builder.go +++ b/applicationtemplates/application_templates_request_builder.go @@ -54,6 +54,11 @@ func (m *ApplicationTemplatesRequestBuilder) ByApplicationTemplateId(application } return NewApplicationTemplateItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) } +// Categories provides operations to call the categories method. +// returns a *CategoriesRequestBuilder when successful +func (m *ApplicationTemplatesRequestBuilder) Categories()(*CategoriesRequestBuilder) { + return NewCategoriesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NewApplicationTemplatesRequestBuilderInternal instantiates a new ApplicationTemplatesRequestBuilder and sets the default values. func NewApplicationTemplatesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApplicationTemplatesRequestBuilder) { m := &ApplicationTemplatesRequestBuilder{ diff --git a/applicationtemplates/categories_get_response.go b/applicationtemplates/categories_get_response.go new file mode 100644 index 00000000000..b491d056774 --- /dev/null +++ b/applicationtemplates/categories_get_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package applicationtemplates + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type CategoriesGetResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewCategoriesGetResponse instantiates a new CategoriesGetResponse and sets the default values. +func NewCategoriesGetResponse()(*CategoriesGetResponse) { + m := &CategoriesGetResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateCategoriesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCategoriesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCategoriesGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CategoriesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApplicationTemplateCategoryFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApplicationTemplateCategoryable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApplicationTemplateCategoryable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ApplicationTemplateCategoryable when successful +func (m *CategoriesGetResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApplicationTemplateCategoryable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApplicationTemplateCategoryable) + } + return nil +} +// Serialize serializes information the current object +func (m *CategoriesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *CategoriesGetResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApplicationTemplateCategoryable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type CategoriesGetResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApplicationTemplateCategoryable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApplicationTemplateCategoryable)() +} diff --git a/applicationtemplates/categories_request_builder.go b/applicationtemplates/categories_request_builder.go new file mode 100644 index 00000000000..a5fff378265 --- /dev/null +++ b/applicationtemplates/categories_request_builder.go @@ -0,0 +1,110 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package applicationtemplates + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CategoriesRequestBuilder provides operations to call the categories method. +type CategoriesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CategoriesRequestBuilderGetQueryParameters invoke function categories +type CategoriesRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// CategoriesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CategoriesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CategoriesRequestBuilderGetQueryParameters +} +// NewCategoriesRequestBuilderInternal instantiates a new CategoriesRequestBuilder and sets the default values. +func NewCategoriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CategoriesRequestBuilder) { + m := &CategoriesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/applicationTemplates/categories(){?%24count,%24filter,%24search,%24skip,%24top}", pathParameters), + } + return m +} +// NewCategoriesRequestBuilder instantiates a new CategoriesRequestBuilder and sets the default values. +func NewCategoriesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CategoriesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCategoriesRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function categories +// Deprecated: This method is obsolete. Use GetAsCategoriesGetResponse instead. +// returns a CategoriesResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CategoriesRequestBuilder) Get(ctx context.Context, requestConfiguration *CategoriesRequestBuilderGetRequestConfiguration)(CategoriesResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateCategoriesResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(CategoriesResponseable), nil +} +// GetAsCategoriesGetResponse invoke function categories +// returns a CategoriesGetResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CategoriesRequestBuilder) GetAsCategoriesGetResponse(ctx context.Context, requestConfiguration *CategoriesRequestBuilderGetRequestConfiguration)(CategoriesGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateCategoriesGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(CategoriesGetResponseable), nil +} +// ToGetRequestInformation invoke function categories +// returns a *RequestInformation when successful +func (m *CategoriesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CategoriesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CategoriesRequestBuilder when successful +func (m *CategoriesRequestBuilder) WithUrl(rawUrl string)(*CategoriesRequestBuilder) { + return NewCategoriesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/applicationtemplates/categories_response.go b/applicationtemplates/categories_response.go new file mode 100644 index 00000000000..f6a2bf6d915 --- /dev/null +++ b/applicationtemplates/categories_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package applicationtemplates + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use CategoriesGetResponseable instead. +type CategoriesResponse struct { + CategoriesGetResponse +} +// NewCategoriesResponse instantiates a new CategoriesResponse and sets the default values. +func NewCategoriesResponse()(*CategoriesResponse) { + m := &CategoriesResponse{ + CategoriesGetResponse: *NewCategoriesGetResponse(), + } + return m +} +// CreateCategoriesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCategoriesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCategoriesResponse(), nil +} +// Deprecated: This class is obsolete. Use CategoriesGetResponseable instead. +type CategoriesResponseable interface { + CategoriesGetResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/bookingbusinesses/item_calendar_view_booking_appointment_item_request_builder.go b/bookingbusinesses/item_calendar_view_booking_appointment_item_request_builder.go index 05e168ef55a..b433ac9f7d7 100644 --- a/bookingbusinesses/item_calendar_view_booking_appointment_item_request_builder.go +++ b/bookingbusinesses/item_calendar_view_booking_appointment_item_request_builder.go @@ -56,7 +56,7 @@ func (m *ItemCalendarViewBookingAppointmentItemRequestBuilder) Cancel()(*ItemCal // NewItemCalendarViewBookingAppointmentItemRequestBuilderInternal instantiates a new ItemCalendarViewBookingAppointmentItemRequestBuilder and sets the default values. func NewItemCalendarViewBookingAppointmentItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewBookingAppointmentItemRequestBuilder) { m := &ItemCalendarViewBookingAppointmentItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/bookingBusinesses/{bookingBusiness%2Did}/calendarView/{bookingAppointment%2Did}?end={end}&start={start}{&%24expand,%24select}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/bookingBusinesses/{bookingBusiness%2Did}/calendarView/{bookingAppointment%2Did}{?%24expand,%24select}", pathParameters), } return m } @@ -125,7 +125,7 @@ func (m *ItemCalendarViewBookingAppointmentItemRequestBuilder) Patch(ctx context // ToDeleteRequestInformation delete navigation property calendarView for bookingBusinesses // returns a *RequestInformation when successful func (m *ItemCalendarViewBookingAppointmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewBookingAppointmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/bookingBusinesses/{bookingBusiness%2Did}/calendarView/{bookingAppointment%2Did}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) @@ -136,7 +136,7 @@ func (m *ItemCalendarViewBookingAppointmentItemRequestBuilder) ToDeleteRequestIn // ToGetRequestInformation the set of appointments of this business in a specified date range. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCalendarViewBookingAppointmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewBookingAppointmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/bookingBusinesses/{bookingBusiness%2Did}/calendarView/{bookingAppointment%2Did}?end={end}&start={start}{&%24expand,%24select}", m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -150,7 +150,7 @@ func (m *ItemCalendarViewBookingAppointmentItemRequestBuilder) ToGetRequestInfor // ToPatchRequestInformation update the navigation property calendarView in bookingBusinesses // returns a *RequestInformation when successful func (m *ItemCalendarViewBookingAppointmentItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BookingAppointmentable, requestConfiguration *ItemCalendarViewBookingAppointmentItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/bookingBusinesses/{bookingBusiness%2Did}/calendarView/{bookingAppointment%2Did}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/bookingbusinesses/item_calendar_view_request_builder.go b/bookingbusinesses/item_calendar_view_request_builder.go index f2fcb2c6e88..2d7141e5699 100644 --- a/bookingbusinesses/item_calendar_view_request_builder.go +++ b/bookingbusinesses/item_calendar_view_request_builder.go @@ -68,7 +68,7 @@ func (m *ItemCalendarViewRequestBuilder) ByBookingAppointmentId(bookingAppointme // NewItemCalendarViewRequestBuilderInternal instantiates a new ItemCalendarViewRequestBuilder and sets the default values. func NewItemCalendarViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewRequestBuilder) { m := &ItemCalendarViewRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/bookingBusinesses/{bookingBusiness%2Did}/calendarView?end={end}&start={start}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/bookingBusinesses/{bookingBusiness%2Did}/calendarView{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), } return m } @@ -126,7 +126,7 @@ func (m *ItemCalendarViewRequestBuilder) Post(ctx context.Context, body ie233ee7 // ToGetRequestInformation the set of appointments of this business in a specified date range. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCalendarViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/bookingBusinesses/{bookingBusiness%2Did}/calendarView?end={end}&start={start}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -140,7 +140,7 @@ func (m *ItemCalendarViewRequestBuilder) ToGetRequestInformation(ctx context.Con // ToPostRequestInformation create new navigation property to calendarView for bookingBusinesses // returns a *RequestInformation when successful func (m *ItemCalendarViewRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BookingAppointmentable, requestConfiguration *ItemCalendarViewRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/bookingBusinesses/{bookingBusiness%2Did}/calendarView", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/communications/calls_item_participants_admit_all_from_lobby_post_request_body.go b/communications/calls_item_participants_admit_all_from_lobby_post_request_body.go new file mode 100644 index 00000000000..f2f8fdb3d0d --- /dev/null +++ b/communications/calls_item_participants_admit_all_from_lobby_post_request_body.go @@ -0,0 +1,116 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package communications + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type CallsItemParticipantsAdmitAllFromLobbyPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCallsItemParticipantsAdmitAllFromLobbyPostRequestBody instantiates a new CallsItemParticipantsAdmitAllFromLobbyPostRequestBody and sets the default values. +func NewCallsItemParticipantsAdmitAllFromLobbyPostRequestBody()(*CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) { + m := &CallsItemParticipantsAdmitAllFromLobbyPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCallsItemParticipantsAdmitAllFromLobbyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCallsItemParticipantsAdmitAllFromLobbyPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCallsItemParticipantsAdmitAllFromLobbyPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetClientContext gets the clientContext property value. The clientContext property +// returns a *string when successful +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) GetClientContext()(*string) { + val, err := m.GetBackingStore().Get("clientContext") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientContext"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientContext(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("clientContext", m.GetClientContext()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetClientContext sets the clientContext property value. The clientContext property +func (m *CallsItemParticipantsAdmitAllFromLobbyPostRequestBody) SetClientContext(value *string)() { + err := m.GetBackingStore().Set("clientContext", value) + if err != nil { + panic(err) + } +} +type CallsItemParticipantsAdmitAllFromLobbyPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetClientContext()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetClientContext(value *string)() +} diff --git a/communications/calls_item_participants_admit_all_from_lobby_request_builder.go b/communications/calls_item_participants_admit_all_from_lobby_request_builder.go new file mode 100644 index 00000000000..2a7ef69b4b8 --- /dev/null +++ b/communications/calls_item_participants_admit_all_from_lobby_request_builder.go @@ -0,0 +1,76 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package communications + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CallsItemParticipantsAdmitAllFromLobbyRequestBuilder provides operations to call the admitAllFromLobby method. +type CallsItemParticipantsAdmitAllFromLobbyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CallsItemParticipantsAdmitAllFromLobbyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CallsItemParticipantsAdmitAllFromLobbyRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCallsItemParticipantsAdmitAllFromLobbyRequestBuilderInternal instantiates a new CallsItemParticipantsAdmitAllFromLobbyRequestBuilder and sets the default values. +func NewCallsItemParticipantsAdmitAllFromLobbyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CallsItemParticipantsAdmitAllFromLobbyRequestBuilder) { + m := &CallsItemParticipantsAdmitAllFromLobbyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/admitAllFromLobby", pathParameters), + } + return m +} +// NewCallsItemParticipantsAdmitAllFromLobbyRequestBuilder instantiates a new CallsItemParticipantsAdmitAllFromLobbyRequestBuilder and sets the default values. +func NewCallsItemParticipantsAdmitAllFromLobbyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CallsItemParticipantsAdmitAllFromLobbyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCallsItemParticipantsAdmitAllFromLobbyRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action admitAllFromLobby +// returns a AdmitAllFromLobbyOperationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CallsItemParticipantsAdmitAllFromLobbyRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsAdmitAllFromLobbyPostRequestBodyable, requestConfiguration *CallsItemParticipantsAdmitAllFromLobbyRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdmitAllFromLobbyOperationable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAdmitAllFromLobbyOperationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdmitAllFromLobbyOperationable), nil +} +// ToPostRequestInformation invoke action admitAllFromLobby +// returns a *RequestInformation when successful +func (m *CallsItemParticipantsAdmitAllFromLobbyRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsAdmitAllFromLobbyPostRequestBodyable, requestConfiguration *CallsItemParticipantsAdmitAllFromLobbyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CallsItemParticipantsAdmitAllFromLobbyRequestBuilder when successful +func (m *CallsItemParticipantsAdmitAllFromLobbyRequestBuilder) WithUrl(rawUrl string)(*CallsItemParticipantsAdmitAllFromLobbyRequestBuilder) { + return NewCallsItemParticipantsAdmitAllFromLobbyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/communications/calls_item_participants_item_admit_from_lobby_post_request_body.go b/communications/calls_item_participants_item_admit_from_lobby_post_request_body.go new file mode 100644 index 00000000000..944690a6b96 --- /dev/null +++ b/communications/calls_item_participants_item_admit_from_lobby_post_request_body.go @@ -0,0 +1,116 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package communications + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type CallsItemParticipantsItemAdmitFromLobbyPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCallsItemParticipantsItemAdmitFromLobbyPostRequestBody instantiates a new CallsItemParticipantsItemAdmitFromLobbyPostRequestBody and sets the default values. +func NewCallsItemParticipantsItemAdmitFromLobbyPostRequestBody()(*CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) { + m := &CallsItemParticipantsItemAdmitFromLobbyPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCallsItemParticipantsItemAdmitFromLobbyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCallsItemParticipantsItemAdmitFromLobbyPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCallsItemParticipantsItemAdmitFromLobbyPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetClientContext gets the clientContext property value. The clientContext property +// returns a *string when successful +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) GetClientContext()(*string) { + val, err := m.GetBackingStore().Get("clientContext") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientContext"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientContext(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("clientContext", m.GetClientContext()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetClientContext sets the clientContext property value. The clientContext property +func (m *CallsItemParticipantsItemAdmitFromLobbyPostRequestBody) SetClientContext(value *string)() { + err := m.GetBackingStore().Set("clientContext", value) + if err != nil { + panic(err) + } +} +type CallsItemParticipantsItemAdmitFromLobbyPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetClientContext()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetClientContext(value *string)() +} diff --git a/communications/calls_item_participants_item_admit_from_lobby_request_builder.go b/communications/calls_item_participants_item_admit_from_lobby_request_builder.go new file mode 100644 index 00000000000..9ff1b1c1af2 --- /dev/null +++ b/communications/calls_item_participants_item_admit_from_lobby_request_builder.go @@ -0,0 +1,76 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package communications + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CallsItemParticipantsItemAdmitFromLobbyRequestBuilder provides operations to call the admitFromLobby method. +type CallsItemParticipantsItemAdmitFromLobbyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CallsItemParticipantsItemAdmitFromLobbyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CallsItemParticipantsItemAdmitFromLobbyRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCallsItemParticipantsItemAdmitFromLobbyRequestBuilderInternal instantiates a new CallsItemParticipantsItemAdmitFromLobbyRequestBuilder and sets the default values. +func NewCallsItemParticipantsItemAdmitFromLobbyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CallsItemParticipantsItemAdmitFromLobbyRequestBuilder) { + m := &CallsItemParticipantsItemAdmitFromLobbyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}/admitFromLobby", pathParameters), + } + return m +} +// NewCallsItemParticipantsItemAdmitFromLobbyRequestBuilder instantiates a new CallsItemParticipantsItemAdmitFromLobbyRequestBuilder and sets the default values. +func NewCallsItemParticipantsItemAdmitFromLobbyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CallsItemParticipantsItemAdmitFromLobbyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCallsItemParticipantsItemAdmitFromLobbyRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action admitFromLobby +// returns a AdmitFromLobbyOperationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CallsItemParticipantsItemAdmitFromLobbyRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsItemAdmitFromLobbyPostRequestBodyable, requestConfiguration *CallsItemParticipantsItemAdmitFromLobbyRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdmitFromLobbyOperationable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAdmitFromLobbyOperationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdmitFromLobbyOperationable), nil +} +// ToPostRequestInformation invoke action admitFromLobby +// returns a *RequestInformation when successful +func (m *CallsItemParticipantsItemAdmitFromLobbyRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsItemAdmitFromLobbyPostRequestBodyable, requestConfiguration *CallsItemParticipantsItemAdmitFromLobbyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CallsItemParticipantsItemAdmitFromLobbyRequestBuilder when successful +func (m *CallsItemParticipantsItemAdmitFromLobbyRequestBuilder) WithUrl(rawUrl string)(*CallsItemParticipantsItemAdmitFromLobbyRequestBuilder) { + return NewCallsItemParticipantsItemAdmitFromLobbyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/communications/calls_item_participants_item_remove_from_lobby_post_request_body.go b/communications/calls_item_participants_item_remove_from_lobby_post_request_body.go new file mode 100644 index 00000000000..7bf55355038 --- /dev/null +++ b/communications/calls_item_participants_item_remove_from_lobby_post_request_body.go @@ -0,0 +1,116 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package communications + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type CallsItemParticipantsItemRemoveFromLobbyPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCallsItemParticipantsItemRemoveFromLobbyPostRequestBody instantiates a new CallsItemParticipantsItemRemoveFromLobbyPostRequestBody and sets the default values. +func NewCallsItemParticipantsItemRemoveFromLobbyPostRequestBody()(*CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) { + m := &CallsItemParticipantsItemRemoveFromLobbyPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCallsItemParticipantsItemRemoveFromLobbyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCallsItemParticipantsItemRemoveFromLobbyPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCallsItemParticipantsItemRemoveFromLobbyPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetClientContext gets the clientContext property value. The clientContext property +// returns a *string when successful +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) GetClientContext()(*string) { + val, err := m.GetBackingStore().Get("clientContext") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientContext"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientContext(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("clientContext", m.GetClientContext()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetClientContext sets the clientContext property value. The clientContext property +func (m *CallsItemParticipantsItemRemoveFromLobbyPostRequestBody) SetClientContext(value *string)() { + err := m.GetBackingStore().Set("clientContext", value) + if err != nil { + panic(err) + } +} +type CallsItemParticipantsItemRemoveFromLobbyPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetClientContext()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetClientContext(value *string)() +} diff --git a/communications/calls_item_participants_item_remove_from_lobby_request_builder.go b/communications/calls_item_participants_item_remove_from_lobby_request_builder.go new file mode 100644 index 00000000000..8ae305dda4f --- /dev/null +++ b/communications/calls_item_participants_item_remove_from_lobby_request_builder.go @@ -0,0 +1,76 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package communications + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CallsItemParticipantsItemRemoveFromLobbyRequestBuilder provides operations to call the removeFromLobby method. +type CallsItemParticipantsItemRemoveFromLobbyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CallsItemParticipantsItemRemoveFromLobbyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CallsItemParticipantsItemRemoveFromLobbyRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCallsItemParticipantsItemRemoveFromLobbyRequestBuilderInternal instantiates a new CallsItemParticipantsItemRemoveFromLobbyRequestBuilder and sets the default values. +func NewCallsItemParticipantsItemRemoveFromLobbyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CallsItemParticipantsItemRemoveFromLobbyRequestBuilder) { + m := &CallsItemParticipantsItemRemoveFromLobbyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/{participant%2Did}/removeFromLobby", pathParameters), + } + return m +} +// NewCallsItemParticipantsItemRemoveFromLobbyRequestBuilder instantiates a new CallsItemParticipantsItemRemoveFromLobbyRequestBuilder and sets the default values. +func NewCallsItemParticipantsItemRemoveFromLobbyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CallsItemParticipantsItemRemoveFromLobbyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCallsItemParticipantsItemRemoveFromLobbyRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action removeFromLobby +// returns a RemoveFromLobbyOperationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CallsItemParticipantsItemRemoveFromLobbyRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsItemRemoveFromLobbyPostRequestBodyable, requestConfiguration *CallsItemParticipantsItemRemoveFromLobbyRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemoveFromLobbyOperationable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateRemoveFromLobbyOperationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RemoveFromLobbyOperationable), nil +} +// ToPostRequestInformation invoke action removeFromLobby +// returns a *RequestInformation when successful +func (m *CallsItemParticipantsItemRemoveFromLobbyRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsItemRemoveFromLobbyPostRequestBodyable, requestConfiguration *CallsItemParticipantsItemRemoveFromLobbyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CallsItemParticipantsItemRemoveFromLobbyRequestBuilder when successful +func (m *CallsItemParticipantsItemRemoveFromLobbyRequestBuilder) WithUrl(rawUrl string)(*CallsItemParticipantsItemRemoveFromLobbyRequestBuilder) { + return NewCallsItemParticipantsItemRemoveFromLobbyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/communications/calls_item_participants_participant_item_request_builder.go b/communications/calls_item_participants_participant_item_request_builder.go index 5a9486b5ea0..b7c0b065d0a 100644 --- a/communications/calls_item_participants_participant_item_request_builder.go +++ b/communications/calls_item_participants_participant_item_request_builder.go @@ -44,6 +44,11 @@ type CallsItemParticipantsParticipantItemRequestBuilderPatchRequestConfiguration // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// AdmitFromLobby provides operations to call the admitFromLobby method. +// returns a *CallsItemParticipantsItemAdmitFromLobbyRequestBuilder when successful +func (m *CallsItemParticipantsParticipantItemRequestBuilder) AdmitFromLobby()(*CallsItemParticipantsItemAdmitFromLobbyRequestBuilder) { + return NewCallsItemParticipantsItemAdmitFromLobbyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NewCallsItemParticipantsParticipantItemRequestBuilderInternal instantiates a new CallsItemParticipantsParticipantItemRequestBuilder and sets the default values. func NewCallsItemParticipantsParticipantItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CallsItemParticipantsParticipantItemRequestBuilder) { m := &CallsItemParticipantsParticipantItemRequestBuilder{ @@ -124,6 +129,11 @@ func (m *CallsItemParticipantsParticipantItemRequestBuilder) Patch(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Participantable), nil } +// RemoveFromLobby provides operations to call the removeFromLobby method. +// returns a *CallsItemParticipantsItemRemoveFromLobbyRequestBuilder when successful +func (m *CallsItemParticipantsParticipantItemRequestBuilder) RemoveFromLobby()(*CallsItemParticipantsItemRemoveFromLobbyRequestBuilder) { + return NewCallsItemParticipantsItemRemoveFromLobbyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // StartHoldMusic provides operations to call the startHoldMusic method. // returns a *CallsItemParticipantsItemStartHoldMusicRequestBuilder when successful func (m *CallsItemParticipantsParticipantItemRequestBuilder) StartHoldMusic()(*CallsItemParticipantsItemStartHoldMusicRequestBuilder) { diff --git a/communications/calls_item_participants_request_builder.go b/communications/calls_item_participants_request_builder.go index 1e6749b0963..ab9ac30bbf3 100644 --- a/communications/calls_item_participants_request_builder.go +++ b/communications/calls_item_participants_request_builder.go @@ -49,6 +49,11 @@ type CallsItemParticipantsRequestBuilderPostRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// AdmitAllFromLobby provides operations to call the admitAllFromLobby method. +// returns a *CallsItemParticipantsAdmitAllFromLobbyRequestBuilder when successful +func (m *CallsItemParticipantsRequestBuilder) AdmitAllFromLobby()(*CallsItemParticipantsAdmitAllFromLobbyRequestBuilder) { + return NewCallsItemParticipantsAdmitAllFromLobbyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ByParticipantId provides operations to manage the participants property of the microsoft.graph.call entity. // returns a *CallsItemParticipantsParticipantItemRequestBuilder when successful func (m *CallsItemParticipantsRequestBuilder) ByParticipantId(participantId string)(*CallsItemParticipantsParticipantItemRequestBuilder) { diff --git a/communications/calls_item_play_prompt_post_request_body.go b/communications/calls_item_play_prompt_post_request_body.go index 0970bfdf7b9..4c885174018 100644 --- a/communications/calls_item_play_prompt_post_request_body.go +++ b/communications/calls_item_play_prompt_post_request_body.go @@ -19,6 +19,8 @@ func NewCallsItemPlayPromptPostRequestBody()(*CallsItemPlayPromptPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + loopValue := false + m.SetLoop(&loopValue) return m } // CreateCallsItemPlayPromptPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/communications/calls_item_record_post_request_body.go b/communications/calls_item_record_post_request_body.go index e971bf83d21..920cbc40f21 100644 --- a/communications/calls_item_record_post_request_body.go +++ b/communications/calls_item_record_post_request_body.go @@ -19,6 +19,12 @@ func NewCallsItemRecordPostRequestBody()(*CallsItemRecordPostRequestBody) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + bargeInAllowedValue := false + m.SetBargeInAllowed(&bargeInAllowedValue) + playBeepValue := false + m.SetPlayBeep(&playBeepValue) + streamWhileRecordingValue := false + m.SetStreamWhileRecording(&streamWhileRecordingValue) return m } // CreateCallsItemRecordPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/communications/calls_item_record_response_post_request_body.go b/communications/calls_item_record_response_post_request_body.go index cb1bc41b167..53f3fc31274 100644 --- a/communications/calls_item_record_response_post_request_body.go +++ b/communications/calls_item_record_response_post_request_body.go @@ -19,6 +19,12 @@ func NewCallsItemRecordResponsePostRequestBody()(*CallsItemRecordResponsePostReq } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + bargeInAllowedValue := false + m.SetBargeInAllowed(&bargeInAllowedValue) + playBeepValue := false + m.SetPlayBeep(&playBeepValue) + streamWhileRecordingValue := false + m.SetStreamWhileRecording(&streamWhileRecordingValue) return m } // CreateCallsItemRecordResponsePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/communications/calls_item_redirect_post_request_body.go b/communications/calls_item_redirect_post_request_body.go index 7321880a463..603f6bde94a 100644 --- a/communications/calls_item_redirect_post_request_body.go +++ b/communications/calls_item_redirect_post_request_body.go @@ -19,6 +19,10 @@ func NewCallsItemRedirectPostRequestBody()(*CallsItemRedirectPostRequestBody) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + maskCalleeValue := false + m.SetMaskCallee(&maskCalleeValue) + maskCallerValue := false + m.SetMaskCaller(&maskCallerValue) return m } // CreateCallsItemRedirectPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/contacts/item_get_member_groups_post_request_body.go b/contacts/item_get_member_groups_post_request_body.go index 8b817fbdc0d..183ca955c4c 100644 --- a/contacts/item_get_member_groups_post_request_body.go +++ b/contacts/item_get_member_groups_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberGroupsPostRequestBody()(*ItemGetMemberGroupsPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberGroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/contacts/item_get_member_objects_post_request_body.go b/contacts/item_get_member_objects_post_request_body.go index cb1a6717d72..115891cfc80 100644 --- a/contacts/item_get_member_objects_post_request_body.go +++ b/contacts/item_get_member_objects_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberObjectsPostRequestBody()(*ItemGetMemberObjectsPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberObjectsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/contracts/item_get_member_groups_post_request_body.go b/contracts/item_get_member_groups_post_request_body.go index 05a25bf8618..7850393139b 100644 --- a/contracts/item_get_member_groups_post_request_body.go +++ b/contracts/item_get_member_groups_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberGroupsPostRequestBody()(*ItemGetMemberGroupsPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberGroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/contracts/item_get_member_objects_post_request_body.go b/contracts/item_get_member_objects_post_request_body.go index 5df0a6124c7..8abfc31d0b6 100644 --- a/contracts/item_get_member_objects_post_request_body.go +++ b/contracts/item_get_member_objects_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberObjectsPostRequestBody()(*ItemGetMemberObjectsPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberObjectsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/deviceappmanagement/vpp_tokens_item_revoke_licenses_post_request_body.go b/deviceappmanagement/vpp_tokens_item_revoke_licenses_post_request_body.go index 20df3e18804..66f451c725f 100644 --- a/deviceappmanagement/vpp_tokens_item_revoke_licenses_post_request_body.go +++ b/deviceappmanagement/vpp_tokens_item_revoke_licenses_post_request_body.go @@ -18,6 +18,10 @@ func NewVppTokensItemRevokeLicensesPostRequestBody()(*VppTokensItemRevokeLicense } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + notifyManagedDevicesValue := false + m.SetNotifyManagedDevices(¬ifyManagedDevicesValue) + revokeUntrackedLicensesValue := false + m.SetRevokeUntrackedLicenses(&revokeUntrackedLicensesValue) return m } // CreateVppTokensItemRevokeLicensesPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/173517a02a3f4dba6fb5c9d145d5c096c43365d9503753d0ab30a1437e0bfa66.go b/devicemanagement/173517a02a3f4dba6fb5c9d145d5c096c43365d9503753d0ab30a1437e0bfa66.go index 176df54f1b6..c69c26b14d7 100644 --- a/devicemanagement/173517a02a3f4dba6fb5c9d145d5c096c43365d9503753d0ab30a1437e0bfa66.go +++ b/devicemanagement/173517a02a3f4dba6fb5c9d145d5c096c43365d9503753d0ab30a1437e0bfa66.go @@ -18,6 +18,8 @@ func NewAndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyMa } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + enabledValue := false + m.SetEnabled(&enabledValue) return m } // CreateAndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/21620f7776636b21ab7c957b5bb5e7f04ab4f04319e44bfefd9b98454f65166b.go b/devicemanagement/21620f7776636b21ab7c957b5bb5e7f04ab4f04319e44bfefd9b98454f65166b.go index 3e270c43c8b..2afbb26612b 100644 --- a/devicemanagement/21620f7776636b21ab7c957b5bb5e7f04ab4f04319e44bfefd9b98454f65166b.go +++ b/devicemanagement/21620f7776636b21ab7c957b5bb5e7f04ab4f04319e44bfefd9b98454f65166b.go @@ -18,6 +18,8 @@ func NewReusablePolicySettingsItemReferencingConfigurationPoliciesItemClearEnrol } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateReusablePolicySettingsItemReferencingConfigurationPoliciesItemClearEnrollmentTimeDeviceMembershipTargetPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/a11e8b06ad31295f67ba4df6e116508241af21b7e0cef27ae96f6a0d68213138.go b/devicemanagement/a11e8b06ad31295f67ba4df6e116508241af21b7e0cef27ae96f6a0d68213138.go index 6d51de09515..b8013cd68b7 100644 --- a/devicemanagement/a11e8b06ad31295f67ba4df6e116508241af21b7e0cef27ae96f6a0d68213138.go +++ b/devicemanagement/a11e8b06ad31295f67ba4df6e116508241af21b7e0cef27ae96f6a0d68213138.go @@ -19,6 +19,8 @@ func NewDepOnboardingSettingsItemImportedAppleDeviceIdentitiesImportAppleDeviceI } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + overwriteImportedDeviceIdentitiesValue := false + m.SetOverwriteImportedDeviceIdentities(&overwriteImportedDeviceIdentitiesValue) return m } // CreateDepOnboardingSettingsItemImportedAppleDeviceIdentitiesImportAppleDeviceIdentityListPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/android_managed_store_account_enterprise_settings_approve_apps_post_request_body.go b/devicemanagement/android_managed_store_account_enterprise_settings_approve_apps_post_request_body.go index 1754db1db51..d39ba632f3d 100644 --- a/devicemanagement/android_managed_store_account_enterprise_settings_approve_apps_post_request_body.go +++ b/devicemanagement/android_managed_store_account_enterprise_settings_approve_apps_post_request_body.go @@ -18,6 +18,8 @@ func NewAndroidManagedStoreAccountEnterpriseSettingsApproveAppsPostRequestBody() } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + approveAllPermissionsValue := false + m.SetApproveAllPermissions(&approveAllPermissionsValue) return m } // CreateAndroidManagedStoreAccountEnterpriseSettingsApproveAppsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/assignment_filters_enable_post_request_body.go b/devicemanagement/assignment_filters_enable_post_request_body.go index 3b65f1562de..a4d1ea474af 100644 --- a/devicemanagement/assignment_filters_enable_post_request_body.go +++ b/devicemanagement/assignment_filters_enable_post_request_body.go @@ -18,6 +18,8 @@ func NewAssignmentFiltersEnablePostRequestBody()(*AssignmentFiltersEnablePostReq } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + enableValue := false + m.SetEnable(&enableValue) return m } // CreateAssignmentFiltersEnablePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/comanaged_devices_execute_action_post_request_body.go b/devicemanagement/comanaged_devices_execute_action_post_request_body.go index 7802812e1f4..dd3f8e34d31 100644 --- a/devicemanagement/comanaged_devices_execute_action_post_request_body.go +++ b/devicemanagement/comanaged_devices_execute_action_post_request_body.go @@ -19,6 +19,12 @@ func NewComanagedDevicesExecuteActionPostRequestBody()(*ComanagedDevicesExecuteA } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + keepEnrollmentDataValue := false + m.SetKeepEnrollmentData(&keepEnrollmentDataValue) + keepUserDataValue := false + m.SetKeepUserData(&keepUserDataValue) + persistEsimDataPlanValue := false + m.SetPersistEsimDataPlan(&persistEsimDataPlanValue) return m } // CreateComanagedDevicesExecuteActionPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/comanaged_devices_item_clean_windows_device_post_request_body.go b/devicemanagement/comanaged_devices_item_clean_windows_device_post_request_body.go index 5d46a383b23..390b5bc57f1 100644 --- a/devicemanagement/comanaged_devices_item_clean_windows_device_post_request_body.go +++ b/devicemanagement/comanaged_devices_item_clean_windows_device_post_request_body.go @@ -18,6 +18,8 @@ func NewComanagedDevicesItemCleanWindowsDevicePostRequestBody()(*ComanagedDevice } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + keepUserDataValue := false + m.SetKeepUserData(&keepUserDataValue) return m } // CreateComanagedDevicesItemCleanWindowsDevicePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/comanaged_devices_item_windows_defender_scan_post_request_body.go b/devicemanagement/comanaged_devices_item_windows_defender_scan_post_request_body.go index 924a25c4ff0..099ddf1855d 100644 --- a/devicemanagement/comanaged_devices_item_windows_defender_scan_post_request_body.go +++ b/devicemanagement/comanaged_devices_item_windows_defender_scan_post_request_body.go @@ -18,6 +18,8 @@ func NewComanagedDevicesItemWindowsDefenderScanPostRequestBody()(*ComanagedDevic } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + quickScanValue := false + m.SetQuickScan(&quickScanValue) return m } // CreateComanagedDevicesItemWindowsDefenderScanPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/comanaged_devices_item_wipe_post_request_body.go b/devicemanagement/comanaged_devices_item_wipe_post_request_body.go index 31c26f0a583..aa834027f7e 100644 --- a/devicemanagement/comanaged_devices_item_wipe_post_request_body.go +++ b/devicemanagement/comanaged_devices_item_wipe_post_request_body.go @@ -19,6 +19,14 @@ func NewComanagedDevicesItemWipePostRequestBody()(*ComanagedDevicesItemWipePostR } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + keepEnrollmentDataValue := false + m.SetKeepEnrollmentData(&keepEnrollmentDataValue) + keepUserDataValue := false + m.SetKeepUserData(&keepUserDataValue) + persistEsimDataPlanValue := false + m.SetPersistEsimDataPlan(&persistEsimDataPlanValue) + useProtectedWipeValue := false + m.SetUseProtectedWipe(&useProtectedWipeValue) return m } // CreateComanagedDevicesItemWipePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/configuration_policies_item_clear_enrollment_time_device_membership_target_post_response.go b/devicemanagement/configuration_policies_item_clear_enrollment_time_device_membership_target_post_response.go index db260369ac1..8fc3b8b0364 100644 --- a/devicemanagement/configuration_policies_item_clear_enrollment_time_device_membership_target_post_response.go +++ b/devicemanagement/configuration_policies_item_clear_enrollment_time_device_membership_target_post_response.go @@ -18,6 +18,8 @@ func NewConfigurationPoliciesItemClearEnrollmentTimeDeviceMembershipTargetPostRe } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateConfigurationPoliciesItemClearEnrollmentTimeDeviceMembershipTargetPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/device_compliance_policies_set_scheduled_retire_state_post_request_body.go b/devicemanagement/device_compliance_policies_set_scheduled_retire_state_post_request_body.go index f508810938f..2a72a971710 100644 --- a/devicemanagement/device_compliance_policies_set_scheduled_retire_state_post_request_body.go +++ b/devicemanagement/device_compliance_policies_set_scheduled_retire_state_post_request_body.go @@ -19,6 +19,8 @@ func NewDeviceCompliancePoliciesSetScheduledRetireStatePostRequestBody()(*Device } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + scopedToAllDevicesValue := false + m.SetScopedToAllDevices(&scopedToAllDevicesValue) return m } // CreateDeviceCompliancePoliciesSetScheduledRetireStatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/imported_device_identities_import_device_identity_list_post_request_body.go b/devicemanagement/imported_device_identities_import_device_identity_list_post_request_body.go index 9ced54c9bce..8427c1f8feb 100644 --- a/devicemanagement/imported_device_identities_import_device_identity_list_post_request_body.go +++ b/devicemanagement/imported_device_identities_import_device_identity_list_post_request_body.go @@ -19,6 +19,8 @@ func NewImportedDeviceIdentitiesImportDeviceIdentityListPostRequestBody()(*Impor } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + overwriteImportedDeviceIdentitiesValue := false + m.SetOverwriteImportedDeviceIdentities(&overwriteImportedDeviceIdentitiesValue) return m } // CreateImportedDeviceIdentitiesImportDeviceIdentityListPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/intents_item_migrate_to_template_post_request_body.go b/devicemanagement/intents_item_migrate_to_template_post_request_body.go index fcf8097132f..e48f03e979b 100644 --- a/devicemanagement/intents_item_migrate_to_template_post_request_body.go +++ b/devicemanagement/intents_item_migrate_to_template_post_request_body.go @@ -18,6 +18,8 @@ func NewIntentsItemMigrateToTemplatePostRequestBody()(*IntentsItemMigrateToTempl } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + preserveCustomValuesValue := false + m.SetPreserveCustomValues(&preserveCustomValuesValue) return m } // CreateIntentsItemMigrateToTemplatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/managed_devices_execute_action_post_request_body.go b/devicemanagement/managed_devices_execute_action_post_request_body.go index 581963cef73..9b033987162 100644 --- a/devicemanagement/managed_devices_execute_action_post_request_body.go +++ b/devicemanagement/managed_devices_execute_action_post_request_body.go @@ -19,6 +19,12 @@ func NewManagedDevicesExecuteActionPostRequestBody()(*ManagedDevicesExecuteActio } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + keepEnrollmentDataValue := false + m.SetKeepEnrollmentData(&keepEnrollmentDataValue) + keepUserDataValue := false + m.SetKeepUserData(&keepUserDataValue) + persistEsimDataPlanValue := false + m.SetPersistEsimDataPlan(&persistEsimDataPlanValue) return m } // CreateManagedDevicesExecuteActionPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/managed_devices_item_clean_windows_device_post_request_body.go b/devicemanagement/managed_devices_item_clean_windows_device_post_request_body.go index 42f3267a7d3..0a00c0867c9 100644 --- a/devicemanagement/managed_devices_item_clean_windows_device_post_request_body.go +++ b/devicemanagement/managed_devices_item_clean_windows_device_post_request_body.go @@ -18,6 +18,8 @@ func NewManagedDevicesItemCleanWindowsDevicePostRequestBody()(*ManagedDevicesIte } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + keepUserDataValue := false + m.SetKeepUserData(&keepUserDataValue) return m } // CreateManagedDevicesItemCleanWindowsDevicePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/managed_devices_item_windows_defender_scan_post_request_body.go b/devicemanagement/managed_devices_item_windows_defender_scan_post_request_body.go index b4f31baac82..cb7a1d91ef3 100644 --- a/devicemanagement/managed_devices_item_windows_defender_scan_post_request_body.go +++ b/devicemanagement/managed_devices_item_windows_defender_scan_post_request_body.go @@ -18,6 +18,8 @@ func NewManagedDevicesItemWindowsDefenderScanPostRequestBody()(*ManagedDevicesIt } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + quickScanValue := false + m.SetQuickScan(&quickScanValue) return m } // CreateManagedDevicesItemWindowsDefenderScanPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/managed_devices_item_wipe_post_request_body.go b/devicemanagement/managed_devices_item_wipe_post_request_body.go index 6ec94345809..1ee1935d0a7 100644 --- a/devicemanagement/managed_devices_item_wipe_post_request_body.go +++ b/devicemanagement/managed_devices_item_wipe_post_request_body.go @@ -19,6 +19,14 @@ func NewManagedDevicesItemWipePostRequestBody()(*ManagedDevicesItemWipePostReque } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + keepEnrollmentDataValue := false + m.SetKeepEnrollmentData(&keepEnrollmentDataValue) + keepUserDataValue := false + m.SetKeepUserData(&keepUserDataValue) + persistEsimDataPlanValue := false + m.SetPersistEsimDataPlan(&persistEsimDataPlanValue) + useProtectedWipeValue := false + m.SetUseProtectedWipe(&useProtectedWipeValue) return m } // CreateManagedDevicesItemWipePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/reports_request_builder.go b/devicemanagement/reports_request_builder.go index 8456b64553a..33aa804bfef 100644 --- a/devicemanagement/reports_request_builder.go +++ b/devicemanagement/reports_request_builder.go @@ -21,7 +21,7 @@ type ReportsRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ReportsRequestBuilderGetQueryParameters get reports from deviceManagement +// ReportsRequestBuilderGetQueryParameters reports singleton type ReportsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -83,7 +83,7 @@ func (m *ReportsRequestBuilder) Delete(ctx context.Context, requestConfiguration func (m *ReportsRequestBuilder) ExportJobs()(*ReportsExportJobsRequestBuilder) { return NewReportsExportJobsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get reports from deviceManagement +// Get reports singleton // returns a DeviceManagementReportsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ReportsRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementReportsable, error) { @@ -519,7 +519,7 @@ func (m *ReportsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get reports from deviceManagement +// ToGetRequestInformation reports singleton // returns a *RequestInformation when successful func (m *ReportsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/role_scope_tags_has_custom_role_scope_tag_get_response.go b/devicemanagement/role_scope_tags_has_custom_role_scope_tag_get_response.go index af11ca68140..8d0a1d2d189 100644 --- a/devicemanagement/role_scope_tags_has_custom_role_scope_tag_get_response.go +++ b/devicemanagement/role_scope_tags_has_custom_role_scope_tag_get_response.go @@ -18,6 +18,8 @@ func NewRoleScopeTagsHasCustomRoleScopeTagGetResponse()(*RoleScopeTagsHasCustomR } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateRoleScopeTagsHasCustomRoleScopeTagGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/scoped_for_resource_with_resource_get_response.go b/devicemanagement/scoped_for_resource_with_resource_get_response.go index ca2b91df08f..52cb3fa556f 100644 --- a/devicemanagement/scoped_for_resource_with_resource_get_response.go +++ b/devicemanagement/scoped_for_resource_with_resource_get_response.go @@ -18,6 +18,8 @@ func NewScopedForResourceWithResourceGetResponse()(*ScopedForResourceWithResourc } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateScopedForResourceWithResourceGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/tenant_attach_r_b_a_c_enable_post_request_body.go b/devicemanagement/tenant_attach_r_b_a_c_enable_post_request_body.go index 2a6347d1b38..2ac019558e6 100644 --- a/devicemanagement/tenant_attach_r_b_a_c_enable_post_request_body.go +++ b/devicemanagement/tenant_attach_r_b_a_c_enable_post_request_body.go @@ -18,6 +18,8 @@ func NewTenantAttachRBACEnablePostRequestBody()(*TenantAttachRBACEnablePostReque } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + enableValue := false + m.SetEnable(&enableValue) return m } // CreateTenantAttachRBACEnablePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/verify_windows_enrollment_auto_discovery_with_domain_name_get_response.go b/devicemanagement/verify_windows_enrollment_auto_discovery_with_domain_name_get_response.go index eff98ba3e80..bb6e07f8446 100644 --- a/devicemanagement/verify_windows_enrollment_auto_discovery_with_domain_name_get_response.go +++ b/devicemanagement/verify_windows_enrollment_auto_discovery_with_domain_name_get_response.go @@ -18,6 +18,8 @@ func NewVerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponse()(*VerifyW } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateVerifyWindowsEnrollmentAutoDiscoveryWithDomainNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/virtual_endpoint_cloud_apps_cloud_pc_cloud_app_item_request_builder.go b/devicemanagement/virtual_endpoint_cloud_apps_cloud_pc_cloud_app_item_request_builder.go index 1d747b0eaf8..83783b62376 100644 --- a/devicemanagement/virtual_endpoint_cloud_apps_cloud_pc_cloud_app_item_request_builder.go +++ b/devicemanagement/virtual_endpoint_cloud_apps_cloud_pc_cloud_app_item_request_builder.go @@ -57,8 +57,11 @@ func NewVirtualEndpointCloudAppsCloudPcCloudAppItemRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewVirtualEndpointCloudAppsCloudPcCloudAppItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete navigation property cloudApps for deviceManagement +// Delete delete a cloudPcCloudApp object. // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/cloudpccloudapp-delete?view=graph-rest-beta func (m *VirtualEndpointCloudAppsCloudPcCloudAppItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEndpointCloudAppsCloudPcCloudAppItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +122,7 @@ func (m *VirtualEndpointCloudAppsCloudPcCloudAppItemRequestBuilder) Patch(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcCloudAppable), nil } -// ToDeleteRequestInformation delete navigation property cloudApps for deviceManagement +// ToDeleteRequestInformation delete a cloudPcCloudApp object. // returns a *RequestInformation when successful func (m *VirtualEndpointCloudAppsCloudPcCloudAppItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointCloudAppsCloudPcCloudAppItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/virtual_endpoint_cloud_apps_request_builder.go b/devicemanagement/virtual_endpoint_cloud_apps_request_builder.go index 4aed086c5ef..9e394d92635 100644 --- a/devicemanagement/virtual_endpoint_cloud_apps_request_builder.go +++ b/devicemanagement/virtual_endpoint_cloud_apps_request_builder.go @@ -102,9 +102,12 @@ func (m *VirtualEndpointCloudAppsRequestBuilder) Get(ctx context.Context, reques } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcCloudAppCollectionResponseable), nil } -// Post create new navigation property to cloudApps for deviceManagement +// Post create a new cloudPcCloudApp object. // returns a CloudPcCloudAppable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/virtualendpoint-post-cloudapps?view=graph-rest-beta func (m *VirtualEndpointCloudAppsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcCloudAppable, requestConfiguration *VirtualEndpointCloudAppsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcCloudAppable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -151,7 +154,7 @@ func (m *VirtualEndpointCloudAppsRequestBuilder) ToGetRequestInformation(ctx con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create new navigation property to cloudApps for deviceManagement +// ToPostRequestInformation create a new cloudPcCloudApp object. // returns a *RequestInformation when successful func (m *VirtualEndpointCloudAppsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcCloudAppable, requestConfiguration *VirtualEndpointCloudAppsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/virtual_endpoint_cloud_pc_pools_cloud_pc_pool_item_request_builder.go b/devicemanagement/virtual_endpoint_cloud_pc_pools_cloud_pc_pool_item_request_builder.go index c6e772f7f09..4414ea722a1 100644 --- a/devicemanagement/virtual_endpoint_cloud_pc_pools_cloud_pc_pool_item_request_builder.go +++ b/devicemanagement/virtual_endpoint_cloud_pc_pools_cloud_pc_pool_item_request_builder.go @@ -21,7 +21,7 @@ type VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilderDeleteRequestConfig // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilderGetQueryParameters get cloudPcPools from deviceManagement +// VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilderGetQueryParameters read the properties and relationships of a cloudPcPool object. type VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -62,8 +62,11 @@ func NewVirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewVirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete navigation property cloudPcPools for deviceManagement +// Delete delete a cloudPcPool object. // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/cloudpcpool-delete?view=graph-rest-beta func (m *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -78,9 +81,12 @@ func (m *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilder) Delete(ctx co } return nil } -// Get get cloudPcPools from deviceManagement +// Get read the properties and relationships of a cloudPcPool object. // returns a CloudPcPoolable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/cloudpcpool-get?view=graph-rest-beta func (m *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -98,9 +104,12 @@ func (m *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilder) Get(ctx conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolable), nil } -// Patch update the navigation property cloudPcPools in deviceManagement +// Patch update the properties of a cloudPcPool object. // returns a CloudPcPoolable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/cloudpcpool-update?view=graph-rest-beta func (m *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolable, requestConfiguration *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -118,7 +127,7 @@ func (m *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilder) Patch(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolable), nil } -// ToDeleteRequestInformation delete navigation property cloudPcPools for deviceManagement +// ToDeleteRequestInformation delete a cloudPcPool object. // returns a *RequestInformation when successful func (m *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -129,7 +138,7 @@ func (m *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilder) ToDeleteReque requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get cloudPcPools from deviceManagement +// ToGetRequestInformation read the properties and relationships of a cloudPcPool object. // returns a *RequestInformation when successful func (m *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -143,7 +152,7 @@ func (m *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilder) ToGetRequestI requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the navigation property cloudPcPools in deviceManagement +// ToPatchRequestInformation update the properties of a cloudPcPool object. // returns a *RequestInformation when successful func (m *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolable, requestConfiguration *VirtualEndpointCloudPcPoolsCloudPcPoolItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/virtual_endpoint_cloud_pc_pools_item_assignments_cloud_pc_pool_assignment_item_request_builder.go b/devicemanagement/virtual_endpoint_cloud_pc_pools_item_assignments_cloud_pc_pool_assignment_item_request_builder.go index 239a8c25403..8bfc8f22ce1 100644 --- a/devicemanagement/virtual_endpoint_cloud_pc_pools_item_assignments_cloud_pc_pool_assignment_item_request_builder.go +++ b/devicemanagement/virtual_endpoint_cloud_pc_pools_item_assignments_cloud_pc_pool_assignment_item_request_builder.go @@ -21,7 +21,7 @@ type VirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestB // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilderGetQueryParameters get assignments from deviceManagement +// VirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilderGetQueryParameters read the properties of a cloudPcPoolAssignment object. type VirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -57,8 +57,11 @@ func NewVirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemReque urlParams["request-raw-url"] = rawUrl return NewVirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete navigation property assignments for deviceManagement +// Delete delete a cloudPcPoolAssignment object. // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/cloudpcpoolassignment-delete?view=graph-rest-beta func (m *VirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -73,9 +76,12 @@ func (m *VirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequ } return nil } -// Get get assignments from deviceManagement +// Get read the properties of a cloudPcPoolAssignment object. // returns a CloudPcPoolAssignmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/cloudpcpoolassignment-get?view=graph-rest-beta func (m *VirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolAssignmentable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -113,7 +119,7 @@ func (m *VirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequ } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolAssignmentable), nil } -// ToDeleteRequestInformation delete navigation property assignments for deviceManagement +// ToDeleteRequestInformation delete a cloudPcPoolAssignment object. // returns a *RequestInformation when successful func (m *VirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -124,7 +130,7 @@ func (m *VirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequ requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get assignments from deviceManagement +// ToGetRequestInformation read the properties of a cloudPcPoolAssignment object. // returns a *RequestInformation when successful func (m *VirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/virtual_endpoint_cloud_pc_pools_item_assignments_request_builder.go b/devicemanagement/virtual_endpoint_cloud_pc_pools_item_assignments_request_builder.go index d3b21692b3f..eac6f4e4cce 100644 --- a/devicemanagement/virtual_endpoint_cloud_pc_pools_item_assignments_request_builder.go +++ b/devicemanagement/virtual_endpoint_cloud_pc_pools_item_assignments_request_builder.go @@ -14,7 +14,7 @@ import ( type VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilderGetQueryParameters get assignments from deviceManagement +// VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilderGetQueryParameters list the assignments of a cloudPcPool. type VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,9 +79,12 @@ func NewVirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilder(rawUrl string, func (m *VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilder) Count()(*VirtualEndpointCloudPcPoolsItemAssignmentsCountRequestBuilder) { return NewVirtualEndpointCloudPcPoolsItemAssignmentsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get assignments from deviceManagement +// Get list the assignments of a cloudPcPool. // returns a CloudPcPoolAssignmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/cloudpcpool-list-assignments?view=graph-rest-beta func (m *VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolAssignmentCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -99,9 +102,12 @@ func (m *VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilder) Get(ctx conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolAssignmentCollectionResponseable), nil } -// Post create new navigation property to assignments for deviceManagement +// Post create a new cloudPcPoolAssignment for a cloudPcPool. // returns a CloudPcPoolAssignmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/cloudpcpool-post-assignments?view=graph-rest-beta func (m *VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolAssignmentable, requestConfiguration *VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolAssignmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -119,7 +125,7 @@ func (m *VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilder) Post(ctx cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolAssignmentable), nil } -// ToGetRequestInformation get assignments from deviceManagement +// ToGetRequestInformation list the assignments of a cloudPcPool. // returns a *RequestInformation when successful func (m *VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -133,7 +139,7 @@ func (m *VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilder) ToGetRequestI requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create new navigation property to assignments for deviceManagement +// ToPostRequestInformation create a new cloudPcPoolAssignment for a cloudPcPool. // returns a *RequestInformation when successful func (m *VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolAssignmentable, requestConfiguration *VirtualEndpointCloudPcPoolsItemAssignmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/virtual_endpoint_cloud_pc_pools_request_builder.go b/devicemanagement/virtual_endpoint_cloud_pc_pools_request_builder.go index c6ffeee7f6c..8c5b74df2cf 100644 --- a/devicemanagement/virtual_endpoint_cloud_pc_pools_request_builder.go +++ b/devicemanagement/virtual_endpoint_cloud_pc_pools_request_builder.go @@ -14,7 +14,7 @@ import ( type VirtualEndpointCloudPcPoolsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEndpointCloudPcPoolsRequestBuilderGetQueryParameters get cloudPcPools from deviceManagement +// VirtualEndpointCloudPcPoolsRequestBuilderGetQueryParameters list the properties and relationships of the cloudPcPool objects. type VirtualEndpointCloudPcPoolsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,9 +79,12 @@ func NewVirtualEndpointCloudPcPoolsRequestBuilder(rawUrl string, requestAdapter func (m *VirtualEndpointCloudPcPoolsRequestBuilder) Count()(*VirtualEndpointCloudPcPoolsCountRequestBuilder) { return NewVirtualEndpointCloudPcPoolsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get cloudPcPools from deviceManagement +// Get list the properties and relationships of the cloudPcPool objects. // returns a CloudPcPoolCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/virtualendpoint-list-cloudpcpools?view=graph-rest-beta func (m *VirtualEndpointCloudPcPoolsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointCloudPcPoolsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -99,9 +102,12 @@ func (m *VirtualEndpointCloudPcPoolsRequestBuilder) Get(ctx context.Context, req } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolCollectionResponseable), nil } -// Post create new navigation property to cloudPcPools for deviceManagement +// Post create a new cloudPcPool object. // returns a CloudPcPoolable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/virtualendpoint-post-cloudpcpools?view=graph-rest-beta func (m *VirtualEndpointCloudPcPoolsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolable, requestConfiguration *VirtualEndpointCloudPcPoolsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -119,7 +125,7 @@ func (m *VirtualEndpointCloudPcPoolsRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolable), nil } -// ToGetRequestInformation get cloudPcPools from deviceManagement +// ToGetRequestInformation list the properties and relationships of the cloudPcPool objects. // returns a *RequestInformation when successful func (m *VirtualEndpointCloudPcPoolsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointCloudPcPoolsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -133,7 +139,7 @@ func (m *VirtualEndpointCloudPcPoolsRequestBuilder) ToGetRequestInformation(ctx requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create new navigation property to cloudPcPools for deviceManagement +// ToPostRequestInformation create a new cloudPcPool object. // returns a *RequestInformation when successful func (m *VirtualEndpointCloudPcPoolsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolable, requestConfiguration *VirtualEndpointCloudPcPoolsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/virtual_endpoint_provisioning_policies_cloud_pc_provisioning_policy_item_request_builder.go b/devicemanagement/virtual_endpoint_provisioning_policies_cloud_pc_provisioning_policy_item_request_builder.go index d46bbe1ef39..edf28f5f7b1 100644 --- a/devicemanagement/virtual_endpoint_provisioning_policies_cloud_pc_provisioning_policy_item_request_builder.go +++ b/devicemanagement/virtual_endpoint_provisioning_policies_cloud_pc_provisioning_policy_item_request_builder.go @@ -147,6 +147,11 @@ func (m *VirtualEndpointProvisioningPoliciesCloudPcProvisioningPolicyItemRequest func (m *VirtualEndpointProvisioningPoliciesCloudPcProvisioningPolicyItemRequestBuilder) RetrievePolicyApplySchedule()(*VirtualEndpointProvisioningPoliciesItemRetrievePolicyApplyScheduleRequestBuilder) { return NewVirtualEndpointProvisioningPoliciesItemRetrievePolicyApplyScheduleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// RetrievePolicyUpdateStatusResult provides operations to call the retrievePolicyUpdateStatusResult method. +// returns a *VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder when successful +func (m *VirtualEndpointProvisioningPoliciesCloudPcProvisioningPolicyItemRequestBuilder) RetrievePolicyUpdateStatusResult()(*VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder) { + return NewVirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Retry provides operations to call the retry method. // returns a *VirtualEndpointProvisioningPoliciesItemRetryRequestBuilder when successful func (m *VirtualEndpointProvisioningPoliciesCloudPcProvisioningPolicyItemRequestBuilder) Retry()(*VirtualEndpointProvisioningPoliciesItemRetryRequestBuilder) { diff --git a/devicemanagement/virtual_endpoint_provisioning_policies_item_apply_post_request_body.go b/devicemanagement/virtual_endpoint_provisioning_policies_item_apply_post_request_body.go index edf6ad38745..b98db72334a 100644 --- a/devicemanagement/virtual_endpoint_provisioning_policies_item_apply_post_request_body.go +++ b/devicemanagement/virtual_endpoint_provisioning_policies_item_apply_post_request_body.go @@ -19,6 +19,8 @@ func NewVirtualEndpointProvisioningPoliciesItemApplyPostRequestBody()(*VirtualEn } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + isForceUserLogoffEnabledValue := false + m.SetIsForceUserLogoffEnabled(&isForceUserLogoffEnabledValue) return m } // CreateVirtualEndpointProvisioningPoliciesItemApplyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value @@ -48,6 +50,16 @@ func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) GetBacking // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isForceUserLogoffEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsForceUserLogoffEnabled(val) + } + return nil + } res["policySettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ParseCloudPcPolicySettingType) if err != nil { @@ -70,6 +82,18 @@ func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) GetFieldDe } return res } +// GetIsForceUserLogoffEnabled gets the isForceUserLogoffEnabled property value. The isForceUserLogoffEnabled property +// returns a *bool when successful +func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) GetIsForceUserLogoffEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isForceUserLogoffEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetPolicySettings gets the policySettings property value. The policySettings property // returns a *CloudPcPolicySettingType when successful func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) GetPolicySettings()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType) { @@ -96,6 +120,12 @@ func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) GetReserve } // Serialize serializes information the current object func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isForceUserLogoffEnabled", m.GetIsForceUserLogoffEnabled()) + if err != nil { + return err + } + } if m.GetPolicySettings() != nil { cast := (*m.GetPolicySettings()).String() err := writer.WriteStringValue("policySettings", &cast) @@ -128,6 +158,13 @@ func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) SetAdditio func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } +// SetIsForceUserLogoffEnabled sets the isForceUserLogoffEnabled property value. The isForceUserLogoffEnabled property +func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) SetIsForceUserLogoffEnabled(value *bool)() { + err := m.GetBackingStore().Set("isForceUserLogoffEnabled", value) + if err != nil { + panic(err) + } +} // SetPolicySettings sets the policySettings property value. The policySettings property func (m *VirtualEndpointProvisioningPoliciesItemApplyPostRequestBody) SetPolicySettings(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType)() { err := m.GetBackingStore().Set("policySettings", value) @@ -147,9 +184,11 @@ type VirtualEndpointProvisioningPoliciesItemApplyPostRequestBodyable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsForceUserLogoffEnabled()(*bool) GetPolicySettings()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType) GetReservePercentage()(*int32) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsForceUserLogoffEnabled(value *bool)() SetPolicySettings(value *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicySettingType)() SetReservePercentage(value *int32)() } diff --git a/devicemanagement/virtual_endpoint_provisioning_policies_item_apply_request_builder.go b/devicemanagement/virtual_endpoint_provisioning_policies_item_apply_request_builder.go index 1dcc2355b8c..d4caed5ff3a 100644 --- a/devicemanagement/virtual_endpoint_provisioning_policies_item_apply_request_builder.go +++ b/devicemanagement/virtual_endpoint_provisioning_policies_item_apply_request_builder.go @@ -33,7 +33,7 @@ func NewVirtualEndpointProvisioningPoliciesItemApplyRequestBuilder(rawUrl string urlParams["request-raw-url"] = rawUrl return NewVirtualEndpointProvisioningPoliciesItemApplyRequestBuilderInternal(urlParams, requestAdapter) } -// Post apply the current provisioning policy configuration to all Cloud PC devices under a specified policy. Currently, the region is the only policy setting that you can apply. +// Post apply the current provisioning policy configuration to all Cloud PC devices under a specified policy. You can apply policy settings such as region and singleSignOn. This action also supports reprovisioning for frontline shared mode Cloud PCs by using the reservePercentage parameter to control the percentage of Cloud PCs that remain available during the process. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -52,7 +52,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemApplyRequestBuilder) Post(ctx co } return nil } -// ToPostRequestInformation apply the current provisioning policy configuration to all Cloud PC devices under a specified policy. Currently, the region is the only policy setting that you can apply. +// ToPostRequestInformation apply the current provisioning policy configuration to all Cloud PC devices under a specified policy. You can apply policy settings such as region and singleSignOn. This action also supports reprovisioning for frontline shared mode Cloud PCs by using the reservePercentage parameter to control the percentage of Cloud PCs that remain available during the process. // returns a *RequestInformation when successful func (m *VirtualEndpointProvisioningPoliciesItemApplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body VirtualEndpointProvisioningPoliciesItemApplyPostRequestBodyable, requestConfiguration *VirtualEndpointProvisioningPoliciesItemApplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/virtual_endpoint_provisioning_policies_item_retrieve_policy_update_status_result_request_builder.go b/devicemanagement/virtual_endpoint_provisioning_policies_item_retrieve_policy_update_status_result_request_builder.go new file mode 100644 index 00000000000..3f81d6ccf42 --- /dev/null +++ b/devicemanagement/virtual_endpoint_provisioning_policies_item_retrieve_policy_update_status_result_request_builder.go @@ -0,0 +1,75 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package devicemanagement + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder provides operations to call the retrievePolicyUpdateStatusResult method. +type VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilderInternal instantiates a new VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder and sets the default values. +func NewVirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder) { + m := &VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/retrievePolicyUpdateStatusResult()", pathParameters), + } + return m +} +// NewVirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder instantiates a new VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder and sets the default values. +func NewVirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilderInternal(urlParams, requestAdapter) +} +// Get retrieve the pending apply status of a provisioning policy to determine whether unapplied changes exist for Cloud PCs. +// returns a CloudPcPolicyPendingApplyStatusResultable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/cloudpcprovisioningpolicy-retrievepolicyupdatestatusresult?view=graph-rest-beta +func (m *VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicyPendingApplyStatusResultable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCloudPcPolicyPendingApplyStatusResultFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPolicyPendingApplyStatusResultable), nil +} +// ToGetRequestInformation retrieve the pending apply status of a provisioning policy to determine whether unapplied changes exist for Cloud PCs. +// returns a *RequestInformation when successful +func (m *VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder when successful +func (m *VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder) WithUrl(rawUrl string)(*VirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder) { + return NewVirtualEndpointProvisioningPoliciesItemRetrievePolicyUpdateStatusResultRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/devicemanagement/virtual_endpoint_reports_retrieve_cloud_pc_troubleshoot_reports_request_builder.go b/devicemanagement/virtual_endpoint_reports_retrieve_cloud_pc_troubleshoot_reports_request_builder.go index 8dd71b2530e..bd19470de92 100644 --- a/devicemanagement/virtual_endpoint_reports_retrieve_cloud_pc_troubleshoot_reports_request_builder.go +++ b/devicemanagement/virtual_endpoint_reports_retrieve_cloud_pc_troubleshoot_reports_request_builder.go @@ -33,7 +33,7 @@ func NewVirtualEndpointReportsRetrieveCloudPcTroubleshootReportsRequestBuilder(r urlParams["request-raw-url"] = rawUrl return NewVirtualEndpointReportsRetrieveCloudPcTroubleshootReportsRequestBuilderInternal(urlParams, requestAdapter) } -// Post get troubleshooting reports for Cloud PCs. You can get a regional troubleshooting report, a report with troubleshooting details, a report with troubleshooting trends, or a report on the number of troubleshooting issues. +// Post get Cloud PC troubleshooting reports. You can get tenant-level reports, configuration reports, user and device reports, and view data table reports. For the report types grouped by scope, including the mandatory filter parameters and response columns per reportName, see Cloud PC troubleshoot report types. // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -56,7 +56,7 @@ func (m *VirtualEndpointReportsRetrieveCloudPcTroubleshootReportsRequestBuilder) } return res.([]byte), nil } -// ToPostRequestInformation get troubleshooting reports for Cloud PCs. You can get a regional troubleshooting report, a report with troubleshooting details, a report with troubleshooting trends, or a report on the number of troubleshooting issues. +// ToPostRequestInformation get Cloud PC troubleshooting reports. You can get tenant-level reports, configuration reports, user and device reports, and view data table reports. For the report types grouped by scope, including the mandatory filter parameters and response columns per reportName, see Cloud PC troubleshoot report types. // returns a *RequestInformation when successful func (m *VirtualEndpointReportsRetrieveCloudPcTroubleshootReportsRequestBuilder) ToPostRequestInformation(ctx context.Context, body VirtualEndpointReportsRetrieveCloudPcTroubleshootReportsPostRequestBodyable, requestConfiguration *VirtualEndpointReportsRetrieveCloudPcTroubleshootReportsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/zebra_fota_connector_approve_fota_apps_post_response.go b/devicemanagement/zebra_fota_connector_approve_fota_apps_post_response.go index a76f2f63ff6..cbd93ccef3e 100644 --- a/devicemanagement/zebra_fota_connector_approve_fota_apps_post_response.go +++ b/devicemanagement/zebra_fota_connector_approve_fota_apps_post_response.go @@ -18,6 +18,8 @@ func NewZebraFotaConnectorApproveFotaAppsPostResponse()(*ZebraFotaConnectorAppro } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateZebraFotaConnectorApproveFotaAppsPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/zebra_fota_connector_connect_post_response.go b/devicemanagement/zebra_fota_connector_connect_post_response.go index e0b27545cd6..594940a347c 100644 --- a/devicemanagement/zebra_fota_connector_connect_post_response.go +++ b/devicemanagement/zebra_fota_connector_connect_post_response.go @@ -18,6 +18,8 @@ func NewZebraFotaConnectorConnectPostResponse()(*ZebraFotaConnectorConnectPostRe } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateZebraFotaConnectorConnectPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/zebra_fota_connector_disconnect_post_response.go b/devicemanagement/zebra_fota_connector_disconnect_post_response.go index e8c946f68a7..3403a769e8a 100644 --- a/devicemanagement/zebra_fota_connector_disconnect_post_response.go +++ b/devicemanagement/zebra_fota_connector_disconnect_post_response.go @@ -18,6 +18,8 @@ func NewZebraFotaConnectorDisconnectPostResponse()(*ZebraFotaConnectorDisconnect } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateZebraFotaConnectorDisconnectPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/zebra_fota_connector_has_active_deployments_post_response.go b/devicemanagement/zebra_fota_connector_has_active_deployments_post_response.go index 461676a191d..f3719cc798b 100644 --- a/devicemanagement/zebra_fota_connector_has_active_deployments_post_response.go +++ b/devicemanagement/zebra_fota_connector_has_active_deployments_post_response.go @@ -18,6 +18,8 @@ func NewZebraFotaConnectorHasActiveDeploymentsPostResponse()(*ZebraFotaConnector } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateZebraFotaConnectorHasActiveDeploymentsPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devicemanagement/zebra_fota_deployments_item_cancel_post_response.go b/devicemanagement/zebra_fota_deployments_item_cancel_post_response.go index ab060ae6f23..1d876deafd0 100644 --- a/devicemanagement/zebra_fota_deployments_item_cancel_post_response.go +++ b/devicemanagement/zebra_fota_deployments_item_cancel_post_response.go @@ -18,6 +18,8 @@ func NewZebraFotaDeploymentsItemCancelPostResponse()(*ZebraFotaDeploymentsItemCa } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateZebraFotaDeploymentsItemCancelPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devices/item_get_member_groups_post_request_body.go b/devices/item_get_member_groups_post_request_body.go index 7527a07eb29..4f763339732 100644 --- a/devices/item_get_member_groups_post_request_body.go +++ b/devices/item_get_member_groups_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberGroupsPostRequestBody()(*ItemGetMemberGroupsPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberGroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devices/item_get_member_objects_post_request_body.go b/devices/item_get_member_objects_post_request_body.go index 11d19f8c47f..eb97c8869ba 100644 --- a/devices/item_get_member_objects_post_request_body.go +++ b/devices/item_get_member_objects_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberObjectsPostRequestBody()(*ItemGetMemberObjectsPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberObjectsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/devices/item_registered_owners_ref_request_builder.go b/devices/item_registered_owners_ref_request_builder.go index fa07dedb4bd..2062fefc544 100644 --- a/devices/item_registered_owners_ref_request_builder.go +++ b/devices/item_registered_owners_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemRegisteredOwnersRefRequestBuilderPostRequestConfiguration struct { // NewItemRegisteredOwnersRefRequestBuilderInternal instantiates a new ItemRegisteredOwnersRefRequestBuilder and sets the default values. func NewItemRegisteredOwnersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemRegisteredOwnersRefRequestBuilder) { m := &ItemRegisteredOwnersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ItemRegisteredOwnersRefRequestBuilder) ToDeleteRequestInformation(ctx c // ToGetRequestInformation retrieve a list of users that are registered owners of the device. A registered owner is the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner. // returns a *RequestInformation when successful func (m *ItemRegisteredOwnersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredOwnersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ItemRegisteredOwnersRefRequestBuilder) ToGetRequestInformation(ctx cont // ToPostRequestInformation add a user as a registered owner of the device. // returns a *RequestInformation when successful func (m *ItemRegisteredOwnersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemRegisteredOwnersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/devices/item_registered_users_ref_request_builder.go b/devices/item_registered_users_ref_request_builder.go index 17bf54719cc..051a6e179ef 100644 --- a/devices/item_registered_users_ref_request_builder.go +++ b/devices/item_registered_users_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemRegisteredUsersRefRequestBuilderPostRequestConfiguration struct { // NewItemRegisteredUsersRefRequestBuilderInternal instantiates a new ItemRegisteredUsersRefRequestBuilder and sets the default values. func NewItemRegisteredUsersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemRegisteredUsersRefRequestBuilder) { m := &ItemRegisteredUsersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ItemRegisteredUsersRefRequestBuilder) ToDeleteRequestInformation(ctx co // ToGetRequestInformation retrieve a list of users that are registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. // returns a *RequestInformation when successful func (m *ItemRegisteredUsersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredUsersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ItemRegisteredUsersRefRequestBuilder) ToGetRequestInformation(ctx conte // ToPostRequestInformation add a registered user for the device. // returns a *RequestInformation when successful func (m *ItemRegisteredUsersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemRegisteredUsersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/directory/administrative_units_item_members_ref_request_builder.go b/directory/administrative_units_item_members_ref_request_builder.go index dfd0b2f164d..02e1870e79d 100644 --- a/directory/administrative_units_item_members_ref_request_builder.go +++ b/directory/administrative_units_item_members_ref_request_builder.go @@ -62,7 +62,7 @@ type AdministrativeUnitsItemMembersRefRequestBuilderPostRequestConfiguration str // NewAdministrativeUnitsItemMembersRefRequestBuilderInternal instantiates a new AdministrativeUnitsItemMembersRefRequestBuilder and sets the default values. func NewAdministrativeUnitsItemMembersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AdministrativeUnitsItemMembersRefRequestBuilder) { m := &AdministrativeUnitsItemMembersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *AdministrativeUnitsItemMembersRefRequestBuilder) ToDeleteRequestInforma // ToGetRequestInformation users and groups that are members of this administrative unit. Supports $expand. // returns a *RequestInformation when successful func (m *AdministrativeUnitsItemMembersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AdministrativeUnitsItemMembersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *AdministrativeUnitsItemMembersRefRequestBuilder) ToGetRequestInformatio // ToPostRequestInformation create new navigation property ref to members for directory // returns a *RequestInformation when successful func (m *AdministrativeUnitsItemMembersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *AdministrativeUnitsItemMembersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/directory/deleted_items_item_get_member_groups_post_request_body.go b/directory/deleted_items_item_get_member_groups_post_request_body.go index 38febd51e5c..7afebe38928 100644 --- a/directory/deleted_items_item_get_member_groups_post_request_body.go +++ b/directory/deleted_items_item_get_member_groups_post_request_body.go @@ -18,6 +18,8 @@ func NewDeletedItemsItemGetMemberGroupsPostRequestBody()(*DeletedItemsItemGetMem } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateDeletedItemsItemGetMemberGroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/directory/deleted_items_item_get_member_objects_post_request_body.go b/directory/deleted_items_item_get_member_objects_post_request_body.go index 4ee6ff34dc9..675e18524cd 100644 --- a/directory/deleted_items_item_get_member_objects_post_request_body.go +++ b/directory/deleted_items_item_get_member_objects_post_request_body.go @@ -18,6 +18,8 @@ func NewDeletedItemsItemGetMemberObjectsPostRequestBody()(*DeletedItemsItemGetMe } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateDeletedItemsItemGetMemberObjectsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/directory/feature_rollout_policies_item_applies_to_ref_request_builder.go b/directory/feature_rollout_policies_item_applies_to_ref_request_builder.go index 516bb7712f7..d3803bc75ef 100644 --- a/directory/feature_rollout_policies_item_applies_to_ref_request_builder.go +++ b/directory/feature_rollout_policies_item_applies_to_ref_request_builder.go @@ -62,7 +62,7 @@ type FeatureRolloutPoliciesItemAppliesToRefRequestBuilderPostRequestConfiguratio // NewFeatureRolloutPoliciesItemAppliesToRefRequestBuilderInternal instantiates a new FeatureRolloutPoliciesItemAppliesToRefRequestBuilder and sets the default values. func NewFeatureRolloutPoliciesItemAppliesToRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FeatureRolloutPoliciesItemAppliesToRefRequestBuilder) { m := &FeatureRolloutPoliciesItemAppliesToRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/directory/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/directory/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -146,7 +146,7 @@ func (m *FeatureRolloutPoliciesItemAppliesToRefRequestBuilder) ToDeleteRequestIn // Deprecated: Feature Rollout Policies have been grouped with other policies under /policies. The existing /directory/featureRolloutPolicies is deprecated and will stop returning data on 06/30/2021. Please use /policies/featureRolloutPolicies. as of 2021-01/DirectoryFeatureRolloutPolicies on 2021-03-05 and will be removed 2021-06-30 // returns a *RequestInformation when successful func (m *FeatureRolloutPoliciesItemAppliesToRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FeatureRolloutPoliciesItemAppliesToRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/directory/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -161,7 +161,7 @@ func (m *FeatureRolloutPoliciesItemAppliesToRefRequestBuilder) ToGetRequestInfor // Deprecated: Feature Rollout Policies have been grouped with other policies under /policies. The existing /directory/featureRolloutPolicies is deprecated and will stop returning data on 06/30/2021. Please use /policies/featureRolloutPolicies. as of 2021-01/DirectoryFeatureRolloutPolicies on 2021-03-05 and will be removed 2021-06-30 // returns a *RequestInformation when successful func (m *FeatureRolloutPoliciesItemAppliesToRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *FeatureRolloutPoliciesItemAppliesToRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/directory/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/directory/templates_device_templates_item_create_device_from_template_post_request_body.go b/directory/templates_device_templates_item_create_device_from_template_post_request_body.go index 2dbfc6a6cde..8c3da13e347 100644 --- a/directory/templates_device_templates_item_create_device_from_template_post_request_body.go +++ b/directory/templates_device_templates_item_create_device_from_template_post_request_body.go @@ -18,6 +18,8 @@ func NewTemplatesDeviceTemplatesItemCreateDeviceFromTemplatePostRequestBody()(*T m := &TemplatesDeviceTemplatesItemCreateDeviceFromTemplatePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + accountEnabledValue := false + m.SetAccountEnabled(&accountEnabledValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/directoryobjects/item_get_member_groups_post_request_body.go b/directoryobjects/item_get_member_groups_post_request_body.go index 59ecffd2436..eec7929982e 100644 --- a/directoryobjects/item_get_member_groups_post_request_body.go +++ b/directoryobjects/item_get_member_groups_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberGroupsPostRequestBody()(*ItemGetMemberGroupsPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberGroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/directoryobjects/item_get_member_objects_post_request_body.go b/directoryobjects/item_get_member_objects_post_request_body.go index ad33f96c07d..0b632ef2c83 100644 --- a/directoryobjects/item_get_member_objects_post_request_body.go +++ b/directoryobjects/item_get_member_objects_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberObjectsPostRequestBody()(*ItemGetMemberObjectsPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberObjectsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/directoryroles/item_get_member_groups_post_request_body.go b/directoryroles/item_get_member_groups_post_request_body.go index 4514e7e3459..97f15bd5a34 100644 --- a/directoryroles/item_get_member_groups_post_request_body.go +++ b/directoryroles/item_get_member_groups_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberGroupsPostRequestBody()(*ItemGetMemberGroupsPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberGroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/directoryroles/item_get_member_objects_post_request_body.go b/directoryroles/item_get_member_objects_post_request_body.go index c1963193393..8d8adc2b60e 100644 --- a/directoryroles/item_get_member_objects_post_request_body.go +++ b/directoryroles/item_get_member_objects_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberObjectsPostRequestBody()(*ItemGetMemberObjectsPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberObjectsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/directoryroles/item_members_ref_request_builder.go b/directoryroles/item_members_ref_request_builder.go index c03122683cb..7cf774ff431 100644 --- a/directoryroles/item_members_ref_request_builder.go +++ b/directoryroles/item_members_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemMembersRefRequestBuilderPostRequestConfiguration struct { // NewItemMembersRefRequestBuilderInternal instantiates a new ItemMembersRefRequestBuilder and sets the default values. func NewItemMembersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMembersRefRequestBuilder) { m := &ItemMembersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ItemMembersRefRequestBuilder) ToDeleteRequestInformation(ctx context.Co // ToGetRequestInformation retrieve a list of the users that are assigned to the directory role. Only users can be assigned to a directory role. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. // returns a *RequestInformation when successful func (m *ItemMembersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ItemMembersRefRequestBuilder) ToGetRequestInformation(ctx context.Conte // ToPostRequestInformation create a new directory role member. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. // returns a *RequestInformation when successful func (m *ItemMembersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemMembersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/directoryroletemplates/item_get_member_groups_post_request_body.go b/directoryroletemplates/item_get_member_groups_post_request_body.go index 7ca6800c5b1..1717aceaabc 100644 --- a/directoryroletemplates/item_get_member_groups_post_request_body.go +++ b/directoryroletemplates/item_get_member_groups_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberGroupsPostRequestBody()(*ItemGetMemberGroupsPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberGroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/directoryroletemplates/item_get_member_objects_post_request_body.go b/directoryroletemplates/item_get_member_objects_post_request_body.go index c315a0357d8..3e95a60bd25 100644 --- a/directoryroletemplates/item_get_member_objects_post_request_body.go +++ b/directoryroletemplates/item_get_member_objects_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberObjectsPostRequestBody()(*ItemGetMemberObjectsPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberObjectsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/directorysettingtemplates/item_get_member_groups_post_request_body.go b/directorysettingtemplates/item_get_member_groups_post_request_body.go index ccf01cd0e91..dbcd931506c 100644 --- a/directorysettingtemplates/item_get_member_groups_post_request_body.go +++ b/directorysettingtemplates/item_get_member_groups_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberGroupsPostRequestBody()(*ItemGetMemberGroupsPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberGroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/directorysettingtemplates/item_get_member_objects_post_request_body.go b/directorysettingtemplates/item_get_member_objects_post_request_body.go index 0320d0b8c49..2f596377210 100644 --- a/directorysettingtemplates/item_get_member_objects_post_request_body.go +++ b/directorysettingtemplates/item_get_member_objects_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberObjectsPostRequestBody()(*ItemGetMemberObjectsPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberObjectsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/domains/item_force_delete_post_request_body.go b/domains/item_force_delete_post_request_body.go index 069a77780cd..349e3ce3ac7 100644 --- a/domains/item_force_delete_post_request_body.go +++ b/domains/item_force_delete_post_request_body.go @@ -18,6 +18,8 @@ func NewItemForceDeletePostRequestBody()(*ItemForceDeletePostRequestBody) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + disableUserAccountsValue := false + m.SetDisableUserAccounts(&disableUserAccountsValue) return m } // CreateItemForceDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/domains/item_promote_post_response.go b/domains/item_promote_post_response.go index 03c351ecc1e..29da83c3622 100644 --- a/domains/item_promote_post_response.go +++ b/domains/item_promote_post_response.go @@ -18,6 +18,8 @@ func NewItemPromotePostResponse()(*ItemPromotePostResponse) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemPromotePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/drives/00abb45b228d8321b1ec46446958c37e6013fe3150017a8df71a16f04d38d615.go b/drives/00abb45b228d8321b1ec46446958c37e6013fe3150017a8df71a16f04d38d615.go index 647b8799c50..161b57ea71c 100644 --- a/drives/00abb45b228d8321b1ec46446958c37e6013fe3150017a8df71a16f04d38d615.go +++ b/drives/00abb45b228d8321b1ec46446958c37e6013fe3150017a8df71a16f04d38d615.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMer m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/4702329fa23417335bf8ffb063fed53bc4118b092560e4fb33297e97b8c66ade.go b/drives/4702329fa23417335bf8ffb063fed53bc4118b092560e4fb33297e97b8c66ade.go index c2f611523cc..7a65604da4d 100644 --- a/drives/4702329fa23417335bf8ffb063fed53bc4118b092560e4fb33297e97b8c66ade.go +++ b/drives/4702329fa23417335bf8ffb063fed53bc4118b092560e4fb33297e97b8c66ade.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMe m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/919e245408fa14f21822453c33ce483df86acf01a518edc9f8dda140e78b5fd7.go b/drives/919e245408fa14f21822453c33ce483df86acf01a518edc9f8dda140e78b5fd7.go index 5a8ad740149..4bb227d0ab4 100644 --- a/drives/919e245408fa14f21822453c33ce483df86acf01a518edc9f8dda140e78b5fd7.go +++ b/drives/919e245408fa14f21822453c33ce483df86acf01a518edc9f8dda140e78b5fd7.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMer m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_copy_post_request_body.go b/drives/item_items_item_copy_post_request_body.go index dea50451fc6..c76ddbc35cf 100644 --- a/drives/item_items_item_copy_post_request_body.go +++ b/drives/item_items_item_copy_post_request_body.go @@ -19,6 +19,10 @@ func NewItemItemsItemCopyPostRequestBody()(*ItemItemsItemCopyPostRequestBody) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + childrenOnlyValue := false + m.SetChildrenOnly(&childrenOnlyValue) + includeAllVersionHistoryValue := false + m.SetIncludeAllVersionHistory(&includeAllVersionHistoryValue) return m } // CreateItemItemsItemCopyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/drives/item_items_item_create_link_post_request_body.go b/drives/item_items_item_create_link_post_request_body.go index 1367644f8c4..2837a22ebdf 100644 --- a/drives/item_items_item_create_link_post_request_body.go +++ b/drives/item_items_item_create_link_post_request_body.go @@ -20,6 +20,10 @@ func NewItemItemsItemCreateLinkPostRequestBody()(*ItemItemsItemCreateLinkPostReq } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + retainInheritedPermissionsValue := false + m.SetRetainInheritedPermissions(&retainInheritedPermissionsValue) + sendNotificationValue := false + m.SetSendNotification(&sendNotificationValue) return m } // CreateItemItemsItemCreateLinkPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/drives/item_items_item_invite_post_request_body.go b/drives/item_items_item_invite_post_request_body.go index 1ab94250608..03f57dd8110 100644 --- a/drives/item_items_item_invite_post_request_body.go +++ b/drives/item_items_item_invite_post_request_body.go @@ -19,6 +19,12 @@ func NewItemItemsItemInvitePostRequestBody()(*ItemItemsItemInvitePostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + requireSignInValue := false + m.SetRequireSignIn(&requireSignInValue) + retainInheritedPermissionsValue := false + m.SetRetainInheritedPermissions(&retainInheritedPermissionsValue) + sendInvitationValue := false + m.SetSendInvitation(&sendInvitationValue) return m } // CreateItemItemsItemInvitePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/drives/item_items_item_preview_post_request_body.go b/drives/item_items_item_preview_post_request_body.go index f927fc791f8..20899534365 100644 --- a/drives/item_items_item_preview_post_request_body.go +++ b/drives/item_items_item_preview_post_request_body.go @@ -18,6 +18,10 @@ func NewItemItemsItemPreviewPostRequestBody()(*ItemItemsItemPreviewPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + allowEditValue := false + m.SetAllowEdit(&allowEditValue) + chromelessValue := false + m.SetChromeless(&chromelessValue) return m } // CreateItemItemsItemPreviewPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/drives/item_items_item_workbook_create_session_post_request_body.go b/drives/item_items_item_workbook_create_session_post_request_body.go index 1e7c8bf0108..751e8e98957 100644 --- a/drives/item_items_item_workbook_create_session_post_request_body.go +++ b/drives/item_items_item_workbook_create_session_post_request_body.go @@ -18,6 +18,8 @@ func NewItemItemsItemWorkbookCreateSessionPostRequestBody()(*ItemItemsItemWorkbo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + persistChangesValue := false + m.SetPersistChanges(&persistChangesValue) return m } // CreateItemItemsItemWorkbookCreateSessionPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/drives/item_items_item_workbook_names_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_names_item_range_merge_post_request_body.go index 773ae8a8a7a..4fd027499a1 100644 --- a/drives/item_items_item_workbook_names_item_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_names_item_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookNamesItemRangeMergePostRequestBody()(*ItemItemsItem m := &ItemItemsItemWorkbookNamesItemRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_tables_add_post_request_body.go b/drives/item_items_item_workbook_tables_add_post_request_body.go index 3e96e520c6a..b7ce1f2c45d 100644 --- a/drives/item_items_item_workbook_tables_add_post_request_body.go +++ b/drives/item_items_item_workbook_tables_add_post_request_body.go @@ -18,6 +18,8 @@ func NewItemItemsItemWorkbookTablesAddPostRequestBody()(*ItemItemsItemWorkbookTa } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + hasHeadersValue := false + m.SetHasHeaders(&hasHeadersValue) return m } // CreateItemItemsItemWorkbookTablesAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_merge_post_request_body.go index b7c939fc67e..7a56598ed8f 100644 --- a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestB m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_merge_post_request_body.go index a636f1a5912..0302a8c86ee 100644 --- a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequest m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_range_merge_post_request_body.go index 401a2887883..3e34d7b8647 100644 --- a/drives/item_items_item_workbook_tables_item_columns_item_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody()(*I m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_merge_post_request_body.go index 539e73d21ff..68233183c58 100644 --- a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestB m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_data_body_range_merge_post_request_body.go index d71295e2d81..a5f04bbee0f 100644 --- a/drives/item_items_item_workbook_tables_item_data_body_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_tables_item_data_body_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody()(*Item m := &ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_header_row_range_merge_post_request_body.go index b481f6bb63e..6a69fc8a164 100644 --- a/drives/item_items_item_workbook_tables_item_header_row_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_tables_item_header_row_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody()(*Ite m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_tables_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_range_merge_post_request_body.go index a2289eba4be..1946307e3b8 100644 --- a/drives/item_items_item_workbook_tables_item_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_tables_item_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookTablesItemRangeMergePostRequestBody()(*ItemItemsIte m := &ItemItemsItemWorkbookTablesItemRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_rows_item_range_merge_post_request_body.go index e4809fceabe..001d1f9c187 100644 --- a/drives/item_items_item_workbook_tables_item_rows_item_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody()(*Item m := &ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_tables_item_sort_apply_post_request_body.go b/drives/item_items_item_workbook_tables_item_sort_apply_post_request_body.go index 30de4f4e801..ccd2af562e1 100644 --- a/drives/item_items_item_workbook_tables_item_sort_apply_post_request_body.go +++ b/drives/item_items_item_workbook_tables_item_sort_apply_post_request_body.go @@ -19,6 +19,8 @@ func NewItemItemsItemWorkbookTablesItemSortApplyPostRequestBody()(*ItemItemsItem } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + matchCaseValue := false + m.SetMatchCase(&matchCaseValue) return m } // CreateItemItemsItemWorkbookTablesItemSortApplyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_total_row_range_merge_post_request_body.go index e9b56f96e90..7bb0beaa464 100644 --- a/drives/item_items_item_workbook_tables_item_total_row_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_tables_item_total_row_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody()(*Item m := &ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_merge_post_request_body.go index aca5f250a0e..22cecb872e0 100644 --- a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_merge_post_request_body.go +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequest m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_merge_post_request_body.go index 809870714a6..165dc9ea883 100644 --- a/drives/item_items_item_workbook_worksheets_item_names_item_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody()( m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_worksheets_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_range_merge_post_request_body.go index 961f06198a1..999effa8047 100644 --- a/drives/item_items_item_workbook_worksheets_item_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_worksheets_item_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody()(*ItemItem m := &ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_merge_post_request_body.go index 56890db5878..9d3b70f2f1d 100644 --- a/drives/item_items_item_workbook_worksheets_item_range_with_address_merge_post_request_body.go +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody( m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_worksheets_item_tables_add_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_add_post_request_body.go index 32d095a2b4f..0e50fa82b85 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_add_post_request_body.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_add_post_request_body.go @@ -18,6 +18,8 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody()(*ItemItems } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + hasHeadersValue := false + m.SetHasHeaders(&hasHeadersValue) return m } // CreateItemItemsItemWorkbookWorksheetsItemTablesAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_merge_post_request_body.go index 4f7d99fa0fc..c11da16b443 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRe m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_merge_post_request_body.go index 737976dbfce..393ca40e30b 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostReque m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_merge_post_request_body.go index 77ad9ea4ccb..d119539f865 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequ m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_merge_post_request_body.go index b00eac7653b..5aa73a8230e 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody() m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_merge_post_request_body.go index ba99fb50502..bdce4ef0f93 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostReque m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_sort_apply_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_sort_apply_post_request_body.go index edb31c04b5c..18011cc8071 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_sort_apply_post_request_body.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_sort_apply_post_request_body.go @@ -19,6 +19,8 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody()( } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + matchCaseValue := false + m.SetMatchCase(&matchCaseValue) return m } // CreateItemItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_merge_post_request_body.go index 9d4755aff45..db6a41ab17e 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostReque m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_used_range_merge_post_request_body.go index b1a799d2238..8312ad3d414 100644 --- a/drives/item_items_item_workbook_worksheets_item_used_range_merge_post_request_body.go +++ b/drives/item_items_item_workbook_worksheets_item_used_range_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody()(*Item m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_merge_post_request_body.go index 322cb183734..bafdfbc0005 100644 --- a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_merge_post_request_body.go +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_merge_post_request_body.go @@ -17,6 +17,8 @@ func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostReque m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + acrossValue := false + m.SetAcross(&acrossValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/drives/item_list_content_types_item_associate_with_hub_sites_post_request_body.go b/drives/item_list_content_types_item_associate_with_hub_sites_post_request_body.go index f74000fec70..4cfd34a7c49 100644 --- a/drives/item_list_content_types_item_associate_with_hub_sites_post_request_body.go +++ b/drives/item_list_content_types_item_associate_with_hub_sites_post_request_body.go @@ -18,6 +18,8 @@ func NewItemListContentTypesItemAssociateWithHubSitesPostRequestBody()(*ItemList } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + propagateToExistingListsValue := false + m.SetPropagateToExistingLists(&propagateToExistingListsValue) return m } // CreateItemListContentTypesItemAssociateWithHubSitesPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/drives/item_list_content_types_item_is_published_get_response.go b/drives/item_list_content_types_item_is_published_get_response.go index df23eea61c0..86821688043 100644 --- a/drives/item_list_content_types_item_is_published_get_response.go +++ b/drives/item_list_content_types_item_is_published_get_response.go @@ -18,6 +18,8 @@ func NewItemListContentTypesItemIsPublishedGetResponse()(*ItemListContentTypesIt } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemListContentTypesItemIsPublishedGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/drives/item_list_items_item_create_link_post_request_body.go b/drives/item_list_items_item_create_link_post_request_body.go index 9c5b0f36fa5..301498c389b 100644 --- a/drives/item_list_items_item_create_link_post_request_body.go +++ b/drives/item_list_items_item_create_link_post_request_body.go @@ -20,6 +20,10 @@ func NewItemListItemsItemCreateLinkPostRequestBody()(*ItemListItemsItemCreateLin } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + retainInheritedPermissionsValue := false + m.SetRetainInheritedPermissions(&retainInheritedPermissionsValue) + sendNotificationValue := false + m.SetSendNotification(&sendNotificationValue) return m } // CreateItemListItemsItemCreateLinkPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/education/classes_item_assignments_item_categories_ref_request_builder.go b/education/classes_item_assignments_item_categories_ref_request_builder.go index 17d2d2c89ac..44b15957834 100644 --- a/education/classes_item_assignments_item_categories_ref_request_builder.go +++ b/education/classes_item_assignments_item_categories_ref_request_builder.go @@ -62,7 +62,7 @@ type ClassesItemAssignmentsItemCategoriesRefRequestBuilderPostRequestConfigurati // NewClassesItemAssignmentsItemCategoriesRefRequestBuilderInternal instantiates a new ClassesItemAssignmentsItemCategoriesRefRequestBuilder and sets the default values. func NewClassesItemAssignmentsItemCategoriesRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ClassesItemAssignmentsItemCategoriesRefRequestBuilder) { m := &ClassesItemAssignmentsItemCategoriesRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ClassesItemAssignmentsItemCategoriesRefRequestBuilder) ToDeleteRequestI // ToGetRequestInformation list all categories for an assignment. Only teachers, students, and applications with application permissions can perform this operation. // returns a *RequestInformation when successful func (m *ClassesItemAssignmentsItemCategoriesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ClassesItemAssignmentsItemCategoriesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ClassesItemAssignmentsItemCategoriesRefRequestBuilder) ToGetRequestInfo // ToPostRequestInformation add one or more existing educationCategory objects to this educationAssignment. Only teachers and students can perform this operation. // returns a *RequestInformation when successful func (m *ClassesItemAssignmentsItemCategoriesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ClassesItemAssignmentsItemCategoriesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/education/classes_item_members_ref_request_builder.go b/education/classes_item_members_ref_request_builder.go index a7b7fae2cdb..68277a94627 100644 --- a/education/classes_item_members_ref_request_builder.go +++ b/education/classes_item_members_ref_request_builder.go @@ -62,7 +62,7 @@ type ClassesItemMembersRefRequestBuilderPostRequestConfiguration struct { // NewClassesItemMembersRefRequestBuilderInternal instantiates a new ClassesItemMembersRefRequestBuilder and sets the default values. func NewClassesItemMembersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ClassesItemMembersRefRequestBuilder) { m := &ClassesItemMembersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ClassesItemMembersRefRequestBuilder) ToDeleteRequestInformation(ctx con // ToGetRequestInformation retrieve the teachers and students for a class. Note that if the delegated token is used, members can only be seen by other members of the class. // returns a *RequestInformation when successful func (m *ClassesItemMembersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ClassesItemMembersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ClassesItemMembersRefRequestBuilder) ToGetRequestInformation(ctx contex // ToPostRequestInformation add an educationUser member to an educationClass. // returns a *RequestInformation when successful func (m *ClassesItemMembersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ClassesItemMembersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/education/classes_item_teachers_ref_request_builder.go b/education/classes_item_teachers_ref_request_builder.go index 4dbf81bcf6b..17ff903c444 100644 --- a/education/classes_item_teachers_ref_request_builder.go +++ b/education/classes_item_teachers_ref_request_builder.go @@ -62,7 +62,7 @@ type ClassesItemTeachersRefRequestBuilderPostRequestConfiguration struct { // NewClassesItemTeachersRefRequestBuilderInternal instantiates a new ClassesItemTeachersRefRequestBuilder and sets the default values. func NewClassesItemTeachersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ClassesItemTeachersRefRequestBuilder) { m := &ClassesItemTeachersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ClassesItemTeachersRefRequestBuilder) ToDeleteRequestInformation(ctx co // ToGetRequestInformation retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. // returns a *RequestInformation when successful func (m *ClassesItemTeachersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ClassesItemTeachersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ClassesItemTeachersRefRequestBuilder) ToGetRequestInformation(ctx conte // ToPostRequestInformation add a teacher to a class. // returns a *RequestInformation when successful func (m *ClassesItemTeachersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ClassesItemTeachersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/education/classes_request_builder.go b/education/classes_request_builder.go index 810ceeee31e..86c8db7eebf 100644 --- a/education/classes_request_builder.go +++ b/education/classes_request_builder.go @@ -107,7 +107,7 @@ func (m *ClassesRequestBuilder) Get(ctx context.Context, requestConfiguration *C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationClassCollectionResponseable), nil } -// Post create a new class. This will also create a universal group. When you use this API to create a class, it will add special properties to the group, which willadd features such as assignments and special handling within Microsoft Teams when teams are created using the group. Please note that this API only creates the universal group and does not create a team. Microsoft Teams provides a user interface for teachers to create teams for their own classes using the groups created by this API. +// Post create a new class. This will also create a universal group. When you use this API to create a class, it will add special properties to the group, which willadd features such as assignments and special handling within Microsoft Teams when teams are created using the group. Please note that this API only creates the universal group and doesn't create a team. Microsoft Teams provides a user interface for teachers to create teams for their own classes using the groups created by this API. // returns a EducationClassable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -144,7 +144,7 @@ func (m *ClassesRequestBuilder) ToGetRequestInformation(ctx context.Context, req requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new class. This will also create a universal group. When you use this API to create a class, it will add special properties to the group, which willadd features such as assignments and special handling within Microsoft Teams when teams are created using the group. Please note that this API only creates the universal group and does not create a team. Microsoft Teams provides a user interface for teachers to create teams for their own classes using the groups created by this API. +// ToPostRequestInformation create a new class. This will also create a universal group. When you use this API to create a class, it will add special properties to the group, which willadd features such as assignments and special handling within Microsoft Teams when teams are created using the group. Please note that this API only creates the universal group and doesn't create a team. Microsoft Teams provides a user interface for teachers to create teams for their own classes using the groups created by this API. // returns a *RequestInformation when successful func (m *ClassesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationClassable, requestConfiguration *ClassesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/education/me_assignments_item_categories_ref_request_builder.go b/education/me_assignments_item_categories_ref_request_builder.go index 057a27121fe..73ca9128af1 100644 --- a/education/me_assignments_item_categories_ref_request_builder.go +++ b/education/me_assignments_item_categories_ref_request_builder.go @@ -62,7 +62,7 @@ type MeAssignmentsItemCategoriesRefRequestBuilderPostRequestConfiguration struct // NewMeAssignmentsItemCategoriesRefRequestBuilderInternal instantiates a new MeAssignmentsItemCategoriesRefRequestBuilder and sets the default values. func NewMeAssignmentsItemCategoriesRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MeAssignmentsItemCategoriesRefRequestBuilder) { m := &MeAssignmentsItemCategoriesRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *MeAssignmentsItemCategoriesRefRequestBuilder) ToDeleteRequestInformatio // ToGetRequestInformation when set, enables users to easily find assignments of a given type. Read-only. Nullable. // returns a *RequestInformation when successful func (m *MeAssignmentsItemCategoriesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MeAssignmentsItemCategoriesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *MeAssignmentsItemCategoriesRefRequestBuilder) ToGetRequestInformation(c // ToPostRequestInformation create new navigation property ref to categories for education // returns a *RequestInformation when successful func (m *MeAssignmentsItemCategoriesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *MeAssignmentsItemCategoriesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/education/schools_item_classes_ref_request_builder.go b/education/schools_item_classes_ref_request_builder.go index 88999b37096..e961e49cd4a 100644 --- a/education/schools_item_classes_ref_request_builder.go +++ b/education/schools_item_classes_ref_request_builder.go @@ -62,7 +62,7 @@ type SchoolsItemClassesRefRequestBuilderPostRequestConfiguration struct { // NewSchoolsItemClassesRefRequestBuilderInternal instantiates a new SchoolsItemClassesRefRequestBuilder and sets the default values. func NewSchoolsItemClassesRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SchoolsItemClassesRefRequestBuilder) { m := &SchoolsItemClassesRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *SchoolsItemClassesRefRequestBuilder) ToDeleteRequestInformation(ctx con // ToGetRequestInformation retrieve a list of classes owned by a school. // returns a *RequestInformation when successful func (m *SchoolsItemClassesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SchoolsItemClassesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *SchoolsItemClassesRefRequestBuilder) ToGetRequestInformation(ctx contex // ToPostRequestInformation add a class to a school. // returns a *RequestInformation when successful func (m *SchoolsItemClassesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *SchoolsItemClassesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/education/schools_item_users_ref_request_builder.go b/education/schools_item_users_ref_request_builder.go index c382b68cc32..56e56c1879a 100644 --- a/education/schools_item_users_ref_request_builder.go +++ b/education/schools_item_users_ref_request_builder.go @@ -62,7 +62,7 @@ type SchoolsItemUsersRefRequestBuilderPostRequestConfiguration struct { // NewSchoolsItemUsersRefRequestBuilderInternal instantiates a new SchoolsItemUsersRefRequestBuilder and sets the default values. func NewSchoolsItemUsersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SchoolsItemUsersRefRequestBuilder) { m := &SchoolsItemUsersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *SchoolsItemUsersRefRequestBuilder) ToDeleteRequestInformation(ctx conte // ToGetRequestInformation retrieve a list of users at a school. // returns a *RequestInformation when successful func (m *SchoolsItemUsersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SchoolsItemUsersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *SchoolsItemUsersRefRequestBuilder) ToGetRequestInformation(ctx context. // ToPostRequestInformation add a user to a school. // returns a *RequestInformation when successful func (m *SchoolsItemUsersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *SchoolsItemUsersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/education/users_item_assignments_item_categories_ref_request_builder.go b/education/users_item_assignments_item_categories_ref_request_builder.go index b89c3fbeec7..4e00e8e6991 100644 --- a/education/users_item_assignments_item_categories_ref_request_builder.go +++ b/education/users_item_assignments_item_categories_ref_request_builder.go @@ -62,7 +62,7 @@ type UsersItemAssignmentsItemCategoriesRefRequestBuilderPostRequestConfiguration // NewUsersItemAssignmentsItemCategoriesRefRequestBuilderInternal instantiates a new UsersItemAssignmentsItemCategoriesRefRequestBuilder and sets the default values. func NewUsersItemAssignmentsItemCategoriesRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*UsersItemAssignmentsItemCategoriesRefRequestBuilder) { m := &UsersItemAssignmentsItemCategoriesRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *UsersItemAssignmentsItemCategoriesRefRequestBuilder) ToDeleteRequestInf // ToGetRequestInformation when set, enables users to easily find assignments of a given type. Read-only. Nullable. // returns a *RequestInformation when successful func (m *UsersItemAssignmentsItemCategoriesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *UsersItemAssignmentsItemCategoriesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *UsersItemAssignmentsItemCategoriesRefRequestBuilder) ToGetRequestInform // ToPostRequestInformation create new navigation property ref to categories for education // returns a *RequestInformation when successful func (m *UsersItemAssignmentsItemCategoriesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *UsersItemAssignmentsItemCategoriesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/grouplifecyclepolicies/item_add_group_post_response.go b/grouplifecyclepolicies/item_add_group_post_response.go index 54c45441cb5..c6aff2772bf 100644 --- a/grouplifecyclepolicies/item_add_group_post_response.go +++ b/grouplifecyclepolicies/item_add_group_post_response.go @@ -18,6 +18,8 @@ func NewItemAddGroupPostResponse()(*ItemAddGroupPostResponse) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemAddGroupPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/grouplifecyclepolicies/item_remove_group_post_response.go b/grouplifecyclepolicies/item_remove_group_post_response.go index 27312decefe..294f851d5a4 100644 --- a/grouplifecyclepolicies/item_remove_group_post_response.go +++ b/grouplifecyclepolicies/item_remove_group_post_response.go @@ -18,6 +18,8 @@ func NewItemRemoveGroupPostResponse()(*ItemRemoveGroupPostResponse) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemRemoveGroupPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/grouplifecyclepolicies/renew_group_post_response.go b/grouplifecyclepolicies/renew_group_post_response.go index b747ab48be7..3dcf49ecd0f 100644 --- a/grouplifecyclepolicies/renew_group_post_response.go +++ b/grouplifecyclepolicies/renew_group_post_response.go @@ -18,6 +18,8 @@ func NewRenewGroupPostResponse()(*RenewGroupPostResponse) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateRenewGroupPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/5540efefd894ddceb20126371c060fca8956bf21b0e79cab06b17dde36138c23.go b/groups/5540efefd894ddceb20126371c060fca8956bf21b0e79cab06b17dde36138c23.go index 63eda4d4dc2..8a437712e6b 100644 --- a/groups/5540efefd894ddceb20126371c060fca8956bf21b0e79cab06b17dde36138c23.go +++ b/groups/5540efefd894ddceb20126371c060fca8956bf21b0e79cab06b17dde36138c23.go @@ -18,6 +18,8 @@ func NewItemTeamChannelsItemDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPr } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemTeamChannelsItemDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/7888491c99793ba8d896856205636a2f1f12651c40d9ea52a6886645ffe78c64.go b/groups/7888491c99793ba8d896856205636a2f1f12651c40d9ea52a6886645ffe78c64.go index 89bee50fbfb..66662c098b4 100644 --- a/groups/7888491c99793ba8d896856205636a2f1f12651c40d9ea52a6886645ffe78c64.go +++ b/groups/7888491c99793ba8d896856205636a2f1f12651c40d9ea52a6886645ffe78c64.go @@ -18,6 +18,8 @@ func NewItemTeamPrimaryChannelDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUser } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemTeamPrimaryChannelDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_accepted_senders_ref_request_builder.go b/groups/item_accepted_senders_ref_request_builder.go index 65e83075fad..ca882b528d9 100644 --- a/groups/item_accepted_senders_ref_request_builder.go +++ b/groups/item_accepted_senders_ref_request_builder.go @@ -28,7 +28,7 @@ type ItemAcceptedSendersRefRequestBuilderDeleteRequestConfiguration struct { // Request query parameters QueryParameters *ItemAcceptedSendersRefRequestBuilderDeleteQueryParameters } -// ItemAcceptedSendersRefRequestBuilderGetQueryParameters get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. +// ItemAcceptedSendersRefRequestBuilderGetQueryParameters get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. type ItemAcceptedSendersRefRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -62,7 +62,7 @@ type ItemAcceptedSendersRefRequestBuilderPostRequestConfiguration struct { // NewItemAcceptedSendersRefRequestBuilderInternal instantiates a new ItemAcceptedSendersRefRequestBuilder and sets the default values. func NewItemAcceptedSendersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemAcceptedSendersRefRequestBuilder) { m := &ItemAcceptedSendersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -91,7 +91,7 @@ func (m *ItemAcceptedSendersRefRequestBuilder) Delete(ctx context.Context, reque } return nil } -// Get get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. +// Get get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. // returns a StringCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -147,10 +147,10 @@ func (m *ItemAcceptedSendersRefRequestBuilder) ToDeleteRequestInformation(ctx co requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. +// ToGetRequestInformation get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. // returns a *RequestInformation when successful func (m *ItemAcceptedSendersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAcceptedSendersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ItemAcceptedSendersRefRequestBuilder) ToGetRequestInformation(ctx conte // ToPostRequestInformation add a new user or group to the acceptedSender list. Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group. Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you'll get an error. // returns a *RequestInformation when successful func (m *ItemAcceptedSendersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemAcceptedSendersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/groups/item_accepted_senders_request_builder.go b/groups/item_accepted_senders_request_builder.go index 7e7144faec5..f712aaea81f 100644 --- a/groups/item_accepted_senders_request_builder.go +++ b/groups/item_accepted_senders_request_builder.go @@ -14,7 +14,7 @@ import ( type ItemAcceptedSendersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemAcceptedSendersRequestBuilderGetQueryParameters get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. +// ItemAcceptedSendersRequestBuilderGetQueryParameters get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. type ItemAcceptedSendersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -72,7 +72,7 @@ func NewItemAcceptedSendersRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *ItemAcceptedSendersRequestBuilder) Count()(*ItemAcceptedSendersCountRequestBuilder) { return NewItemAcceptedSendersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. +// Get get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -100,7 +100,7 @@ func (m *ItemAcceptedSendersRequestBuilder) Get(ctx context.Context, requestConf func (m *ItemAcceptedSendersRequestBuilder) Ref()(*ItemAcceptedSendersRefRequestBuilder) { return NewItemAcceptedSendersRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. +// ToGetRequestInformation get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. // returns a *RequestInformation when successful func (m *ItemAcceptedSendersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAcceptedSendersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_calendar_events_item_accept_post_request_body.go b/groups/item_calendar_events_item_accept_post_request_body.go index dddc41e926b..08f1a889ca0 100644 --- a/groups/item_calendar_events_item_accept_post_request_body.go +++ b/groups/item_calendar_events_item_accept_post_request_body.go @@ -18,6 +18,8 @@ func NewItemCalendarEventsItemAcceptPostRequestBody()(*ItemCalendarEventsItemAcc } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemCalendarEventsItemAcceptPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_calendar_events_item_decline_post_request_body.go b/groups/item_calendar_events_item_decline_post_request_body.go index d7b1dcb96ea..fbd1ea4c2eb 100644 --- a/groups/item_calendar_events_item_decline_post_request_body.go +++ b/groups/item_calendar_events_item_decline_post_request_body.go @@ -19,6 +19,8 @@ func NewItemCalendarEventsItemDeclinePostRequestBody()(*ItemCalendarEventsItemDe } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemCalendarEventsItemDeclinePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_calendar_events_item_tentatively_accept_post_request_body.go b/groups/item_calendar_events_item_tentatively_accept_post_request_body.go index 2f856ec2a9e..90a90b8b113 100644 --- a/groups/item_calendar_events_item_tentatively_accept_post_request_body.go +++ b/groups/item_calendar_events_item_tentatively_accept_post_request_body.go @@ -19,6 +19,8 @@ func NewItemCalendarEventsItemTentativelyAcceptPostRequestBody()(*ItemCalendarEv } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemCalendarEventsItemTentativelyAcceptPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_events_item_accept_post_request_body.go b/groups/item_events_item_accept_post_request_body.go index cc1eef5f584..d5015356451 100644 --- a/groups/item_events_item_accept_post_request_body.go +++ b/groups/item_events_item_accept_post_request_body.go @@ -18,6 +18,8 @@ func NewItemEventsItemAcceptPostRequestBody()(*ItemEventsItemAcceptPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemEventsItemAcceptPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_events_item_decline_post_request_body.go b/groups/item_events_item_decline_post_request_body.go index c5f9eac2bee..eae1fb4f1b8 100644 --- a/groups/item_events_item_decline_post_request_body.go +++ b/groups/item_events_item_decline_post_request_body.go @@ -19,6 +19,8 @@ func NewItemEventsItemDeclinePostRequestBody()(*ItemEventsItemDeclinePostRequest } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemEventsItemDeclinePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_events_item_tentatively_accept_post_request_body.go b/groups/item_events_item_tentatively_accept_post_request_body.go index 99501bda993..4871f5ad52c 100644 --- a/groups/item_events_item_tentatively_accept_post_request_body.go +++ b/groups/item_events_item_tentatively_accept_post_request_body.go @@ -19,6 +19,8 @@ func NewItemEventsItemTentativelyAcceptPostRequestBody()(*ItemEventsItemTentativ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemEventsItemTentativelyAcceptPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_get_member_groups_post_request_body.go b/groups/item_get_member_groups_post_request_body.go index 7f1c0e0b6de..f448464b136 100644 --- a/groups/item_get_member_groups_post_request_body.go +++ b/groups/item_get_member_groups_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberGroupsPostRequestBody()(*ItemGetMemberGroupsPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberGroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_get_member_objects_post_request_body.go b/groups/item_get_member_objects_post_request_body.go index 6cfd8771f18..95af2382dce 100644 --- a/groups/item_get_member_objects_post_request_body.go +++ b/groups/item_get_member_objects_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberObjectsPostRequestBody()(*ItemGetMemberObjectsPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberObjectsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_group_lifecycle_policies_item_add_group_post_response.go b/groups/item_group_lifecycle_policies_item_add_group_post_response.go index cb7738b7d0d..56e12ae4bd1 100644 --- a/groups/item_group_lifecycle_policies_item_add_group_post_response.go +++ b/groups/item_group_lifecycle_policies_item_add_group_post_response.go @@ -18,6 +18,8 @@ func NewItemGroupLifecyclePoliciesItemAddGroupPostResponse()(*ItemGroupLifecycle } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemGroupLifecyclePoliciesItemAddGroupPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_group_lifecycle_policies_item_remove_group_post_response.go b/groups/item_group_lifecycle_policies_item_remove_group_post_response.go index 4200415e8cf..33a50d263c3 100644 --- a/groups/item_group_lifecycle_policies_item_remove_group_post_response.go +++ b/groups/item_group_lifecycle_policies_item_remove_group_post_response.go @@ -18,6 +18,8 @@ func NewItemGroupLifecyclePoliciesItemRemoveGroupPostResponse()(*ItemGroupLifecy } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemGroupLifecyclePoliciesItemRemoveGroupPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_group_lifecycle_policies_renew_group_post_response.go b/groups/item_group_lifecycle_policies_renew_group_post_response.go index 80f739f0756..354735a2048 100644 --- a/groups/item_group_lifecycle_policies_renew_group_post_response.go +++ b/groups/item_group_lifecycle_policies_renew_group_post_response.go @@ -18,6 +18,8 @@ func NewItemGroupLifecyclePoliciesRenewGroupPostResponse()(*ItemGroupLifecyclePo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemGroupLifecyclePoliciesRenewGroupPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_members_ref_request_builder.go b/groups/item_members_ref_request_builder.go index 8b65f19ea26..67fbe0f26fb 100644 --- a/groups/item_members_ref_request_builder.go +++ b/groups/item_members_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemMembersRefRequestBuilderPostRequestConfiguration struct { // NewItemMembersRefRequestBuilderInternal instantiates a new ItemMembersRefRequestBuilder and sets the default values. func NewItemMembersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMembersRefRequestBuilder) { m := &ItemMembersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ItemMembersRefRequestBuilder) ToDeleteRequestInformation(ctx context.Co // ToGetRequestInformation get a list of the group's direct members. A group can have users, contacts, devices, service principals, and other groups as members. This operation isn't transitive. // returns a *RequestInformation when successful func (m *ItemMembersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/groups/{group%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ItemMembersRefRequestBuilder) ToGetRequestInformation(ctx context.Conte // ToPostRequestInformation add a member to a security or Microsoft 365 group. When using the API to add multiple members in one request, you can add up to only 20 members. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. // returns a *RequestInformation when successful func (m *ItemMembersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemMembersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/members/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/groups/item_owners_ref_request_builder.go b/groups/item_owners_ref_request_builder.go index e846bb5d418..1e51d3b6934 100644 --- a/groups/item_owners_ref_request_builder.go +++ b/groups/item_owners_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemOwnersRefRequestBuilderPostRequestConfiguration struct { // NewItemOwnersRefRequestBuilderInternal instantiates a new ItemOwnersRefRequestBuilder and sets the default values. func NewItemOwnersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOwnersRefRequestBuilder) { m := &ItemOwnersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ItemOwnersRefRequestBuilder) ToDeleteRequestInformation(ctx context.Con // ToGetRequestInformation retrieve a list of the group's owners. The owners are a set of users who are allowed to modify the group object. Owners are currently not available in Microsoft Graph for groups that were created in Exchange, distribution groups, or groups that are synchronized from an on-premises environment. // returns a *RequestInformation when successful func (m *ItemOwnersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/groups/{group%2Did}/owners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ItemOwnersRefRequestBuilder) ToGetRequestInformation(ctx context.Contex // ToPostRequestInformation add a user or service principal to a Microsoft 365 or security group's owners. The owners are a set of users or service principals who are allowed to modify the group object. // returns a *RequestInformation when successful func (m *ItemOwnersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemOwnersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/owners/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/groups/item_planner_plans_item_history_items_count_request_builder.go b/groups/item_planner_plans_item_history_items_count_request_builder.go new file mode 100644 index 00000000000..e574ca54b03 --- /dev/null +++ b/groups/item_planner_plans_item_history_items_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPlannerPlansItemHistoryItemsCountRequestBuilder provides operations to count the resources in the collection. +type ItemPlannerPlansItemHistoryItemsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters get the number of the resource +type ItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters +} +// NewItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal instantiates a new ItemPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + m := &ItemPlannerPlansItemHistoryItemsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/historyItems/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemPlannerPlansItemHistoryItemsCountRequestBuilder instantiates a new ItemPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPlannerPlansItemHistoryItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemPlannerPlansItemHistoryItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemPlannerPlansItemHistoryItemsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_planner_plans_item_history_items_planner_history_item_item_request_builder.go b/groups/item_planner_plans_item_history_items_planner_history_item_item_request_builder.go new file mode 100644 index 00000000000..b5f7cef6545 --- /dev/null +++ b/groups/item_planner_plans_item_history_items_planner_history_item_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters get historyItems from groups +type ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters +} +// ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal instantiates a new ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + m := &ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/historyItems/{plannerHistoryItem%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder instantiates a new ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property historyItems for groups +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get historyItems from groups +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// Patch update the navigation property historyItems in groups +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToDeleteRequestInformation delete navigation property historyItems for groups +// returns a *RequestInformation when successful +func (m *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get historyItems from groups +// returns a *RequestInformation when successful +func (m *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property historyItems in groups +// returns a *RequestInformation when successful +func (m *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + return NewItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_planner_plans_item_history_items_request_builder.go b/groups/item_planner_plans_item_history_items_request_builder.go new file mode 100644 index 00000000000..b65b9f9a164 --- /dev/null +++ b/groups/item_planner_plans_item_history_items_request_builder.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPlannerPlansItemHistoryItemsRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemPlannerPlansItemHistoryItemsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters get historyItems from groups +type ItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters +} +// ItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByPlannerHistoryItemId provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemPlannerPlansItemHistoryItemsRequestBuilder) ByPlannerHistoryItemId(plannerHistoryItemId string)(*ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if plannerHistoryItemId != "" { + urlTplParams["plannerHistoryItem%2Did"] = plannerHistoryItemId + } + return NewItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemPlannerPlansItemHistoryItemsRequestBuilderInternal instantiates a new ItemPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemPlannerPlansItemHistoryItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemHistoryItemsRequestBuilder) { + m := &ItemPlannerPlansItemHistoryItemsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/planner/plans/{plannerPlan%2Did}/historyItems{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemPlannerPlansItemHistoryItemsRequestBuilder instantiates a new ItemPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemPlannerPlansItemHistoryItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemHistoryItemsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPlannerPlansItemHistoryItemsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemPlannerPlansItemHistoryItemsRequestBuilder) Count()(*ItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get historyItems from groups +// returns a PlannerHistoryItemCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPlannerPlansItemHistoryItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable), nil +} +// Post create new navigation property to historyItems for groups +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPlannerPlansItemHistoryItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToGetRequestInformation get historyItems from groups +// returns a *RequestInformation when successful +func (m *ItemPlannerPlansItemHistoryItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to historyItems for groups +// returns a *RequestInformation when successful +func (m *ItemPlannerPlansItemHistoryItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemPlannerPlansItemHistoryItemsRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemPlannerPlansItemHistoryItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_planner_plans_planner_plan_item_request_builder.go b/groups/item_planner_plans_planner_plan_item_request_builder.go index b5d0763b040..90fdf1af386 100644 --- a/groups/item_planner_plans_planner_plan_item_request_builder.go +++ b/groups/item_planner_plans_planner_plan_item_request_builder.go @@ -113,6 +113,11 @@ func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Get(ctx context.Context, func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) GetUsageRights()(*ItemPlannerPlansItemGetUsageRightsRequestBuilder) { return NewItemPlannerPlansItemGetUsageRightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// HistoryItems provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) HistoryItems()(*ItemPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemPlannerPlansItemHistoryItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MoveToContainer provides operations to call the moveToContainer method. // returns a *ItemPlannerPlansItemMoveToContainerRequestBuilder when successful func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) MoveToContainer()(*ItemPlannerPlansItemMoveToContainerRequestBuilder) { diff --git a/groups/item_rejected_senders_ref_request_builder.go b/groups/item_rejected_senders_ref_request_builder.go index 8156d898ff0..0c72def044e 100644 --- a/groups/item_rejected_senders_ref_request_builder.go +++ b/groups/item_rejected_senders_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemRejectedSendersRefRequestBuilderPostRequestConfiguration struct { // NewItemRejectedSendersRefRequestBuilderInternal instantiates a new ItemRejectedSendersRefRequestBuilder and sets the default values. func NewItemRejectedSendersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemRejectedSendersRefRequestBuilder) { m := &ItemRejectedSendersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ItemRejectedSendersRefRequestBuilder) ToDeleteRequestInformation(ctx co // ToGetRequestInformation get a list of users or groups that are in the rejected-senders list for this group. Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. // returns a *RequestInformation when successful func (m *ItemRejectedSendersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRejectedSendersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ItemRejectedSendersRefRequestBuilder) ToGetRequestInformation(ctx conte // ToPostRequestInformation add a new user or group to the rejectedSender list. Specify the user or group in @odata.id in the request body. Users in the rejected senders list can't post to conversations of the group (identified in the POST request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you'll get an error. // returns a *RequestInformation when successful func (m *ItemRejectedSendersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemRejectedSendersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/groups/item_sites_item_content_types_item_associate_with_hub_sites_post_request_body.go b/groups/item_sites_item_content_types_item_associate_with_hub_sites_post_request_body.go index a519979b6a1..e5e03939539 100644 --- a/groups/item_sites_item_content_types_item_associate_with_hub_sites_post_request_body.go +++ b/groups/item_sites_item_content_types_item_associate_with_hub_sites_post_request_body.go @@ -18,6 +18,8 @@ func NewItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBody()(*Ite } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + propagateToExistingListsValue := false + m.SetPropagateToExistingLists(&propagateToExistingListsValue) return m } // CreateItemSitesItemContentTypesItemAssociateWithHubSitesPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_sites_item_content_types_item_is_published_get_response.go b/groups/item_sites_item_content_types_item_is_published_get_response.go index 70676829854..be08c58f3a4 100644 --- a/groups/item_sites_item_content_types_item_is_published_get_response.go +++ b/groups/item_sites_item_content_types_item_is_published_get_response.go @@ -18,6 +18,8 @@ func NewItemSitesItemContentTypesItemIsPublishedGetResponse()(*ItemSitesItemCont } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemSitesItemContentTypesItemIsPublishedGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_sites_item_lists_item_content_types_item_associate_with_hub_sites_post_request_body.go b/groups/item_sites_item_lists_item_content_types_item_associate_with_hub_sites_post_request_body.go index 37e505c2593..daa3c048f43 100644 --- a/groups/item_sites_item_lists_item_content_types_item_associate_with_hub_sites_post_request_body.go +++ b/groups/item_sites_item_lists_item_content_types_item_associate_with_hub_sites_post_request_body.go @@ -18,6 +18,8 @@ func NewItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + propagateToExistingListsValue := false + m.SetPropagateToExistingLists(&propagateToExistingListsValue) return m } // CreateItemSitesItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_sites_item_lists_item_content_types_item_is_published_get_response.go b/groups/item_sites_item_lists_item_content_types_item_is_published_get_response.go index 5f11c3bac91..9917ea980d6 100644 --- a/groups/item_sites_item_lists_item_content_types_item_is_published_get_response.go +++ b/groups/item_sites_item_lists_item_content_types_item_is_published_get_response.go @@ -18,6 +18,8 @@ func NewItemSitesItemListsItemContentTypesItemIsPublishedGetResponse()(*ItemSite } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemSitesItemListsItemContentTypesItemIsPublishedGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_sites_item_lists_item_items_item_create_link_post_request_body.go b/groups/item_sites_item_lists_item_items_item_create_link_post_request_body.go index 482476e5304..f16edeb6ded 100644 --- a/groups/item_sites_item_lists_item_items_item_create_link_post_request_body.go +++ b/groups/item_sites_item_lists_item_items_item_create_link_post_request_body.go @@ -20,6 +20,10 @@ func NewItemSitesItemListsItemItemsItemCreateLinkPostRequestBody()(*ItemSitesIte } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + retainInheritedPermissionsValue := false + m.SetRetainInheritedPermissions(&retainInheritedPermissionsValue) + sendNotificationValue := false + m.SetSendNotification(&sendNotificationValue) return m } // CreateItemSitesItemListsItemItemsItemCreateLinkPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_team_archive_post_request_body.go b/groups/item_team_archive_post_request_body.go index 45085165cef..fedb44abb10 100644 --- a/groups/item_team_archive_post_request_body.go +++ b/groups/item_team_archive_post_request_body.go @@ -18,6 +18,8 @@ func NewItemTeamArchivePostRequestBody()(*ItemTeamArchivePostRequestBody) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + shouldSetSpoSiteReadOnlyForMembersValue := false + m.SetShouldSetSpoSiteReadOnlyForMembers(&shouldSetSpoSiteReadOnlyForMembersValue) return m } // CreateItemTeamArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_team_channels_channel_item_request_builder.go b/groups/item_team_channels_channel_item_request_builder.go index d363e687ed3..ab2edaf591e 100644 --- a/groups/item_team_channels_channel_item_request_builder.go +++ b/groups/item_team_channels_channel_item_request_builder.go @@ -123,6 +123,11 @@ func (m *ItemTeamChannelsChannelItemRequestBuilder) Get(ctx context.Context, req } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Channelable), nil } +// JoinedUsers provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *ItemTeamChannelsItemJoinedUsersRequestBuilder when successful +func (m *ItemTeamChannelsChannelItemRequestBuilder) JoinedUsers()(*ItemTeamChannelsItemJoinedUsersRequestBuilder) { + return NewItemTeamChannelsItemJoinedUsersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Members provides operations to manage the members property of the microsoft.graph.channel entity. // returns a *ItemTeamChannelsItemMembersRequestBuilder when successful func (m *ItemTeamChannelsChannelItemRequestBuilder) Members()(*ItemTeamChannelsItemMembersRequestBuilder) { diff --git a/groups/item_team_channels_item_archive_post_request_body.go b/groups/item_team_channels_item_archive_post_request_body.go index 09470d283c7..a048774f67b 100644 --- a/groups/item_team_channels_item_archive_post_request_body.go +++ b/groups/item_team_channels_item_archive_post_request_body.go @@ -18,6 +18,8 @@ func NewItemTeamChannelsItemArchivePostRequestBody()(*ItemTeamChannelsItemArchiv } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + shouldSetSpoSiteReadOnlyForMembersValue := false + m.SetShouldSetSpoSiteReadOnlyForMembers(&shouldSetSpoSiteReadOnlyForMembersValue) return m } // CreateItemTeamChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_team_channels_item_joined_users_add_post_request_body.go b/groups/item_team_channels_item_joined_users_add_post_request_body.go new file mode 100644 index 00000000000..72ed0a2bbbd --- /dev/null +++ b/groups/item_team_channels_item_joined_users_add_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemTeamChannelsItemJoinedUsersAddPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamChannelsItemJoinedUsersAddPostRequestBody instantiates a new ItemTeamChannelsItemJoinedUsersAddPostRequestBody and sets the default values. +func NewItemTeamChannelsItemJoinedUsersAddPostRequestBody()(*ItemTeamChannelsItemJoinedUsersAddPostRequestBody) { + m := &ItemTeamChannelsItemJoinedUsersAddPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamChannelsItemJoinedUsersAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamChannelsItemJoinedUsersAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamChannelsItemJoinedUsersAddPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemTeamChannelsItemJoinedUsersAddPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemTeamChannelsItemJoinedUsersAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamChannelsItemJoinedUsersAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *ItemTeamChannelsItemJoinedUsersAddPostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamChannelsItemJoinedUsersAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamChannelsItemJoinedUsersAddPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamChannelsItemJoinedUsersAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *ItemTeamChannelsItemJoinedUsersAddPostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type ItemTeamChannelsItemJoinedUsersAddPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/groups/item_team_channels_item_joined_users_add_post_response.go b/groups/item_team_channels_item_joined_users_add_post_response.go new file mode 100644 index 00000000000..b3940790b13 --- /dev/null +++ b/groups/item_team_channels_item_joined_users_add_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemTeamChannelsItemJoinedUsersAddPostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemTeamChannelsItemJoinedUsersAddPostResponse instantiates a new ItemTeamChannelsItemJoinedUsersAddPostResponse and sets the default values. +func NewItemTeamChannelsItemJoinedUsersAddPostResponse()(*ItemTeamChannelsItemJoinedUsersAddPostResponse) { + m := &ItemTeamChannelsItemJoinedUsersAddPostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemTeamChannelsItemJoinedUsersAddPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamChannelsItemJoinedUsersAddPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamChannelsItemJoinedUsersAddPostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamChannelsItemJoinedUsersAddPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *ItemTeamChannelsItemJoinedUsersAddPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamChannelsItemJoinedUsersAddPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemTeamChannelsItemJoinedUsersAddPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemTeamChannelsItemJoinedUsersAddPostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/groups/item_team_channels_item_joined_users_add_request_builder.go b/groups/item_team_channels_item_joined_users_add_request_builder.go new file mode 100644 index 00000000000..88399e87fe9 --- /dev/null +++ b/groups/item_team_channels_item_joined_users_add_request_builder.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsItemJoinedUsersAddRequestBuilder provides operations to call the add method. +type ItemTeamChannelsItemJoinedUsersAddRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamChannelsItemJoinedUsersAddRequestBuilderInternal instantiates a new ItemTeamChannelsItemJoinedUsersAddRequestBuilder and sets the default values. +func NewItemTeamChannelsItemJoinedUsersAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemJoinedUsersAddRequestBuilder) { + m := &ItemTeamChannelsItemJoinedUsersAddRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/joinedUsers/add", pathParameters), + } + return m +} +// NewItemTeamChannelsItemJoinedUsersAddRequestBuilder instantiates a new ItemTeamChannelsItemJoinedUsersAddRequestBuilder and sets the default values. +func NewItemTeamChannelsItemJoinedUsersAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemJoinedUsersAddRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsItemJoinedUsersAddRequestBuilderInternal(urlParams, requestAdapter) +} +// Post add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// Deprecated: This method is obsolete. Use PostAsAddPostResponse instead. +// returns a ItemTeamChannelsItemJoinedUsersAddResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *ItemTeamChannelsItemJoinedUsersAddRequestBuilder) Post(ctx context.Context, body ItemTeamChannelsItemJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemTeamChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration)(ItemTeamChannelsItemJoinedUsersAddResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamChannelsItemJoinedUsersAddResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamChannelsItemJoinedUsersAddResponseable), nil +} +// PostAsAddPostResponse add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a ItemTeamChannelsItemJoinedUsersAddPostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *ItemTeamChannelsItemJoinedUsersAddRequestBuilder) PostAsAddPostResponse(ctx context.Context, body ItemTeamChannelsItemJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemTeamChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration)(ItemTeamChannelsItemJoinedUsersAddPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamChannelsItemJoinedUsersAddPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamChannelsItemJoinedUsersAddPostResponseable), nil +} +// ToPostRequestInformation add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemJoinedUsersAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamChannelsItemJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemTeamChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamChannelsItemJoinedUsersAddRequestBuilder when successful +func (m *ItemTeamChannelsItemJoinedUsersAddRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsItemJoinedUsersAddRequestBuilder) { + return NewItemTeamChannelsItemJoinedUsersAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_channels_item_joined_users_add_response.go b/groups/item_team_channels_item_joined_users_add_response.go new file mode 100644 index 00000000000..10f97bd6efa --- /dev/null +++ b/groups/item_team_channels_item_joined_users_add_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemTeamChannelsItemJoinedUsersAddPostResponseable instead. +type ItemTeamChannelsItemJoinedUsersAddResponse struct { + ItemTeamChannelsItemJoinedUsersAddPostResponse +} +// NewItemTeamChannelsItemJoinedUsersAddResponse instantiates a new ItemTeamChannelsItemJoinedUsersAddResponse and sets the default values. +func NewItemTeamChannelsItemJoinedUsersAddResponse()(*ItemTeamChannelsItemJoinedUsersAddResponse) { + m := &ItemTeamChannelsItemJoinedUsersAddResponse{ + ItemTeamChannelsItemJoinedUsersAddPostResponse: *NewItemTeamChannelsItemJoinedUsersAddPostResponse(), + } + return m +} +// CreateItemTeamChannelsItemJoinedUsersAddResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamChannelsItemJoinedUsersAddResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamChannelsItemJoinedUsersAddResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemTeamChannelsItemJoinedUsersAddPostResponseable instead. +type ItemTeamChannelsItemJoinedUsersAddResponseable interface { + ItemTeamChannelsItemJoinedUsersAddPostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/groups/item_team_channels_item_joined_users_conversation_member_item_request_builder.go b/groups/item_team_channels_item_joined_users_conversation_member_item_request_builder.go new file mode 100644 index 00000000000..a08ec0c43b3 --- /dev/null +++ b/groups/item_team_channels_item_joined_users_conversation_member_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters get joinedUsers from groups +type ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters +} +// ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal instantiates a new ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + m := &ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/joinedUsers/{conversationMember%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder instantiates a new ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property joinedUsers for groups +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get joinedUsers from groups +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Patch update the navigation property joinedUsers in groups +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// ToDeleteRequestInformation delete navigation property joinedUsers for groups +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get joinedUsers from groups +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property joinedUsers in groups +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + return NewItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_channels_item_joined_users_count_request_builder.go b/groups/item_team_channels_item_joined_users_count_request_builder.go new file mode 100644 index 00000000000..e9479c945d8 --- /dev/null +++ b/groups/item_team_channels_item_joined_users_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsItemJoinedUsersCountRequestBuilder provides operations to count the resources in the collection. +type ItemTeamChannelsItemJoinedUsersCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsItemJoinedUsersCountRequestBuilderGetQueryParameters get the number of the resource +type ItemTeamChannelsItemJoinedUsersCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemTeamChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamChannelsItemJoinedUsersCountRequestBuilderGetQueryParameters +} +// NewItemTeamChannelsItemJoinedUsersCountRequestBuilderInternal instantiates a new ItemTeamChannelsItemJoinedUsersCountRequestBuilder and sets the default values. +func NewItemTeamChannelsItemJoinedUsersCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemJoinedUsersCountRequestBuilder) { + m := &ItemTeamChannelsItemJoinedUsersCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/joinedUsers/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemTeamChannelsItemJoinedUsersCountRequestBuilder instantiates a new ItemTeamChannelsItemJoinedUsersCountRequestBuilder and sets the default values. +func NewItemTeamChannelsItemJoinedUsersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemJoinedUsersCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsItemJoinedUsersCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamChannelsItemJoinedUsersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemJoinedUsersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamChannelsItemJoinedUsersCountRequestBuilder when successful +func (m *ItemTeamChannelsItemJoinedUsersCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsItemJoinedUsersCountRequestBuilder) { + return NewItemTeamChannelsItemJoinedUsersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_channels_item_joined_users_remove_post_request_body.go b/groups/item_team_channels_item_joined_users_remove_post_request_body.go new file mode 100644 index 00000000000..81b9b688780 --- /dev/null +++ b/groups/item_team_channels_item_joined_users_remove_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemTeamChannelsItemJoinedUsersRemovePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamChannelsItemJoinedUsersRemovePostRequestBody instantiates a new ItemTeamChannelsItemJoinedUsersRemovePostRequestBody and sets the default values. +func NewItemTeamChannelsItemJoinedUsersRemovePostRequestBody()(*ItemTeamChannelsItemJoinedUsersRemovePostRequestBody) { + m := &ItemTeamChannelsItemJoinedUsersRemovePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamChannelsItemJoinedUsersRemovePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamChannelsItemJoinedUsersRemovePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamChannelsItemJoinedUsersRemovePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemTeamChannelsItemJoinedUsersRemovePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemTeamChannelsItemJoinedUsersRemovePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamChannelsItemJoinedUsersRemovePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *ItemTeamChannelsItemJoinedUsersRemovePostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamChannelsItemJoinedUsersRemovePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamChannelsItemJoinedUsersRemovePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamChannelsItemJoinedUsersRemovePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *ItemTeamChannelsItemJoinedUsersRemovePostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type ItemTeamChannelsItemJoinedUsersRemovePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/groups/item_team_channels_item_joined_users_remove_post_response.go b/groups/item_team_channels_item_joined_users_remove_post_response.go new file mode 100644 index 00000000000..0132d2a45db --- /dev/null +++ b/groups/item_team_channels_item_joined_users_remove_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemTeamChannelsItemJoinedUsersRemovePostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemTeamChannelsItemJoinedUsersRemovePostResponse instantiates a new ItemTeamChannelsItemJoinedUsersRemovePostResponse and sets the default values. +func NewItemTeamChannelsItemJoinedUsersRemovePostResponse()(*ItemTeamChannelsItemJoinedUsersRemovePostResponse) { + m := &ItemTeamChannelsItemJoinedUsersRemovePostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemTeamChannelsItemJoinedUsersRemovePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamChannelsItemJoinedUsersRemovePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamChannelsItemJoinedUsersRemovePostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamChannelsItemJoinedUsersRemovePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *ItemTeamChannelsItemJoinedUsersRemovePostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamChannelsItemJoinedUsersRemovePostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemTeamChannelsItemJoinedUsersRemovePostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemTeamChannelsItemJoinedUsersRemovePostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/groups/item_team_channels_item_joined_users_remove_request_builder.go b/groups/item_team_channels_item_joined_users_remove_request_builder.go new file mode 100644 index 00000000000..af384d38ac1 --- /dev/null +++ b/groups/item_team_channels_item_joined_users_remove_request_builder.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsItemJoinedUsersRemoveRequestBuilder provides operations to call the remove method. +type ItemTeamChannelsItemJoinedUsersRemoveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamChannelsItemJoinedUsersRemoveRequestBuilderInternal instantiates a new ItemTeamChannelsItemJoinedUsersRemoveRequestBuilder and sets the default values. +func NewItemTeamChannelsItemJoinedUsersRemoveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemJoinedUsersRemoveRequestBuilder) { + m := &ItemTeamChannelsItemJoinedUsersRemoveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/joinedUsers/remove", pathParameters), + } + return m +} +// NewItemTeamChannelsItemJoinedUsersRemoveRequestBuilder instantiates a new ItemTeamChannelsItemJoinedUsersRemoveRequestBuilder and sets the default values. +func NewItemTeamChannelsItemJoinedUsersRemoveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemJoinedUsersRemoveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsItemJoinedUsersRemoveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// Deprecated: This method is obsolete. Use PostAsRemovePostResponse instead. +// returns a ItemTeamChannelsItemJoinedUsersRemoveResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *ItemTeamChannelsItemJoinedUsersRemoveRequestBuilder) Post(ctx context.Context, body ItemTeamChannelsItemJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemTeamChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(ItemTeamChannelsItemJoinedUsersRemoveResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamChannelsItemJoinedUsersRemoveResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamChannelsItemJoinedUsersRemoveResponseable), nil +} +// PostAsRemovePostResponse remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a ItemTeamChannelsItemJoinedUsersRemovePostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *ItemTeamChannelsItemJoinedUsersRemoveRequestBuilder) PostAsRemovePostResponse(ctx context.Context, body ItemTeamChannelsItemJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemTeamChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(ItemTeamChannelsItemJoinedUsersRemovePostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamChannelsItemJoinedUsersRemovePostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamChannelsItemJoinedUsersRemovePostResponseable), nil +} +// ToPostRequestInformation remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemJoinedUsersRemoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamChannelsItemJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemTeamChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamChannelsItemJoinedUsersRemoveRequestBuilder when successful +func (m *ItemTeamChannelsItemJoinedUsersRemoveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsItemJoinedUsersRemoveRequestBuilder) { + return NewItemTeamChannelsItemJoinedUsersRemoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_channels_item_joined_users_remove_response.go b/groups/item_team_channels_item_joined_users_remove_response.go new file mode 100644 index 00000000000..d9a586767f4 --- /dev/null +++ b/groups/item_team_channels_item_joined_users_remove_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemTeamChannelsItemJoinedUsersRemovePostResponseable instead. +type ItemTeamChannelsItemJoinedUsersRemoveResponse struct { + ItemTeamChannelsItemJoinedUsersRemovePostResponse +} +// NewItemTeamChannelsItemJoinedUsersRemoveResponse instantiates a new ItemTeamChannelsItemJoinedUsersRemoveResponse and sets the default values. +func NewItemTeamChannelsItemJoinedUsersRemoveResponse()(*ItemTeamChannelsItemJoinedUsersRemoveResponse) { + m := &ItemTeamChannelsItemJoinedUsersRemoveResponse{ + ItemTeamChannelsItemJoinedUsersRemovePostResponse: *NewItemTeamChannelsItemJoinedUsersRemovePostResponse(), + } + return m +} +// CreateItemTeamChannelsItemJoinedUsersRemoveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamChannelsItemJoinedUsersRemoveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamChannelsItemJoinedUsersRemoveResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemTeamChannelsItemJoinedUsersRemovePostResponseable instead. +type ItemTeamChannelsItemJoinedUsersRemoveResponseable interface { + ItemTeamChannelsItemJoinedUsersRemovePostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/groups/item_team_channels_item_joined_users_request_builder.go b/groups/item_team_channels_item_joined_users_request_builder.go new file mode 100644 index 00000000000..5cc8ae8c525 --- /dev/null +++ b/groups/item_team_channels_item_joined_users_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsItemJoinedUsersRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type ItemTeamChannelsItemJoinedUsersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsItemJoinedUsersRequestBuilderGetQueryParameters get joinedUsers from groups +type ItemTeamChannelsItemJoinedUsersRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemTeamChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamChannelsItemJoinedUsersRequestBuilderGetQueryParameters +} +// ItemTeamChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Add provides operations to call the add method. +// returns a *ItemTeamChannelsItemJoinedUsersAddRequestBuilder when successful +func (m *ItemTeamChannelsItemJoinedUsersRequestBuilder) Add()(*ItemTeamChannelsItemJoinedUsersAddRequestBuilder) { + return NewItemTeamChannelsItemJoinedUsersAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ByConversationMemberId provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *ItemTeamChannelsItemJoinedUsersRequestBuilder) ByConversationMemberId(conversationMemberId string)(*ItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if conversationMemberId != "" { + urlTplParams["conversationMember%2Did"] = conversationMemberId + } + return NewItemTeamChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemTeamChannelsItemJoinedUsersRequestBuilderInternal instantiates a new ItemTeamChannelsItemJoinedUsersRequestBuilder and sets the default values. +func NewItemTeamChannelsItemJoinedUsersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemJoinedUsersRequestBuilder) { + m := &ItemTeamChannelsItemJoinedUsersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/joinedUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemTeamChannelsItemJoinedUsersRequestBuilder instantiates a new ItemTeamChannelsItemJoinedUsersRequestBuilder and sets the default values. +func NewItemTeamChannelsItemJoinedUsersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemJoinedUsersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsItemJoinedUsersRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemTeamChannelsItemJoinedUsersCountRequestBuilder when successful +func (m *ItemTeamChannelsItemJoinedUsersRequestBuilder) Count()(*ItemTeamChannelsItemJoinedUsersCountRequestBuilder) { + return NewItemTeamChannelsItemJoinedUsersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get joinedUsers from groups +// returns a ConversationMemberCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamChannelsItemJoinedUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable), nil +} +// Post create new navigation property to joinedUsers for groups +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamChannelsItemJoinedUsersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Remove provides operations to call the remove method. +// returns a *ItemTeamChannelsItemJoinedUsersRemoveRequestBuilder when successful +func (m *ItemTeamChannelsItemJoinedUsersRequestBuilder) Remove()(*ItemTeamChannelsItemJoinedUsersRemoveRequestBuilder) { + return NewItemTeamChannelsItemJoinedUsersRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation get joinedUsers from groups +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemJoinedUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to joinedUsers for groups +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemJoinedUsersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamChannelsItemJoinedUsersRequestBuilder when successful +func (m *ItemTeamChannelsItemJoinedUsersRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsItemJoinedUsersRequestBuilder) { + return NewItemTeamChannelsItemJoinedUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_channels_item_planner_plans_item_history_items_count_request_builder.go b/groups/item_team_channels_item_planner_plans_item_history_items_count_request_builder.go new file mode 100644 index 00000000000..5479b41c039 --- /dev/null +++ b/groups/item_team_channels_item_planner_plans_item_history_items_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder provides operations to count the resources in the collection. +type ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters get the number of the resource +type ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters +} +// NewItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal instantiates a new ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + m := &ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/planner/plans/{plannerPlan%2Did}/historyItems/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder instantiates a new ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_channels_item_planner_plans_item_history_items_planner_history_item_item_request_builder.go b/groups/item_team_channels_item_planner_plans_item_history_items_planner_history_item_item_request_builder.go new file mode 100644 index 00000000000..2a35bddf0c4 --- /dev/null +++ b/groups/item_team_channels_item_planner_plans_item_history_items_planner_history_item_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters get historyItems from groups +type ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters +} +// ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal instantiates a new ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + m := &ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/planner/plans/{plannerPlan%2Did}/historyItems/{plannerHistoryItem%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder instantiates a new ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property historyItems for groups +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get historyItems from groups +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// Patch update the navigation property historyItems in groups +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToDeleteRequestInformation delete navigation property historyItems for groups +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get historyItems from groups +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property historyItems in groups +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + return NewItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_channels_item_planner_plans_item_history_items_request_builder.go b/groups/item_team_channels_item_planner_plans_item_history_items_request_builder.go new file mode 100644 index 00000000000..a8bd7f96ce7 --- /dev/null +++ b/groups/item_team_channels_item_planner_plans_item_history_items_request_builder.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters get historyItems from groups +type ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters +} +// ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByPlannerHistoryItemId provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) ByPlannerHistoryItemId(plannerHistoryItemId string)(*ItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if plannerHistoryItemId != "" { + urlTplParams["plannerHistoryItem%2Did"] = plannerHistoryItemId + } + return NewItemTeamChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal instantiates a new ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + m := &ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/planner/plans/{plannerPlan%2Did}/historyItems{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder instantiates a new ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) Count()(*ItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemTeamChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get historyItems from groups +// returns a PlannerHistoryItemCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable), nil +} +// Post create new navigation property to historyItems for groups +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToGetRequestInformation get historyItems from groups +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to historyItems for groups +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_channels_item_planner_plans_planner_plan_item_request_builder.go b/groups/item_team_channels_item_planner_plans_planner_plan_item_request_builder.go index b3200c4fa37..5e0a812d800 100644 --- a/groups/item_team_channels_item_planner_plans_planner_plan_item_request_builder.go +++ b/groups/item_team_channels_item_planner_plans_planner_plan_item_request_builder.go @@ -113,6 +113,11 @@ func (m *ItemTeamChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) Get(ctx func (m *ItemTeamChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) GetUsageRights()(*ItemTeamChannelsItemPlannerPlansItemGetUsageRightsRequestBuilder) { return NewItemTeamChannelsItemPlannerPlansItemGetUsageRightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// HistoryItems provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemTeamChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) HistoryItems()(*ItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemTeamChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MoveToContainer provides operations to call the moveToContainer method. // returns a *ItemTeamChannelsItemPlannerPlansItemMoveToContainerRequestBuilder when successful func (m *ItemTeamChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) MoveToContainer()(*ItemTeamChannelsItemPlannerPlansItemMoveToContainerRequestBuilder) { diff --git a/groups/item_team_primary_channel_archive_post_request_body.go b/groups/item_team_primary_channel_archive_post_request_body.go index 64082ece39a..97d7f9c4ebf 100644 --- a/groups/item_team_primary_channel_archive_post_request_body.go +++ b/groups/item_team_primary_channel_archive_post_request_body.go @@ -18,6 +18,8 @@ func NewItemTeamPrimaryChannelArchivePostRequestBody()(*ItemTeamPrimaryChannelAr } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + shouldSetSpoSiteReadOnlyForMembersValue := false + m.SetShouldSetSpoSiteReadOnlyForMembers(&shouldSetSpoSiteReadOnlyForMembersValue) return m } // CreateItemTeamPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_team_primary_channel_joined_users_add_post_request_body.go b/groups/item_team_primary_channel_joined_users_add_post_request_body.go new file mode 100644 index 00000000000..7a909db20c0 --- /dev/null +++ b/groups/item_team_primary_channel_joined_users_add_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemTeamPrimaryChannelJoinedUsersAddPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamPrimaryChannelJoinedUsersAddPostRequestBody instantiates a new ItemTeamPrimaryChannelJoinedUsersAddPostRequestBody and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersAddPostRequestBody()(*ItemTeamPrimaryChannelJoinedUsersAddPostRequestBody) { + m := &ItemTeamPrimaryChannelJoinedUsersAddPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamPrimaryChannelJoinedUsersAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamPrimaryChannelJoinedUsersAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamPrimaryChannelJoinedUsersAddPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemTeamPrimaryChannelJoinedUsersAddPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemTeamPrimaryChannelJoinedUsersAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamPrimaryChannelJoinedUsersAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *ItemTeamPrimaryChannelJoinedUsersAddPostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamPrimaryChannelJoinedUsersAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamPrimaryChannelJoinedUsersAddPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamPrimaryChannelJoinedUsersAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *ItemTeamPrimaryChannelJoinedUsersAddPostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type ItemTeamPrimaryChannelJoinedUsersAddPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/groups/item_team_primary_channel_joined_users_add_post_response.go b/groups/item_team_primary_channel_joined_users_add_post_response.go new file mode 100644 index 00000000000..b4b41194991 --- /dev/null +++ b/groups/item_team_primary_channel_joined_users_add_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemTeamPrimaryChannelJoinedUsersAddPostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemTeamPrimaryChannelJoinedUsersAddPostResponse instantiates a new ItemTeamPrimaryChannelJoinedUsersAddPostResponse and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersAddPostResponse()(*ItemTeamPrimaryChannelJoinedUsersAddPostResponse) { + m := &ItemTeamPrimaryChannelJoinedUsersAddPostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemTeamPrimaryChannelJoinedUsersAddPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamPrimaryChannelJoinedUsersAddPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamPrimaryChannelJoinedUsersAddPostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamPrimaryChannelJoinedUsersAddPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *ItemTeamPrimaryChannelJoinedUsersAddPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamPrimaryChannelJoinedUsersAddPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemTeamPrimaryChannelJoinedUsersAddPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemTeamPrimaryChannelJoinedUsersAddPostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/groups/item_team_primary_channel_joined_users_add_request_builder.go b/groups/item_team_primary_channel_joined_users_add_request_builder.go new file mode 100644 index 00000000000..6ec2a4739a8 --- /dev/null +++ b/groups/item_team_primary_channel_joined_users_add_request_builder.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamPrimaryChannelJoinedUsersAddRequestBuilder provides operations to call the add method. +type ItemTeamPrimaryChannelJoinedUsersAddRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamPrimaryChannelJoinedUsersAddRequestBuilderInternal instantiates a new ItemTeamPrimaryChannelJoinedUsersAddRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelJoinedUsersAddRequestBuilder) { + m := &ItemTeamPrimaryChannelJoinedUsersAddRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/joinedUsers/add", pathParameters), + } + return m +} +// NewItemTeamPrimaryChannelJoinedUsersAddRequestBuilder instantiates a new ItemTeamPrimaryChannelJoinedUsersAddRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelJoinedUsersAddRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamPrimaryChannelJoinedUsersAddRequestBuilderInternal(urlParams, requestAdapter) +} +// Post add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// Deprecated: This method is obsolete. Use PostAsAddPostResponse instead. +// returns a ItemTeamPrimaryChannelJoinedUsersAddResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *ItemTeamPrimaryChannelJoinedUsersAddRequestBuilder) Post(ctx context.Context, body ItemTeamPrimaryChannelJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration)(ItemTeamPrimaryChannelJoinedUsersAddResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamPrimaryChannelJoinedUsersAddResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamPrimaryChannelJoinedUsersAddResponseable), nil +} +// PostAsAddPostResponse add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a ItemTeamPrimaryChannelJoinedUsersAddPostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *ItemTeamPrimaryChannelJoinedUsersAddRequestBuilder) PostAsAddPostResponse(ctx context.Context, body ItemTeamPrimaryChannelJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration)(ItemTeamPrimaryChannelJoinedUsersAddPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamPrimaryChannelJoinedUsersAddPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamPrimaryChannelJoinedUsersAddPostResponseable), nil +} +// ToPostRequestInformation add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelJoinedUsersAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamPrimaryChannelJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamPrimaryChannelJoinedUsersAddRequestBuilder when successful +func (m *ItemTeamPrimaryChannelJoinedUsersAddRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelJoinedUsersAddRequestBuilder) { + return NewItemTeamPrimaryChannelJoinedUsersAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_primary_channel_joined_users_add_response.go b/groups/item_team_primary_channel_joined_users_add_response.go new file mode 100644 index 00000000000..24474b20889 --- /dev/null +++ b/groups/item_team_primary_channel_joined_users_add_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemTeamPrimaryChannelJoinedUsersAddPostResponseable instead. +type ItemTeamPrimaryChannelJoinedUsersAddResponse struct { + ItemTeamPrimaryChannelJoinedUsersAddPostResponse +} +// NewItemTeamPrimaryChannelJoinedUsersAddResponse instantiates a new ItemTeamPrimaryChannelJoinedUsersAddResponse and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersAddResponse()(*ItemTeamPrimaryChannelJoinedUsersAddResponse) { + m := &ItemTeamPrimaryChannelJoinedUsersAddResponse{ + ItemTeamPrimaryChannelJoinedUsersAddPostResponse: *NewItemTeamPrimaryChannelJoinedUsersAddPostResponse(), + } + return m +} +// CreateItemTeamPrimaryChannelJoinedUsersAddResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamPrimaryChannelJoinedUsersAddResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamPrimaryChannelJoinedUsersAddResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemTeamPrimaryChannelJoinedUsersAddPostResponseable instead. +type ItemTeamPrimaryChannelJoinedUsersAddResponseable interface { + ItemTeamPrimaryChannelJoinedUsersAddPostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/groups/item_team_primary_channel_joined_users_conversation_member_item_request_builder.go b/groups/item_team_primary_channel_joined_users_conversation_member_item_request_builder.go new file mode 100644 index 00000000000..c0926cf9975 --- /dev/null +++ b/groups/item_team_primary_channel_joined_users_conversation_member_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters get joinedUsers from groups +type ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters +} +// ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal instantiates a new ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + m := &ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/joinedUsers/{conversationMember%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder instantiates a new ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property joinedUsers for groups +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get joinedUsers from groups +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Patch update the navigation property joinedUsers in groups +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// ToDeleteRequestInformation delete navigation property joinedUsers for groups +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get joinedUsers from groups +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property joinedUsers in groups +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + return NewItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_primary_channel_joined_users_count_request_builder.go b/groups/item_team_primary_channel_joined_users_count_request_builder.go new file mode 100644 index 00000000000..8d64eb4ebae --- /dev/null +++ b/groups/item_team_primary_channel_joined_users_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamPrimaryChannelJoinedUsersCountRequestBuilder provides operations to count the resources in the collection. +type ItemTeamPrimaryChannelJoinedUsersCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamPrimaryChannelJoinedUsersCountRequestBuilderGetQueryParameters get the number of the resource +type ItemTeamPrimaryChannelJoinedUsersCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemTeamPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamPrimaryChannelJoinedUsersCountRequestBuilderGetQueryParameters +} +// NewItemTeamPrimaryChannelJoinedUsersCountRequestBuilderInternal instantiates a new ItemTeamPrimaryChannelJoinedUsersCountRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelJoinedUsersCountRequestBuilder) { + m := &ItemTeamPrimaryChannelJoinedUsersCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/joinedUsers/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemTeamPrimaryChannelJoinedUsersCountRequestBuilder instantiates a new ItemTeamPrimaryChannelJoinedUsersCountRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelJoinedUsersCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamPrimaryChannelJoinedUsersCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamPrimaryChannelJoinedUsersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelJoinedUsersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamPrimaryChannelJoinedUsersCountRequestBuilder when successful +func (m *ItemTeamPrimaryChannelJoinedUsersCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelJoinedUsersCountRequestBuilder) { + return NewItemTeamPrimaryChannelJoinedUsersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_primary_channel_joined_users_remove_post_request_body.go b/groups/item_team_primary_channel_joined_users_remove_post_request_body.go new file mode 100644 index 00000000000..27950d6ea1e --- /dev/null +++ b/groups/item_team_primary_channel_joined_users_remove_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamPrimaryChannelJoinedUsersRemovePostRequestBody instantiates a new ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBody and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersRemovePostRequestBody()(*ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBody) { + m := &ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamPrimaryChannelJoinedUsersRemovePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamPrimaryChannelJoinedUsersRemovePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamPrimaryChannelJoinedUsersRemovePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/groups/item_team_primary_channel_joined_users_remove_post_response.go b/groups/item_team_primary_channel_joined_users_remove_post_response.go new file mode 100644 index 00000000000..00e30c98aef --- /dev/null +++ b/groups/item_team_primary_channel_joined_users_remove_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemTeamPrimaryChannelJoinedUsersRemovePostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemTeamPrimaryChannelJoinedUsersRemovePostResponse instantiates a new ItemTeamPrimaryChannelJoinedUsersRemovePostResponse and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersRemovePostResponse()(*ItemTeamPrimaryChannelJoinedUsersRemovePostResponse) { + m := &ItemTeamPrimaryChannelJoinedUsersRemovePostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemTeamPrimaryChannelJoinedUsersRemovePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamPrimaryChannelJoinedUsersRemovePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamPrimaryChannelJoinedUsersRemovePostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamPrimaryChannelJoinedUsersRemovePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *ItemTeamPrimaryChannelJoinedUsersRemovePostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamPrimaryChannelJoinedUsersRemovePostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemTeamPrimaryChannelJoinedUsersRemovePostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemTeamPrimaryChannelJoinedUsersRemovePostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/groups/item_team_primary_channel_joined_users_remove_request_builder.go b/groups/item_team_primary_channel_joined_users_remove_request_builder.go new file mode 100644 index 00000000000..9019d0aa170 --- /dev/null +++ b/groups/item_team_primary_channel_joined_users_remove_request_builder.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder provides operations to call the remove method. +type ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilderInternal instantiates a new ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder) { + m := &ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/joinedUsers/remove", pathParameters), + } + return m +} +// NewItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder instantiates a new ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// Deprecated: This method is obsolete. Use PostAsRemovePostResponse instead. +// returns a ItemTeamPrimaryChannelJoinedUsersRemoveResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder) Post(ctx context.Context, body ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(ItemTeamPrimaryChannelJoinedUsersRemoveResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamPrimaryChannelJoinedUsersRemoveResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamPrimaryChannelJoinedUsersRemoveResponseable), nil +} +// PostAsRemovePostResponse remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a ItemTeamPrimaryChannelJoinedUsersRemovePostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder) PostAsRemovePostResponse(ctx context.Context, body ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(ItemTeamPrimaryChannelJoinedUsersRemovePostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamPrimaryChannelJoinedUsersRemovePostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamPrimaryChannelJoinedUsersRemovePostResponseable), nil +} +// ToPostRequestInformation remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamPrimaryChannelJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder when successful +func (m *ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder) { + return NewItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_primary_channel_joined_users_remove_response.go b/groups/item_team_primary_channel_joined_users_remove_response.go new file mode 100644 index 00000000000..1d962548bdc --- /dev/null +++ b/groups/item_team_primary_channel_joined_users_remove_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemTeamPrimaryChannelJoinedUsersRemovePostResponseable instead. +type ItemTeamPrimaryChannelJoinedUsersRemoveResponse struct { + ItemTeamPrimaryChannelJoinedUsersRemovePostResponse +} +// NewItemTeamPrimaryChannelJoinedUsersRemoveResponse instantiates a new ItemTeamPrimaryChannelJoinedUsersRemoveResponse and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersRemoveResponse()(*ItemTeamPrimaryChannelJoinedUsersRemoveResponse) { + m := &ItemTeamPrimaryChannelJoinedUsersRemoveResponse{ + ItemTeamPrimaryChannelJoinedUsersRemovePostResponse: *NewItemTeamPrimaryChannelJoinedUsersRemovePostResponse(), + } + return m +} +// CreateItemTeamPrimaryChannelJoinedUsersRemoveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamPrimaryChannelJoinedUsersRemoveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamPrimaryChannelJoinedUsersRemoveResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemTeamPrimaryChannelJoinedUsersRemovePostResponseable instead. +type ItemTeamPrimaryChannelJoinedUsersRemoveResponseable interface { + ItemTeamPrimaryChannelJoinedUsersRemovePostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/groups/item_team_primary_channel_joined_users_request_builder.go b/groups/item_team_primary_channel_joined_users_request_builder.go new file mode 100644 index 00000000000..1a8fe8e28bf --- /dev/null +++ b/groups/item_team_primary_channel_joined_users_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamPrimaryChannelJoinedUsersRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type ItemTeamPrimaryChannelJoinedUsersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamPrimaryChannelJoinedUsersRequestBuilderGetQueryParameters get joinedUsers from groups +type ItemTeamPrimaryChannelJoinedUsersRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemTeamPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamPrimaryChannelJoinedUsersRequestBuilderGetQueryParameters +} +// ItemTeamPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Add provides operations to call the add method. +// returns a *ItemTeamPrimaryChannelJoinedUsersAddRequestBuilder when successful +func (m *ItemTeamPrimaryChannelJoinedUsersRequestBuilder) Add()(*ItemTeamPrimaryChannelJoinedUsersAddRequestBuilder) { + return NewItemTeamPrimaryChannelJoinedUsersAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ByConversationMemberId provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *ItemTeamPrimaryChannelJoinedUsersRequestBuilder) ByConversationMemberId(conversationMemberId string)(*ItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if conversationMemberId != "" { + urlTplParams["conversationMember%2Did"] = conversationMemberId + } + return NewItemTeamPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemTeamPrimaryChannelJoinedUsersRequestBuilderInternal instantiates a new ItemTeamPrimaryChannelJoinedUsersRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelJoinedUsersRequestBuilder) { + m := &ItemTeamPrimaryChannelJoinedUsersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/joinedUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemTeamPrimaryChannelJoinedUsersRequestBuilder instantiates a new ItemTeamPrimaryChannelJoinedUsersRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelJoinedUsersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelJoinedUsersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamPrimaryChannelJoinedUsersRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemTeamPrimaryChannelJoinedUsersCountRequestBuilder when successful +func (m *ItemTeamPrimaryChannelJoinedUsersRequestBuilder) Count()(*ItemTeamPrimaryChannelJoinedUsersCountRequestBuilder) { + return NewItemTeamPrimaryChannelJoinedUsersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get joinedUsers from groups +// returns a ConversationMemberCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamPrimaryChannelJoinedUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable), nil +} +// Post create new navigation property to joinedUsers for groups +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamPrimaryChannelJoinedUsersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Remove provides operations to call the remove method. +// returns a *ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder when successful +func (m *ItemTeamPrimaryChannelJoinedUsersRequestBuilder) Remove()(*ItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilder) { + return NewItemTeamPrimaryChannelJoinedUsersRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation get joinedUsers from groups +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelJoinedUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to joinedUsers for groups +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelJoinedUsersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamPrimaryChannelJoinedUsersRequestBuilder when successful +func (m *ItemTeamPrimaryChannelJoinedUsersRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelJoinedUsersRequestBuilder) { + return NewItemTeamPrimaryChannelJoinedUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_primary_channel_planner_plans_item_history_items_count_request_builder.go b/groups/item_team_primary_channel_planner_plans_item_history_items_count_request_builder.go new file mode 100644 index 00000000000..62f7d0b798c --- /dev/null +++ b/groups/item_team_primary_channel_planner_plans_item_history_items_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder provides operations to count the resources in the collection. +type ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters get the number of the resource +type ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters +} +// NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal instantiates a new ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + m := &ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/planner/plans/{plannerPlan%2Did}/historyItems/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder instantiates a new ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_primary_channel_planner_plans_item_history_items_planner_history_item_item_request_builder.go b/groups/item_team_primary_channel_planner_plans_item_history_items_planner_history_item_item_request_builder.go new file mode 100644 index 00000000000..38d5e6295d1 --- /dev/null +++ b/groups/item_team_primary_channel_planner_plans_item_history_items_planner_history_item_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters get historyItems from groups +type ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters +} +// ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal instantiates a new ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + m := &ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/planner/plans/{plannerPlan%2Did}/historyItems/{plannerHistoryItem%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder instantiates a new ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property historyItems for groups +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get historyItems from groups +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// Patch update the navigation property historyItems in groups +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToDeleteRequestInformation delete navigation property historyItems for groups +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get historyItems from groups +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property historyItems in groups +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + return NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_primary_channel_planner_plans_item_history_items_request_builder.go b/groups/item_team_primary_channel_planner_plans_item_history_items_request_builder.go new file mode 100644 index 00000000000..938ad02e1fc --- /dev/null +++ b/groups/item_team_primary_channel_planner_plans_item_history_items_request_builder.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters get historyItems from groups +type ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters +} +// ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByPlannerHistoryItemId provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) ByPlannerHistoryItemId(plannerHistoryItemId string)(*ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if plannerHistoryItemId != "" { + urlTplParams["plannerHistoryItem%2Did"] = plannerHistoryItemId + } + return NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal instantiates a new ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + m := &ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/planner/plans/{plannerPlan%2Did}/historyItems{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder instantiates a new ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) Count()(*ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get historyItems from groups +// returns a PlannerHistoryItemCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable), nil +} +// Post create new navigation property to historyItems for groups +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToGetRequestInformation get historyItems from groups +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to historyItems for groups +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_primary_channel_planner_plans_planner_plan_item_request_builder.go b/groups/item_team_primary_channel_planner_plans_planner_plan_item_request_builder.go index 7bb4ba7515d..b4b7460e02c 100644 --- a/groups/item_team_primary_channel_planner_plans_planner_plan_item_request_builder.go +++ b/groups/item_team_primary_channel_planner_plans_planner_plan_item_request_builder.go @@ -113,6 +113,11 @@ func (m *ItemTeamPrimaryChannelPlannerPlansPlannerPlanItemRequestBuilder) Get(ct func (m *ItemTeamPrimaryChannelPlannerPlansPlannerPlanItemRequestBuilder) GetUsageRights()(*ItemTeamPrimaryChannelPlannerPlansItemGetUsageRightsRequestBuilder) { return NewItemTeamPrimaryChannelPlannerPlansItemGetUsageRightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// HistoryItems provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemTeamPrimaryChannelPlannerPlansPlannerPlanItemRequestBuilder) HistoryItems()(*ItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemTeamPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MoveToContainer provides operations to call the moveToContainer method. // returns a *ItemTeamPrimaryChannelPlannerPlansItemMoveToContainerRequestBuilder when successful func (m *ItemTeamPrimaryChannelPlannerPlansPlannerPlanItemRequestBuilder) MoveToContainer()(*ItemTeamPrimaryChannelPlannerPlansItemMoveToContainerRequestBuilder) { diff --git a/groups/item_team_primary_channel_request_builder.go b/groups/item_team_primary_channel_request_builder.go index 153d439d04e..d39082433f0 100644 --- a/groups/item_team_primary_channel_request_builder.go +++ b/groups/item_team_primary_channel_request_builder.go @@ -123,6 +123,11 @@ func (m *ItemTeamPrimaryChannelRequestBuilder) Get(ctx context.Context, requestC } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Channelable), nil } +// JoinedUsers provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *ItemTeamPrimaryChannelJoinedUsersRequestBuilder when successful +func (m *ItemTeamPrimaryChannelRequestBuilder) JoinedUsers()(*ItemTeamPrimaryChannelJoinedUsersRequestBuilder) { + return NewItemTeamPrimaryChannelJoinedUsersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Members provides operations to manage the members property of the microsoft.graph.channel entity. // returns a *ItemTeamPrimaryChannelMembersRequestBuilder when successful func (m *ItemTeamPrimaryChannelRequestBuilder) Members()(*ItemTeamPrimaryChannelMembersRequestBuilder) { diff --git a/groups/item_team_schedule_share_post_request_body.go b/groups/item_team_schedule_share_post_request_body.go index b1f0ad97284..4724e518fe4 100644 --- a/groups/item_team_schedule_share_post_request_body.go +++ b/groups/item_team_schedule_share_post_request_body.go @@ -19,6 +19,8 @@ func NewItemTeamScheduleSharePostRequestBody()(*ItemTeamScheduleSharePostRequest } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + notifyTeamValue := false + m.SetNotifyTeam(¬ifyTeamValue) return m } // CreateItemTeamScheduleSharePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_team_schedule_time_cards_clock_in_post_request_body.go b/groups/item_team_schedule_time_cards_clock_in_post_request_body.go index 65179767522..83f2753425b 100644 --- a/groups/item_team_schedule_time_cards_clock_in_post_request_body.go +++ b/groups/item_team_schedule_time_cards_clock_in_post_request_body.go @@ -19,6 +19,10 @@ func NewItemTeamScheduleTimeCardsClockInPostRequestBody()(*ItemTeamScheduleTimeC } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateItemTeamScheduleTimeCardsClockInPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_team_schedule_time_cards_item_clock_out_post_request_body.go b/groups/item_team_schedule_time_cards_item_clock_out_post_request_body.go index f78d4585359..2500982012e 100644 --- a/groups/item_team_schedule_time_cards_item_clock_out_post_request_body.go +++ b/groups/item_team_schedule_time_cards_item_clock_out_post_request_body.go @@ -19,6 +19,10 @@ func NewItemTeamScheduleTimeCardsItemClockOutPostRequestBody()(*ItemTeamSchedule } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateItemTeamScheduleTimeCardsItemClockOutPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_team_schedule_time_cards_item_end_break_post_request_body.go b/groups/item_team_schedule_time_cards_item_end_break_post_request_body.go index 504ddde177e..f8804fcc06f 100644 --- a/groups/item_team_schedule_time_cards_item_end_break_post_request_body.go +++ b/groups/item_team_schedule_time_cards_item_end_break_post_request_body.go @@ -19,6 +19,10 @@ func NewItemTeamScheduleTimeCardsItemEndBreakPostRequestBody()(*ItemTeamSchedule } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateItemTeamScheduleTimeCardsItemEndBreakPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/groups/item_team_schedule_time_cards_item_start_break_post_request_body.go b/groups/item_team_schedule_time_cards_item_start_break_post_request_body.go index 27c208704ad..91b6efb6c8a 100644 --- a/groups/item_team_schedule_time_cards_item_start_break_post_request_body.go +++ b/groups/item_team_schedule_time_cards_item_start_break_post_request_body.go @@ -19,6 +19,10 @@ func NewItemTeamScheduleTimeCardsItemStartBreakPostRequestBody()(*ItemTeamSchedu } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateItemTeamScheduleTimeCardsItemStartBreakPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/identity/b2c_user_flows_item_identity_providers_ref_request_builder.go b/identity/b2c_user_flows_item_identity_providers_ref_request_builder.go index 21e6cec6f5b..4f1b25c8642 100644 --- a/identity/b2c_user_flows_item_identity_providers_ref_request_builder.go +++ b/identity/b2c_user_flows_item_identity_providers_ref_request_builder.go @@ -62,7 +62,7 @@ type B2cUserFlowsItemIdentityProvidersRefRequestBuilderPostRequestConfiguration // NewB2cUserFlowsItemIdentityProvidersRefRequestBuilderInternal instantiates a new B2cUserFlowsItemIdentityProvidersRefRequestBuilder and sets the default values. func NewB2cUserFlowsItemIdentityProvidersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*B2cUserFlowsItemIdentityProvidersRefRequestBuilder) { m := &B2cUserFlowsItemIdentityProvidersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/identityProviders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/identityProviders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -155,7 +155,7 @@ func (m *B2cUserFlowsItemIdentityProvidersRefRequestBuilder) ToDeleteRequestInfo // Deprecated: The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider on 2021-08-24 and will be removed 2023-03-15 // returns a *RequestInformation when successful func (m *B2cUserFlowsItemIdentityProvidersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *B2cUserFlowsItemIdentityProvidersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/identityProviders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -170,7 +170,7 @@ func (m *B2cUserFlowsItemIdentityProvidersRefRequestBuilder) ToGetRequestInforma // Deprecated: The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider on 2021-08-24 and will be removed 2023-03-15 // returns a *RequestInformation when successful func (m *B2cUserFlowsItemIdentityProvidersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *B2cUserFlowsItemIdentityProvidersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/identityProviders/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/identity/b2x_user_flows_item_user_flow_identity_providers_ref_request_builder.go b/identity/b2x_user_flows_item_user_flow_identity_providers_ref_request_builder.go index 5f435d7a99d..5170a8420b8 100644 --- a/identity/b2x_user_flows_item_user_flow_identity_providers_ref_request_builder.go +++ b/identity/b2x_user_flows_item_user_flow_identity_providers_ref_request_builder.go @@ -62,7 +62,7 @@ type B2xUserFlowsItemUserFlowIdentityProvidersRefRequestBuilderPostRequestConfig // NewB2xUserFlowsItemUserFlowIdentityProvidersRefRequestBuilderInternal instantiates a new B2xUserFlowsItemUserFlowIdentityProvidersRefRequestBuilder and sets the default values. func NewB2xUserFlowsItemUserFlowIdentityProvidersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*B2xUserFlowsItemUserFlowIdentityProvidersRefRequestBuilder) { m := &B2xUserFlowsItemUserFlowIdentityProvidersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *B2xUserFlowsItemUserFlowIdentityProvidersRefRequestBuilder) ToDeleteReq // ToGetRequestInformation get ref of userFlowIdentityProviders from identity // returns a *RequestInformation when successful func (m *B2xUserFlowsItemUserFlowIdentityProvidersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *B2xUserFlowsItemUserFlowIdentityProvidersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *B2xUserFlowsItemUserFlowIdentityProvidersRefRequestBuilder) ToGetReques // ToPostRequestInformation create new navigation property ref to userFlowIdentityProviders for identity // returns a *RequestInformation when successful func (m *B2xUserFlowsItemUserFlowIdentityProvidersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *B2xUserFlowsItemUserFlowIdentityProvidersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/identity/b618f466901cc8a9d7ba5fde41e3a89892087495df28ff5a8c43740d5ca2d6b3.go b/identity/b618f466901cc8a9d7ba5fde41e3a89892087495df28ff5a8c43740d5ca2d6b3.go index 82396da6be3..ce607507de7 100644 --- a/identity/b618f466901cc8a9d7ba5fde41e3a89892087495df28ff5a8c43740d5ca2d6b3.go +++ b/identity/b618f466901cc8a9d7ba5fde41e3a89892087495df28ff5a8c43740d5ca2d6b3.go @@ -62,7 +62,7 @@ type AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowO // NewAuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilderInternal instantiates a new AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilder and sets the default values. func NewAuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilder) { m := &AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -147,7 +147,7 @@ func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsF // ToGetRequestInformation get an identityUserFlowAttribute collection associated with an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the attributes that are collected from the user during the authentication experience that's defined by the user flow. // returns a *RequestInformation when successful func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -161,7 +161,7 @@ func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsF // ToPostRequestInformation add an attribute to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. The attribute is added to both the attributeCollection> attributes and attributeCollection> attributeCollectionPage > views collections on the user flow. In the views collection, the attribute is assigned the default settings. You can PATCH the user flow to customize the settings of the attribute on the views object, for example, marking it as required or updating the allowed input types. // returns a *RequestInformation when successful func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/identity/conditional_access_authentication_strength_policies_item_usage_request_builder.go b/identity/conditional_access_authentication_strength_policies_item_usage_request_builder.go index 97f3e5293e1..8217c598e38 100644 --- a/identity/conditional_access_authentication_strength_policies_item_usage_request_builder.go +++ b/identity/conditional_access_authentication_strength_policies_item_usage_request_builder.go @@ -34,7 +34,7 @@ func NewConditionalAccessAuthenticationStrengthPoliciesItemUsageRequestBuilder(r urlParams["request-raw-url"] = rawUrl return NewConditionalAccessAuthenticationStrengthPoliciesItemUsageRequestBuilderInternal(urlParams, requestAdapter) } -// Get the usage function allows the caller to see which Conditional Access policies reference a specified authentication strength policy. The policies are returned in two collections, one containing Conditional Access policies that require an MFA claim and the other containing Conditional Access policies that do not require such a claim. Policies in the former category are restricted in what kinds of changes may be made to them to prevent undermining the MFA requirement of those policies. +// Get the usage function allows the caller to see which Conditional Access policies reference a specified authentication strength policy. The policies are returned in two collections, one containing Conditional Access policies that require an MFA claim and the other containing Conditional Access policies that don't require such a claim. Policies in the former category are restricted in what kinds of changes may be made to them to prevent undermining the MFA requirement of those policies. // returns a AuthenticationStrengthUsageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -57,7 +57,7 @@ func (m *ConditionalAccessAuthenticationStrengthPoliciesItemUsageRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationStrengthUsageable), nil } -// ToGetRequestInformation the usage function allows the caller to see which Conditional Access policies reference a specified authentication strength policy. The policies are returned in two collections, one containing Conditional Access policies that require an MFA claim and the other containing Conditional Access policies that do not require such a claim. Policies in the former category are restricted in what kinds of changes may be made to them to prevent undermining the MFA requirement of those policies. +// ToGetRequestInformation the usage function allows the caller to see which Conditional Access policies reference a specified authentication strength policy. The policies are returned in two collections, one containing Conditional Access policies that require an MFA claim and the other containing Conditional Access policies that don't require such a claim. Policies in the former category are restricted in what kinds of changes may be made to them to prevent undermining the MFA requirement of those policies. // returns a *RequestInformation when successful func (m *ConditionalAccessAuthenticationStrengthPoliciesItemUsageRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConditionalAccessAuthenticationStrengthPoliciesItemUsageRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identity/conditional_access_authentication_strengths_policies_item_usage_request_builder.go b/identity/conditional_access_authentication_strengths_policies_item_usage_request_builder.go index 781bfaed9d6..0493861c95b 100644 --- a/identity/conditional_access_authentication_strengths_policies_item_usage_request_builder.go +++ b/identity/conditional_access_authentication_strengths_policies_item_usage_request_builder.go @@ -34,7 +34,7 @@ func NewConditionalAccessAuthenticationStrengthsPoliciesItemUsageRequestBuilder( urlParams["request-raw-url"] = rawUrl return NewConditionalAccessAuthenticationStrengthsPoliciesItemUsageRequestBuilderInternal(urlParams, requestAdapter) } -// Get the usage function allows the caller to see which Conditional Access policies reference a specified authentication strength policy. The policies are returned in two collections, one containing Conditional Access policies that require an MFA claim and the other containing Conditional Access policies that do not require such a claim. Policies in the former category are restricted in what kinds of changes may be made to them to prevent undermining the MFA requirement of those policies. +// Get the usage function allows the caller to see which Conditional Access policies reference a specified authentication strength policy. The policies are returned in two collections, one containing Conditional Access policies that require an MFA claim and the other containing Conditional Access policies that don't require such a claim. Policies in the former category are restricted in what kinds of changes may be made to them to prevent undermining the MFA requirement of those policies. // Deprecated: The 'authenticationStrengths' segment is deprecated. Please use 'authenticationStrength' instead. as of 2023-02/AuthenticationStrengthsRemove on 2023-02-01 and will be removed 2023-03-31 // returns a AuthenticationStrengthUsageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -58,7 +58,7 @@ func (m *ConditionalAccessAuthenticationStrengthsPoliciesItemUsageRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationStrengthUsageable), nil } -// ToGetRequestInformation the usage function allows the caller to see which Conditional Access policies reference a specified authentication strength policy. The policies are returned in two collections, one containing Conditional Access policies that require an MFA claim and the other containing Conditional Access policies that do not require such a claim. Policies in the former category are restricted in what kinds of changes may be made to them to prevent undermining the MFA requirement of those policies. +// ToGetRequestInformation the usage function allows the caller to see which Conditional Access policies reference a specified authentication strength policy. The policies are returned in two collections, one containing Conditional Access policies that require an MFA claim and the other containing Conditional Access policies that don't require such a claim. Policies in the former category are restricted in what kinds of changes may be made to them to prevent undermining the MFA requirement of those policies. // Deprecated: The 'authenticationStrengths' segment is deprecated. Please use 'authenticationStrength' instead. as of 2023-02/AuthenticationStrengthsRemove on 2023-02-01 and will be removed 2023-03-31 // returns a *RequestInformation when successful func (m *ConditionalAccessAuthenticationStrengthsPoliciesItemUsageRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConditionalAccessAuthenticationStrengthsPoliciesItemUsageRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/identity/conditional_access_evaluate_post_request_body.go b/identity/conditional_access_evaluate_post_request_body.go index e06f0a8be98..4836cf3f150 100644 --- a/identity/conditional_access_evaluate_post_request_body.go +++ b/identity/conditional_access_evaluate_post_request_body.go @@ -19,6 +19,8 @@ func NewConditionalAccessEvaluatePostRequestBody()(*ConditionalAccessEvaluatePos } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + appliedPoliciesOnlyValue := false + m.SetAppliedPoliciesOnly(&appliedPoliciesOnlyValue) return m } // CreateConditionalAccessEvaluatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/identity/d97c07f3f60cb41364d506c241a69b0cf70bdf71b3edde814d3a6f4d3b78ad70.go b/identity/d97c07f3f60cb41364d506c241a69b0cf70bdf71b3edde814d3a6f4d3b78ad70.go index f09065da6c9..4003d632e84 100644 --- a/identity/d97c07f3f60cb41364d506c241a69b0cf70bdf71b3edde814d3a6f4d3b78ad70.go +++ b/identity/d97c07f3f60cb41364d506c241a69b0cf70bdf71b3edde814d3a6f4d3b78ad70.go @@ -62,7 +62,7 @@ type AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowO // NewAuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartGraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpIdentityProvidersRefRequestBuilderInternal instantiates a new AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartGraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpIdentityProvidersRefRequestBuilder and sets the default values. func NewAuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartGraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpIdentityProvidersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartGraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpIdentityProvidersRefRequestBuilder) { m := &AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartGraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpIdentityProvidersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -147,7 +147,7 @@ func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsF // ToGetRequestInformation get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object type. // returns a *RequestInformation when successful func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartGraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpIdentityProvidersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartGraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpIdentityProvidersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -161,7 +161,7 @@ func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsF // ToPostRequestInformation add an identity provider to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object type. The identity provider must first be configured in the tenant. // returns a *RequestInformation when successful func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartGraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpIdentityProvidersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartGraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpIdentityProvidersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/identitygovernance/03825170fd4e44a7130667914cd460ee0820b0df22aed6429ba95dbeeb521260.go b/identitygovernance/03825170fd4e44a7130667914cd460ee0820b0df22aed6429ba95dbeeb521260.go new file mode 100644 index 00000000000..dce3547e3b6 --- /dev/null +++ b/identitygovernance/03825170fd4e44a7130667914cd460ee0820b0df22aed6429ba95dbeeb521260.go @@ -0,0 +1,84 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder provides operations to manage the task property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetQueryParameters the related workflow task +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/task{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the related workflow task +// returns a Taskable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Taskable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Taskable), nil +} +// ToGetRequestInformation the related workflow task +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/0bdbcefb47a34ec99a0561fdac1e07c8077c930a24a6b9ca87626c798ca2bf78.go b/identitygovernance/0bdbcefb47a34ec99a0561fdac1e07c8077c930a24a6b9ca87626c798ca2bf78.go new file mode 100644 index 00000000000..7088f9a873a --- /dev/null +++ b/identitygovernance/0bdbcefb47a34ec99a0561fdac1e07c8077c930a24a6b9ca87626c798ca2bf78.go @@ -0,0 +1,74 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder provides operations to call the resume method. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/microsoft.graph.identityGovernance.resume", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/identitygovernance-taskprocessingresult-resume?view=graph-rest-beta +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) Post(ctx context.Context, body LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) ToPostRequestInformation(ctx context.Context, body LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/15d3ed44ee023a5d1768669ba0c2fe603365b6220d46f9a130825fd7a1771c76.go b/identitygovernance/15d3ed44ee023a5d1768669ba0c2fe603365b6220d46f9a130825fd7a1771c76.go index 05af89ba1b3..726c3442a2f 100644 --- a/identitygovernance/15d3ed44ee023a5d1768669ba0c2fe603365b6220d46f9a130825fd7a1771c76.go +++ b/identitygovernance/15d3ed44ee023a5d1768669ba0c2fe603365b6220d46f9a130825fd7a1771c76.go @@ -41,7 +41,7 @@ func NewLifecycleWorkflowsInsightsMicrosoftGraphIdentityGovernanceWorkflowsProce urlParams["request-raw-url"] = rawUrl return NewLifecycleWorkflowsInsightsMicrosoftGraphIdentityGovernanceWorkflowsProcessedSummaryWithStartDateTimeWithEndDateTimeRequestBuilderInternal(urlParams, requestAdapter, nil, nil) } -// Get provide a summary of all workflows processed within a tenant for a specified period. Because the amount of results for listed workflows as returned by the List workflows does not tell you which workflows were processed from the list of created workflows, this summary gives you a quick overview of processed status based on counts. +// Get provide a summary of all workflows processed within a tenant for a specified period. Because the amount of results for listed workflows as returned by the List workflows doesn't tell you which workflows were processed from the list of created workflows, this summary gives you a quick overview of processed status based on counts. // returns a WorkflowsInsightsSummaryable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -64,7 +64,7 @@ func (m *LifecycleWorkflowsInsightsMicrosoftGraphIdentityGovernanceWorkflowsProc } return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.WorkflowsInsightsSummaryable), nil } -// ToGetRequestInformation provide a summary of all workflows processed within a tenant for a specified period. Because the amount of results for listed workflows as returned by the List workflows does not tell you which workflows were processed from the list of created workflows, this summary gives you a quick overview of processed status based on counts. +// ToGetRequestInformation provide a summary of all workflows processed within a tenant for a specified period. Because the amount of results for listed workflows as returned by the List workflows doesn't tell you which workflows were processed from the list of created workflows, this summary gives you a quick overview of processed status based on counts. // returns a *RequestInformation when successful func (m *LifecycleWorkflowsInsightsMicrosoftGraphIdentityGovernanceWorkflowsProcessedSummaryWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsInsightsMicrosoftGraphIdentityGovernanceWorkflowsProcessedSummaryWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/1b73a2cccd3f43cd455bad1dbc496d0234a380590ce3cac2b50d67f92b92a018.go b/identitygovernance/1b73a2cccd3f43cd455bad1dbc496d0234a380590ce3cac2b50d67f92b92a018.go new file mode 100644 index 00000000000..37ab99021c7 --- /dev/null +++ b/identitygovernance/1b73a2cccd3f43cd455bad1dbc496d0234a380590ce3cac2b50d67f92b92a018.go @@ -0,0 +1,117 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +type LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody instantiates a new LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody()(*LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) { + m := &LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["subject"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateWorkflowSubjectFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSubject(val.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.WorkflowSubjectable)) + } + return nil + } + return res +} +// GetSubject gets the subject property value. The subject property +// returns a WorkflowSubjectable when successful +func (m *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) GetSubject()(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.WorkflowSubjectable) { + val, err := m.GetBackingStore().Get("subject") + if err != nil { + panic(err) + } + if val != nil { + return val.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.WorkflowSubjectable) + } + return nil +} +// Serialize serializes information the current object +func (m *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("subject", m.GetSubject()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetSubject sets the subject property value. The subject property +func (m *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) SetSubject(value i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.WorkflowSubjectable)() { + err := m.GetBackingStore().Set("subject", value) + if err != nil { + panic(err) + } +} +type LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetSubject()(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.WorkflowSubjectable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetSubject(value i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.WorkflowSubjectable)() +} diff --git a/identitygovernance/211238dc66f267460f42c72f90e908fe282df75b4968ec6ae6a27cdcbfcd1531.go b/identitygovernance/211238dc66f267460f42c72f90e908fe282df75b4968ec6ae6a27cdcbfcd1531.go new file mode 100644 index 00000000000..a06d5a2c074 --- /dev/null +++ b/identitygovernance/211238dc66f267460f42c72f90e908fe282df75b4968ec6ae6a27cdcbfcd1531.go @@ -0,0 +1,113 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetQueryParameters the task-level processing results for this subject. Read-only. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetQueryParameters +} +// ByTaskProcessingResultId provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) ByTaskProcessingResultId(taskProcessingResultId string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if taskProcessingResultId != "" { + urlTplParams["taskProcessingResult%2Did"] = taskProcessingResultId + } + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) Count()(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the task-level processing results for this subject. Read-only. +// returns a TaskProcessingResultCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateTaskProcessingResultCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultCollectionResponseable), nil +} +// ToGetRequestInformation the task-level processing results for this subject. Read-only. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/249ab2e9a7c91ee8c145a6597596ca09cd3af299e8a4593a235ffcbb14a9f818.go b/identitygovernance/249ab2e9a7c91ee8c145a6597596ca09cd3af299e8a4593a235ffcbb14a9f818.go new file mode 100644 index 00000000000..b676c43080c --- /dev/null +++ b/identitygovernance/249ab2e9a7c91ee8c145a6597596ca09cd3af299e8a4593a235ffcbb14a9f818.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/26e16ceb381868ac9d6802b554fcdeeeb054992ff5b14b020fe4b44447465ec6.go b/identitygovernance/26e16ceb381868ac9d6802b554fcdeeeb054992ff5b14b020fe4b44447465ec6.go new file mode 100644 index 00000000000..5671b00b16e --- /dev/null +++ b/identitygovernance/26e16ceb381868ac9d6802b554fcdeeeb054992ff5b14b020fe4b44447465ec6.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/276807f50bb6c20ecc25404afa13a624c00e4b3542bf45921d33610e68a1a645.go b/identitygovernance/276807f50bb6c20ecc25404afa13a624c00e4b3542bf45921d33610e68a1a645.go new file mode 100644 index 00000000000..09038b9c5db --- /dev/null +++ b/identitygovernance/276807f50bb6c20ecc25404afa13a624c00e4b3542bf45921d33610e68a1a645.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/27f41a0baf9d331fb951ad08e8057f34c3a777e1290dcb82732b4dbed9ac98ce.go b/identitygovernance/27f41a0baf9d331fb951ad08e8057f34c3a777e1290dcb82732b4dbed9ac98ce.go new file mode 100644 index 00000000000..d164bcd815c --- /dev/null +++ b/identitygovernance/27f41a0baf9d331fb951ad08e8057f34c3a777e1290dcb82732b4dbed9ac98ce.go @@ -0,0 +1,74 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder provides operations to call the resume method. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/microsoft.graph.identityGovernance.resume", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/identitygovernance-taskprocessingresult-resume?view=graph-rest-beta +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) Post(ctx context.Context, body LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyable, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) ToPostRequestInformation(ctx context.Context, body LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyable, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/2b75f917bf8a3e19c629e8b571e7b5ae8ec32785b09c42e1f8ca6ac7ae7a6d53.go b/identitygovernance/2b75f917bf8a3e19c629e8b571e7b5ae8ec32785b09c42e1f8ca6ac7ae7a6d53.go new file mode 100644 index 00000000000..308b18315ab --- /dev/null +++ b/identitygovernance/2b75f917bf8a3e19c629e8b571e7b5ae8ec32785b09c42e1f8ca6ac7ae7a6d53.go @@ -0,0 +1,126 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\mailboxSettings +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetQueryParameters settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Requires $select to retrieve. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetQueryParameters +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/mailboxSettings{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Requires $select to retrieve. +// returns a MailboxSettingsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil +} +// Patch update property mailboxSettings value. +// returns a MailboxSettingsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil +} +// ToGetRequestInformation settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Requires $select to retrieve. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update property mailboxSettings value. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/305677e0df367635b5aed5f49abefa2b020d51aa602909105e17182ef9b9a62e.go b/identitygovernance/305677e0df367635b5aed5f49abefa2b020d51aa602909105e17182ef9b9a62e.go index e262b6404e1..d7d31122950 100644 --- a/identitygovernance/305677e0df367635b5aed5f49abefa2b020d51aa602909105e17182ef9b9a62e.go +++ b/identitygovernance/305677e0df367635b5aed5f49abefa2b020d51aa602909105e17182ef9b9a62e.go @@ -62,7 +62,7 @@ type EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleG // NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderInternal instantiates a new EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilder and sets the default values. func NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilder) { m := &EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleGroups/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati // ToGetRequestInformation the groups whose members are ineligible to be assigned this access package. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati // ToPostRequestInformation create new navigation property ref to incompatibleGroups for identityGovernance // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleGroupsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleGroups/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/identitygovernance/306f6877ff97931438f6f388555091c886b9385ca3af094c8a6e4a99f3a3f93b.go b/identitygovernance/306f6877ff97931438f6f388555091c886b9385ca3af094c8a6e4a99f3a3f93b.go new file mode 100644 index 00000000000..aac28e3a238 --- /dev/null +++ b/identitygovernance/306f6877ff97931438f6f388555091c886b9385ca3af094c8a6e4a99f3a3f93b.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/316ae7a5903f129cead8061a59ef14b146e9a8fce206768b5af234408d6e2d10.go b/identitygovernance/316ae7a5903f129cead8061a59ef14b146e9a8fce206768b5af234408d6e2d10.go new file mode 100644 index 00000000000..ffc16cab296 --- /dev/null +++ b/identitygovernance/316ae7a5903f129cead8061a59ef14b146e9a8fce206768b5af234408d6e2d10.go @@ -0,0 +1,113 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetQueryParameters the reprocessed runs associated with this subject processing result. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetQueryParameters +} +// ByRunId provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) ByRunId(runId string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if runId != "" { + urlTplParams["run%2Did"] = runId + } + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) Count()(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the reprocessed runs associated with this subject processing result. +// returns a RunCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.RunCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateRunCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.RunCollectionResponseable), nil +} +// ToGetRequestInformation the reprocessed runs associated with this subject processing result. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/3206ec642091246b74247815d13e9d01a4e2186e2ceed066209cb3a4c34e05a4.go b/identitygovernance/3206ec642091246b74247815d13e9d01a4e2186e2ceed066209cb3a4c34e05a4.go new file mode 100644 index 00000000000..ec22465d873 --- /dev/null +++ b/identitygovernance/3206ec642091246b74247815d13e9d01a4e2186e2ceed066209cb3a4c34e05a4.go @@ -0,0 +1,101 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Count()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// returns a ServiceProvisioningErrorCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil +} +// ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/33923a1b1ca571fec3e3f9799b4db099abf115d305931f25bb0d2ffd172c34fb.go b/identitygovernance/33923a1b1ca571fec3e3f9799b4db099abf115d305931f25bb0d2ffd172c34fb.go new file mode 100644 index 00000000000..1987af9213b --- /dev/null +++ b/identitygovernance/33923a1b1ca571fec3e3f9799b4db099abf115d305931f25bb0d2ffd172c34fb.go @@ -0,0 +1,117 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +type LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody()(*LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["subject"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateWorkflowSubjectFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSubject(val.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.WorkflowSubjectable)) + } + return nil + } + return res +} +// GetSubject gets the subject property value. The subject property +// returns a WorkflowSubjectable when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) GetSubject()(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.WorkflowSubjectable) { + val, err := m.GetBackingStore().Get("subject") + if err != nil { + panic(err) + } + if val != nil { + return val.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.WorkflowSubjectable) + } + return nil +} +// Serialize serializes information the current object +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("subject", m.GetSubject()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetSubject sets the subject property value. The subject property +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBody) SetSubject(value i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.WorkflowSubjectable)() { + err := m.GetBackingStore().Set("subject", value) + if err != nil { + panic(err) + } +} +type LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetSubject()(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.WorkflowSubjectable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetSubject(value i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.WorkflowSubjectable)() +} diff --git a/identitygovernance/3569d95eaadeb98f5467e746eee65ba46d7480429603bbbcc897a524ed0c1714.go b/identitygovernance/3569d95eaadeb98f5467e746eee65ba46d7480429603bbbcc897a524ed0c1714.go new file mode 100644 index 00000000000..c54f156bbac --- /dev/null +++ b/identitygovernance/3569d95eaadeb98f5467e746eee65ba46d7480429603bbbcc897a524ed0c1714.go @@ -0,0 +1,94 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.workflow entity. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetQueryParameters get subjectProcessingResults from identityGovernance +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get subjectProcessingResults from identityGovernance +// returns a SubjectProcessingResultable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateSubjectProcessingResultFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultable), nil +} +// ReprocessedRuns provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) ReprocessedRuns()(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// TaskProcessingResults provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) TaskProcessingResults()(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation get subjectProcessingResults from identityGovernance +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/380bc354f2e35c61521b1dc1220e3bcb40d929f019a1a437cdf38817acedf90f.go b/identitygovernance/380bc354f2e35c61521b1dc1220e3bcb40d929f019a1a437cdf38817acedf90f.go new file mode 100644 index 00000000000..4b2e83f7951 --- /dev/null +++ b/identitygovernance/380bc354f2e35c61521b1dc1220e3bcb40d929f019a1a437cdf38817acedf90f.go @@ -0,0 +1,84 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetQueryParameters the reprocessed runs associated with this subject processing result. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/{run%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the reprocessed runs associated with this subject processing result. +// returns a Runable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Runable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateRunFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Runable), nil +} +// ToGetRequestInformation the reprocessed runs associated with this subject processing result. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/3926f007b766620387ba54f17fe3cde8e7d66262c1c0589c2b6bd4daa17e9efe.go b/identitygovernance/3926f007b766620387ba54f17fe3cde8e7d66262c1c0589c2b6bd4daa17e9efe.go new file mode 100644 index 00000000000..f4636b1eb0b --- /dev/null +++ b/identitygovernance/3926f007b766620387ba54f17fe3cde8e7d66262c1c0589c2b6bd4daa17e9efe.go @@ -0,0 +1,94 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.run entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetQueryParameters the processing results for each subject in this workflow run. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the processing results for each subject in this workflow run. +// returns a SubjectProcessingResultable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateSubjectProcessingResultFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultable), nil +} +// ReprocessedRuns provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) ReprocessedRuns()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// TaskProcessingResults provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) TaskProcessingResults()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation the processing results for each subject in this workflow run. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/39387c89a6d1dacfc78df5295491e0da56f1aa71166936bd4f9f9ccb00c73e5d.go b/identitygovernance/39387c89a6d1dacfc78df5295491e0da56f1aa71166936bd4f9f9ccb00c73e5d.go new file mode 100644 index 00000000000..9226dd83162 --- /dev/null +++ b/identitygovernance/39387c89a6d1dacfc78df5295491e0da56f1aa71166936bd4f9f9ccb00c73e5d.go @@ -0,0 +1,126 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\mailboxSettings +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetQueryParameters settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Requires $select to retrieve. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetQueryParameters +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/mailboxSettings{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Requires $select to retrieve. +// returns a MailboxSettingsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil +} +// Patch update property mailboxSettings value. +// returns a MailboxSettingsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil +} +// ToGetRequestInformation settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Requires $select to retrieve. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update property mailboxSettings value. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/3eddb67a0494ba89b49eb063d6a5da8ec742f644de125f102cd9c2dd108a3173.go b/identitygovernance/3eddb67a0494ba89b49eb063d6a5da8ec742f644de125f102cd9c2dd108a3173.go new file mode 100644 index 00000000000..bca8dd2cace --- /dev/null +++ b/identitygovernance/3eddb67a0494ba89b49eb063d6a5da8ec742f644de125f102cd9c2dd108a3173.go @@ -0,0 +1,113 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetQueryParameters the task-level processing results for this subject. Read-only. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetQueryParameters +} +// ByTaskProcessingResultId provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) ByTaskProcessingResultId(taskProcessingResultId string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if taskProcessingResultId != "" { + urlTplParams["taskProcessingResult%2Did"] = taskProcessingResultId + } + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) Count()(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the task-level processing results for this subject. Read-only. +// returns a TaskProcessingResultCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateTaskProcessingResultCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultCollectionResponseable), nil +} +// ToGetRequestInformation the task-level processing results for this subject. Read-only. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/43168a5b166cd6dc9b1316d0c07d22db1e9999bf985e96bcebe0d605137be515.go b/identitygovernance/43168a5b166cd6dc9b1316d0c07d22db1e9999bf985e96bcebe0d605137be515.go new file mode 100644 index 00000000000..1cdccfdd663 --- /dev/null +++ b/identitygovernance/43168a5b166cd6dc9b1316d0c07d22db1e9999bf985e96bcebe0d605137be515.go @@ -0,0 +1,101 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Count()(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// returns a ServiceProvisioningErrorCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil +} +// ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/46ad1e98f6b70cd03dd6e29d802f8536b13a8ee0e72d76c4a2f0a6291272c2af.go b/identitygovernance/46ad1e98f6b70cd03dd6e29d802f8536b13a8ee0e72d76c4a2f0a6291272c2af.go new file mode 100644 index 00000000000..1412a12e094 --- /dev/null +++ b/identitygovernance/46ad1e98f6b70cd03dd6e29d802f8536b13a8ee0e72d76c4a2f0a6291272c2af.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/506f793d51d72d654c353b06b2905d90736be83e229a9192be156f5837beb499.go b/identitygovernance/506f793d51d72d654c353b06b2905d90736be83e229a9192be156f5837beb499.go new file mode 100644 index 00000000000..379c36b8a28 --- /dev/null +++ b/identitygovernance/506f793d51d72d654c353b06b2905d90736be83e229a9192be156f5837beb499.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/52c2f45ed637ca316c2b2910176be502d02fcb306e6716080bf448d21126de76.go b/identitygovernance/52c2f45ed637ca316c2b2910176be502d02fcb306e6716080bf448d21126de76.go new file mode 100644 index 00000000000..ae34bcd9e48 --- /dev/null +++ b/identitygovernance/52c2f45ed637ca316c2b2910176be502d02fcb306e6716080bf448d21126de76.go @@ -0,0 +1,94 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.workflow entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetQueryParameters get subjectProcessingResults from identityGovernance +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get subjectProcessingResults from identityGovernance +// returns a SubjectProcessingResultable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateSubjectProcessingResultFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultable), nil +} +// ReprocessedRuns provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) ReprocessedRuns()(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// TaskProcessingResults provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) TaskProcessingResults()(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation get subjectProcessingResults from identityGovernance +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/5b0096acbb9178a9aaacbcc9af17cebff80a3a4a6d86b5f25902212d8a5acdfc.go b/identitygovernance/5b0096acbb9178a9aaacbcc9af17cebff80a3a4a6d86b5f25902212d8a5acdfc.go new file mode 100644 index 00000000000..344a2453025 --- /dev/null +++ b/identitygovernance/5b0096acbb9178a9aaacbcc9af17cebff80a3a4a6d86b5f25902212d8a5acdfc.go @@ -0,0 +1,97 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.run entity. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetQueryParameters read the properties and relationships of a subjectProcessingResult object for a workflow run. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get read the properties and relationships of a subjectProcessingResult object for a workflow run. +// returns a SubjectProcessingResultable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/identitygovernance-subjectprocessingresult-get?view=graph-rest-beta +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateSubjectProcessingResultFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultable), nil +} +// ReprocessedRuns provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) ReprocessedRuns()(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// TaskProcessingResults provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) TaskProcessingResults()(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation read the properties and relationships of a subjectProcessingResult object for a workflow run. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/5db954f66b0808fc1e2cf65ac276781efdf226341ab6b6d139bf2d359f3622cd.go b/identitygovernance/5db954f66b0808fc1e2cf65ac276781efdf226341ab6b6d139bf2d359f3622cd.go new file mode 100644 index 00000000000..6d2c48d174c --- /dev/null +++ b/identitygovernance/5db954f66b0808fc1e2cf65ac276781efdf226341ab6b6d139bf2d359f3622cd.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/61d375ead74dc8b3774f1186502bce3873a96656abbccc3f9092fd7de633103d.go b/identitygovernance/61d375ead74dc8b3774f1186502bce3873a96656abbccc3f9092fd7de633103d.go new file mode 100644 index 00000000000..4a0bf910557 --- /dev/null +++ b/identitygovernance/61d375ead74dc8b3774f1186502bce3873a96656abbccc3f9092fd7de633103d.go @@ -0,0 +1,94 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder provides operations to manage the subject property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetQueryParameters the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// returns a Userable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateUserFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil +} +// MailboxSettings the mailboxSettings property +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) MailboxSettings()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ServiceProvisioningErrors the serviceProvisioningErrors property +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) ServiceProvisioningErrors()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/63729e1a979f6a65e9174e73d8467732753cbbc2114301e7e51f43f6c72a76bb.go b/identitygovernance/63729e1a979f6a65e9174e73d8467732753cbbc2114301e7e51f43f6c72a76bb.go new file mode 100644 index 00000000000..8ffb3e97e69 --- /dev/null +++ b/identitygovernance/63729e1a979f6a65e9174e73d8467732753cbbc2114301e7e51f43f6c72a76bb.go @@ -0,0 +1,94 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder provides operations to manage the subject property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetQueryParameters the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// returns a Userable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateUserFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil +} +// MailboxSettings the mailboxSettings property +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) MailboxSettings()(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ServiceProvisioningErrors the serviceProvisioningErrors property +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) ServiceProvisioningErrors()(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/67d0a1300dcf4d89c05447ad8d14c781b4cc0009562bba9633f845eba6a4479b.go b/identitygovernance/67d0a1300dcf4d89c05447ad8d14c781b4cc0009562bba9633f845eba6a4479b.go new file mode 100644 index 00000000000..cf115df1e60 --- /dev/null +++ b/identitygovernance/67d0a1300dcf4d89c05447ad8d14c781b4cc0009562bba9633f845eba6a4479b.go @@ -0,0 +1,84 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder provides operations to manage the task property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetQueryParameters the related workflow task +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/task{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the related workflow task +// returns a Taskable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Taskable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Taskable), nil +} +// ToGetRequestInformation the related workflow task +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/733dfd13bac791a4d29540f1628df68e6685f41faf18d857d0a95ef0b10ce899.go b/identitygovernance/733dfd13bac791a4d29540f1628df68e6685f41faf18d857d0a95ef0b10ce899.go new file mode 100644 index 00000000000..e7473b078eb --- /dev/null +++ b/identitygovernance/733dfd13bac791a4d29540f1628df68e6685f41faf18d857d0a95ef0b10ce899.go @@ -0,0 +1,113 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetQueryParameters the task-level processing results for this subject. Read-only. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetQueryParameters +} +// ByTaskProcessingResultId provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) ByTaskProcessingResultId(taskProcessingResultId string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if taskProcessingResultId != "" { + urlTplParams["taskProcessingResult%2Did"] = taskProcessingResultId + } + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) Count()(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the task-level processing results for this subject. Read-only. +// returns a TaskProcessingResultCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateTaskProcessingResultCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultCollectionResponseable), nil +} +// ToGetRequestInformation the task-level processing results for this subject. Read-only. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/73626e782f1d9446dfd45a213249306eadbc28ef8a8a2c02360d7595902c0976.go b/identitygovernance/73626e782f1d9446dfd45a213249306eadbc28ef8a8a2c02360d7595902c0976.go new file mode 100644 index 00000000000..7fb106c4ace --- /dev/null +++ b/identitygovernance/73626e782f1d9446dfd45a213249306eadbc28ef8a8a2c02360d7595902c0976.go @@ -0,0 +1,72 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder provides operations to call the clearQuarantine method. +type LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/microsoft.graph.identityGovernance.clearQuarantine", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clearQuarantine +// returns a Workflowable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder) Post(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderPostRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Workflowable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateWorkflowFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Workflowable), nil +} +// ToPostRequestInformation invoke action clearQuarantine +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/74b3e0ed5334301d1229042eeee50e621cf5992b85f0614e9c48cdf425f8b07a.go b/identitygovernance/74b3e0ed5334301d1229042eeee50e621cf5992b85f0614e9c48cdf425f8b07a.go new file mode 100644 index 00000000000..57f93dacbdb --- /dev/null +++ b/identitygovernance/74b3e0ed5334301d1229042eeee50e621cf5992b85f0614e9c48cdf425f8b07a.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/76544564d07d0d8c25ad56178c66337dce9467aff9e6477705b26b3b08f40dcf.go b/identitygovernance/76544564d07d0d8c25ad56178c66337dce9467aff9e6477705b26b3b08f40dcf.go new file mode 100644 index 00000000000..ef86fc51566 --- /dev/null +++ b/identitygovernance/76544564d07d0d8c25ad56178c66337dce9467aff9e6477705b26b3b08f40dcf.go @@ -0,0 +1,126 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\mailboxSettings +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetQueryParameters settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Requires $select to retrieve. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetQueryParameters +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/mailboxSettings{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Requires $select to retrieve. +// returns a MailboxSettingsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil +} +// Patch update property mailboxSettings value. +// returns a MailboxSettingsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil +} +// ToGetRequestInformation settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Requires $select to retrieve. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update property mailboxSettings value. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/785c5bcd40fa951fbe2d6f649240d83aca64cc3ac05afd145cb0c30e70a4c0ff.go b/identitygovernance/785c5bcd40fa951fbe2d6f649240d83aca64cc3ac05afd145cb0c30e70a4c0ff.go new file mode 100644 index 00000000000..178a439dc3b --- /dev/null +++ b/identitygovernance/785c5bcd40fa951fbe2d6f649240d83aca64cc3ac05afd145cb0c30e70a4c0ff.go @@ -0,0 +1,79 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder provides operations to call the activateAndWait method. +type LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/microsoft.graph.identityGovernance.activateAndWait", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderInternal(urlParams, requestAdapter) +} +// Post activate a lifecycle workflow for a specified subject and synchronously wait for execution to complete. This action returns an awaitedWorkflowProcessingResult with the execution outcome. Use this action when you need immediate confirmation of workflow completion, for example when provisioning a non-user subject. +// returns a AwaitedWorkflowProcessingResultable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/identitygovernance-workflow-activateandwait?view=graph-rest-beta +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder) Post(ctx context.Context, body LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBodyable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderPostRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.AwaitedWorkflowProcessingResultable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateAwaitedWorkflowProcessingResultFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.AwaitedWorkflowProcessingResultable), nil +} +// ToPostRequestInformation activate a lifecycle workflow for a specified subject and synchronously wait for execution to complete. This action returns an awaitedWorkflowProcessingResult with the execution outcome. Use this action when you need immediate confirmation of workflow completion, for example when provisioning a non-user subject. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder) ToPostRequestInformation(ctx context.Context, body LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBodyable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/78dbe9e93a51d5faee265d8046ec083b094db881d79db18186b46e1e9dc513c5.go b/identitygovernance/78dbe9e93a51d5faee265d8046ec083b094db881d79db18186b46e1e9dc513c5.go new file mode 100644 index 00000000000..45228dad10d --- /dev/null +++ b/identitygovernance/78dbe9e93a51d5faee265d8046ec083b094db881d79db18186b46e1e9dc513c5.go @@ -0,0 +1,191 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody()(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetData gets the data property value. The data property +// returns a CustomTaskExtensionCallbackDataable when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetData()(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable) { + val, err := m.GetBackingStore().Get("data") + if err != nil { + panic(err) + } + if val != nil { + return val.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["data"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateCustomTaskExtensionCallbackDataFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetData(val.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable)) + } + return nil + } + res["source"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSource(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetSource gets the source property value. The source property +// returns a *string when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetSource()(*string) { + val, err := m.GetBackingStore().Get("source") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetTypeEscaped()(*string) { + val, err := m.GetBackingStore().Get("typeEscaped") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("data", m.GetData()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("source", m.GetSource()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetData sets the data property value. The data property +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetData(value i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable)() { + err := m.GetBackingStore().Set("data", value) + if err != nil { + panic(err) + } +} +// SetSource sets the source property value. The source property +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetSource(value *string)() { + err := m.GetBackingStore().Set("source", value) + if err != nil { + panic(err) + } +} +// SetTypeEscaped sets the type property value. The type property +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetTypeEscaped(value *string)() { + err := m.GetBackingStore().Set("typeEscaped", value) + if err != nil { + panic(err) + } +} +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetData()(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable) + GetSource()(*string) + GetTypeEscaped()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetData(value i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable)() + SetSource(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/identitygovernance/7ae733b489208e7957c9924672113c2c685165e853cec00eec8a12f9d5365497.go b/identitygovernance/7ae733b489208e7957c9924672113c2c685165e853cec00eec8a12f9d5365497.go new file mode 100644 index 00000000000..4d9dc9ab65d --- /dev/null +++ b/identitygovernance/7ae733b489208e7957c9924672113c2c685165e853cec00eec8a12f9d5365497.go @@ -0,0 +1,101 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Count()(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// returns a ServiceProvisioningErrorCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil +} +// ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/7b91181f582fe6cc7c5ac04ec83c45b279a87a495de9eefbe04399a75ca4231f.go b/identitygovernance/7b91181f582fe6cc7c5ac04ec83c45b279a87a495de9eefbe04399a75ca4231f.go new file mode 100644 index 00000000000..22d7240fe60 --- /dev/null +++ b/identitygovernance/7b91181f582fe6cc7c5ac04ec83c45b279a87a495de9eefbe04399a75ca4231f.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/7c7a97c28b42713bf5079ca65085de1e6890fef63ffe781aa510ba58bca62b55.go b/identitygovernance/7c7a97c28b42713bf5079ca65085de1e6890fef63ffe781aa510ba58bca62b55.go new file mode 100644 index 00000000000..d508237e041 --- /dev/null +++ b/identitygovernance/7c7a97c28b42713bf5079ca65085de1e6890fef63ffe781aa510ba58bca62b55.go @@ -0,0 +1,74 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder provides operations to call the resume method. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/microsoft.graph.identityGovernance.resume", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/identitygovernance-taskprocessingresult-resume?view=graph-rest-beta +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) Post(ctx context.Context, body LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyable, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) ToPostRequestInformation(ctx context.Context, body LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyable, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/7f30d48331010c793469b996ea1cbc6826eb979750b8e53d23f5c775d8ec2095.go b/identitygovernance/7f30d48331010c793469b996ea1cbc6826eb979750b8e53d23f5c775d8ec2095.go new file mode 100644 index 00000000000..016f19192db --- /dev/null +++ b/identitygovernance/7f30d48331010c793469b996ea1cbc6826eb979750b8e53d23f5c775d8ec2095.go @@ -0,0 +1,191 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody()(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetData gets the data property value. The data property +// returns a CustomTaskExtensionCallbackDataable when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetData()(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable) { + val, err := m.GetBackingStore().Get("data") + if err != nil { + panic(err) + } + if val != nil { + return val.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["data"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateCustomTaskExtensionCallbackDataFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetData(val.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable)) + } + return nil + } + res["source"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSource(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetSource gets the source property value. The source property +// returns a *string when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetSource()(*string) { + val, err := m.GetBackingStore().Get("source") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetTypeEscaped()(*string) { + val, err := m.GetBackingStore().Get("typeEscaped") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("data", m.GetData()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("source", m.GetSource()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetData sets the data property value. The data property +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetData(value i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable)() { + err := m.GetBackingStore().Set("data", value) + if err != nil { + panic(err) + } +} +// SetSource sets the source property value. The source property +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetSource(value *string)() { + err := m.GetBackingStore().Set("source", value) + if err != nil { + panic(err) + } +} +// SetTypeEscaped sets the type property value. The type property +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetTypeEscaped(value *string)() { + err := m.GetBackingStore().Set("typeEscaped", value) + if err != nil { + panic(err) + } +} +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetData()(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable) + GetSource()(*string) + GetTypeEscaped()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetData(value i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable)() + SetSource(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/identitygovernance/81a092aa7ad7262dd6f90cf186eae3bd66d2f89d0a7be50ef218717bb7ced47a.go b/identitygovernance/81a092aa7ad7262dd6f90cf186eae3bd66d2f89d0a7be50ef218717bb7ced47a.go new file mode 100644 index 00000000000..1452c6e47a7 --- /dev/null +++ b/identitygovernance/81a092aa7ad7262dd6f90cf186eae3bd66d2f89d0a7be50ef218717bb7ced47a.go @@ -0,0 +1,191 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody()(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetData gets the data property value. The data property +// returns a CustomTaskExtensionCallbackDataable when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetData()(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable) { + val, err := m.GetBackingStore().Get("data") + if err != nil { + panic(err) + } + if val != nil { + return val.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["data"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateCustomTaskExtensionCallbackDataFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetData(val.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable)) + } + return nil + } + res["source"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSource(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetSource gets the source property value. The source property +// returns a *string when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetSource()(*string) { + val, err := m.GetBackingStore().Get("source") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetTypeEscaped()(*string) { + val, err := m.GetBackingStore().Get("typeEscaped") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("data", m.GetData()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("source", m.GetSource()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetData sets the data property value. The data property +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetData(value i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable)() { + err := m.GetBackingStore().Set("data", value) + if err != nil { + panic(err) + } +} +// SetSource sets the source property value. The source property +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetSource(value *string)() { + err := m.GetBackingStore().Set("source", value) + if err != nil { + panic(err) + } +} +// SetTypeEscaped sets the type property value. The type property +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetTypeEscaped(value *string)() { + err := m.GetBackingStore().Set("typeEscaped", value) + if err != nil { + panic(err) + } +} +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetData()(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable) + GetSource()(*string) + GetTypeEscaped()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetData(value i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable)() + SetSource(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/identitygovernance/8b3d396af01ac79a1266045f40e5ae92decd71a52613b9f65f4b6ad507a0a547.go b/identitygovernance/8b3d396af01ac79a1266045f40e5ae92decd71a52613b9f65f4b6ad507a0a547.go index 7a80905734d..e4381f2af85 100644 --- a/identitygovernance/8b3d396af01ac79a1266045f40e5ae92decd71a52613b9f65f4b6ad507a0a547.go +++ b/identitygovernance/8b3d396af01ac79a1266045f40e5ae92decd71a52613b9f65f4b6ad507a0a547.go @@ -62,7 +62,7 @@ type EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleA // NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderInternal instantiates a new EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilder and sets the default values. func NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilder) { m := &EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleAccessPackages/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleAccessPackages/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati // ToGetRequestInformation the access packages whose assigned users are ineligible to be assigned this access package. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleAccessPackages/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompati // ToPostRequestInformation create new navigation property ref to incompatibleAccessPackages for identityGovernance // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageIncompatibleAccessPackagesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleAccessPackages/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/identitygovernance/8dafd2bb00bcd80645e28154e63f8beb28e93df72d6c47579ff605c01fe01ef0.go b/identitygovernance/8dafd2bb00bcd80645e28154e63f8beb28e93df72d6c47579ff605c01fe01ef0.go new file mode 100644 index 00000000000..6c9b2300b14 --- /dev/null +++ b/identitygovernance/8dafd2bb00bcd80645e28154e63f8beb28e93df72d6c47579ff605c01fe01ef0.go @@ -0,0 +1,191 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetData gets the data property value. The data property +// returns a CustomTaskExtensionCallbackDataable when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetData()(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable) { + val, err := m.GetBackingStore().Get("data") + if err != nil { + panic(err) + } + if val != nil { + return val.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["data"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateCustomTaskExtensionCallbackDataFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetData(val.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable)) + } + return nil + } + res["source"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSource(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + return res +} +// GetSource gets the source property value. The source property +// returns a *string when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetSource()(*string) { + val, err := m.GetBackingStore().Get("source") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) GetTypeEscaped()(*string) { + val, err := m.GetBackingStore().Get("typeEscaped") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("data", m.GetData()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("source", m.GetSource()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetData sets the data property value. The data property +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetData(value i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable)() { + err := m.GetBackingStore().Set("data", value) + if err != nil { + panic(err) + } +} +// SetSource sets the source property value. The source property +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetSource(value *string)() { + err := m.GetBackingStore().Set("source", value) + if err != nil { + panic(err) + } +} +// SetTypeEscaped sets the type property value. The type property +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBody) SetTypeEscaped(value *string)() { + err := m.GetBackingStore().Set("typeEscaped", value) + if err != nil { + panic(err) + } +} +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetData()(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable) + GetSource()(*string) + GetTypeEscaped()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetData(value i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CustomTaskExtensionCallbackDataable)() + SetSource(value *string)() + SetTypeEscaped(value *string)() +} diff --git a/identitygovernance/8e3d8484643af1c3323234964e2427002a17b0116dd0f189f25a5ba15b59889b.go b/identitygovernance/8e3d8484643af1c3323234964e2427002a17b0116dd0f189f25a5ba15b59889b.go new file mode 100644 index 00000000000..2785a793c8b --- /dev/null +++ b/identitygovernance/8e3d8484643af1c3323234964e2427002a17b0116dd0f189f25a5ba15b59889b.go @@ -0,0 +1,84 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetQueryParameters the reprocessed runs associated with this subject processing result. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/{run%2Did1}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the reprocessed runs associated with this subject processing result. +// returns a Runable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Runable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateRunFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Runable), nil +} +// ToGetRequestInformation the reprocessed runs associated with this subject processing result. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/93892a1b56f9108b111a5b0a604b3cb41c86d637837a4ddab1567abaa0d30445.go b/identitygovernance/93892a1b56f9108b111a5b0a604b3cb41c86d637837a4ddab1567abaa0d30445.go new file mode 100644 index 00000000000..66c356b9fdc --- /dev/null +++ b/identitygovernance/93892a1b56f9108b111a5b0a604b3cb41c86d637837a4ddab1567abaa0d30445.go @@ -0,0 +1,113 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetQueryParameters the reprocessed runs associated with this subject processing result. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetQueryParameters +} +// ByRunId1 provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) ByRunId1(runId1 string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if runId1 != "" { + urlTplParams["run%2Did1"] = runId1 + } + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) Count()(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the reprocessed runs associated with this subject processing result. +// returns a RunCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.RunCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateRunCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.RunCollectionResponseable), nil +} +// ToGetRequestInformation the reprocessed runs associated with this subject processing result. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/94c3f06f6f3a33ad1b76efc9d9aa4a2610c5c6146913e110a05f3ce8ebbf97f9.go b/identitygovernance/94c3f06f6f3a33ad1b76efc9d9aa4a2610c5c6146913e110a05f3ce8ebbf97f9.go new file mode 100644 index 00000000000..0b99369e88d --- /dev/null +++ b/identitygovernance/94c3f06f6f3a33ad1b76efc9d9aa4a2610c5c6146913e110a05f3ce8ebbf97f9.go @@ -0,0 +1,84 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetQueryParameters the reprocessed runs associated with this subject processing result. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/{run%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the reprocessed runs associated with this subject processing result. +// returns a Runable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Runable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateRunFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Runable), nil +} +// ToGetRequestInformation the reprocessed runs associated with this subject processing result. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/9b217f712cae27ee43d17bb30bf34aef3b95491d5202013240442a1bc17c9623.go b/identitygovernance/9b217f712cae27ee43d17bb30bf34aef3b95491d5202013240442a1bc17c9623.go new file mode 100644 index 00000000000..31f5a7ed9ef --- /dev/null +++ b/identitygovernance/9b217f712cae27ee43d17bb30bf34aef3b95491d5202013240442a1bc17c9623.go @@ -0,0 +1,113 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.run entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderGetQueryParameters the processing results for each subject in this workflow run. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderGetQueryParameters +} +// BySubjectProcessingResultId provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.run entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) BySubjectProcessingResultId(subjectProcessingResultId string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if subjectProcessingResultId != "" { + urlTplParams["subjectProcessingResult%2Did"] = subjectProcessingResultId + } + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) Count()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the processing results for each subject in this workflow run. +// returns a SubjectProcessingResultCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateSubjectProcessingResultCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultCollectionResponseable), nil +} +// ToGetRequestInformation the processing results for each subject in this workflow run. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/a2e40b34850923ec63a3d9d80131feb1bea2b7d09469265647e8120c12a3264d.go b/identitygovernance/a2e40b34850923ec63a3d9d80131feb1bea2b7d09469265647e8120c12a3264d.go new file mode 100644 index 00000000000..f73555ea60d --- /dev/null +++ b/identitygovernance/a2e40b34850923ec63a3d9d80131feb1bea2b7d09469265647e8120c12a3264d.go @@ -0,0 +1,84 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder provides operations to manage the task property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetQueryParameters the related workflow task +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/task{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the related workflow task +// returns a Taskable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Taskable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Taskable), nil +} +// ToGetRequestInformation the related workflow task +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/a4a157a3b8e34fc3a67d6544dbf85b09505a93032795b60e740aa4da11d7b834.go b/identitygovernance/a4a157a3b8e34fc3a67d6544dbf85b09505a93032795b60e740aa4da11d7b834.go new file mode 100644 index 00000000000..1e9d1cf1205 --- /dev/null +++ b/identitygovernance/a4a157a3b8e34fc3a67d6544dbf85b09505a93032795b60e740aa4da11d7b834.go @@ -0,0 +1,72 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder provides operations to call the clearQuarantine method. +type LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/microsoft.graph.identityGovernance.clearQuarantine", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clearQuarantine +// returns a Workflowable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder) Post(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderPostRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Workflowable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateWorkflowFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Workflowable), nil +} +// ToPostRequestInformation invoke action clearQuarantine +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/a5d97a4259e673a42b487924d227c981965b05a8353337ca24a6c4533f19cbce.go b/identitygovernance/a5d97a4259e673a42b487924d227c981965b05a8353337ca24a6c4533f19cbce.go new file mode 100644 index 00000000000..95b89906f24 --- /dev/null +++ b/identitygovernance/a5d97a4259e673a42b487924d227c981965b05a8353337ca24a6c4533f19cbce.go @@ -0,0 +1,94 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder provides operations to manage the subject property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetQueryParameters the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// returns a Userable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateUserFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil +} +// MailboxSettings the mailboxSettings property +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) MailboxSettings()(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ServiceProvisioningErrors the serviceProvisioningErrors property +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) ServiceProvisioningErrors()(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/a87db65efdcf2ab9138c4dbda6e6a58bb03e16fee630dd790fa4b84b8d218486.go b/identitygovernance/a87db65efdcf2ab9138c4dbda6e6a58bb03e16fee630dd790fa4b84b8d218486.go new file mode 100644 index 00000000000..212db424afb --- /dev/null +++ b/identitygovernance/a87db65efdcf2ab9138c4dbda6e6a58bb03e16fee630dd790fa4b84b8d218486.go @@ -0,0 +1,74 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder provides operations to call the resume method. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/microsoft.graph.identityGovernance.resume", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/identitygovernance-taskprocessingresult-resume?view=graph-rest-beta +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) Post(ctx context.Context, body LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation resume a task processing result that's inProgress. In the default case an Azure Logic Apps system-assigned managed identity calls this API. For more information, see: Lifecycle Workflows extensibility approach. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) ToPostRequestInformation(ctx context.Context, body LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeResumePostRequestBodyable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/access_reviews_definitions_item_instances_request_builder.go b/identitygovernance/access_reviews_definitions_item_instances_request_builder.go index a526cb77fd5..b1bc2442aa6 100644 --- a/identitygovernance/access_reviews_definitions_item_instances_request_builder.go +++ b/identitygovernance/access_reviews_definitions_item_instances_request_builder.go @@ -14,7 +14,7 @@ import ( type AccessReviewsDefinitionsItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// AccessReviewsDefinitionsItemInstancesRequestBuilderGetQueryParameters retrieve the accessReviewInstance objects for a specific accessReviewScheduleDefinition. A list of zero or more accessReviewInstance objects are returned, including all of their nested properties. Returned objects do not include associated accessReviewInstanceDecisionItems. To retrieve the decisions on the instance, use List accessReviewInstanceDecisionItem. +// AccessReviewsDefinitionsItemInstancesRequestBuilderGetQueryParameters retrieve the accessReviewInstance objects for a specific accessReviewScheduleDefinition. A list of zero or more accessReviewInstance objects are returned, including all of their nested properties. Returned objects don't include associated accessReviewInstanceDecisionItems. To retrieve the decisions on the instance, use List accessReviewInstanceDecisionItem. type AccessReviewsDefinitionsItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -84,7 +84,7 @@ func (m *AccessReviewsDefinitionsItemInstancesRequestBuilder) Count()(*AccessRev func (m *AccessReviewsDefinitionsItemInstancesRequestBuilder) FilterByCurrentUserWithOn(on *string)(*AccessReviewsDefinitionsItemInstancesFilterByCurrentUserWithOnRequestBuilder) { return NewAccessReviewsDefinitionsItemInstancesFilterByCurrentUserWithOnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, on) } -// Get retrieve the accessReviewInstance objects for a specific accessReviewScheduleDefinition. A list of zero or more accessReviewInstance objects are returned, including all of their nested properties. Returned objects do not include associated accessReviewInstanceDecisionItems. To retrieve the decisions on the instance, use List accessReviewInstanceDecisionItem. +// Get retrieve the accessReviewInstance objects for a specific accessReviewScheduleDefinition. A list of zero or more accessReviewInstance objects are returned, including all of their nested properties. Returned objects don't include associated accessReviewInstanceDecisionItems. To retrieve the decisions on the instance, use List accessReviewInstanceDecisionItem. // returns a AccessReviewInstanceCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -127,7 +127,7 @@ func (m *AccessReviewsDefinitionsItemInstancesRequestBuilder) Post(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable), nil } -// ToGetRequestInformation retrieve the accessReviewInstance objects for a specific accessReviewScheduleDefinition. A list of zero or more accessReviewInstance objects are returned, including all of their nested properties. Returned objects do not include associated accessReviewInstanceDecisionItems. To retrieve the decisions on the instance, use List accessReviewInstanceDecisionItem. +// ToGetRequestInformation retrieve the accessReviewInstance objects for a specific accessReviewScheduleDefinition. A list of zero or more accessReviewInstance objects are returned, including all of their nested properties. Returned objects don't include associated accessReviewInstanceDecisionItems. To retrieve the decisions on the instance, use List accessReviewInstanceDecisionItem. // returns a *RequestInformation when successful func (m *AccessReviewsDefinitionsItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AccessReviewsDefinitionsItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/access_reviews_definitions_request_builder.go b/identitygovernance/access_reviews_definitions_request_builder.go index 172428f0b0c..1f6cf51c4ed 100644 --- a/identitygovernance/access_reviews_definitions_request_builder.go +++ b/identitygovernance/access_reviews_definitions_request_builder.go @@ -14,7 +14,7 @@ import ( type AccessReviewsDefinitionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// AccessReviewsDefinitionsRequestBuilderGetQueryParameters retrieve the accessReviewScheduleDefinition objects. A list of zero or more accessReviewScheduleDefinition objects are returned, including all of their nested properties, for each access review series created. This does not include the associated accessReviewInstance objects. +// AccessReviewsDefinitionsRequestBuilderGetQueryParameters retrieve the accessReviewScheduleDefinition objects. A list of zero or more accessReviewScheduleDefinition objects are returned, including all of their nested properties, for each access review series created. This doesn't include the associated accessReviewInstance objects. type AccessReviewsDefinitionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -84,7 +84,7 @@ func (m *AccessReviewsDefinitionsRequestBuilder) Count()(*AccessReviewsDefinitio func (m *AccessReviewsDefinitionsRequestBuilder) FilterByCurrentUserWithOn(on *string)(*AccessReviewsDefinitionsFilterByCurrentUserWithOnRequestBuilder) { return NewAccessReviewsDefinitionsFilterByCurrentUserWithOnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, on) } -// Get retrieve the accessReviewScheduleDefinition objects. A list of zero or more accessReviewScheduleDefinition objects are returned, including all of their nested properties, for each access review series created. This does not include the associated accessReviewInstance objects. +// Get retrieve the accessReviewScheduleDefinition objects. A list of zero or more accessReviewScheduleDefinition objects are returned, including all of their nested properties, for each access review series created. This doesn't include the associated accessReviewInstance objects. // returns a AccessReviewScheduleDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -130,7 +130,7 @@ func (m *AccessReviewsDefinitionsRequestBuilder) Post(ctx context.Context, body } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewScheduleDefinitionable), nil } -// ToGetRequestInformation retrieve the accessReviewScheduleDefinition objects. A list of zero or more accessReviewScheduleDefinition objects are returned, including all of their nested properties, for each access review series created. This does not include the associated accessReviewInstance objects. +// ToGetRequestInformation retrieve the accessReviewScheduleDefinition objects. A list of zero or more accessReviewScheduleDefinition objects are returned, including all of their nested properties, for each access review series created. This doesn't include the associated accessReviewInstance objects. // returns a *RequestInformation when successful func (m *AccessReviewsDefinitionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AccessReviewsDefinitionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/affbf8d95afb69d841c704a0e3ef2d88b082f8077f1d80cc63215adb7fcb0290.go b/identitygovernance/affbf8d95afb69d841c704a0e3ef2d88b082f8077f1d80cc63215adb7fcb0290.go new file mode 100644 index 00000000000..a57779696d3 --- /dev/null +++ b/identitygovernance/affbf8d95afb69d841c704a0e3ef2d88b082f8077f1d80cc63215adb7fcb0290.go @@ -0,0 +1,113 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetQueryParameters the reprocessed runs associated with this subject processing result. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetQueryParameters +} +// ByRunId1 provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) ByRunId1(runId1 string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if runId1 != "" { + urlTplParams["run%2Did1"] = runId1 + } + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) Count()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the reprocessed runs associated with this subject processing result. +// returns a RunCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.RunCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateRunCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.RunCollectionResponseable), nil +} +// ToGetRequestInformation the reprocessed runs associated with this subject processing result. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/b001bf2b6ad32cd89f3fa84db0fe5bd1c2fd98ffb16ef19225cf7b53055cc957.go b/identitygovernance/b001bf2b6ad32cd89f3fa84db0fe5bd1c2fd98ffb16ef19225cf7b53055cc957.go new file mode 100644 index 00000000000..486521cebc3 --- /dev/null +++ b/identitygovernance/b001bf2b6ad32cd89f3fa84db0fe5bd1c2fd98ffb16ef19225cf7b53055cc957.go @@ -0,0 +1,94 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder provides operations to manage the subject property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetQueryParameters the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// returns a Userable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateUserFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil +} +// MailboxSettings the mailboxSettings property +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) MailboxSettings()(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ServiceProvisioningErrors the serviceProvisioningErrors property +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) ServiceProvisioningErrors()(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/b3489727323700e052d13d76adf36364ec8546c50c0820fb39ee6ce44297fee2.go b/identitygovernance/b3489727323700e052d13d76adf36364ec8546c50c0820fb39ee6ce44297fee2.go new file mode 100644 index 00000000000..b57a16c22aa --- /dev/null +++ b/identitygovernance/b3489727323700e052d13d76adf36364ec8546c50c0820fb39ee6ce44297fee2.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/bce2f592d9fff765bcecf172581f754f53875b42a001b112a8d819069c806132.go b/identitygovernance/bce2f592d9fff765bcecf172581f754f53875b42a001b112a8d819069c806132.go new file mode 100644 index 00000000000..8d098486642 --- /dev/null +++ b/identitygovernance/bce2f592d9fff765bcecf172581f754f53875b42a001b112a8d819069c806132.go @@ -0,0 +1,126 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\mailboxSettings +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetQueryParameters settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Requires $select to retrieve. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetQueryParameters +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/mailboxSettings{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(urlParams, requestAdapter) +} +// Get settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Requires $select to retrieve. +// returns a MailboxSettingsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil +} +// Patch update property mailboxSettings value. +// returns a MailboxSettingsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil +} +// ToGetRequestInformation settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. For more information, see User preferences for languages and regional formats. Requires $select to retrieve. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update property mailboxSettings value. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/c2c2eef0ffcb5342356aa90dc75af770766cd73b5c9d8ef4dae0f33a85502e59.go b/identitygovernance/c2c2eef0ffcb5342356aa90dc75af770766cd73b5c9d8ef4dae0f33a85502e59.go new file mode 100644 index 00000000000..6f347df46e2 --- /dev/null +++ b/identitygovernance/c2c2eef0ffcb5342356aa90dc75af770766cd73b5c9d8ef4dae0f33a85502e59.go @@ -0,0 +1,79 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder provides operations to call the activateAndWait method. +type LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/microsoft.graph.identityGovernance.activateAndWait", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderInternal(urlParams, requestAdapter) +} +// Post activate a lifecycle workflow for a specified subject and synchronously wait for execution to complete. This action returns an awaitedWorkflowProcessingResult with the execution outcome. Use this action when you need immediate confirmation of workflow completion, for example when provisioning a non-user subject. +// returns a AwaitedWorkflowProcessingResultable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/identitygovernance-workflow-activateandwait?view=graph-rest-beta +func (m *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder) Post(ctx context.Context, body LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBodyable, requestConfiguration *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderPostRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.AwaitedWorkflowProcessingResultable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateAwaitedWorkflowProcessingResultFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.AwaitedWorkflowProcessingResultable), nil +} +// ToPostRequestInformation activate a lifecycle workflow for a specified subject and synchronously wait for execution to complete. This action returns an awaitedWorkflowProcessingResult with the execution outcome. Use this action when you need immediate confirmation of workflow completion, for example when provisioning a non-user subject. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder) ToPostRequestInformation(ctx context.Context, body LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitActivateAndWaitPostRequestBodyable, requestConfiguration *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/catalogs_item_access_package_resources_item_upload_sessions_request_builder.go b/identitygovernance/catalogs_item_access_package_resources_item_upload_sessions_request_builder.go index 9dff911f3a7..d3f4752bb6d 100644 --- a/identitygovernance/catalogs_item_access_package_resources_item_upload_sessions_request_builder.go +++ b/identitygovernance/catalogs_item_access_package_resources_item_upload_sessions_request_builder.go @@ -104,7 +104,7 @@ func (m *CatalogsItemAccessPackageResourcesItemUploadSessionsRequestBuilder) Get } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomDataProvidedResourceUploadSessionCollectionResponseable), nil } -// Post create a customDataProvidedResourceUploadSession object. Only one upload session is allowed per reference instance (for example, access review instance) and customDataProvidedResource pair. Once you create an upload session, upload files, and complete the session, the data is processed and you cannot create another upload session for that same pair. If you encounter errors with files uploaded or need to start fresh, you can delete the active upload session to create a new one. +// Post create a customDataProvidedResourceUploadSession object. Only one upload session is allowed per reference instance (for example, access review instance) and customDataProvidedResource pair. Once you create an upload session, upload files, and complete the session, the data is processed and you cannot create another upload session for that same pair. If you encounter errors with files uploaded or need to start fresh, you can delete the active upload session to create a new one. The following table lists the derived types of customDataProvidedResourceUploadSession that can be created. Specify the @odata.type in the request body to indicate the derived type. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 // returns a CustomDataProvidedResourceUploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -143,7 +143,7 @@ func (m *CatalogsItemAccessPackageResourcesItemUploadSessionsRequestBuilder) ToG requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a customDataProvidedResourceUploadSession object. Only one upload session is allowed per reference instance (for example, access review instance) and customDataProvidedResource pair. Once you create an upload session, upload files, and complete the session, the data is processed and you cannot create another upload session for that same pair. If you encounter errors with files uploaded or need to start fresh, you can delete the active upload session to create a new one. +// ToPostRequestInformation create a customDataProvidedResourceUploadSession object. Only one upload session is allowed per reference instance (for example, access review instance) and customDataProvidedResource pair. Once you create an upload session, upload files, and complete the session, the data is processed and you cannot create another upload session for that same pair. If you encounter errors with files uploaded or need to start fresh, you can delete the active upload session to create a new one. The following table lists the derived types of customDataProvidedResourceUploadSession that can be created. Specify the @odata.type in the request body to indicate the derived type. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 // returns a *RequestInformation when successful func (m *CatalogsItemAccessPackageResourcesItemUploadSessionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomDataProvidedResourceUploadSessionable, requestConfiguration *CatalogsItemAccessPackageResourcesItemUploadSessionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/identitygovernance/cdf16764b1e3a08180d4660684506ad0e2089999e8236244507e6fcbd1124b5d.go b/identitygovernance/cdf16764b1e3a08180d4660684506ad0e2089999e8236244507e6fcbd1124b5d.go new file mode 100644 index 00000000000..4cbc185d5d0 --- /dev/null +++ b/identitygovernance/cdf16764b1e3a08180d4660684506ad0e2089999e8236244507e6fcbd1124b5d.go @@ -0,0 +1,84 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetQueryParameters the reprocessed runs associated with this subject processing result. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/{run%2Did1}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the reprocessed runs associated with this subject processing result. +// returns a Runable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Runable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateRunFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Runable), nil +} +// ToGetRequestInformation the reprocessed runs associated with this subject processing result. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/d134191b5a8f1c54f8fe0d94dfb13ee2ff19e75d760adbab8a8f4f4dc9a339ae.go b/identitygovernance/d134191b5a8f1c54f8fe0d94dfb13ee2ff19e75d760adbab8a8f4f4dc9a339ae.go new file mode 100644 index 00000000000..145073753bc --- /dev/null +++ b/identitygovernance/d134191b5a8f1c54f8fe0d94dfb13ee2ff19e75d760adbab8a8f4f4dc9a339ae.go @@ -0,0 +1,101 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Count()(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// returns a ServiceProvisioningErrorCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil +} +// ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/d6ea797586569dd989445eb02af6796c4a73b6a5974f2a8960b5c028e69909f7.go b/identitygovernance/d6ea797586569dd989445eb02af6796c4a73b6a5974f2a8960b5c028e69909f7.go new file mode 100644 index 00000000000..1f40e87132b --- /dev/null +++ b/identitygovernance/d6ea797586569dd989445eb02af6796c4a73b6a5974f2a8960b5c028e69909f7.go @@ -0,0 +1,99 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetQueryParameters the task-level processing results for this subject. Read-only. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the task-level processing results for this subject. Read-only. +// returns a TaskProcessingResultable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateTaskProcessingResultFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultable), nil +} +// MicrosoftGraphIdentityGovernanceResume provides operations to call the resume method. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) MicrosoftGraphIdentityGovernanceResume()(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Subject provides operations to manage the subject property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) Subject()(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Task provides operations to manage the task property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) Task()(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation the task-level processing results for this subject. Read-only. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/da7a6e48fbd7b87ec5c36c157632454acd4c9cd2b507dfa236eeb2558f5cc52a.go b/identitygovernance/da7a6e48fbd7b87ec5c36c157632454acd4c9cd2b507dfa236eeb2558f5cc52a.go new file mode 100644 index 00000000000..e6d526be8fa --- /dev/null +++ b/identitygovernance/da7a6e48fbd7b87ec5c36c157632454acd4c9cd2b507dfa236eeb2558f5cc52a.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/dba79419e0d8107d9cea4027ce22da1df99c334054dba53429b514668f8c1e3e.go b/identitygovernance/dba79419e0d8107d9cea4027ce22da1df99c334054dba53429b514668f8c1e3e.go new file mode 100644 index 00000000000..3c1b19e75f1 --- /dev/null +++ b/identitygovernance/dba79419e0d8107d9cea4027ce22da1df99c334054dba53429b514668f8c1e3e.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/dfcfa2927593cb1360308a1cda39fa72e9e2f18d28ffb1e6ba2009180c9404e1.go b/identitygovernance/dfcfa2927593cb1360308a1cda39fa72e9e2f18d28ffb1e6ba2009180c9404e1.go new file mode 100644 index 00000000000..ec56a335c1a --- /dev/null +++ b/identitygovernance/dfcfa2927593cb1360308a1cda39fa72e9e2f18d28ffb1e6ba2009180c9404e1.go @@ -0,0 +1,113 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetQueryParameters the task-level processing results for this subject. Read-only. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetQueryParameters +} +// ByTaskProcessingResultId provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) ByTaskProcessingResultId(taskProcessingResultId string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if taskProcessingResultId != "" { + urlTplParams["taskProcessingResult%2Did"] = taskProcessingResultId + } + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) Count()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the task-level processing results for this subject. Read-only. +// returns a TaskProcessingResultCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateTaskProcessingResultCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultCollectionResponseable), nil +} +// ToGetRequestInformation the task-level processing results for this subject. Read-only. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/e041ca12db03e6c8577fdb0e1f5c5677816246c8b5e2abf59986acb85a46970f.go b/identitygovernance/e041ca12db03e6c8577fdb0e1f5c5677816246c8b5e2abf59986acb85a46970f.go new file mode 100644 index 00000000000..122a1fb361b --- /dev/null +++ b/identitygovernance/e041ca12db03e6c8577fdb0e1f5c5677816246c8b5e2abf59986acb85a46970f.go @@ -0,0 +1,84 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder provides operations to manage the task property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetQueryParameters the related workflow task +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/task{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the related workflow task +// returns a Taskable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Taskable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateTaskFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.Taskable), nil +} +// ToGetRequestInformation the related workflow task +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/e20eae1cfc4b56e1568534b91094422b08114d0f105c45b6bbaafd861ce86d57.go b/identitygovernance/e20eae1cfc4b56e1568534b91094422b08114d0f105c45b6bbaafd861ce86d57.go new file mode 100644 index 00000000000..9dd09afd3d3 --- /dev/null +++ b/identitygovernance/e20eae1cfc4b56e1568534b91094422b08114d0f105c45b6bbaafd861ce86d57.go @@ -0,0 +1,99 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetQueryParameters the task-level processing results for this subject. Read-only. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the task-level processing results for this subject. Read-only. +// returns a TaskProcessingResultable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateTaskProcessingResultFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultable), nil +} +// MicrosoftGraphIdentityGovernanceResume provides operations to call the resume method. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) MicrosoftGraphIdentityGovernanceResume()(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Subject provides operations to manage the subject property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) Subject()(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Task provides operations to manage the task property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) Task()(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation the task-level processing results for this subject. Read-only. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/e69a4c5d761b6df49681dc8b4b1e94062142d44a52f9abcf8fd9643ccb303b4e.go b/identitygovernance/e69a4c5d761b6df49681dc8b4b1e94062142d44a52f9abcf8fd9643ccb303b4e.go new file mode 100644 index 00000000000..b7f829bf43e --- /dev/null +++ b/identitygovernance/e69a4c5d761b6df49681dc8b4b1e94062142d44a52f9abcf8fd9643ccb303b4e.go @@ -0,0 +1,99 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetQueryParameters the task-level processing results for this subject. Read-only. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the task-level processing results for this subject. Read-only. +// returns a TaskProcessingResultable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateTaskProcessingResultFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultable), nil +} +// MicrosoftGraphIdentityGovernanceResume provides operations to call the resume method. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) MicrosoftGraphIdentityGovernanceResume()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Subject provides operations to manage the subject property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) Subject()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Task provides operations to manage the task property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) Task()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation the task-level processing results for this subject. Read-only. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_ref_request_builder.go b/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_ref_request_builder.go index c426d5167c5..d635a180a0b 100644 --- a/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_ref_request_builder.go +++ b/identitygovernance/entitlement_management_access_packages_item_incompatible_access_packages_ref_request_builder.go @@ -62,7 +62,7 @@ type EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequest // NewEntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderInternal instantiates a new EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilder and sets the default values. func NewEntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilder) { m := &EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefReq // ToGetRequestInformation retrieve a list of the accessPackage objects marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefReq // ToPostRequestInformation add an accessPackage to the list of access packages marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *EntitlementManagementAccessPackagesItemIncompatibleAccessPackagesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_ref_request_builder.go b/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_ref_request_builder.go index 3cbb0693eee..a9700a6d1c6 100644 --- a/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_ref_request_builder.go +++ b/identitygovernance/entitlement_management_access_packages_item_incompatible_groups_ref_request_builder.go @@ -62,7 +62,7 @@ type EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderP // NewEntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderInternal instantiates a new EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilder and sets the default values. func NewEntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilder) { m := &EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuil // ToGetRequestInformation retrieve a list of the group objects marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuil // ToPostRequestInformation add a group to the list of groups marked as incompatible on an accessPackage. // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *EntitlementManagementAccessPackagesItemIncompatibleGroupsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/identitygovernance/entitlement_management_connected_organizations_item_external_sponsors_ref_request_builder.go b/identitygovernance/entitlement_management_connected_organizations_item_external_sponsors_ref_request_builder.go index 7d6d1bc0936..12663ffc89f 100644 --- a/identitygovernance/entitlement_management_connected_organizations_item_external_sponsors_ref_request_builder.go +++ b/identitygovernance/entitlement_management_connected_organizations_item_external_sponsors_ref_request_builder.go @@ -62,7 +62,7 @@ type EntitlementManagementConnectedOrganizationsItemExternalSponsorsRefRequestBu // NewEntitlementManagementConnectedOrganizationsItemExternalSponsorsRefRequestBuilderInternal instantiates a new EntitlementManagementConnectedOrganizationsItemExternalSponsorsRefRequestBuilder and sets the default values. func NewEntitlementManagementConnectedOrganizationsItemExternalSponsorsRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementConnectedOrganizationsItemExternalSponsorsRefRequestBuilder) { m := &EntitlementManagementConnectedOrganizationsItemExternalSponsorsRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *EntitlementManagementConnectedOrganizationsItemExternalSponsorsRefReque // ToGetRequestInformation retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. // returns a *RequestInformation when successful func (m *EntitlementManagementConnectedOrganizationsItemExternalSponsorsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementConnectedOrganizationsItemExternalSponsorsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *EntitlementManagementConnectedOrganizationsItemExternalSponsorsRefReque // ToPostRequestInformation add a user or a group to the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. // returns a *RequestInformation when successful func (m *EntitlementManagementConnectedOrganizationsItemExternalSponsorsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *EntitlementManagementConnectedOrganizationsItemExternalSponsorsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/identitygovernance/entitlement_management_connected_organizations_item_internal_sponsors_ref_request_builder.go b/identitygovernance/entitlement_management_connected_organizations_item_internal_sponsors_ref_request_builder.go index bb90be243b3..6b7c86f5fe8 100644 --- a/identitygovernance/entitlement_management_connected_organizations_item_internal_sponsors_ref_request_builder.go +++ b/identitygovernance/entitlement_management_connected_organizations_item_internal_sponsors_ref_request_builder.go @@ -62,7 +62,7 @@ type EntitlementManagementConnectedOrganizationsItemInternalSponsorsRefRequestBu // NewEntitlementManagementConnectedOrganizationsItemInternalSponsorsRefRequestBuilderInternal instantiates a new EntitlementManagementConnectedOrganizationsItemInternalSponsorsRefRequestBuilder and sets the default values. func NewEntitlementManagementConnectedOrganizationsItemInternalSponsorsRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementConnectedOrganizationsItemInternalSponsorsRefRequestBuilder) { m := &EntitlementManagementConnectedOrganizationsItemInternalSponsorsRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *EntitlementManagementConnectedOrganizationsItemInternalSponsorsRefReque // ToGetRequestInformation retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. // returns a *RequestInformation when successful func (m *EntitlementManagementConnectedOrganizationsItemInternalSponsorsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementConnectedOrganizationsItemInternalSponsorsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *EntitlementManagementConnectedOrganizationsItemInternalSponsorsRefReque // ToPostRequestInformation add a user or a group to the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. // returns a *RequestInformation when successful func (m *EntitlementManagementConnectedOrganizationsItemInternalSponsorsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *EntitlementManagementConnectedOrganizationsItemInternalSponsorsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/identitygovernance/f3a84d1c736709213b04ca2db71f403ae2cb67ade0372be4038606794970b368.go b/identitygovernance/f3a84d1c736709213b04ca2db71f403ae2cb67ade0372be4038606794970b368.go new file mode 100644 index 00000000000..f000641e9bd --- /dev/null +++ b/identitygovernance/f3a84d1c736709213b04ca2db71f403ae2cb67ade0372be4038606794970b368.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/fc34c8a00e3fbf2aea2aa4bb9d6ec9e2868717ab13df00f0aef512e5085aea4d.go b/identitygovernance/fc34c8a00e3fbf2aea2aa4bb9d6ec9e2868717ab13df00f0aef512e5085aea4d.go new file mode 100644 index 00000000000..dee512d7797 --- /dev/null +++ b/identitygovernance/fc34c8a00e3fbf2aea2aa4bb9d6ec9e2868717ab13df00f0aef512e5085aea4d.go @@ -0,0 +1,99 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetQueryParameters the task-level processing results for this subject. Read-only. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the task-level processing results for this subject. Read-only. +// returns a TaskProcessingResultable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateTaskProcessingResultFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskProcessingResultable), nil +} +// MicrosoftGraphIdentityGovernanceResume provides operations to call the resume method. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) MicrosoftGraphIdentityGovernanceResume()(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemMicrosoftGraphIdentityGovernanceResumeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Subject provides operations to manage the subject property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) Subject()(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Task provides operations to manage the task property of the microsoft.graph.identityGovernance.taskProcessingResult entity. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) Task()(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsItemTaskRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation the task-level processing results for this subject. Read-only. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemTaskProcessingResultsTaskProcessingResultItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_runs_run_item_request_builder.go b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_runs_run_item_request_builder.go index 572915ab262..ed13d8168ee 100644 --- a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_runs_run_item_request_builder.go +++ b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_runs_run_item_request_builder.go @@ -68,6 +68,11 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsRunItemRequestBuilder) G func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsRunItemRequestBuilder) ReprocessedRuns()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemReprocessedRunsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemReprocessedRunsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// SubjectProcessingResults provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.run entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsRunItemRequestBuilder) SubjectProcessingResults()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // TaskProcessingResults provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.run entity. // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsRunItemRequestBuilder) TaskProcessingResults()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsRequestBuilder) { diff --git a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_subject_processing_results_count_request_builder.go b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_subject_processing_results_count_request_builder.go new file mode 100644 index 00000000000..094866285c1 --- /dev/null +++ b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_subject_processing_results_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_subject_processing_results_request_builder.go b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_subject_processing_results_request_builder.go new file mode 100644 index 00000000000..3d7cb9037d5 --- /dev/null +++ b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_subject_processing_results_request_builder.go @@ -0,0 +1,113 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.workflow entity. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilderGetQueryParameters get subjectProcessingResults from identityGovernance +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilderGetQueryParameters +} +// BySubjectProcessingResultId provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.workflow entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder) BySubjectProcessingResultId(subjectProcessingResultId string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if subjectProcessingResultId != "" { + urlTplParams["subjectProcessingResult%2Did"] = subjectProcessingResultId + } + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilderInternal instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder) { + m := &LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder instantiates a new LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder) Count()(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get subjectProcessingResults from identityGovernance +// returns a SubjectProcessingResultCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateSubjectProcessingResultCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultCollectionResponseable), nil +} +// ToGetRequestInformation get subjectProcessingResults from identityGovernance +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/lifecycle_workflows_deleted_items_workflows_workflow_item_request_builder.go b/identitygovernance/lifecycle_workflows_deleted_items_workflows_workflow_item_request_builder.go index e33387706ae..e6285c497cc 100644 --- a/identitygovernance/lifecycle_workflows_deleted_items_workflows_workflow_item_request_builder.go +++ b/identitygovernance/lifecycle_workflows_deleted_items_workflows_workflow_item_request_builder.go @@ -117,6 +117,11 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsWorkflowItemRequestBuilder) Last func (m *LifecycleWorkflowsDeletedItemsWorkflowsWorkflowItemRequestBuilder) MicrosoftGraphIdentityGovernanceActivate()(*LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// MicrosoftGraphIdentityGovernanceActivateAndWait provides operations to call the activateAndWait method. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsWorkflowItemRequestBuilder) MicrosoftGraphIdentityGovernanceActivateAndWait()(*LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MicrosoftGraphIdentityGovernanceActivateWithScope provides operations to call the activateWithScope method. // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateWithScopeRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsWorkflowItemRequestBuilder) MicrosoftGraphIdentityGovernanceActivateWithScope()(*LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateWithScopeRequestBuilder) { @@ -127,6 +132,11 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsWorkflowItemRequestBuilder) Micr func (m *LifecycleWorkflowsDeletedItemsWorkflowsWorkflowItemRequestBuilder) MicrosoftGraphIdentityGovernanceCancelProcessing()(*LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceCancelProcessingRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceCancelProcessingRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// MicrosoftGraphIdentityGovernanceClearQuarantine provides operations to call the clearQuarantine method. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsWorkflowItemRequestBuilder) MicrosoftGraphIdentityGovernanceClearQuarantine()(*LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MicrosoftGraphIdentityGovernanceCreateNewVersion provides operations to call the createNewVersion method. // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsWorkflowItemRequestBuilder) MicrosoftGraphIdentityGovernanceCreateNewVersion()(*LifecycleWorkflowsDeletedItemsWorkflowsItemMicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder) { @@ -157,6 +167,11 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsWorkflowItemRequestBuilder) Prev func (m *LifecycleWorkflowsDeletedItemsWorkflowsWorkflowItemRequestBuilder) Runs()(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// SubjectProcessingResults provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.workflow entity. +// returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsDeletedItemsWorkflowsWorkflowItemRequestBuilder) SubjectProcessingResults()(*LifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsDeletedItemsWorkflowsItemSubjectProcessingResultsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // TaskReports provides operations to manage the taskReports property of the microsoft.graph.identityGovernance.workflow entity. // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsWorkflowItemRequestBuilder) TaskReports()(*LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsRequestBuilder) { diff --git a/identitygovernance/lifecycle_workflows_workflows_item_runs_item_subject_processing_results_count_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_runs_item_subject_processing_results_count_request_builder.go new file mode 100644 index 00000000000..2e0d1789153 --- /dev/null +++ b/identitygovernance/lifecycle_workflows_workflows_item_runs_item_subject_processing_results_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/lifecycle_workflows_workflows_item_runs_item_subject_processing_results_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_runs_item_subject_processing_results_request_builder.go new file mode 100644 index 00000000000..6fb8f0d121c --- /dev/null +++ b/identitygovernance/lifecycle_workflows_workflows_item_runs_item_subject_processing_results_request_builder.go @@ -0,0 +1,116 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.run entity. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderGetQueryParameters get a list of the subjectProcessingResult objects for a specific workflow run. Each result represents the processing outcome for a single subject. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderGetQueryParameters +} +// BySubjectProcessingResultId provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.run entity. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) BySubjectProcessingResultId(subjectProcessingResultId string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if subjectProcessingResultId != "" { + urlTplParams["subjectProcessingResult%2Did"] = subjectProcessingResultId + } + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) Count()(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get a list of the subjectProcessingResult objects for a specific workflow run. Each result represents the processing outcome for a single subject. +// returns a SubjectProcessingResultCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/identitygovernance-run-list-subjectprocessingresults?view=graph-rest-beta +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateSubjectProcessingResultCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultCollectionResponseable), nil +} +// ToGetRequestInformation get a list of the subjectProcessingResult objects for a specific workflow run. Each result represents the processing outcome for a single subject. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/lifecycle_workflows_workflows_item_runs_run_item_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_runs_run_item_request_builder.go index f09d094b529..97e5283b24a 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_runs_run_item_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_runs_run_item_request_builder.go @@ -71,6 +71,11 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsRunItemRequestBuilder) Get(ctx conte func (m *LifecycleWorkflowsWorkflowsItemRunsRunItemRequestBuilder) ReprocessedRuns()(*LifecycleWorkflowsWorkflowsItemRunsItemReprocessedRunsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemRunsItemReprocessedRunsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// SubjectProcessingResults provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.run entity. +// returns a *LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemRunsRunItemRequestBuilder) SubjectProcessingResults()(*LifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemRunsItemSubjectProcessingResultsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // TaskProcessingResults provides operations to manage the taskProcessingResults property of the microsoft.graph.identityGovernance.run entity. // returns a *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemRunsRunItemRequestBuilder) TaskProcessingResults()(*LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsRequestBuilder) { diff --git a/identitygovernance/lifecycle_workflows_workflows_item_subject_processing_results_count_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_subject_processing_results_count_request_builder.go new file mode 100644 index 00000000000..263f065e26d --- /dev/null +++ b/identitygovernance/lifecycle_workflows_workflows_item_subject_processing_results_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder provides operations to count the resources in the collection. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilderGetQueryParameters get the number of the resource +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilderGetQueryParameters +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/lifecycle_workflows_workflows_item_subject_processing_results_item_reprocessed_runs_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_subject_processing_results_item_reprocessed_runs_request_builder.go new file mode 100644 index 00000000000..78c7e291460 --- /dev/null +++ b/identitygovernance/lifecycle_workflows_workflows_item_subject_processing_results_item_reprocessed_runs_request_builder.go @@ -0,0 +1,113 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetQueryParameters the reprocessed runs associated with this subject processing result. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetQueryParameters +} +// ByRunId provides operations to manage the reprocessedRuns property of the microsoft.graph.identityGovernance.subjectProcessingResult entity. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) ByRunId(runId string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if runId != "" { + urlTplParams["run%2Did"] = runId + } + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRunItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) Count()(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the reprocessed runs associated with this subject processing result. +// returns a RunCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.RunCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateRunCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.RunCollectionResponseable), nil +} +// ToGetRequestInformation the reprocessed runs associated with this subject processing result. +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsItemReprocessedRunsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/lifecycle_workflows_workflows_item_subject_processing_results_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_subject_processing_results_request_builder.go new file mode 100644 index 00000000000..8d74ae0f842 --- /dev/null +++ b/identitygovernance/lifecycle_workflows_workflows_item_subject_processing_results_request_builder.go @@ -0,0 +1,113 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" + i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/identitygovernance" +) + +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.workflow entity. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilderGetQueryParameters get subjectProcessingResults from identityGovernance +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilderGetQueryParameters +} +// BySubjectProcessingResultId provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.workflow entity. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder) BySubjectProcessingResultId(subjectProcessingResultId string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if subjectProcessingResultId != "" { + urlTplParams["subjectProcessingResult%2Did"] = subjectProcessingResultId + } + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsSubjectProcessingResultItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilderInternal instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder) { + m := &LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder instantiates a new LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder and sets the default values. +func NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder) Count()(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get subjectProcessingResults from identityGovernance +// returns a SubjectProcessingResultCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration)(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.CreateSubjectProcessingResultCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.SubjectProcessingResultCollectionResponseable), nil +} +// ToGetRequestInformation get subjectProcessingResults from identityGovernance +// returns a *RequestInformation when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/lifecycle_workflows_workflows_workflow_item_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_workflow_item_request_builder.go index 8c95a9448ce..9fa12760523 100644 --- a/identitygovernance/lifecycle_workflows_workflows_workflow_item_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_workflow_item_request_builder.go @@ -124,6 +124,11 @@ func (m *LifecycleWorkflowsWorkflowsWorkflowItemRequestBuilder) LastModifiedBy() func (m *LifecycleWorkflowsWorkflowsWorkflowItemRequestBuilder) MicrosoftGraphIdentityGovernanceActivate()(*LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// MicrosoftGraphIdentityGovernanceActivateAndWait provides operations to call the activateAndWait method. +// returns a *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsWorkflowItemRequestBuilder) MicrosoftGraphIdentityGovernanceActivateAndWait()(*LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MicrosoftGraphIdentityGovernanceActivateWithScope provides operations to call the activateWithScope method. // returns a *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateWithScopeRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsWorkflowItemRequestBuilder) MicrosoftGraphIdentityGovernanceActivateWithScope()(*LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceActivateWithScopeRequestBuilder) { @@ -134,6 +139,11 @@ func (m *LifecycleWorkflowsWorkflowsWorkflowItemRequestBuilder) MicrosoftGraphId func (m *LifecycleWorkflowsWorkflowsWorkflowItemRequestBuilder) MicrosoftGraphIdentityGovernanceCancelProcessing()(*LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceCancelProcessingRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceCancelProcessingRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// MicrosoftGraphIdentityGovernanceClearQuarantine provides operations to call the clearQuarantine method. +// returns a *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsWorkflowItemRequestBuilder) MicrosoftGraphIdentityGovernanceClearQuarantine()(*LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceClearQuarantineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MicrosoftGraphIdentityGovernanceCreateNewVersion provides operations to call the createNewVersion method. // returns a *LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsWorkflowItemRequestBuilder) MicrosoftGraphIdentityGovernanceCreateNewVersion()(*LifecycleWorkflowsWorkflowsItemMicrosoftGraphIdentityGovernanceCreateNewVersionRequestBuilder) { @@ -187,6 +197,11 @@ func (m *LifecycleWorkflowsWorkflowsWorkflowItemRequestBuilder) PreviewScope()(* func (m *LifecycleWorkflowsWorkflowsWorkflowItemRequestBuilder) Runs()(*LifecycleWorkflowsWorkflowsItemRunsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemRunsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// SubjectProcessingResults provides operations to manage the subjectProcessingResults property of the microsoft.graph.identityGovernance.workflow entity. +// returns a *LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder when successful +func (m *LifecycleWorkflowsWorkflowsWorkflowItemRequestBuilder) SubjectProcessingResults()(*LifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilder) { + return NewLifecycleWorkflowsWorkflowsItemSubjectProcessingResultsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // TaskReports provides operations to manage the taskReports property of the microsoft.graph.identityGovernance.workflow entity. // returns a *LifecycleWorkflowsWorkflowsItemTaskReportsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsWorkflowItemRequestBuilder) TaskReports()(*LifecycleWorkflowsWorkflowsItemTaskReportsRequestBuilder) { diff --git a/informationprotection/bitlocker_recovery_keys_bitlocker_recovery_key_item_request_builder.go b/informationprotection/bitlocker_recovery_keys_bitlocker_recovery_key_item_request_builder.go index 4a71843e136..23c76c34001 100644 --- a/informationprotection/bitlocker_recovery_keys_bitlocker_recovery_key_item_request_builder.go +++ b/informationprotection/bitlocker_recovery_keys_bitlocker_recovery_key_item_request_builder.go @@ -14,7 +14,7 @@ import ( type BitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderGetQueryParameters retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation does not return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers a Microsoft Entra audit of the operation and generates an audit log. You can find the log in Microsoft Entra audit logs under the KeyManagement category. +// BitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderGetQueryParameters retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation doesn't return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers a Microsoft Entra audit of the operation and generates an audit log. You can find the log in Microsoft Entra audit logs under the KeyManagement category. type BitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -43,7 +43,7 @@ func NewBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder(rawUrl strin urlParams["request-raw-url"] = rawUrl return NewBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation does not return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers a Microsoft Entra audit of the operation and generates an audit log. You can find the log in Microsoft Entra audit logs under the KeyManagement category. +// Get retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation doesn't return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers a Microsoft Entra audit of the operation and generates an audit log. You can find the log in Microsoft Entra audit logs under the KeyManagement category. // returns a BitlockerRecoveryKeyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -66,7 +66,7 @@ func (m *BitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder) Get(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BitlockerRecoveryKeyable), nil } -// ToGetRequestInformation retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation does not return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers a Microsoft Entra audit of the operation and generates an audit log. You can find the log in Microsoft Entra audit logs under the KeyManagement category. +// ToGetRequestInformation retrieve the properties and relationships of a bitlockerRecoveryKey object. By default, this operation doesn't return the key property that represents the actual recovery key. To include the key property in the response, use the $select OData query parameter. Including the $select query parameter triggers a Microsoft Entra audit of the operation and generates an audit log. You can find the log in Microsoft Entra audit logs under the KeyManagement category. // returns a *RequestInformation when successful func (m *BitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/informationprotection/bitlocker_recovery_keys_request_builder.go b/informationprotection/bitlocker_recovery_keys_request_builder.go index 412a760d16a..422ee847241 100644 --- a/informationprotection/bitlocker_recovery_keys_request_builder.go +++ b/informationprotection/bitlocker_recovery_keys_request_builder.go @@ -14,7 +14,7 @@ import ( type BitlockerRecoveryKeysRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BitlockerRecoveryKeysRequestBuilderGetQueryParameters get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. You can use this API to programmatically iterate through the list of recovery keys in the tenant and identify devices with BitLocker enabled. For more information, see the sample PowerShell code in BitLocker recovery process. +// BitlockerRecoveryKeysRequestBuilderGetQueryParameters get a list of the bitlockerRecoveryKey objects and their properties. This operation doesn't return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. You can use this API to programmatically iterate through the list of recovery keys in the tenant and identify devices with BitLocker enabled. For more information, see the sample PowerShell code in BitLocker recovery process. type BitlockerRecoveryKeysRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -72,7 +72,7 @@ func NewBitlockerRecoveryKeysRequestBuilder(rawUrl string, requestAdapter i2ae41 func (m *BitlockerRecoveryKeysRequestBuilder) Count()(*BitlockerRecoveryKeysCountRequestBuilder) { return NewBitlockerRecoveryKeysCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. You can use this API to programmatically iterate through the list of recovery keys in the tenant and identify devices with BitLocker enabled. For more information, see the sample PowerShell code in BitLocker recovery process. +// Get get a list of the bitlockerRecoveryKey objects and their properties. This operation doesn't return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. You can use this API to programmatically iterate through the list of recovery keys in the tenant and identify devices with BitLocker enabled. For more information, see the sample PowerShell code in BitLocker recovery process. // returns a BitlockerRecoveryKeyCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -95,7 +95,7 @@ func (m *BitlockerRecoveryKeysRequestBuilder) Get(ctx context.Context, requestCo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BitlockerRecoveryKeyCollectionResponseable), nil } -// ToGetRequestInformation get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. You can use this API to programmatically iterate through the list of recovery keys in the tenant and identify devices with BitLocker enabled. For more information, see the sample PowerShell code in BitLocker recovery process. +// ToGetRequestInformation get a list of the bitlockerRecoveryKey objects and their properties. This operation doesn't return the key property. For information about how to read the key property, see Get bitlockerRecoveryKey. You can use this API to programmatically iterate through the list of recovery keys in the tenant and identify devices with BitLocker enabled. For more information, see the sample PowerShell code in BitLocker recovery process. // returns a *RequestInformation when successful func (m *BitlockerRecoveryKeysRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BitlockerRecoveryKeysRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/kiota-dom-export.txt b/kiota-dom-export.txt index 986f0a9720d..0dbe745d8b2 100644 --- a/kiota-dom-export.txt +++ b/kiota-dom-export.txt @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d7764c3fd8f5d2ac6848ee48957ecc53547648fa52c5b3be01427c032210c196 -size 109481685 +oid sha256:d6115fc04fdb2bde458575c7b064b91163be6f7a2ed515231a0b8eb3fc9f2aeb +size 110991961 diff --git a/kiota-lock.json b/kiota-lock.json index 27e7647c14a..a6c52465f88 100644 --- a/kiota-lock.json +++ b/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "41AA3137252C168612F152AAE2D7E85B9FE6B22B5FD310D2FACA3A1EE852CF5AE899BA2C71F933D7B4A220B626246E92D22DE66B763E3E7A4F7C5513AEB36801", + "descriptionHash": "9B796FFF23C4352E7B922A1747D4AB621239E2BD756F889FE1EBF72DC8E758AA7AA902A4A47C5F224192D10E3F722F2BEE2153A4877ED99519B6342393A030F5", "descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.31.1", + "kiotaVersion": "1.32.4", "clientClassName": "GraphBaseServiceClient", "typeAccessModifier": "Public", "clientNamespaceName": "github.com/microsoftgraph/msgraph-beta-sdk-go/", diff --git a/mobilitymanagementpolicies/item_included_groups_ref_request_builder.go b/mobilitymanagementpolicies/item_included_groups_ref_request_builder.go index 7c42b843d85..6443cef34eb 100644 --- a/mobilitymanagementpolicies/item_included_groups_ref_request_builder.go +++ b/mobilitymanagementpolicies/item_included_groups_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemIncludedGroupsRefRequestBuilderPostRequestConfiguration struct { // NewItemIncludedGroupsRefRequestBuilderInternal instantiates a new ItemIncludedGroupsRefRequestBuilder and sets the default values. func NewItemIncludedGroupsRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemIncludedGroupsRefRequestBuilder) { m := &ItemIncludedGroupsRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/mobilityManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/mobilityManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *ItemIncludedGroupsRefRequestBuilder) ToDeleteRequestInformation(ctx con // ToGetRequestInformation microsoft Entra groups under the scope of the mobility management application if appliesTo is selected // returns a *RequestInformation when successful func (m *ItemIncludedGroupsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemIncludedGroupsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/mobilityManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *ItemIncludedGroupsRefRequestBuilder) ToGetRequestInformation(ctx contex // ToPostRequestInformation create new navigation property ref to includedGroups for mobilityManagementPolicies // returns a *RequestInformation when successful func (m *ItemIncludedGroupsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemIncludedGroupsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/mobilityManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/models/access_package_approval_stage.go b/models/access_package_approval_stage.go index b138ca771dc..e4701b9a467 100644 --- a/models/access_package_approval_stage.go +++ b/models/access_package_approval_stage.go @@ -79,7 +79,7 @@ func (m *AccessPackageApprovalStage) GetDurationBeforeEscalation()(*i878a80d2330 } return nil } -// GetEscalationApprovers gets the escalationApprovers property value. If escalation is enabled and the primary approvers don't respond before the escalation time, the escalationApprovers are the users who will be asked to approve requests. +// GetEscalationApprovers gets the escalationApprovers property value. If escalation is enabled and the primary approvers do not respond before the escalation time, the escalationApprovers are the users who are asked to approve requests. // returns a []SubjectSetable when successful func (m *AccessPackageApprovalStage) GetEscalationApprovers()([]SubjectSetable) { val, err := m.GetBackingStore().Get("escalationApprovers") @@ -281,7 +281,7 @@ func (m *AccessPackageApprovalStage) GetOdataType()(*string) { } return nil } -// GetPrimaryApprovers gets the primaryApprovers property value. The subjects, typically users, who will be asked to approve requests. A collection of singleUser, groupMembers, requestorManager, internalSponsors, externalSponsors, or targetUserSponsors. +// GetPrimaryApprovers gets the primaryApprovers property value. The subjects, typically users, who are asked to approve requests. A collection of singleUser, groupMembers, requestorManager, internalSponsors, externalSponsors, or targetUserSponsors. // returns a []SubjectSetable when successful func (m *AccessPackageApprovalStage) GetPrimaryApprovers()([]SubjectSetable) { val, err := m.GetBackingStore().Get("primaryApprovers") @@ -420,7 +420,7 @@ func (m *AccessPackageApprovalStage) SetDurationBeforeEscalation(value *i878a80d panic(err) } } -// SetEscalationApprovers sets the escalationApprovers property value. If escalation is enabled and the primary approvers don't respond before the escalation time, the escalationApprovers are the users who will be asked to approve requests. +// SetEscalationApprovers sets the escalationApprovers property value. If escalation is enabled and the primary approvers do not respond before the escalation time, the escalationApprovers are the users who are asked to approve requests. func (m *AccessPackageApprovalStage) SetEscalationApprovers(value []SubjectSetable)() { err := m.GetBackingStore().Set("escalationApprovers", value) if err != nil { @@ -462,7 +462,7 @@ func (m *AccessPackageApprovalStage) SetOdataType(value *string)() { panic(err) } } -// SetPrimaryApprovers sets the primaryApprovers property value. The subjects, typically users, who will be asked to approve requests. A collection of singleUser, groupMembers, requestorManager, internalSponsors, externalSponsors, or targetUserSponsors. +// SetPrimaryApprovers sets the primaryApprovers property value. The subjects, typically users, who are asked to approve requests. A collection of singleUser, groupMembers, requestorManager, internalSponsors, externalSponsors, or targetUserSponsors. func (m *AccessPackageApprovalStage) SetPrimaryApprovers(value []SubjectSetable)() { err := m.GetBackingStore().Set("primaryApprovers", value) if err != nil { diff --git a/models/access_package_resource_request.go b/models/access_package_resource_request.go index e2ba099bdc9..51b6aedcd40 100644 --- a/models/access_package_resource_request.go +++ b/models/access_package_resource_request.go @@ -213,7 +213,7 @@ func (m *AccessPackageResourceRequest) GetRequestor()(AccessPackageSubjectable) } return nil } -// GetRequestState gets the requestState property value. The outcome of whether the service was able to add the resource to the catalog. The value is Delivered if the resource was added or removed. Read-Only. +// GetRequestState gets the requestState property value. The outcome of whether the service was able to add the resource to the catalog. The value is Delivered if the resource was added or removed. Read-only. // returns a *string when successful func (m *AccessPackageResourceRequest) GetRequestState()(*string) { val, err := m.GetBackingStore().Get("requestState") @@ -366,7 +366,7 @@ func (m *AccessPackageResourceRequest) SetRequestor(value AccessPackageSubjectab panic(err) } } -// SetRequestState sets the requestState property value. The outcome of whether the service was able to add the resource to the catalog. The value is Delivered if the resource was added or removed. Read-Only. +// SetRequestState sets the requestState property value. The outcome of whether the service was able to add the resource to the catalog. The value is Delivered if the resource was added or removed. Read-only. func (m *AccessPackageResourceRequest) SetRequestState(value *string)() { err := m.GetBackingStore().Set("requestState", value) if err != nil { diff --git a/models/access_package_suggestion_self_assignment_history_based.go b/models/access_package_suggestion_self_assignment_history_based.go index 8a093a1b988..b144692de73 100644 --- a/models/access_package_suggestion_self_assignment_history_based.go +++ b/models/access_package_suggestion_self_assignment_history_based.go @@ -39,13 +39,13 @@ func (m *AccessPackageSuggestionSelfAssignmentHistoryBased) GetFieldDeserializer } return nil } - res["pastAssigmentCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + res["pastAssignmentCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { return err } if val != nil { - m.SetPastAssigmentCount(val) + m.SetPastAssignmentCount(val) } return nil } @@ -63,10 +63,10 @@ func (m *AccessPackageSuggestionSelfAssignmentHistoryBased) GetLastAssignmentDat } return nil } -// GetPastAssigmentCount gets the pastAssigmentCount property value. The pastAssigmentCount property +// GetPastAssignmentCount gets the pastAssignmentCount property value. The number of times the user has been assigned to this access package in the past. Read-only. // returns a *int32 when successful -func (m *AccessPackageSuggestionSelfAssignmentHistoryBased) GetPastAssigmentCount()(*int32) { - val, err := m.GetBackingStore().Get("pastAssigmentCount") +func (m *AccessPackageSuggestionSelfAssignmentHistoryBased) GetPastAssignmentCount()(*int32) { + val, err := m.GetBackingStore().Get("pastAssignmentCount") if err != nil { panic(err) } @@ -88,7 +88,7 @@ func (m *AccessPackageSuggestionSelfAssignmentHistoryBased) Serialize(writer i87 } } { - err = writer.WriteInt32Value("pastAssigmentCount", m.GetPastAssigmentCount()) + err = writer.WriteInt32Value("pastAssignmentCount", m.GetPastAssignmentCount()) if err != nil { return err } @@ -102,9 +102,9 @@ func (m *AccessPackageSuggestionSelfAssignmentHistoryBased) SetLastAssignmentDat panic(err) } } -// SetPastAssigmentCount sets the pastAssigmentCount property value. The pastAssigmentCount property -func (m *AccessPackageSuggestionSelfAssignmentHistoryBased) SetPastAssigmentCount(value *int32)() { - err := m.GetBackingStore().Set("pastAssigmentCount", value) +// SetPastAssignmentCount sets the pastAssignmentCount property value. The number of times the user has been assigned to this access package in the past. Read-only. +func (m *AccessPackageSuggestionSelfAssignmentHistoryBased) SetPastAssignmentCount(value *int32)() { + err := m.GetBackingStore().Set("pastAssignmentCount", value) if err != nil { panic(err) } @@ -113,7 +113,7 @@ type AccessPackageSuggestionSelfAssignmentHistoryBasedable interface { AccessPackageSuggestionReasonable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetLastAssignmentDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetPastAssigmentCount()(*int32) + GetPastAssignmentCount()(*int32) SetLastAssignmentDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetPastAssigmentCount(value *int32)() + SetPastAssignmentCount(value *int32)() } diff --git a/models/access_review_data_upload_trigger_callback_data.go b/models/access_review_data_upload_trigger_callback_data.go deleted file mode 100644 index 1f29827320b..00000000000 --- a/models/access_review_data_upload_trigger_callback_data.go +++ /dev/null @@ -1,267 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type AccessReviewDataUploadTriggerCallbackData struct { - CustomExtensionData -} -// NewAccessReviewDataUploadTriggerCallbackData instantiates a new AccessReviewDataUploadTriggerCallbackData and sets the default values. -func NewAccessReviewDataUploadTriggerCallbackData()(*AccessReviewDataUploadTriggerCallbackData) { - m := &AccessReviewDataUploadTriggerCallbackData{ - CustomExtensionData: *NewCustomExtensionData(), - } - odataTypeValue := "#microsoft.graph.accessReviewDataUploadTriggerCallbackData" - m.SetOdataType(&odataTypeValue) - return m -} -// CreateAccessReviewDataUploadTriggerCallbackDataFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateAccessReviewDataUploadTriggerCallbackDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewAccessReviewDataUploadTriggerCallbackData(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *AccessReviewDataUploadTriggerCallbackData) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.CustomExtensionData.GetFieldDeserializers() - res["permissionDescription"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPermissionDescription(val) - } - return nil - } - res["permissionId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPermissionId(val) - } - return nil - } - res["permissionName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPermissionName(val) - } - return nil - } - res["permissionType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPermissionType(val) - } - return nil - } - res["principalId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPrincipalId(val) - } - return nil - } - res["principalType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(ParsePrincipalType) - if err != nil { - return err - } - if val != nil { - m.SetPrincipalType(val.(*PrincipalType)) - } - return nil - } - return res -} -// GetPermissionDescription gets the permissionDescription property value. A description for the permission. -// returns a *string when successful -func (m *AccessReviewDataUploadTriggerCallbackData) GetPermissionDescription()(*string) { - val, err := m.GetBackingStore().Get("permissionDescription") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetPermissionId gets the permissionId property value. The id of the permission assigned to this principal. -// returns a *string when successful -func (m *AccessReviewDataUploadTriggerCallbackData) GetPermissionId()(*string) { - val, err := m.GetBackingStore().Get("permissionId") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetPermissionName gets the permissionName property value. The name of the permission assigned to this principal. -// returns a *string when successful -func (m *AccessReviewDataUploadTriggerCallbackData) GetPermissionName()(*string) { - val, err := m.GetBackingStore().Get("permissionName") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetPermissionType gets the permissionType property value. The type of the permission assigned to this principal. -// returns a *string when successful -func (m *AccessReviewDataUploadTriggerCallbackData) GetPermissionType()(*string) { - val, err := m.GetBackingStore().Get("permissionType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetPrincipalId gets the principalId property value. The id of the principal who has permissions on the custom data provided resource. -// returns a *string when successful -func (m *AccessReviewDataUploadTriggerCallbackData) GetPrincipalId()(*string) { - val, err := m.GetBackingStore().Get("principalId") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetPrincipalType gets the principalType property value. The principalType property -// returns a *PrincipalType when successful -func (m *AccessReviewDataUploadTriggerCallbackData) GetPrincipalType()(*PrincipalType) { - val, err := m.GetBackingStore().Get("principalType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*PrincipalType) - } - return nil -} -// Serialize serializes information the current object -func (m *AccessReviewDataUploadTriggerCallbackData) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.CustomExtensionData.Serialize(writer) - if err != nil { - return err - } - { - err = writer.WriteStringValue("permissionDescription", m.GetPermissionDescription()) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("permissionId", m.GetPermissionId()) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("permissionName", m.GetPermissionName()) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("permissionType", m.GetPermissionType()) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("principalId", m.GetPrincipalId()) - if err != nil { - return err - } - } - if m.GetPrincipalType() != nil { - cast := (*m.GetPrincipalType()).String() - err = writer.WriteStringValue("principalType", &cast) - if err != nil { - return err - } - } - return nil -} -// SetPermissionDescription sets the permissionDescription property value. A description for the permission. -func (m *AccessReviewDataUploadTriggerCallbackData) SetPermissionDescription(value *string)() { - err := m.GetBackingStore().Set("permissionDescription", value) - if err != nil { - panic(err) - } -} -// SetPermissionId sets the permissionId property value. The id of the permission assigned to this principal. -func (m *AccessReviewDataUploadTriggerCallbackData) SetPermissionId(value *string)() { - err := m.GetBackingStore().Set("permissionId", value) - if err != nil { - panic(err) - } -} -// SetPermissionName sets the permissionName property value. The name of the permission assigned to this principal. -func (m *AccessReviewDataUploadTriggerCallbackData) SetPermissionName(value *string)() { - err := m.GetBackingStore().Set("permissionName", value) - if err != nil { - panic(err) - } -} -// SetPermissionType sets the permissionType property value. The type of the permission assigned to this principal. -func (m *AccessReviewDataUploadTriggerCallbackData) SetPermissionType(value *string)() { - err := m.GetBackingStore().Set("permissionType", value) - if err != nil { - panic(err) - } -} -// SetPrincipalId sets the principalId property value. The id of the principal who has permissions on the custom data provided resource. -func (m *AccessReviewDataUploadTriggerCallbackData) SetPrincipalId(value *string)() { - err := m.GetBackingStore().Set("principalId", value) - if err != nil { - panic(err) - } -} -// SetPrincipalType sets the principalType property value. The principalType property -func (m *AccessReviewDataUploadTriggerCallbackData) SetPrincipalType(value *PrincipalType)() { - err := m.GetBackingStore().Set("principalType", value) - if err != nil { - panic(err) - } -} -type AccessReviewDataUploadTriggerCallbackDataable interface { - CustomExtensionDataable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetPermissionDescription()(*string) - GetPermissionId()(*string) - GetPermissionName()(*string) - GetPermissionType()(*string) - GetPrincipalId()(*string) - GetPrincipalType()(*PrincipalType) - SetPermissionDescription(value *string)() - SetPermissionId(value *string)() - SetPermissionName(value *string)() - SetPermissionType(value *string)() - SetPrincipalId(value *string)() - SetPrincipalType(value *PrincipalType)() -} diff --git a/models/access_review_instance.go b/models/access_review_instance.go index c5b7f4b44f7..d677ab51afe 100644 --- a/models/access_review_instance.go +++ b/models/access_review_instance.go @@ -59,6 +59,18 @@ func (m *AccessReviewInstance) GetDefinition()(AccessReviewScheduleDefinitionabl } return nil } +// GetDelegatedBy gets the delegatedBy property value. The identities of users who delegated this review instance to the current reviewer. Null if the instance wasn't delegated. Only returned via filterByCurrentUser when explicitly requested via $select. Read-only. +// returns a []UserIdentityable when successful +func (m *AccessReviewInstance) GetDelegatedBy()([]UserIdentityable) { + val, err := m.GetBackingStore().Get("delegatedBy") + if err != nil { + panic(err) + } + if val != nil { + return val.([]UserIdentityable) + } + return nil +} // GetEndDateTime gets the endDateTime property value. DateTime when review instance is scheduled to end. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $select. Read-only. // returns a *Time when successful func (m *AccessReviewInstance) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { @@ -141,6 +153,22 @@ func (m *AccessReviewInstance) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["delegatedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateUserIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]UserIdentityable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(UserIdentityable) + } + } + m.SetDelegatedBy(res) + } + return nil + } res["endDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -343,6 +371,18 @@ func (m *AccessReviewInstance) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + if m.GetDelegatedBy() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDelegatedBy())) + for i, v := range m.GetDelegatedBy() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("delegatedBy", cast) + if err != nil { + return err + } + } { err = writer.WriteTimeValue("endDateTime", m.GetEndDateTime()) if err != nil { @@ -438,6 +478,13 @@ func (m *AccessReviewInstance) SetDefinition(value AccessReviewScheduleDefinitio panic(err) } } +// SetDelegatedBy sets the delegatedBy property value. The identities of users who delegated this review instance to the current reviewer. Null if the instance wasn't delegated. Only returned via filterByCurrentUser when explicitly requested via $select. Read-only. +func (m *AccessReviewInstance) SetDelegatedBy(value []UserIdentityable)() { + err := m.GetBackingStore().Set("delegatedBy", value) + if err != nil { + panic(err) + } +} // SetEndDateTime sets the endDateTime property value. DateTime when review instance is scheduled to end. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $select. Read-only. func (m *AccessReviewInstance) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("endDateTime", value) @@ -500,6 +547,7 @@ type AccessReviewInstanceable interface { GetContactedReviewers()([]AccessReviewReviewerable) GetDecisions()([]AccessReviewInstanceDecisionItemable) GetDefinition()(AccessReviewScheduleDefinitionable) + GetDelegatedBy()([]UserIdentityable) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetErrors()([]AccessReviewErrorable) GetFallbackReviewers()([]AccessReviewReviewerScopeable) @@ -511,6 +559,7 @@ type AccessReviewInstanceable interface { SetContactedReviewers(value []AccessReviewReviewerable)() SetDecisions(value []AccessReviewInstanceDecisionItemable)() SetDefinition(value AccessReviewScheduleDefinitionable)() + SetDelegatedBy(value []UserIdentityable)() SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetErrors(value []AccessReviewErrorable)() SetFallbackReviewers(value []AccessReviewReviewerScopeable)() diff --git a/models/access_review_instance_decision_item.go b/models/access_review_instance_decision_item.go index 38596e951d9..b9e5acae53b 100644 --- a/models/access_review_instance_decision_item.go +++ b/models/access_review_instance_decision_item.go @@ -95,6 +95,18 @@ func (m *AccessReviewInstanceDecisionItem) GetDecision()(*string) { } return nil } +// GetDelegatedBy gets the delegatedBy property value. The identities of users who delegated this decision item to the current reviewer. Null if the item wasn't delegated. A collection because multiple reviewers can delegate to the same user. Only returned via filterByCurrentUser when explicitly requested via $select. Read-only. +// returns a []UserIdentityable when successful +func (m *AccessReviewInstanceDecisionItem) GetDelegatedBy()([]UserIdentityable) { + val, err := m.GetBackingStore().Get("delegatedBy") + if err != nil { + panic(err) + } + if val != nil { + return val.([]UserIdentityable) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *AccessReviewInstanceDecisionItem) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { @@ -159,6 +171,22 @@ func (m *AccessReviewInstanceDecisionItem) GetFieldDeserializers()(map[string]fu } return nil } + res["delegatedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateUserIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]UserIdentityable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(UserIdentityable) + } + } + m.SetDelegatedBy(res) + } + return nil + } res["insights"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateGovernanceInsightFromDiscriminatorValue) if err != nil { @@ -495,6 +523,18 @@ func (m *AccessReviewInstanceDecisionItem) Serialize(writer i878a80d2330e89d2689 return err } } + if m.GetDelegatedBy() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDelegatedBy())) + for i, v := range m.GetDelegatedBy() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("delegatedBy", cast) + if err != nil { + return err + } + } if m.GetInsights() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetInsights())) for i, v := range m.GetInsights() { @@ -623,6 +663,13 @@ func (m *AccessReviewInstanceDecisionItem) SetDecision(value *string)() { panic(err) } } +// SetDelegatedBy sets the delegatedBy property value. The identities of users who delegated this decision item to the current reviewer. Null if the item wasn't delegated. A collection because multiple reviewers can delegate to the same user. Only returned via filterByCurrentUser when explicitly requested via $select. Read-only. +func (m *AccessReviewInstanceDecisionItem) SetDelegatedBy(value []UserIdentityable)() { + err := m.GetBackingStore().Set("delegatedBy", value) + if err != nil { + panic(err) + } +} // SetInsights sets the insights property value. Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. func (m *AccessReviewInstanceDecisionItem) SetInsights(value []GovernanceInsightable)() { err := m.GetBackingStore().Set("insights", value) @@ -723,6 +770,7 @@ type AccessReviewInstanceDecisionItemable interface { GetApplyDescription()(*string) GetApplyResult()(*string) GetDecision()(*string) + GetDelegatedBy()([]UserIdentityable) GetInsights()([]GovernanceInsightable) GetInstance()(AccessReviewInstanceable) GetJustification()(*string) @@ -742,6 +790,7 @@ type AccessReviewInstanceDecisionItemable interface { SetApplyDescription(value *string)() SetApplyResult(value *string)() SetDecision(value *string)() + SetDelegatedBy(value []UserIdentityable)() SetInsights(value []GovernanceInsightable)() SetInstance(value AccessReviewInstanceable)() SetJustification(value *string)() diff --git a/models/access_review_resource_data_upload_session_context_data.go b/models/access_review_resource_data_upload_session_context_data.go deleted file mode 100644 index 6143b531bf1..00000000000 --- a/models/access_review_resource_data_upload_session_context_data.go +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type AccessReviewResourceDataUploadSessionContextData struct { - CustomExtensionData -} -// NewAccessReviewResourceDataUploadSessionContextData instantiates a new AccessReviewResourceDataUploadSessionContextData and sets the default values. -func NewAccessReviewResourceDataUploadSessionContextData()(*AccessReviewResourceDataUploadSessionContextData) { - m := &AccessReviewResourceDataUploadSessionContextData{ - CustomExtensionData: *NewCustomExtensionData(), - } - odataTypeValue := "#microsoft.graph.accessReviewResourceDataUploadSessionContextData" - m.SetOdataType(&odataTypeValue) - return m -} -// CreateAccessReviewResourceDataUploadSessionContextDataFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateAccessReviewResourceDataUploadSessionContextDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewAccessReviewResourceDataUploadSessionContextData(), nil -} -// GetAccessReviewId gets the accessReviewId property value. The access review definition id. -// returns a *string when successful -func (m *AccessReviewResourceDataUploadSessionContextData) GetAccessReviewId()(*string) { - val, err := m.GetBackingStore().Get("accessReviewId") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetAccessReviewInstanceId gets the accessReviewInstanceId property value. The access review instance id. -// returns a *string when successful -func (m *AccessReviewResourceDataUploadSessionContextData) GetAccessReviewInstanceId()(*string) { - val, err := m.GetBackingStore().Get("accessReviewInstanceId") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *AccessReviewResourceDataUploadSessionContextData) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.CustomExtensionData.GetFieldDeserializers() - res["accessReviewId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetAccessReviewId(val) - } - return nil - } - res["accessReviewInstanceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetAccessReviewInstanceId(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *AccessReviewResourceDataUploadSessionContextData) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.CustomExtensionData.Serialize(writer) - if err != nil { - return err - } - { - err = writer.WriteStringValue("accessReviewId", m.GetAccessReviewId()) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("accessReviewInstanceId", m.GetAccessReviewInstanceId()) - if err != nil { - return err - } - } - return nil -} -// SetAccessReviewId sets the accessReviewId property value. The access review definition id. -func (m *AccessReviewResourceDataUploadSessionContextData) SetAccessReviewId(value *string)() { - err := m.GetBackingStore().Set("accessReviewId", value) - if err != nil { - panic(err) - } -} -// SetAccessReviewInstanceId sets the accessReviewInstanceId property value. The access review instance id. -func (m *AccessReviewResourceDataUploadSessionContextData) SetAccessReviewInstanceId(value *string)() { - err := m.GetBackingStore().Set("accessReviewInstanceId", value) - if err != nil { - panic(err) - } -} -type AccessReviewResourceDataUploadSessionContextDataable interface { - CustomExtensionDataable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAccessReviewId()(*string) - GetAccessReviewInstanceId()(*string) - SetAccessReviewId(value *string)() - SetAccessReviewInstanceId(value *string)() -} diff --git a/models/admin_report_settings.go b/models/admin_report_settings.go index de80ee48e74..552ca2c70f2 100644 --- a/models/admin_report_settings.go +++ b/models/admin_report_settings.go @@ -48,8 +48,30 @@ func (m *AdminReportSettings) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } + res["sharePoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateSharePointReportSettingsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSharePoint(val.(SharePointReportSettingsable)) + } + return nil + } return res } +// GetSharePoint gets the sharePoint property value. A container for SharePoint-specific report settings. Access the SharePoint API usage report metrics through the operations defined on the sharePointReportSettings resource type. +// returns a SharePointReportSettingsable when successful +func (m *AdminReportSettings) GetSharePoint()(SharePointReportSettingsable) { + val, err := m.GetBackingStore().Get("sharePoint") + if err != nil { + panic(err) + } + if val != nil { + return val.(SharePointReportSettingsable) + } + return nil +} // Serialize serializes information the current object func (m *AdminReportSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -62,6 +84,12 @@ func (m *AdminReportSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } + { + err = writer.WriteObjectValue("sharePoint", m.GetSharePoint()) + if err != nil { + return err + } + } return nil } // SetDisplayConcealedNames sets the displayConcealedNames property value. If set to true, all reports conceal user information such as usernames, groups, and sites. If false, all reports show identifiable information. This property represents a setting in the Microsoft 365 admin center. Required. @@ -71,9 +99,18 @@ func (m *AdminReportSettings) SetDisplayConcealedNames(value *bool)() { panic(err) } } +// SetSharePoint sets the sharePoint property value. A container for SharePoint-specific report settings. Access the SharePoint API usage report metrics through the operations defined on the sharePointReportSettings resource type. +func (m *AdminReportSettings) SetSharePoint(value SharePointReportSettingsable)() { + err := m.GetBackingStore().Set("sharePoint", value) + if err != nil { + panic(err) + } +} type AdminReportSettingsable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetDisplayConcealedNames()(*bool) + GetSharePoint()(SharePointReportSettingsable) SetDisplayConcealedNames(value *bool)() + SetSharePoint(value SharePointReportSettingsable)() } diff --git a/models/admit_all_from_lobby_operation.go b/models/admit_all_from_lobby_operation.go new file mode 100644 index 00000000000..5029110430e --- /dev/null +++ b/models/admit_all_from_lobby_operation.go @@ -0,0 +1,42 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type AdmitAllFromLobbyOperation struct { + CommsOperation +} +// NewAdmitAllFromLobbyOperation instantiates a new AdmitAllFromLobbyOperation and sets the default values. +func NewAdmitAllFromLobbyOperation()(*AdmitAllFromLobbyOperation) { + m := &AdmitAllFromLobbyOperation{ + CommsOperation: *NewCommsOperation(), + } + return m +} +// CreateAdmitAllFromLobbyOperationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAdmitAllFromLobbyOperationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAdmitAllFromLobbyOperation(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AdmitAllFromLobbyOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CommsOperation.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *AdmitAllFromLobbyOperation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CommsOperation.Serialize(writer) + if err != nil { + return err + } + return nil +} +type AdmitAllFromLobbyOperationable interface { + CommsOperationable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/admit_from_lobby_operation.go b/models/admit_from_lobby_operation.go new file mode 100644 index 00000000000..053391cbbcd --- /dev/null +++ b/models/admit_from_lobby_operation.go @@ -0,0 +1,42 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type AdmitFromLobbyOperation struct { + CommsOperation +} +// NewAdmitFromLobbyOperation instantiates a new AdmitFromLobbyOperation and sets the default values. +func NewAdmitFromLobbyOperation()(*AdmitFromLobbyOperation) { + m := &AdmitFromLobbyOperation{ + CommsOperation: *NewCommsOperation(), + } + return m +} +// CreateAdmitFromLobbyOperationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAdmitFromLobbyOperationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAdmitFromLobbyOperation(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AdmitFromLobbyOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CommsOperation.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *AdmitFromLobbyOperation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CommsOperation.Serialize(writer) + if err != nil { + return err + } + return nil +} +type AdmitFromLobbyOperationable interface { + CommsOperationable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/agent_identity_type.go b/models/agent_identity_type.go index 5f5402fbc43..57b1b984073 100644 --- a/models/agent_identity_type.go +++ b/models/agent_identity_type.go @@ -9,10 +9,11 @@ const ( AGENTUSER_AGENTIDENTITYTYPE UNKNOWNFUTUREVALUE_AGENTIDENTITYTYPE AGENTIDENTITYBLUEPRINTPRINCIPAL_AGENTIDENTITYTYPE + USER_AGENTIDENTITYTYPE ) func (i AgentIdentityType) String() string { - return []string{"agentIdentity", "agentUser", "unknownFutureValue", "agentIdentityBlueprintPrincipal"}[i] + return []string{"agentIdentity", "agentUser", "unknownFutureValue", "agentIdentityBlueprintPrincipal", "user"}[i] } func ParseAgentIdentityType(v string) (any, error) { result := AGENTIDENTITY_AGENTIDENTITYTYPE @@ -25,6 +26,8 @@ func ParseAgentIdentityType(v string) (any, error) { result = UNKNOWNFUTUREVALUE_AGENTIDENTITYTYPE case "agentIdentityBlueprintPrincipal": result = AGENTIDENTITYBLUEPRINTPRINCIPAL_AGENTIDENTITYTYPE + case "user": + result = USER_AGENTIDENTITYTYPE default: return nil, nil } diff --git a/models/agent_risk_detection.go b/models/agent_risk_detection.go index d045c3408e5..d2cb7e1a060 100644 --- a/models/agent_risk_detection.go +++ b/models/agent_risk_detection.go @@ -119,6 +119,18 @@ func (m *AgentRiskDetection) GetDetectionTimingType()(*RiskDetectionTimingType) } return nil } +// GetDisplayName gets the displayName property value. The displayName property +// returns a *string when successful +func (m *AgentRiskDetection) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *AgentRiskDetection) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { @@ -203,6 +215,26 @@ func (m *AgentRiskDetection) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["identityId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetIdentityId(val) + } + return nil + } res["identityType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseAgentIdentityType) if err != nil { @@ -315,6 +347,18 @@ func (m *AgentRiskDetection) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } +// GetIdentityId gets the identityId property value. The identityId property +// returns a *string when successful +func (m *AgentRiskDetection) GetIdentityId()(*string) { + val, err := m.GetBackingStore().Get("identityId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetIdentityType gets the identityType property value. The identityType property // returns a *AgentIdentityType when successful func (m *AgentRiskDetection) GetIdentityType()(*AgentIdentityType) { @@ -502,6 +546,18 @@ func (m *AgentRiskDetection) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("identityId", m.GetIdentityId()) + if err != nil { + return err + } + } if m.GetIdentityType() != nil { cast := (*m.GetIdentityType()).String() err = writer.WriteStringValue("identityType", &cast) @@ -630,6 +686,20 @@ func (m *AgentRiskDetection) SetDetectionTimingType(value *RiskDetectionTimingTy panic(err) } } +// SetDisplayName sets the displayName property value. The displayName property +func (m *AgentRiskDetection) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetIdentityId sets the identityId property value. The identityId property +func (m *AgentRiskDetection) SetIdentityId(value *string)() { + err := m.GetBackingStore().Set("identityId", value) + if err != nil { + panic(err) + } +} // SetIdentityType sets the identityType property value. The identityType property func (m *AgentRiskDetection) SetIdentityType(value *AgentIdentityType)() { err := m.GetBackingStore().Set("identityType", value) @@ -718,6 +788,8 @@ type AgentRiskDetectionable interface { GetClientSessionId()(*string) GetDetectedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDetectionTimingType()(*RiskDetectionTimingType) + GetDisplayName()(*string) + GetIdentityId()(*string) GetIdentityType()(*AgentIdentityType) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetRiskDetail()(*RiskDetail) @@ -737,6 +809,8 @@ type AgentRiskDetectionable interface { SetClientSessionId(value *string)() SetDetectedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDetectionTimingType(value *RiskDetectionTimingType)() + SetDisplayName(value *string)() + SetIdentityId(value *string)() SetIdentityType(value *AgentIdentityType)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetRiskDetail(value *RiskDetail)() diff --git a/models/aosp_device_owner_wi_fi_security_type.go b/models/aosp_device_owner_wi_fi_security_type.go index 949805eff03..911303dc9bb 100644 --- a/models/aosp_device_owner_wi_fi_security_type.go +++ b/models/aosp_device_owner_wi_fi_security_type.go @@ -14,10 +14,12 @@ const ( WPAPERSONAL_AOSPDEVICEOWNERWIFISECURITYTYPE // WPA-Enterprise/WPA2-Enterprise. Must use AOSPDeviceOwnerEnterpriseWifiConfiguration type to configure enterprise options. WPAENTERPRISE_AOSPDEVICEOWNERWIFISECURITYTYPE + // Evolvable enumeration sentinel value. Do not use. + UNKNOWNFUTUREVALUE_AOSPDEVICEOWNERWIFISECURITYTYPE ) func (i AospDeviceOwnerWiFiSecurityType) String() string { - return []string{"open", "wep", "wpaPersonal", "wpaEnterprise"}[i] + return []string{"open", "wep", "wpaPersonal", "wpaEnterprise", "unknownFutureValue"}[i] } func ParseAospDeviceOwnerWiFiSecurityType(v string) (any, error) { result := OPEN_AOSPDEVICEOWNERWIFISECURITYTYPE @@ -30,6 +32,8 @@ func ParseAospDeviceOwnerWiFiSecurityType(v string) (any, error) { result = WPAPERSONAL_AOSPDEVICEOWNERWIFISECURITYTYPE case "wpaEnterprise": result = WPAENTERPRISE_AOSPDEVICEOWNERWIFISECURITYTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_AOSPDEVICEOWNERWIFISECURITYTYPE default: return nil, nil } diff --git a/models/api_usage_report_enablement_status.go b/models/api_usage_report_enablement_status.go new file mode 100644 index 00000000000..6b58792f9a2 --- /dev/null +++ b/models/api_usage_report_enablement_status.go @@ -0,0 +1,191 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ApiUsageReportEnablementStatus struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewApiUsageReportEnablementStatus instantiates a new ApiUsageReportEnablementStatus and sets the default values. +func NewApiUsageReportEnablementStatus()(*ApiUsageReportEnablementStatus) { + m := &ApiUsageReportEnablementStatus{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateApiUsageReportEnablementStatusFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApiUsageReportEnablementStatusFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApiUsageReportEnablementStatus(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ApiUsageReportEnablementStatus) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ApiUsageReportEnablementStatus) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ApiUsageReportEnablementStatus) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["metric"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMetric(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["onboardingStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseApiUsageReportOnboardingStatus) + if err != nil { + return err + } + if val != nil { + m.SetOnboardingStatus(val.(*ApiUsageReportOnboardingStatus)) + } + return nil + } + return res +} +// GetMetric gets the metric property value. The name of the API usage report metric. Currently, only EgressReport is supported. +// returns a *string when successful +func (m *ApiUsageReportEnablementStatus) GetMetric()(*string) { + val, err := m.GetBackingStore().Get("metric") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *ApiUsageReportEnablementStatus) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOnboardingStatus gets the onboardingStatus property value. The onboardingStatus property +// returns a *ApiUsageReportOnboardingStatus when successful +func (m *ApiUsageReportEnablementStatus) GetOnboardingStatus()(*ApiUsageReportOnboardingStatus) { + val, err := m.GetBackingStore().Get("onboardingStatus") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ApiUsageReportOnboardingStatus) + } + return nil +} +// Serialize serializes information the current object +func (m *ApiUsageReportEnablementStatus) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("metric", m.GetMetric()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetOnboardingStatus() != nil { + cast := (*m.GetOnboardingStatus()).String() + err := writer.WriteStringValue("onboardingStatus", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ApiUsageReportEnablementStatus) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ApiUsageReportEnablementStatus) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetMetric sets the metric property value. The name of the API usage report metric. Currently, only EgressReport is supported. +func (m *ApiUsageReportEnablementStatus) SetMetric(value *string)() { + err := m.GetBackingStore().Set("metric", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ApiUsageReportEnablementStatus) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetOnboardingStatus sets the onboardingStatus property value. The onboardingStatus property +func (m *ApiUsageReportEnablementStatus) SetOnboardingStatus(value *ApiUsageReportOnboardingStatus)() { + err := m.GetBackingStore().Set("onboardingStatus", value) + if err != nil { + panic(err) + } +} +type ApiUsageReportEnablementStatusable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetMetric()(*string) + GetOdataType()(*string) + GetOnboardingStatus()(*ApiUsageReportOnboardingStatus) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetMetric(value *string)() + SetOdataType(value *string)() + SetOnboardingStatus(value *ApiUsageReportOnboardingStatus)() +} diff --git a/models/api_usage_report_enablement_status_collection_response.go b/models/api_usage_report_enablement_status_collection_response.go new file mode 100644 index 00000000000..7ef515dde06 --- /dev/null +++ b/models/api_usage_report_enablement_status_collection_response.go @@ -0,0 +1,91 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ApiUsageReportEnablementStatusCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewApiUsageReportEnablementStatusCollectionResponse instantiates a new ApiUsageReportEnablementStatusCollectionResponse and sets the default values. +func NewApiUsageReportEnablementStatusCollectionResponse()(*ApiUsageReportEnablementStatusCollectionResponse) { + m := &ApiUsageReportEnablementStatusCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateApiUsageReportEnablementStatusCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApiUsageReportEnablementStatusCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApiUsageReportEnablementStatusCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ApiUsageReportEnablementStatusCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateApiUsageReportEnablementStatusFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ApiUsageReportEnablementStatusable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ApiUsageReportEnablementStatusable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ApiUsageReportEnablementStatusable when successful +func (m *ApiUsageReportEnablementStatusCollectionResponse) GetValue()([]ApiUsageReportEnablementStatusable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ApiUsageReportEnablementStatusable) + } + return nil +} +// Serialize serializes information the current object +func (m *ApiUsageReportEnablementStatusCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ApiUsageReportEnablementStatusCollectionResponse) SetValue(value []ApiUsageReportEnablementStatusable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ApiUsageReportEnablementStatusCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ApiUsageReportEnablementStatusable) + SetValue(value []ApiUsageReportEnablementStatusable)() +} diff --git a/models/api_usage_report_onboarding_status.go b/models/api_usage_report_onboarding_status.go new file mode 100644 index 00000000000..fa95cf4d482 --- /dev/null +++ b/models/api_usage_report_onboarding_status.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +type ApiUsageReportOnboardingStatus int + +const ( + ENABLING_APIUSAGEREPORTONBOARDINGSTATUS ApiUsageReportOnboardingStatus = iota + ENABLED_APIUSAGEREPORTONBOARDINGSTATUS + DISABLING_APIUSAGEREPORTONBOARDINGSTATUS + DISABLED_APIUSAGEREPORTONBOARDINGSTATUS + UNKNOWNFUTUREVALUE_APIUSAGEREPORTONBOARDINGSTATUS +) + +func (i ApiUsageReportOnboardingStatus) String() string { + return []string{"enabling", "enabled", "disabling", "disabled", "unknownFutureValue"}[i] +} +func ParseApiUsageReportOnboardingStatus(v string) (any, error) { + result := ENABLING_APIUSAGEREPORTONBOARDINGSTATUS + switch v { + case "enabling": + result = ENABLING_APIUSAGEREPORTONBOARDINGSTATUS + case "enabled": + result = ENABLED_APIUSAGEREPORTONBOARDINGSTATUS + case "disabling": + result = DISABLING_APIUSAGEREPORTONBOARDINGSTATUS + case "disabled": + result = DISABLED_APIUSAGEREPORTONBOARDINGSTATUS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_APIUSAGEREPORTONBOARDINGSTATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeApiUsageReportOnboardingStatus(values []ApiUsageReportOnboardingStatus) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ApiUsageReportOnboardingStatus) isMultiValue() bool { + return false +} diff --git a/models/app_management_application_configuration.go b/models/app_management_application_configuration.go index 0b90f5c851d..59ab546c633 100644 --- a/models/app_management_application_configuration.go +++ b/models/app_management_application_configuration.go @@ -84,7 +84,7 @@ func (m *AppManagementApplicationConfiguration) GetIdentifierUris()(IdentifierUr } return nil } -// GetRedirectUris gets the redirectUris property value. The redirectUris property +// GetRedirectUris gets the redirectUris property value. Configuration object for redirect URI validation rules and restrictions for an application. // returns a RedirectUriConfigurationable when successful func (m *AppManagementApplicationConfiguration) GetRedirectUris()(RedirectUriConfigurationable) { val, err := m.GetBackingStore().Get("redirectUris") @@ -136,7 +136,7 @@ func (m *AppManagementApplicationConfiguration) SetIdentifierUris(value Identifi panic(err) } } -// SetRedirectUris sets the redirectUris property value. The redirectUris property +// SetRedirectUris sets the redirectUris property value. Configuration object for redirect URI validation rules and restrictions for an application. func (m *AppManagementApplicationConfiguration) SetRedirectUris(value RedirectUriConfigurationable)() { err := m.GetBackingStore().Set("redirectUris", value) if err != nil { diff --git a/models/app_scope.go b/models/app_scope.go index fa4267a983b..a7f4058a12b 100644 --- a/models/app_scope.go +++ b/models/app_scope.go @@ -40,7 +40,7 @@ func CreateAppScopeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f4 } return NewAppScope(), nil } -// GetDisplayName gets the displayName property value. Provides the display name of the app-specific resource represented by the app scope. Read only. +// GetDisplayName gets the displayName property value. Provides the display name of the app-specific resource represented by the app scope. Read-only. // returns a *string when successful func (m *AppScope) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -110,7 +110,7 @@ func (m *AppScope) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 } return nil } -// SetDisplayName sets the displayName property value. Provides the display name of the app-specific resource represented by the app scope. Read only. +// SetDisplayName sets the displayName property value. Provides the display name of the app-specific resource represented by the app scope. Read-only. func (m *AppScope) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { diff --git a/models/apple_vpn_configuration.go b/models/apple_vpn_configuration.go index 29f6b4b3450..82b02aa0e85 100644 --- a/models/apple_vpn_configuration.go +++ b/models/apple_vpn_configuration.go @@ -191,6 +191,18 @@ func (m *AppleVpnConfiguration) GetExcludedDomains()([]string) { } return nil } +// GetExcludeLocalNetworks gets the excludeLocalNetworks property value. Indicates whether local network traffic is excluded from the VPN tunnel. When TRUE, local network traffic bypasses the VPN tunnel. Default value is null. Only takes effect when includeAllNetworks is TRUE or enforceVpnRouting is TRUE. Not applicable when enablePerApp is TRUE. +// returns a *bool when successful +func (m *AppleVpnConfiguration) GetExcludeLocalNetworks()(*bool) { + val, err := m.GetBackingStore().Get("excludeLocalNetworks") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *AppleVpnConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { @@ -339,6 +351,16 @@ func (m *AppleVpnConfiguration) GetFieldDeserializers()(map[string]func(i878a80d } return nil } + res["excludeLocalNetworks"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetExcludeLocalNetworks(val) + } + return nil + } res["identifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -349,6 +371,16 @@ func (m *AppleVpnConfiguration) GetFieldDeserializers()(map[string]func(i878a80d } return nil } + res["includeAllNetworks"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIncludeAllNetworks(val) + } + return nil + } res["loginGroupOrDomain"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -465,6 +497,18 @@ func (m *AppleVpnConfiguration) GetIdentifier()(*string) { } return nil } +// GetIncludeAllNetworks gets the includeAllNetworks property value. Indicates whether most network traffic is routed through the VPN tunnel. When TRUE, most network traffic is sent through the VPN tunnel. Default value is null. Not applicable when enablePerApp is TRUE. +// returns a *bool when successful +func (m *AppleVpnConfiguration) GetIncludeAllNetworks()(*bool) { + val, err := m.GetBackingStore().Get("includeAllNetworks") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetLoginGroupOrDomain gets the loginGroupOrDomain property value. Login group or domain when connection type is set to Dell SonicWALL Mobile Connection. // returns a *string when successful func (m *AppleVpnConfiguration) GetLoginGroupOrDomain()(*string) { @@ -665,12 +709,24 @@ func (m *AppleVpnConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487e return err } } + { + err = writer.WriteBoolValue("excludeLocalNetworks", m.GetExcludeLocalNetworks()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("identifier", m.GetIdentifier()) if err != nil { return err } } + { + err = writer.WriteBoolValue("includeAllNetworks", m.GetIncludeAllNetworks()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("loginGroupOrDomain", m.GetLoginGroupOrDomain()) if err != nil { @@ -818,6 +874,13 @@ func (m *AppleVpnConfiguration) SetExcludedDomains(value []string)() { panic(err) } } +// SetExcludeLocalNetworks sets the excludeLocalNetworks property value. Indicates whether local network traffic is excluded from the VPN tunnel. When TRUE, local network traffic bypasses the VPN tunnel. Default value is null. Only takes effect when includeAllNetworks is TRUE or enforceVpnRouting is TRUE. Not applicable when enablePerApp is TRUE. +func (m *AppleVpnConfiguration) SetExcludeLocalNetworks(value *bool)() { + err := m.GetBackingStore().Set("excludeLocalNetworks", value) + if err != nil { + panic(err) + } +} // SetIdentifier sets the identifier property value. Identifier provided by VPN vendor when connection type is set to Custom VPN. For example: Cisco AnyConnect uses an identifier of the form com.cisco.anyconnect.applevpn.plugin func (m *AppleVpnConfiguration) SetIdentifier(value *string)() { err := m.GetBackingStore().Set("identifier", value) @@ -825,6 +888,13 @@ func (m *AppleVpnConfiguration) SetIdentifier(value *string)() { panic(err) } } +// SetIncludeAllNetworks sets the includeAllNetworks property value. Indicates whether most network traffic is routed through the VPN tunnel. When TRUE, most network traffic is sent through the VPN tunnel. Default value is null. Not applicable when enablePerApp is TRUE. +func (m *AppleVpnConfiguration) SetIncludeAllNetworks(value *bool)() { + err := m.GetBackingStore().Set("includeAllNetworks", value) + if err != nil { + panic(err) + } +} // SetLoginGroupOrDomain sets the loginGroupOrDomain property value. Login group or domain when connection type is set to Dell SonicWALL Mobile Connection. func (m *AppleVpnConfiguration) SetLoginGroupOrDomain(value *string)() { err := m.GetBackingStore().Set("loginGroupOrDomain", value) @@ -903,7 +973,9 @@ type AppleVpnConfigurationable interface { GetEnablePerApp()(*bool) GetEnableSplitTunneling()(*bool) GetExcludedDomains()([]string) + GetExcludeLocalNetworks()(*bool) GetIdentifier()(*string) + GetIncludeAllNetworks()(*bool) GetLoginGroupOrDomain()(*string) GetOnDemandRules()([]VpnOnDemandRuleable) GetOptInToDeviceIdSharing()(*bool) @@ -925,7 +997,9 @@ type AppleVpnConfigurationable interface { SetEnablePerApp(value *bool)() SetEnableSplitTunneling(value *bool)() SetExcludedDomains(value []string)() + SetExcludeLocalNetworks(value *bool)() SetIdentifier(value *string)() + SetIncludeAllNetworks(value *bool)() SetLoginGroupOrDomain(value *string)() SetOnDemandRules(value []VpnOnDemandRuleable)() SetOptInToDeviceIdSharing(value *bool)() diff --git a/models/application.go b/models/application.go index 8ccf3f2b48f..584b50a91d6 100644 --- a/models/application.go +++ b/models/application.go @@ -906,7 +906,7 @@ func (m *Application) GetIsDeviceOnlyAuthSupported()(*bool) { } return nil } -// GetIsDisabled gets the isDisabled property value. Specifies whether the service principal of the app in a tenant or across tenants for multi-tenant apps can obtain new access tokens or access protected resources. When set to true, existing tokens remain valid until they expire based on their configured lifetimes, and the app stays visible in the Enterprise apps list but users cannot sign in.true if the application is deactivated (disabled); otherwise false. +// GetIsDisabled gets the isDisabled property value. Deactivate an app without deleting it. This configuration specifies whether the service principal of the app in a tenant or across tenants for multi-tenant apps can obtain new access tokens or access protected resources. When set to true, existing tokens remain valid until they expire based on their configured lifetimes, and the app stays visible in the Enterprise apps list but users cannot sign in.true if the application is deactivated (disabled); otherwise false. Learn more in Deactivate an app registration. // returns a *bool when successful func (m *Application) GetIsDisabled()(*bool) { val, err := m.GetBackingStore().Get("isDisabled") @@ -1812,7 +1812,7 @@ func (m *Application) SetIsDeviceOnlyAuthSupported(value *bool)() { panic(err) } } -// SetIsDisabled sets the isDisabled property value. Specifies whether the service principal of the app in a tenant or across tenants for multi-tenant apps can obtain new access tokens or access protected resources. When set to true, existing tokens remain valid until they expire based on their configured lifetimes, and the app stays visible in the Enterprise apps list but users cannot sign in.true if the application is deactivated (disabled); otherwise false. +// SetIsDisabled sets the isDisabled property value. Deactivate an app without deleting it. This configuration specifies whether the service principal of the app in a tenant or across tenants for multi-tenant apps can obtain new access tokens or access protected resources. When set to true, existing tokens remain valid until they expire based on their configured lifetimes, and the app stays visible in the Enterprise apps list but users cannot sign in.true if the application is deactivated (disabled); otherwise false. Learn more in Deactivate an app registration. func (m *Application) SetIsDisabled(value *bool)() { err := m.GetBackingStore().Set("isDisabled", value) if err != nil { diff --git a/models/application_template.go b/models/application_template.go index 1bbfbe80dec..1a4925f79b9 100644 --- a/models/application_template.go +++ b/models/application_template.go @@ -23,7 +23,7 @@ func NewApplicationTemplate()(*ApplicationTemplate) { func CreateApplicationTemplateFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewApplicationTemplate(), nil } -// GetCategories gets the categories property value. The list of categories for the application. Supported values can be: Collaboration, Business Management, Consumer, Content management, CRM, Data services, Developer services, E-commerce, Education, ERP, Finance, Health, Human resources, IT infrastructure, Mail, Management, Marketing, Media, Productivity, Project management, Telecommunications, Tools, Travel, and Web design & hosting. Supports $filter (contains). +// GetCategories gets the categories property value. The list of categories for the application. To get the full list of supported values, use the applicationTemplate: categories function. Supports $filter (contains). // returns a []string when successful func (m *ApplicationTemplate) GetCategories()([]string) { val, err := m.GetBackingStore().Get("categories") @@ -549,7 +549,7 @@ func (m *ApplicationTemplate) Serialize(writer i878a80d2330e89d26896388a3f487eef } return nil } -// SetCategories sets the categories property value. The list of categories for the application. Supported values can be: Collaboration, Business Management, Consumer, Content management, CRM, Data services, Developer services, E-commerce, Education, ERP, Finance, Health, Human resources, IT infrastructure, Mail, Management, Marketing, Media, Productivity, Project management, Telecommunications, Tools, Travel, and Web design & hosting. Supports $filter (contains). +// SetCategories sets the categories property value. The list of categories for the application. To get the full list of supported values, use the applicationTemplate: categories function. Supports $filter (contains). func (m *ApplicationTemplate) SetCategories(value []string)() { err := m.GetBackingStore().Set("categories", value) if err != nil { diff --git a/models/application_template_category.go b/models/application_template_category.go new file mode 100644 index 00000000000..24e3919361e --- /dev/null +++ b/models/application_template_category.go @@ -0,0 +1,190 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ApplicationTemplateCategory struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewApplicationTemplateCategory instantiates a new ApplicationTemplateCategory and sets the default values. +func NewApplicationTemplateCategory()(*ApplicationTemplateCategory) { + m := &ApplicationTemplateCategory{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateApplicationTemplateCategoryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApplicationTemplateCategoryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApplicationTemplateCategory(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ApplicationTemplateCategory) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ApplicationTemplateCategory) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetDisplayName gets the displayName property value. The localizable display name of the category, suitable for showing in a UI. +// returns a *string when successful +func (m *ApplicationTemplateCategory) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ApplicationTemplateCategory) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *ApplicationTemplateCategory) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetValue gets the value property value. The category value as it appears in the categories property of an applicationTemplate. Use this value when filtering application templates by category. +// returns a *string when successful +func (m *ApplicationTemplateCategory) GetValue()(*string) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ApplicationTemplateCategory) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("value", m.GetValue()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ApplicationTemplateCategory) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ApplicationTemplateCategory) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetDisplayName sets the displayName property value. The localizable display name of the category, suitable for showing in a UI. +func (m *ApplicationTemplateCategory) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ApplicationTemplateCategory) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetValue sets the value property value. The category value as it appears in the categories property of an applicationTemplate. Use this value when filtering application templates by category. +func (m *ApplicationTemplateCategory) SetValue(value *string)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ApplicationTemplateCategoryable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDisplayName()(*string) + GetOdataType()(*string) + GetValue()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDisplayName(value *string)() + SetOdataType(value *string)() + SetValue(value *string)() +} diff --git a/models/applied_authentication_event_listener.go b/models/applied_authentication_event_listener.go index 03c80922d07..a648389790a 100644 --- a/models/applied_authentication_event_listener.go +++ b/models/applied_authentication_event_listener.go @@ -43,7 +43,7 @@ func (m *AppliedAuthenticationEventListener) GetAdditionalData()(map[string]any) func (m *AppliedAuthenticationEventListener) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetEventType gets the eventType property value. The type of authentication event that triggered the custom authentication extension request. The possible values are: tokenIssuanceStart, pageRenderStart, unknownFutureValue, attributeCollectionStart, attributeCollectionSubmit, emailOtpSend. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: attributeCollectionStart, attributeCollectionSubmit, emailOtpSend. +// GetEventType gets the eventType property value. The type of authentication event that triggered the custom authentication extension request. The possible values are: tokenIssuanceStart, pageRenderStart, unknownFutureValue, attributeCollectionStart, attributeCollectionSubmit, emailOtpSend, passwordSubmit. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: attributeCollectionStart, attributeCollectionSubmit, emailOtpSend, passwordSubmit. // returns a *AuthenticationEventType when successful func (m *AppliedAuthenticationEventListener) GetEventType()(*AuthenticationEventType) { val, err := m.GetBackingStore().Get("eventType") @@ -183,7 +183,7 @@ func (m *AppliedAuthenticationEventListener) SetAdditionalData(value map[string] func (m *AppliedAuthenticationEventListener) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetEventType sets the eventType property value. The type of authentication event that triggered the custom authentication extension request. The possible values are: tokenIssuanceStart, pageRenderStart, unknownFutureValue, attributeCollectionStart, attributeCollectionSubmit, emailOtpSend. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: attributeCollectionStart, attributeCollectionSubmit, emailOtpSend. +// SetEventType sets the eventType property value. The type of authentication event that triggered the custom authentication extension request. The possible values are: tokenIssuanceStart, pageRenderStart, unknownFutureValue, attributeCollectionStart, attributeCollectionSubmit, emailOtpSend, passwordSubmit. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: attributeCollectionStart, attributeCollectionSubmit, emailOtpSend, passwordSubmit. func (m *AppliedAuthenticationEventListener) SetEventType(value *AuthenticationEventType)() { err := m.GetBackingStore().Set("eventType", value) if err != nil { diff --git a/models/artifact_query.go b/models/artifact_query.go index 0177f34eebc..ec1a6fef135 100644 --- a/models/artifact_query.go +++ b/models/artifact_query.go @@ -89,6 +89,16 @@ func (m *ArtifactQuery) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } + res["structuredQueryExpression"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateRestoreSearchArtifactQueryExpressionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetStructuredQueryExpression(val.(RestoreSearchArtifactQueryExpressionable)) + } + return nil + } return res } // GetOdataType gets the @odata.type property value. The OdataType property @@ -103,7 +113,7 @@ func (m *ArtifactQuery) GetOdataType()(*string) { } return nil } -// GetQueryExpression gets the queryExpression property value. Specifies criteria to retrieve artifacts. +// GetQueryExpression gets the queryExpression property value. Deprecated. Going forward, use the structuredQueryExpression property instead. Specifies criteria to retrieve artifacts. // returns a *string when successful func (m *ArtifactQuery) GetQueryExpression()(*string) { val, err := m.GetBackingStore().Get("queryExpression") @@ -115,6 +125,18 @@ func (m *ArtifactQuery) GetQueryExpression()(*string) { } return nil } +// GetStructuredQueryExpression gets the structuredQueryExpression property value. Contains a structured query expression for searching artifacts. +// returns a RestoreSearchArtifactQueryExpressionable when successful +func (m *ArtifactQuery) GetStructuredQueryExpression()(RestoreSearchArtifactQueryExpressionable) { + val, err := m.GetBackingStore().Get("structuredQueryExpression") + if err != nil { + panic(err) + } + if val != nil { + return val.(RestoreSearchArtifactQueryExpressionable) + } + return nil +} // Serialize serializes information the current object func (m *ArtifactQuery) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { if m.GetArtifactType() != nil { @@ -136,6 +158,12 @@ func (m *ArtifactQuery) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return err } } + { + err := writer.WriteObjectValue("structuredQueryExpression", m.GetStructuredQueryExpression()) + if err != nil { + return err + } + } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -169,13 +197,20 @@ func (m *ArtifactQuery) SetOdataType(value *string)() { panic(err) } } -// SetQueryExpression sets the queryExpression property value. Specifies criteria to retrieve artifacts. +// SetQueryExpression sets the queryExpression property value. Deprecated. Going forward, use the structuredQueryExpression property instead. Specifies criteria to retrieve artifacts. func (m *ArtifactQuery) SetQueryExpression(value *string)() { err := m.GetBackingStore().Set("queryExpression", value) if err != nil { panic(err) } } +// SetStructuredQueryExpression sets the structuredQueryExpression property value. Contains a structured query expression for searching artifacts. +func (m *ArtifactQuery) SetStructuredQueryExpression(value RestoreSearchArtifactQueryExpressionable)() { + err := m.GetBackingStore().Set("structuredQueryExpression", value) + if err != nil { + panic(err) + } +} type ArtifactQueryable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel @@ -184,8 +219,10 @@ type ArtifactQueryable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetQueryExpression()(*string) + GetStructuredQueryExpression()(RestoreSearchArtifactQueryExpressionable) SetArtifactType(value *RestorableArtifact)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetQueryExpression(value *string)() + SetStructuredQueryExpression(value RestoreSearchArtifactQueryExpressionable)() } diff --git a/models/attribute_info.go b/models/attribute_info.go new file mode 100644 index 00000000000..3d45ce3202c --- /dev/null +++ b/models/attribute_info.go @@ -0,0 +1,190 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type AttributeInfo struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAttributeInfo instantiates a new AttributeInfo and sets the default values. +func NewAttributeInfo()(*AttributeInfo) { + m := &AttributeInfo{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAttributeInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAttributeInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAttributeInfo(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *AttributeInfo) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *AttributeInfo) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AttributeInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetName gets the name property value. The name of the attribute. +// returns a *string when successful +func (m *AttributeInfo) GetName()(*string) { + val, err := m.GetBackingStore().Get("name") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *AttributeInfo) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetValue gets the value property value. The value of the attribute. +// returns a *string when successful +func (m *AttributeInfo) GetValue()(*string) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *AttributeInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("value", m.GetValue()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AttributeInfo) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *AttributeInfo) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetName sets the name property value. The name of the attribute. +func (m *AttributeInfo) SetName(value *string)() { + err := m.GetBackingStore().Set("name", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AttributeInfo) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetValue sets the value property value. The value of the attribute. +func (m *AttributeInfo) SetValue(value *string)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type AttributeInfoable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetName()(*string) + GetOdataType()(*string) + GetValue()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetName(value *string)() + SetOdataType(value *string)() + SetValue(value *string)() +} diff --git a/models/authentication_event_type.go b/models/authentication_event_type.go index 74812e7aff3..dedecb52f5b 100644 --- a/models/authentication_event_type.go +++ b/models/authentication_event_type.go @@ -11,10 +11,11 @@ const ( ATTRIBUTECOLLECTIONSTART_AUTHENTICATIONEVENTTYPE ATTRIBUTECOLLECTIONSUBMIT_AUTHENTICATIONEVENTTYPE EMAILOTPSEND_AUTHENTICATIONEVENTTYPE + PASSWORDSUBMIT_AUTHENTICATIONEVENTTYPE ) func (i AuthenticationEventType) String() string { - return []string{"tokenIssuanceStart", "pageRenderStart", "unknownFutureValue", "attributeCollectionStart", "attributeCollectionSubmit", "emailOtpSend"}[i] + return []string{"tokenIssuanceStart", "pageRenderStart", "unknownFutureValue", "attributeCollectionStart", "attributeCollectionSubmit", "emailOtpSend", "passwordSubmit"}[i] } func ParseAuthenticationEventType(v string) (any, error) { result := TOKENISSUANCESTART_AUTHENTICATIONEVENTTYPE @@ -31,6 +32,8 @@ func ParseAuthenticationEventType(v string) (any, error) { result = ATTRIBUTECOLLECTIONSUBMIT_AUTHENTICATIONEVENTTYPE case "emailOtpSend": result = EMAILOTPSEND_AUTHENTICATIONEVENTTYPE + case "passwordSubmit": + result = PASSWORDSUBMIT_AUTHENTICATIONEVENTTYPE default: return nil, nil } diff --git a/models/authentication_methods_registration_campaign_include_target.go b/models/authentication_methods_registration_campaign_include_target.go index cb1aea67e58..3336f0f1260 100644 --- a/models/authentication_methods_registration_campaign_include_target.go +++ b/models/authentication_methods_registration_campaign_include_target.go @@ -113,7 +113,7 @@ func (m *AuthenticationMethodsRegistrationCampaignIncludeTarget) GetOdataType()( } return nil } -// GetTargetedAuthenticationMethod gets the targetedAuthenticationMethod property value. The authentication method that the user is prompted to register. The value must be microsoftAuthenticator. +// GetTargetedAuthenticationMethod gets the targetedAuthenticationMethod property value. The authentication method that the user is prompted to register. The value can be Fido2 or microsoftAuthenticator. // returns a *string when successful func (m *AuthenticationMethodsRegistrationCampaignIncludeTarget) GetTargetedAuthenticationMethod()(*string) { val, err := m.GetBackingStore().Get("targetedAuthenticationMethod") @@ -197,7 +197,7 @@ func (m *AuthenticationMethodsRegistrationCampaignIncludeTarget) SetOdataType(va panic(err) } } -// SetTargetedAuthenticationMethod sets the targetedAuthenticationMethod property value. The authentication method that the user is prompted to register. The value must be microsoftAuthenticator. +// SetTargetedAuthenticationMethod sets the targetedAuthenticationMethod property value. The authentication method that the user is prompted to register. The value can be Fido2 or microsoftAuthenticator. func (m *AuthenticationMethodsRegistrationCampaignIncludeTarget) SetTargetedAuthenticationMethod(value *string)() { err := m.GetBackingStore().Set("targetedAuthenticationMethod", value) if err != nil { diff --git a/models/azure_active_directory_tenant.go b/models/azure_active_directory_tenant.go index 04da8b26de9..75b8578d5be 100644 --- a/models/azure_active_directory_tenant.go +++ b/models/azure_active_directory_tenant.go @@ -24,7 +24,7 @@ func NewAzureActiveDirectoryTenant()(*AzureActiveDirectoryTenant) { func CreateAzureActiveDirectoryTenantFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewAzureActiveDirectoryTenant(), nil } -// GetDisplayName gets the displayName property value. The name of the Microsoft Entra tenant. Read only. +// GetDisplayName gets the displayName property value. The name of the Microsoft Entra tenant. Read-only. // returns a *string when successful func (m *AzureActiveDirectoryTenant) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -62,7 +62,7 @@ func (m *AzureActiveDirectoryTenant) GetFieldDeserializers()(map[string]func(i87 } return res } -// GetTenantId gets the tenantId property value. The ID of the Microsoft Entra tenant. Read only. +// GetTenantId gets the tenantId property value. The ID of the Microsoft Entra tenant. Read-only. // returns a *string when successful func (m *AzureActiveDirectoryTenant) GetTenantId()(*string) { val, err := m.GetBackingStore().Get("tenantId") @@ -94,14 +94,14 @@ func (m *AzureActiveDirectoryTenant) Serialize(writer i878a80d2330e89d26896388a3 } return nil } -// SetDisplayName sets the displayName property value. The name of the Microsoft Entra tenant. Read only. +// SetDisplayName sets the displayName property value. The name of the Microsoft Entra tenant. Read-only. func (m *AzureActiveDirectoryTenant) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetTenantId sets the tenantId property value. The ID of the Microsoft Entra tenant. Read only. +// SetTenantId sets the tenantId property value. The ID of the Microsoft Entra tenant. Read-only. func (m *AzureActiveDirectoryTenant) SetTenantId(value *string)() { err := m.GetBackingStore().Set("tenantId", value) if err != nil { diff --git a/models/backup_restore_root.go b/models/backup_restore_root.go index d6bd8922e3d..b7eb7b301dc 100644 --- a/models/backup_restore_root.go +++ b/models/backup_restore_root.go @@ -46,7 +46,7 @@ func (m *BackupRestoreRoot) GetBrowseSessions()([]BrowseSessionBaseable) { } return nil } -// GetDriveExclusionUnits gets the driveExclusionUnits property value. The driveExclusionUnits property +// GetDriveExclusionUnits gets the driveExclusionUnits property value. The list of drive exclusion units in the tenant. // returns a []DriveExclusionUnitable when successful func (m *BackupRestoreRoot) GetDriveExclusionUnits()([]DriveExclusionUnitable) { val, err := m.GetBackingStore().Get("driveExclusionUnits") @@ -58,7 +58,7 @@ func (m *BackupRestoreRoot) GetDriveExclusionUnits()([]DriveExclusionUnitable) { } return nil } -// GetDriveExclusionUnitsBulkAdditionJobs gets the driveExclusionUnitsBulkAdditionJobs property value. The driveExclusionUnitsBulkAdditionJobs property +// GetDriveExclusionUnitsBulkAdditionJobs gets the driveExclusionUnitsBulkAdditionJobs property value. The list of bulk addition jobs for drive exclusion units in the tenant. // returns a []DriveExclusionUnitsBulkAdditionJobable when successful func (m *BackupRestoreRoot) GetDriveExclusionUnitsBulkAdditionJobs()([]DriveExclusionUnitsBulkAdditionJobable) { val, err := m.GetBackingStore().Get("driveExclusionUnitsBulkAdditionJobs") @@ -142,7 +142,7 @@ func (m *BackupRestoreRoot) GetExchangeRestoreSessions()([]ExchangeRestoreSessio } return nil } -// GetExclusionUnits gets the exclusionUnits property value. The exclusionUnits property +// GetExclusionUnits gets the exclusionUnits property value. The list of exclusion units in the tenant. // returns a []ExclusionUnitBaseable when successful func (m *BackupRestoreRoot) GetExclusionUnits()([]ExclusionUnitBaseable) { val, err := m.GetBackingStore().Get("exclusionUnits") @@ -686,7 +686,7 @@ func (m *BackupRestoreRoot) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetMailboxExclusionUnits gets the mailboxExclusionUnits property value. The mailboxExclusionUnits property +// GetMailboxExclusionUnits gets the mailboxExclusionUnits property value. The list of mailbox exclusion units in the tenant. // returns a []MailboxExclusionUnitable when successful func (m *BackupRestoreRoot) GetMailboxExclusionUnits()([]MailboxExclusionUnitable) { val, err := m.GetBackingStore().Get("mailboxExclusionUnits") @@ -698,7 +698,7 @@ func (m *BackupRestoreRoot) GetMailboxExclusionUnits()([]MailboxExclusionUnitabl } return nil } -// GetMailboxExclusionUnitsBulkAdditionJobs gets the mailboxExclusionUnitsBulkAdditionJobs property value. The mailboxExclusionUnitsBulkAdditionJobs property +// GetMailboxExclusionUnitsBulkAdditionJobs gets the mailboxExclusionUnitsBulkAdditionJobs property value. The list of bulk addition jobs for mailbox exclusion units in the tenant. // returns a []MailboxExclusionUnitsBulkAdditionJobable when successful func (m *BackupRestoreRoot) GetMailboxExclusionUnitsBulkAdditionJobs()([]MailboxExclusionUnitsBulkAdditionJobable) { val, err := m.GetBackingStore().Get("mailboxExclusionUnitsBulkAdditionJobs") @@ -746,7 +746,7 @@ func (m *BackupRestoreRoot) GetMailboxProtectionUnitsBulkAdditionJobs()([]Mailbo } return nil } -// GetOneDriveForBusinessBrowseSessions gets the oneDriveForBusinessBrowseSessions property value. The list of onedriveforbusiness browse sessions in the tenant. +// GetOneDriveForBusinessBrowseSessions gets the oneDriveForBusinessBrowseSessions property value. The list of OneDrive for work or school browse sessions in the tenant. // returns a []OneDriveForBusinessBrowseSessionable when successful func (m *BackupRestoreRoot) GetOneDriveForBusinessBrowseSessions()([]OneDriveForBusinessBrowseSessionable) { val, err := m.GetBackingStore().Get("oneDriveForBusinessBrowseSessions") @@ -866,7 +866,7 @@ func (m *BackupRestoreRoot) GetServiceStatus()(ServiceStatusable) { } return nil } -// GetSharePointBrowseSessions gets the sharePointBrowseSessions property value. The list of sharepoint browse sessions in the tenant. +// GetSharePointBrowseSessions gets the sharePointBrowseSessions property value. The list of SharePoint browse sessions in the tenant. // returns a []SharePointBrowseSessionable when successful func (m *BackupRestoreRoot) GetSharePointBrowseSessions()([]SharePointBrowseSessionable) { val, err := m.GetBackingStore().Get("sharePointBrowseSessions") @@ -902,7 +902,7 @@ func (m *BackupRestoreRoot) GetSharePointRestoreSessions()([]SharePointRestoreSe } return nil } -// GetSiteExclusionUnits gets the siteExclusionUnits property value. The siteExclusionUnits property +// GetSiteExclusionUnits gets the siteExclusionUnits property value. The list of site exclusion units in the tenant. // returns a []SiteExclusionUnitable when successful func (m *BackupRestoreRoot) GetSiteExclusionUnits()([]SiteExclusionUnitable) { val, err := m.GetBackingStore().Get("siteExclusionUnits") @@ -914,7 +914,7 @@ func (m *BackupRestoreRoot) GetSiteExclusionUnits()([]SiteExclusionUnitable) { } return nil } -// GetSiteExclusionUnitsBulkAdditionJobs gets the siteExclusionUnitsBulkAdditionJobs property value. The siteExclusionUnitsBulkAdditionJobs property +// GetSiteExclusionUnitsBulkAdditionJobs gets the siteExclusionUnitsBulkAdditionJobs property value. The list of bulk addition jobs for site exclusion units in the tenant. // returns a []SiteExclusionUnitsBulkAdditionJobable when successful func (m *BackupRestoreRoot) GetSiteExclusionUnitsBulkAdditionJobs()([]SiteExclusionUnitsBulkAdditionJobable) { val, err := m.GetBackingStore().Get("siteExclusionUnitsBulkAdditionJobs") @@ -1374,14 +1374,14 @@ func (m *BackupRestoreRoot) SetBrowseSessions(value []BrowseSessionBaseable)() { panic(err) } } -// SetDriveExclusionUnits sets the driveExclusionUnits property value. The driveExclusionUnits property +// SetDriveExclusionUnits sets the driveExclusionUnits property value. The list of drive exclusion units in the tenant. func (m *BackupRestoreRoot) SetDriveExclusionUnits(value []DriveExclusionUnitable)() { err := m.GetBackingStore().Set("driveExclusionUnits", value) if err != nil { panic(err) } } -// SetDriveExclusionUnitsBulkAdditionJobs sets the driveExclusionUnitsBulkAdditionJobs property value. The driveExclusionUnitsBulkAdditionJobs property +// SetDriveExclusionUnitsBulkAdditionJobs sets the driveExclusionUnitsBulkAdditionJobs property value. The list of bulk addition jobs for drive exclusion units in the tenant. func (m *BackupRestoreRoot) SetDriveExclusionUnitsBulkAdditionJobs(value []DriveExclusionUnitsBulkAdditionJobable)() { err := m.GetBackingStore().Set("driveExclusionUnitsBulkAdditionJobs", value) if err != nil { @@ -1430,21 +1430,21 @@ func (m *BackupRestoreRoot) SetExchangeRestoreSessions(value []ExchangeRestoreSe panic(err) } } -// SetExclusionUnits sets the exclusionUnits property value. The exclusionUnits property +// SetExclusionUnits sets the exclusionUnits property value. The list of exclusion units in the tenant. func (m *BackupRestoreRoot) SetExclusionUnits(value []ExclusionUnitBaseable)() { err := m.GetBackingStore().Set("exclusionUnits", value) if err != nil { panic(err) } } -// SetMailboxExclusionUnits sets the mailboxExclusionUnits property value. The mailboxExclusionUnits property +// SetMailboxExclusionUnits sets the mailboxExclusionUnits property value. The list of mailbox exclusion units in the tenant. func (m *BackupRestoreRoot) SetMailboxExclusionUnits(value []MailboxExclusionUnitable)() { err := m.GetBackingStore().Set("mailboxExclusionUnits", value) if err != nil { panic(err) } } -// SetMailboxExclusionUnitsBulkAdditionJobs sets the mailboxExclusionUnitsBulkAdditionJobs property value. The mailboxExclusionUnitsBulkAdditionJobs property +// SetMailboxExclusionUnitsBulkAdditionJobs sets the mailboxExclusionUnitsBulkAdditionJobs property value. The list of bulk addition jobs for mailbox exclusion units in the tenant. func (m *BackupRestoreRoot) SetMailboxExclusionUnitsBulkAdditionJobs(value []MailboxExclusionUnitsBulkAdditionJobable)() { err := m.GetBackingStore().Set("mailboxExclusionUnitsBulkAdditionJobs", value) if err != nil { @@ -1472,7 +1472,7 @@ func (m *BackupRestoreRoot) SetMailboxProtectionUnitsBulkAdditionJobs(value []Ma panic(err) } } -// SetOneDriveForBusinessBrowseSessions sets the oneDriveForBusinessBrowseSessions property value. The list of onedriveforbusiness browse sessions in the tenant. +// SetOneDriveForBusinessBrowseSessions sets the oneDriveForBusinessBrowseSessions property value. The list of OneDrive for work or school browse sessions in the tenant. func (m *BackupRestoreRoot) SetOneDriveForBusinessBrowseSessions(value []OneDriveForBusinessBrowseSessionable)() { err := m.GetBackingStore().Set("oneDriveForBusinessBrowseSessions", value) if err != nil { @@ -1542,7 +1542,7 @@ func (m *BackupRestoreRoot) SetServiceStatus(value ServiceStatusable)() { panic(err) } } -// SetSharePointBrowseSessions sets the sharePointBrowseSessions property value. The list of sharepoint browse sessions in the tenant. +// SetSharePointBrowseSessions sets the sharePointBrowseSessions property value. The list of SharePoint browse sessions in the tenant. func (m *BackupRestoreRoot) SetSharePointBrowseSessions(value []SharePointBrowseSessionable)() { err := m.GetBackingStore().Set("sharePointBrowseSessions", value) if err != nil { @@ -1563,14 +1563,14 @@ func (m *BackupRestoreRoot) SetSharePointRestoreSessions(value []SharePointResto panic(err) } } -// SetSiteExclusionUnits sets the siteExclusionUnits property value. The siteExclusionUnits property +// SetSiteExclusionUnits sets the siteExclusionUnits property value. The list of site exclusion units in the tenant. func (m *BackupRestoreRoot) SetSiteExclusionUnits(value []SiteExclusionUnitable)() { err := m.GetBackingStore().Set("siteExclusionUnits", value) if err != nil { panic(err) } } -// SetSiteExclusionUnitsBulkAdditionJobs sets the siteExclusionUnitsBulkAdditionJobs property value. The siteExclusionUnitsBulkAdditionJobs property +// SetSiteExclusionUnitsBulkAdditionJobs sets the siteExclusionUnitsBulkAdditionJobs property value. The list of bulk addition jobs for site exclusion units in the tenant. func (m *BackupRestoreRoot) SetSiteExclusionUnitsBulkAdditionJobs(value []SiteExclusionUnitsBulkAdditionJobable)() { err := m.GetBackingStore().Set("siteExclusionUnitsBulkAdditionJobs", value) if err != nil { diff --git a/models/channel.go b/models/channel.go index f719c966f9a..b5c7009558c 100644 --- a/models/channel.go +++ b/models/channel.go @@ -35,7 +35,7 @@ func (m *Channel) GetAllMembers()([]ConversationMemberable) { } return nil } -// GetCreatedDateTime gets the createdDateTime property value. Read only. Timestamp at which the channel was created. +// GetCreatedDateTime gets the createdDateTime property value. Read-only. Timestamp at which the channel was created. // returns a *Time when successful func (m *Channel) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") @@ -201,6 +201,22 @@ func (m *Channel) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 } return nil } + res["joinedUsers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ConversationMemberable) + } + } + m.SetJoinedUsers(res) + } + return nil + } res["layoutType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseChannelLayoutType) if err != nil { @@ -393,6 +409,18 @@ func (m *Channel) GetIsFavoriteByDefault()(*bool) { } return nil } +// GetJoinedUsers gets the joinedUsers property value. The joinedUsers property +// returns a []ConversationMemberable when successful +func (m *Channel) GetJoinedUsers()([]ConversationMemberable) { + val, err := m.GetBackingStore().Get("joinedUsers") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ConversationMemberable) + } + return nil +} // GetLayoutType gets the layoutType property value. The layout type of the channel. It can be set during creation and updated later. The possible values are: post, chat, unknownFutureValue. The default value is post. Channels with the post layout use a traditional post‑reply conversation format, and channels with the chat layout provide a chat‑like threading experience similar to group chats. // returns a *ChannelLayoutType when successful func (m *Channel) GetLayoutType()(*ChannelLayoutType) { @@ -621,6 +649,18 @@ func (m *Channel) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010 return err } } + if m.GetJoinedUsers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetJoinedUsers())) + for i, v := range m.GetJoinedUsers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("joinedUsers", cast) + if err != nil { + return err + } + } if m.GetLayoutType() != nil { cast := (*m.GetLayoutType()).String() err = writer.WriteStringValue("layoutType", &cast) @@ -735,7 +775,7 @@ func (m *Channel) SetAllMembers(value []ConversationMemberable)() { panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. Read only. Timestamp at which the channel was created. +// SetCreatedDateTime sets the createdDateTime property value. Read-only. Timestamp at which the channel was created. func (m *Channel) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { @@ -791,6 +831,13 @@ func (m *Channel) SetIsFavoriteByDefault(value *bool)() { panic(err) } } +// SetJoinedUsers sets the joinedUsers property value. The joinedUsers property +func (m *Channel) SetJoinedUsers(value []ConversationMemberable)() { + err := m.GetBackingStore().Set("joinedUsers", value) + if err != nil { + panic(err) + } +} // SetLayoutType sets the layoutType property value. The layout type of the channel. It can be set during creation and updated later. The possible values are: post, chat, unknownFutureValue. The default value is post. Channels with the post layout use a traditional post‑reply conversation format, and channels with the chat layout provide a chat‑like threading experience similar to group chats. func (m *Channel) SetLayoutType(value *ChannelLayoutType)() { err := m.GetBackingStore().Set("layoutType", value) @@ -894,6 +941,7 @@ type Channelable interface { GetFilesFolder()(DriveItemable) GetIsArchived()(*bool) GetIsFavoriteByDefault()(*bool) + GetJoinedUsers()([]ConversationMemberable) GetLayoutType()(*ChannelLayoutType) GetMembers()([]ConversationMemberable) GetMembershipType()(*ChannelMembershipType) @@ -916,6 +964,7 @@ type Channelable interface { SetFilesFolder(value DriveItemable)() SetIsArchived(value *bool)() SetIsFavoriteByDefault(value *bool)() + SetJoinedUsers(value []ConversationMemberable)() SetLayoutType(value *ChannelLayoutType)() SetMembers(value []ConversationMemberable)() SetMembershipType(value *ChannelMembershipType)() diff --git a/models/chat_message.go b/models/chat_message.go index a272a8f4e91..3424873c476 100644 --- a/models/chat_message.go +++ b/models/chat_message.go @@ -101,7 +101,7 @@ func (m *ChatMessage) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f } return nil } -// GetDeletedDateTime gets the deletedDateTime property value. Read only. Timestamp at which the chat message was deleted, or null if not deleted. +// GetDeletedDateTime gets the deletedDateTime property value. Read-only. Timestamp at which the chat message was deleted, or null if not deleted. // returns a *Time when successful func (m *ChatMessage) GetDeletedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("deletedDateTime") @@ -465,7 +465,7 @@ func (m *ChatMessage) GetImportance()(*ChatMessageImportance) { } return nil } -// GetLastEditedDateTime gets the lastEditedDateTime property value. Read only. Timestamp when edits to the chat message were made. Triggers an 'Edited' flag in the Teams UI. If no edits are made the value is null. +// GetLastEditedDateTime gets the lastEditedDateTime property value. Read-only. Timestamp when edits to the chat message were made. Triggers an 'Edited' flag in the Teams UI. If no edits are made the value is null. // returns a *Time when successful func (m *ChatMessage) GetLastEditedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastEditedDateTime") @@ -477,7 +477,7 @@ func (m *ChatMessage) GetLastEditedDateTime()(*i336074805fc853987abe6f7fe3ad97a6 } return nil } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Read only. Timestamp when the chat message is created (initial setting) or modified, including when a reaction is added or removed. +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Read-only. Timestamp when the chat message is created (initial setting) or modified, including when a reaction is added or removed. // returns a *Time when successful func (m *ChatMessage) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") @@ -864,7 +864,7 @@ func (m *ChatMessage) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a panic(err) } } -// SetDeletedDateTime sets the deletedDateTime property value. Read only. Timestamp at which the chat message was deleted, or null if not deleted. +// SetDeletedDateTime sets the deletedDateTime property value. Read-only. Timestamp at which the chat message was deleted, or null if not deleted. func (m *ChatMessage) SetDeletedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("deletedDateTime", value) if err != nil { @@ -906,14 +906,14 @@ func (m *ChatMessage) SetImportance(value *ChatMessageImportance)() { panic(err) } } -// SetLastEditedDateTime sets the lastEditedDateTime property value. Read only. Timestamp when edits to the chat message were made. Triggers an 'Edited' flag in the Teams UI. If no edits are made the value is null. +// SetLastEditedDateTime sets the lastEditedDateTime property value. Read-only. Timestamp when edits to the chat message were made. Triggers an 'Edited' flag in the Teams UI. If no edits are made the value is null. func (m *ChatMessage) SetLastEditedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastEditedDateTime", value) if err != nil { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Read only. Timestamp when the chat message is created (initial setting) or modified, including when a reaction is added or removed. +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Read-only. Timestamp when the chat message is created (initial setting) or modified, including when a reaction is added or removed. func (m *ChatMessage) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { diff --git a/models/chrome_o_s_onboarding_status.go b/models/chrome_o_s_onboarding_status.go index ff4f44c52b2..efc0e3fe3a0 100644 --- a/models/chrome_o_s_onboarding_status.go +++ b/models/chrome_o_s_onboarding_status.go @@ -16,7 +16,7 @@ const ( FAILED_CHROMEOSONBOARDINGSTATUS // Offboarding OFFBOARDING_CHROMEOSONBOARDINGSTATUS - // Evolvable enumeration sentinel value. Do not use. + // UnknownFutureValue UNKNOWNFUTUREVALUE_CHROMEOSONBOARDINGSTATUS ) diff --git a/models/cloud_p_c.go b/models/cloud_p_c.go index b882a114072..396163bfa33 100644 --- a/models/cloud_p_c.go +++ b/models/cloud_p_c.go @@ -47,7 +47,7 @@ func (m *CloudPC) GetAllotmentDisplayName()(*string) { } return nil } -// GetConnectionSetting gets the connectionSetting property value. The connection setting of the Cloud PC. Possible values: enableSingleSignOn. Read Only. +// GetConnectionSetting gets the connectionSetting property value. The connection setting of the Cloud PC. Possible values: enableSingleSignOn. Read-only. // returns a CloudPcConnectionSettingable when successful func (m *CloudPC) GetConnectionSetting()(CloudPcConnectionSettingable) { val, err := m.GetBackingStore().Get("connectionSetting") @@ -265,6 +265,16 @@ func (m *CloudPC) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 } return nil } + res["isDisasterRecoveryActive"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsDisasterRecoveryActive(val) + } + return nil + } res["lastLoginResult"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateCloudPcLoginResultFromDiscriminatorValue) if err != nil { @@ -587,6 +597,18 @@ func (m *CloudPC) GetImageDisplayName()(*string) { } return nil } +// GetIsDisasterRecoveryActive gets the isDisasterRecoveryActive property value. The isDisasterRecoveryActive property +// returns a *bool when successful +func (m *CloudPC) GetIsDisasterRecoveryActive()(*bool) { + val, err := m.GetBackingStore().Get("isDisasterRecoveryActive") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetLastLoginResult gets the lastLoginResult property value. The last login result of the Cloud PC. For example, { 'time': '2014-01-01T00:00:00Z'}. // returns a CloudPcLoginResultable when successful func (m *CloudPC) GetLastLoginResult()(CloudPcLoginResultable) { @@ -985,6 +1007,12 @@ func (m *CloudPC) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010 return err } } + { + err = writer.WriteBoolValue("isDisasterRecoveryActive", m.GetIsDisasterRecoveryActive()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("lastLoginResult", m.GetLastLoginResult()) if err != nil { @@ -1171,7 +1199,7 @@ func (m *CloudPC) SetAllotmentDisplayName(value *string)() { panic(err) } } -// SetConnectionSetting sets the connectionSetting property value. The connection setting of the Cloud PC. Possible values: enableSingleSignOn. Read Only. +// SetConnectionSetting sets the connectionSetting property value. The connection setting of the Cloud PC. Possible values: enableSingleSignOn. Read-only. func (m *CloudPC) SetConnectionSetting(value CloudPcConnectionSettingable)() { err := m.GetBackingStore().Set("connectionSetting", value) if err != nil { @@ -1248,6 +1276,13 @@ func (m *CloudPC) SetImageDisplayName(value *string)() { panic(err) } } +// SetIsDisasterRecoveryActive sets the isDisasterRecoveryActive property value. The isDisasterRecoveryActive property +func (m *CloudPC) SetIsDisasterRecoveryActive(value *bool)() { + err := m.GetBackingStore().Set("isDisasterRecoveryActive", value) + if err != nil { + panic(err) + } +} // SetLastLoginResult sets the lastLoginResult property value. The last login result of the Cloud PC. For example, { 'time': '2014-01-01T00:00:00Z'}. func (m *CloudPC) SetLastLoginResult(value CloudPcLoginResultable)() { err := m.GetBackingStore().Set("lastLoginResult", value) @@ -1446,6 +1481,7 @@ type CloudPCable interface { GetGracePeriodEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetGroupDetail()(CloudPcEntraGroupDetailable) GetImageDisplayName()(*string) + GetIsDisasterRecoveryActive()(*bool) GetLastLoginResult()(CloudPcLoginResultable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastRemoteActionResult()(CloudPcRemoteActionResultable) @@ -1485,6 +1521,7 @@ type CloudPCable interface { SetGracePeriodEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetGroupDetail(value CloudPcEntraGroupDetailable)() SetImageDisplayName(value *string)() + SetIsDisasterRecoveryActive(value *bool)() SetLastLoginResult(value CloudPcLoginResultable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastRemoteActionResult(value CloudPcRemoteActionResultable)() diff --git a/models/cloud_pc_agent_pool.go b/models/cloud_pc_agent_pool.go index 16e178c54e1..d94d4c1e0a3 100644 --- a/models/cloud_pc_agent_pool.go +++ b/models/cloud_pc_agent_pool.go @@ -82,7 +82,7 @@ func (m *CloudPcAgentPool) GetFieldDeserializers()(map[string]func(i878a80d2330e } return res } -// GetPoolUrl gets the poolUrl property value. The poolUrl property +// GetPoolUrl gets the poolUrl property value. The endpoint URL used to check out and check in agent sessions. This value becomes available after the pool reaches the active status. Read-only. // returns a *string when successful func (m *CloudPcAgentPool) GetPoolUrl()(*string) { val, err := m.GetBackingStore().Get("poolUrl") @@ -157,7 +157,7 @@ func (m *CloudPcAgentPool) SetBillingConfiguration(value CloudPcAgentPoolBilling panic(err) } } -// SetPoolUrl sets the poolUrl property value. The poolUrl property +// SetPoolUrl sets the poolUrl property value. The endpoint URL used to check out and check in agent sessions. This value becomes available after the pool reaches the active status. Read-only. func (m *CloudPcAgentPool) SetPoolUrl(value *string)() { err := m.GetBackingStore().Set("poolUrl", value) if err != nil { diff --git a/models/cloud_pc_agent_pool_billing_configuration.go b/models/cloud_pc_agent_pool_billing_configuration.go index b1c03913ffc..881fa55fbe9 100644 --- a/models/cloud_pc_agent_pool_billing_configuration.go +++ b/models/cloud_pc_agent_pool_billing_configuration.go @@ -43,7 +43,7 @@ func (m *CloudPcAgentPoolBillingConfiguration) GetAdditionalData()(map[string]an func (m *CloudPcAgentPoolBillingConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetBillingPlanId gets the billingPlanId property value. The billingPlanId property +// GetBillingPlanId gets the billingPlanId property value. The identifier of the billing plan. // returns a *string when successful func (m *CloudPcAgentPoolBillingConfiguration) GetBillingPlanId()(*string) { val, err := m.GetBackingStore().Get("billingPlanId") @@ -155,7 +155,7 @@ func (m *CloudPcAgentPoolBillingConfiguration) SetAdditionalData(value map[strin func (m *CloudPcAgentPoolBillingConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetBillingPlanId sets the billingPlanId property value. The billingPlanId property +// SetBillingPlanId sets the billingPlanId property value. The identifier of the billing plan. func (m *CloudPcAgentPoolBillingConfiguration) SetBillingPlanId(value *string)() { err := m.GetBackingStore().Set("billingPlanId", value) if err != nil { diff --git a/models/cloud_pc_agent_pool_capability_configuration.go b/models/cloud_pc_agent_pool_capability_configuration.go index eae99e98471..3310d37b366 100644 --- a/models/cloud_pc_agent_pool_capability_configuration.go +++ b/models/cloud_pc_agent_pool_capability_configuration.go @@ -24,7 +24,7 @@ func NewCloudPcAgentPoolCapabilityConfiguration()(*CloudPcAgentPoolCapabilityCon func CreateCloudPcAgentPoolCapabilityConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCloudPcAgentPoolCapabilityConfiguration(), nil } -// GetEnableSingleSignOn gets the enableSingleSignOn property value. The enableSingleSignOn property +// GetEnableSingleSignOn gets the enableSingleSignOn property value. When true, provisioned Cloud PCs support single sign-on, allowing users to authenticate with password-less options (such as FIDO2 keys) via Microsoft Entra ID. Default value is false. // returns a *bool when successful func (m *CloudPcAgentPoolCapabilityConfiguration) GetEnableSingleSignOn()(*bool) { val, err := m.GetBackingStore().Get("enableSingleSignOn") @@ -66,7 +66,7 @@ func (m *CloudPcAgentPoolCapabilityConfiguration) Serialize(writer i878a80d2330e } return nil } -// SetEnableSingleSignOn sets the enableSingleSignOn property value. The enableSingleSignOn property +// SetEnableSingleSignOn sets the enableSingleSignOn property value. When true, provisioned Cloud PCs support single sign-on, allowing users to authenticate with password-less options (such as FIDO2 keys) via Microsoft Entra ID. Default value is false. func (m *CloudPcAgentPoolCapabilityConfiguration) SetEnableSingleSignOn(value *bool)() { err := m.GetBackingStore().Set("enableSingleSignOn", value) if err != nil { diff --git a/models/cloud_pc_agent_pool_scaling_policy.go b/models/cloud_pc_agent_pool_scaling_policy.go index 21c955eeceb..3329465573c 100644 --- a/models/cloud_pc_agent_pool_scaling_policy.go +++ b/models/cloud_pc_agent_pool_scaling_policy.go @@ -79,7 +79,7 @@ func (m *CloudPcAgentPoolScalingPolicy) GetFieldDeserializers()(map[string]func( } return res } -// GetMaximumCount gets the maximumCount property value. The maximumCount property +// GetMaximumCount gets the maximumCount property value. The maximum number of Cloud PCs in the pool. The valid values are 1 to 900, and must be greater than or equal to minimumCount. // returns a *int32 when successful func (m *CloudPcAgentPoolScalingPolicy) GetMaximumCount()(*int32) { val, err := m.GetBackingStore().Get("maximumCount") @@ -91,7 +91,7 @@ func (m *CloudPcAgentPoolScalingPolicy) GetMaximumCount()(*int32) { } return nil } -// GetMinimumCount gets the minimumCount property value. The minimumCount property +// GetMinimumCount gets the minimumCount property value. The minimum number of Cloud PCs in the pool. The valid values are 0 to 900, and must be less than or equal to maximumCount. // returns a *int32 when successful func (m *CloudPcAgentPoolScalingPolicy) GetMinimumCount()(*int32) { val, err := m.GetBackingStore().Get("minimumCount") @@ -154,14 +154,14 @@ func (m *CloudPcAgentPoolScalingPolicy) SetAdditionalData(value map[string]any)( func (m *CloudPcAgentPoolScalingPolicy) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetMaximumCount sets the maximumCount property value. The maximumCount property +// SetMaximumCount sets the maximumCount property value. The maximum number of Cloud PCs in the pool. The valid values are 1 to 900, and must be greater than or equal to minimumCount. func (m *CloudPcAgentPoolScalingPolicy) SetMaximumCount(value *int32)() { err := m.GetBackingStore().Set("maximumCount", value) if err != nil { panic(err) } } -// SetMinimumCount sets the minimumCount property value. The minimumCount property +// SetMinimumCount sets the minimumCount property value. The minimum number of Cloud PCs in the pool. The valid values are 0 to 900, and must be less than or equal to maximumCount. func (m *CloudPcAgentPoolScalingPolicy) SetMinimumCount(value *int32)() { err := m.GetBackingStore().Set("minimumCount", value) if err != nil { diff --git a/models/cloud_pc_agent_pool_session_usage.go b/models/cloud_pc_agent_pool_session_usage.go index 54b5acbbda6..0a9528be0b2 100644 --- a/models/cloud_pc_agent_pool_session_usage.go +++ b/models/cloud_pc_agent_pool_session_usage.go @@ -25,7 +25,7 @@ func NewCloudPcAgentPoolSessionUsage()(*CloudPcAgentPoolSessionUsage) { func CreateCloudPcAgentPoolSessionUsageFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCloudPcAgentPoolSessionUsage(), nil } -// GetActiveSessionsCount gets the activeSessionsCount property value. The activeSessionsCount property +// GetActiveSessionsCount gets the activeSessionsCount property value. The number of active sessions in the pool. Read-only. // returns a *int32 when successful func (m *CloudPcAgentPoolSessionUsage) GetActiveSessionsCount()(*int32) { val, err := m.GetBackingStore().Get("activeSessionsCount") @@ -50,7 +50,7 @@ func (m *CloudPcAgentPoolSessionUsage) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetAvailableSessionsCount gets the availableSessionsCount property value. The availableSessionsCount property +// GetAvailableSessionsCount gets the availableSessionsCount property value. The number of available sessions in the pool. Read-only. // returns a *int32 when successful func (m *CloudPcAgentPoolSessionUsage) GetAvailableSessionsCount()(*int32) { val, err := m.GetBackingStore().Get("availableSessionsCount") @@ -143,7 +143,7 @@ func (m *CloudPcAgentPoolSessionUsage) Serialize(writer i878a80d2330e89d26896388 } return nil } -// SetActiveSessionsCount sets the activeSessionsCount property value. The activeSessionsCount property +// SetActiveSessionsCount sets the activeSessionsCount property value. The number of active sessions in the pool. Read-only. func (m *CloudPcAgentPoolSessionUsage) SetActiveSessionsCount(value *int32)() { err := m.GetBackingStore().Set("activeSessionsCount", value) if err != nil { @@ -157,7 +157,7 @@ func (m *CloudPcAgentPoolSessionUsage) SetAdditionalData(value map[string]any)() panic(err) } } -// SetAvailableSessionsCount sets the availableSessionsCount property value. The availableSessionsCount property +// SetAvailableSessionsCount sets the availableSessionsCount property value. The number of available sessions in the pool. Read-only. func (m *CloudPcAgentPoolSessionUsage) SetAvailableSessionsCount(value *int32)() { err := m.GetBackingStore().Set("availableSessionsCount", value) if err != nil { diff --git a/models/cloud_pc_agent_pool_user_assignment.go b/models/cloud_pc_agent_pool_user_assignment.go index 738f9f53065..f3cac4882b1 100644 --- a/models/cloud_pc_agent_pool_user_assignment.go +++ b/models/cloud_pc_agent_pool_user_assignment.go @@ -40,7 +40,7 @@ func (m *CloudPcAgentPoolUserAssignment) GetFieldDeserializers()(map[string]func } return res } -// GetUserPrincipalId gets the userPrincipalId property value. The userPrincipalId property +// GetUserPrincipalId gets the userPrincipalId property value. The unique identifier of the user principal. // returns a *string when successful func (m *CloudPcAgentPoolUserAssignment) GetUserPrincipalId()(*string) { val, err := m.GetBackingStore().Get("userPrincipalId") @@ -66,7 +66,7 @@ func (m *CloudPcAgentPoolUserAssignment) Serialize(writer i878a80d2330e89d268963 } return nil } -// SetUserPrincipalId sets the userPrincipalId property value. The userPrincipalId property +// SetUserPrincipalId sets the userPrincipalId property value. The unique identifier of the user principal. func (m *CloudPcAgentPoolUserAssignment) SetUserPrincipalId(value *string)() { err := m.GetBackingStore().Set("userPrincipalId", value) if err != nil { diff --git a/models/cloud_pc_cloud_app.go b/models/cloud_pc_cloud_app.go index 495cc15031d..9afdd556bfa 100644 --- a/models/cloud_pc_cloud_app.go +++ b/models/cloud_pc_cloud_app.go @@ -23,7 +23,7 @@ func NewCloudPcCloudApp()(*CloudPcCloudApp) { func CreateCloudPcCloudAppFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCloudPcCloudApp(), nil } -// GetActionFailedErrorCode gets the actionFailedErrorCode property value. The error code if publishing, unpublishing, or resetting a cloud app fails. The possible values are: cloudAppQuotaExceeded, cloudPcLicenseNotFound, internalServerError, appDiscoveryFailed, unknownFutureValue. The default value is null. Supports $filter, $select, $orderBy. Read-only. +// GetActionFailedErrorCode gets the actionFailedErrorCode property value. The error code if publishing, unpublishing, or resetting a cloud app fails. The possible values are: cloudAppQuotaExceeded, cloudPcLicenseNotFound, internalServerError, appDiscoveryFailed, unknownFutureValue, iconPathInvalid, filePathInvalid. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: iconPathInvalid, filePathInvalid. The default value is null. Supports $filter, $select, $orderBy. Read-only. // returns a *CloudPcCloudAppActionFailedErrorCode when successful func (m *CloudPcCloudApp) GetActionFailedErrorCode()(*CloudPcCloudAppActionFailedErrorCode) { val, err := m.GetBackingStore().Get("actionFailedErrorCode") @@ -275,7 +275,7 @@ func (m *CloudPcCloudApp) GetLastPublishedDateTime()(*i336074805fc853987abe6f7fe } return nil } -// GetProvisioningPolicyId gets the provisioningPolicyId property value. The ID of the provisioning policy associated with this cloud app. For example, 96133506-c05b-4dbb-a150-ed4adc59895f. Supports $filter, $select, and $orderBy. Read-only. Required. +// GetProvisioningPolicyId gets the provisioningPolicyId property value. The ID of the provisioning policy associated with this cloud app. For example, 96133506-c05b-4dbb-a150-ed4adc59895f. Supports $filter, $select, and $orderBy. Required. // returns a *string when successful func (m *CloudPcCloudApp) GetProvisioningPolicyId()(*string) { val, err := m.GetBackingStore().Get("provisioningPolicyId") @@ -381,7 +381,7 @@ func (m *CloudPcCloudApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 } return nil } -// SetActionFailedErrorCode sets the actionFailedErrorCode property value. The error code if publishing, unpublishing, or resetting a cloud app fails. The possible values are: cloudAppQuotaExceeded, cloudPcLicenseNotFound, internalServerError, appDiscoveryFailed, unknownFutureValue. The default value is null. Supports $filter, $select, $orderBy. Read-only. +// SetActionFailedErrorCode sets the actionFailedErrorCode property value. The error code if publishing, unpublishing, or resetting a cloud app fails. The possible values are: cloudAppQuotaExceeded, cloudPcLicenseNotFound, internalServerError, appDiscoveryFailed, unknownFutureValue, iconPathInvalid, filePathInvalid. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: iconPathInvalid, filePathInvalid. The default value is null. Supports $filter, $select, $orderBy. Read-only. func (m *CloudPcCloudApp) SetActionFailedErrorCode(value *CloudPcCloudAppActionFailedErrorCode)() { err := m.GetBackingStore().Set("actionFailedErrorCode", value) if err != nil { @@ -451,7 +451,7 @@ func (m *CloudPcCloudApp) SetLastPublishedDateTime(value *i336074805fc853987abe6 panic(err) } } -// SetProvisioningPolicyId sets the provisioningPolicyId property value. The ID of the provisioning policy associated with this cloud app. For example, 96133506-c05b-4dbb-a150-ed4adc59895f. Supports $filter, $select, and $orderBy. Read-only. Required. +// SetProvisioningPolicyId sets the provisioningPolicyId property value. The ID of the provisioning policy associated with this cloud app. For example, 96133506-c05b-4dbb-a150-ed4adc59895f. Supports $filter, $select, and $orderBy. Required. func (m *CloudPcCloudApp) SetProvisioningPolicyId(value *string)() { err := m.GetBackingStore().Set("provisioningPolicyId", value) if err != nil { diff --git a/models/cloud_pc_cloud_app_detail.go b/models/cloud_pc_cloud_app_detail.go index fe23dcc9225..c804336a6bb 100644 --- a/models/cloud_pc_cloud_app_detail.go +++ b/models/cloud_pc_cloud_app_detail.go @@ -131,7 +131,7 @@ func (m *CloudPcCloudAppDetail) GetFieldDeserializers()(map[string]func(i878a80d } return res } -// GetFilePath gets the filePath property value. Specifies the path to the executable file for the application within the OS of the hosting Cloud PC. The value should be an absolute path to a Windows or Universal app. For example, C:/app.exe or shell:AppsFolder/appname!App. Read-only. +// GetFilePath gets the filePath property value. Specifies the path to the executable file for the application within the OS of the hosting Cloud PC. The value should be an absolute path to a Windows or Universal app. For example, C:/app.exe or shell:AppsFolder/appname!App. // returns a *string when successful func (m *CloudPcCloudAppDetail) GetFilePath()(*string) { val, err := m.GetBackingStore().Get("filePath") @@ -237,7 +237,7 @@ func (m *CloudPcCloudAppDetail) SetCommandLineArguments(value *string)() { panic(err) } } -// SetFilePath sets the filePath property value. Specifies the path to the executable file for the application within the OS of the hosting Cloud PC. The value should be an absolute path to a Windows or Universal app. For example, C:/app.exe or shell:AppsFolder/appname!App. Read-only. +// SetFilePath sets the filePath property value. Specifies the path to the executable file for the application within the OS of the hosting Cloud PC. The value should be an absolute path to a Windows or Universal app. For example, C:/app.exe or shell:AppsFolder/appname!App. func (m *CloudPcCloudAppDetail) SetFilePath(value *string)() { err := m.GetBackingStore().Set("filePath", value) if err != nil { diff --git a/models/cloud_pc_configuration.go b/models/cloud_pc_configuration.go index bc77c22332a..7ffca76ce1b 100644 --- a/models/cloud_pc_configuration.go +++ b/models/cloud_pc_configuration.go @@ -99,7 +99,7 @@ func (m *CloudPcConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } -// GetImageDisplayName gets the imageDisplayName property value. The imageDisplayName property +// GetImageDisplayName gets the imageDisplayName property value. The display name of the image. Read-only. // returns a *string when successful func (m *CloudPcConfiguration) GetImageDisplayName()(*string) { val, err := m.GetBackingStore().Get("imageDisplayName") @@ -111,7 +111,7 @@ func (m *CloudPcConfiguration) GetImageDisplayName()(*string) { } return nil } -// GetImageId gets the imageId property value. The imageId property +// GetImageId gets the imageId property value. The unique identifier of the operating system image used for provisioning new Cloud PCs. The format for a gallery type image is: {publisherNameofferNameskuName}. // returns a *string when successful func (m *CloudPcConfiguration) GetImageId()(*string) { val, err := m.GetBackingStore().Get("imageId") @@ -147,7 +147,7 @@ func (m *CloudPcConfiguration) GetOdataType()(*string) { } return nil } -// GetOsLocale gets the osLocale property value. The osLocale property +// GetOsLocale gets the osLocale property value. The operating system locale for the Cloud PC. // returns a *string when successful func (m *CloudPcConfiguration) GetOsLocale()(*string) { val, err := m.GetBackingStore().Get("osLocale") @@ -211,14 +211,14 @@ func (m *CloudPcConfiguration) SetAdditionalData(value map[string]any)() { func (m *CloudPcConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetImageDisplayName sets the imageDisplayName property value. The imageDisplayName property +// SetImageDisplayName sets the imageDisplayName property value. The display name of the image. Read-only. func (m *CloudPcConfiguration) SetImageDisplayName(value *string)() { err := m.GetBackingStore().Set("imageDisplayName", value) if err != nil { panic(err) } } -// SetImageId sets the imageId property value. The imageId property +// SetImageId sets the imageId property value. The unique identifier of the operating system image used for provisioning new Cloud PCs. The format for a gallery type image is: {publisherNameofferNameskuName}. func (m *CloudPcConfiguration) SetImageId(value *string)() { err := m.GetBackingStore().Set("imageId", value) if err != nil { @@ -239,7 +239,7 @@ func (m *CloudPcConfiguration) SetOdataType(value *string)() { panic(err) } } -// SetOsLocale sets the osLocale property value. The osLocale property +// SetOsLocale sets the osLocale property value. The operating system locale for the Cloud PC. func (m *CloudPcConfiguration) SetOsLocale(value *string)() { err := m.GetBackingStore().Set("osLocale", value) if err != nil { diff --git a/models/cloud_pc_microsoft_hosted_network_configuration.go b/models/cloud_pc_microsoft_hosted_network_configuration.go index 57e691fc12e..68112cbce69 100644 --- a/models/cloud_pc_microsoft_hosted_network_configuration.go +++ b/models/cloud_pc_microsoft_hosted_network_configuration.go @@ -68,7 +68,7 @@ func (m *CloudPcMicrosoftHostedNetworkConfiguration) GetGeographicLocationType() } return nil } -// GetRegionGroups gets the regionGroups property value. The regionGroups property +// GetRegionGroups gets the regionGroups property value. The region group configurations for the network. // returns a []CloudPcRegionGroupConfigurationable when successful func (m *CloudPcMicrosoftHostedNetworkConfiguration) GetRegionGroups()([]CloudPcRegionGroupConfigurationable) { val, err := m.GetBackingStore().Get("regionGroups") @@ -114,7 +114,7 @@ func (m *CloudPcMicrosoftHostedNetworkConfiguration) SetGeographicLocationType(v panic(err) } } -// SetRegionGroups sets the regionGroups property value. The regionGroups property +// SetRegionGroups sets the regionGroups property value. The region group configurations for the network. func (m *CloudPcMicrosoftHostedNetworkConfiguration) SetRegionGroups(value []CloudPcRegionGroupConfigurationable)() { err := m.GetBackingStore().Set("regionGroups", value) if err != nil { diff --git a/models/cloud_pc_policy_pending_apply_status_result.go b/models/cloud_pc_policy_pending_apply_status_result.go new file mode 100644 index 00000000000..dc8a9bcbc1a --- /dev/null +++ b/models/cloud_pc_policy_pending_apply_status_result.go @@ -0,0 +1,153 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type CloudPcPolicyPendingApplyStatusResult struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCloudPcPolicyPendingApplyStatusResult instantiates a new CloudPcPolicyPendingApplyStatusResult and sets the default values. +func NewCloudPcPolicyPendingApplyStatusResult()(*CloudPcPolicyPendingApplyStatusResult) { + m := &CloudPcPolicyPendingApplyStatusResult{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCloudPcPolicyPendingApplyStatusResultFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCloudPcPolicyPendingApplyStatusResultFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudPcPolicyPendingApplyStatusResult(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *CloudPcPolicyPendingApplyStatusResult) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *CloudPcPolicyPendingApplyStatusResult) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CloudPcPolicyPendingApplyStatusResult) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["hasUnappliedPolicyUpdate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetHasUnappliedPolicyUpdate(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetHasUnappliedPolicyUpdate gets the hasUnappliedPolicyUpdate property value. Indicates whether the provisioning policy has unapplied changes pending for Cloud PCs. When true, the policy contains changes that aren't yet applied. When false, all policy changes are applied. Read-only. +// returns a *bool when successful +func (m *CloudPcPolicyPendingApplyStatusResult) GetHasUnappliedPolicyUpdate()(*bool) { + val, err := m.GetBackingStore().Get("hasUnappliedPolicyUpdate") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *CloudPcPolicyPendingApplyStatusResult) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *CloudPcPolicyPendingApplyStatusResult) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("hasUnappliedPolicyUpdate", m.GetHasUnappliedPolicyUpdate()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CloudPcPolicyPendingApplyStatusResult) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *CloudPcPolicyPendingApplyStatusResult) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetHasUnappliedPolicyUpdate sets the hasUnappliedPolicyUpdate property value. Indicates whether the provisioning policy has unapplied changes pending for Cloud PCs. When true, the policy contains changes that aren't yet applied. When false, all policy changes are applied. Read-only. +func (m *CloudPcPolicyPendingApplyStatusResult) SetHasUnappliedPolicyUpdate(value *bool)() { + err := m.GetBackingStore().Set("hasUnappliedPolicyUpdate", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CloudPcPolicyPendingApplyStatusResult) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type CloudPcPolicyPendingApplyStatusResultable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetHasUnappliedPolicyUpdate()(*bool) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetHasUnappliedPolicyUpdate(value *bool)() + SetOdataType(value *string)() +} diff --git a/models/cloud_pc_policy_scheduled_apply_action_detail.go b/models/cloud_pc_policy_scheduled_apply_action_detail.go index b1b6d6e9959..9dc361ec181 100644 --- a/models/cloud_pc_policy_scheduled_apply_action_detail.go +++ b/models/cloud_pc_policy_scheduled_apply_action_detail.go @@ -70,6 +70,16 @@ func (m *CloudPcPolicyScheduledApplyActionDetail) GetFieldDeserializers()(map[st } return nil } + res["isForceUserLogoffEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsForceUserLogoffEnabled(val) + } + return nil + } res["nextRunDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -112,6 +122,18 @@ func (m *CloudPcPolicyScheduledApplyActionDetail) GetFieldDeserializers()(map[st } return res } +// GetIsForceUserLogoffEnabled gets the isForceUserLogoffEnabled property value. Indicates whether active Cloud PC sessions are forcibly signed out when reprovisioning begins. When true, connected users are immediately signed out and reprovisioning starts right away; reservePercentage must be set to 0 when this property is true, otherwise the request fails. When false, reprovisioning waits until the user disconnects. The default value is false. Optional. Frontline shared only. +// returns a *bool when successful +func (m *CloudPcPolicyScheduledApplyActionDetail) GetIsForceUserLogoffEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isForceUserLogoffEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetNextRunDateTime gets the nextRunDateTime property value. Indicates IT Admins can see when the next automatic regular apply is executed. It needs to be coordinated with timezone, for example, '2025-01-01 00:00:00' with 'China Standard Time' means the next task executes at Jan 01 2025 00:00:00 GMT+0800 (China Standard Time). Read-Only. // returns a *string when successful func (m *CloudPcPolicyScheduledApplyActionDetail) GetNextRunDateTime()(*string) { @@ -178,6 +200,12 @@ func (m *CloudPcPolicyScheduledApplyActionDetail) Serialize(writer i878a80d2330e return err } } + { + err = writer.WriteBoolValue("isForceUserLogoffEnabled", m.GetIsForceUserLogoffEnabled()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("nextRunDateTime", m.GetNextRunDateTime()) if err != nil { @@ -219,6 +247,13 @@ func (m *CloudPcPolicyScheduledApplyActionDetail) SetEndDateTime(value *string)( panic(err) } } +// SetIsForceUserLogoffEnabled sets the isForceUserLogoffEnabled property value. Indicates whether active Cloud PC sessions are forcibly signed out when reprovisioning begins. When true, connected users are immediately signed out and reprovisioning starts right away; reservePercentage must be set to 0 when this property is true, otherwise the request fails. When false, reprovisioning waits until the user disconnects. The default value is false. Optional. Frontline shared only. +func (m *CloudPcPolicyScheduledApplyActionDetail) SetIsForceUserLogoffEnabled(value *bool)() { + err := m.GetBackingStore().Set("isForceUserLogoffEnabled", value) + if err != nil { + panic(err) + } +} // SetNextRunDateTime sets the nextRunDateTime property value. Indicates IT Admins can see when the next automatic regular apply is executed. It needs to be coordinated with timezone, for example, '2025-01-01 00:00:00' with 'China Standard Time' means the next task executes at Jan 01 2025 00:00:00 GMT+0800 (China Standard Time). Read-Only. func (m *CloudPcPolicyScheduledApplyActionDetail) SetNextRunDateTime(value *string)() { err := m.GetBackingStore().Set("nextRunDateTime", value) @@ -252,12 +287,14 @@ type CloudPcPolicyScheduledApplyActionDetailable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCronScheduleExpression()(*string) GetEndDateTime()(*string) + GetIsForceUserLogoffEnabled()(*bool) GetNextRunDateTime()(*string) GetReservePercentage()(*int32) GetStartDateTime()(*string) GetTimezone()(*CloudPcPolicyTimezone) SetCronScheduleExpression(value *string)() SetEndDateTime(value *string)() + SetIsForceUserLogoffEnabled(value *bool)() SetNextRunDateTime(value *string)() SetReservePercentage(value *int32)() SetStartDateTime(value *string)() diff --git a/models/cloud_pc_pool.go b/models/cloud_pc_pool.go index 864146aa413..09ce21e6147 100644 --- a/models/cloud_pc_pool.go +++ b/models/cloud_pc_pool.go @@ -41,7 +41,7 @@ func CreateCloudPcPoolFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a } return NewCloudPcPool(), nil } -// GetAssignments gets the assignments property value. The assignments property +// GetAssignments gets the assignments property value. The collection of assignments that grant user or service principal identities access to this pool. // returns a []CloudPcPoolAssignmentable when successful func (m *CloudPcPool) GetAssignments()([]CloudPcPoolAssignmentable) { val, err := m.GetBackingStore().Get("assignments") @@ -77,7 +77,7 @@ func (m *CloudPcPool) GetCloudPcConfiguration()(CloudPcConfigurationable) { } return nil } -// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// GetCreatedDateTime gets the createdDateTime property value. The date and time when the pool was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2026 is 2026-01-01T00:00:00Z. Read-only. // returns a *Time when successful func (m *CloudPcPool) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") @@ -89,7 +89,7 @@ func (m *CloudPcPool) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f } return nil } -// GetDescription gets the description property value. The description property +// GetDescription gets the description property value. The description of the pool. The maximum length is 512 characters. // returns a *string when successful func (m *CloudPcPool) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") @@ -101,7 +101,7 @@ func (m *CloudPcPool) GetDescription()(*string) { } return nil } -// GetDisplayName gets the displayName property value. The displayName property +// GetDisplayName gets the displayName property value. The display name of the pool. The name is unique across Cloud PC pools in an organization. The maximum length is 60 characters. // returns a *string when successful func (m *CloudPcPool) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -205,7 +205,7 @@ func (m *CloudPcPool) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return res } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The lastModifiedDateTime property +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The date and time when the pool was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2026 is 2026-01-01T00:00:00Z. Read-only. // returns a *Time when successful func (m *CloudPcPool) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") @@ -291,7 +291,7 @@ func (m *CloudPcPool) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 } return nil } -// SetAssignments sets the assignments property value. The assignments property +// SetAssignments sets the assignments property value. The collection of assignments that grant user or service principal identities access to this pool. func (m *CloudPcPool) SetAssignments(value []CloudPcPoolAssignmentable)() { err := m.GetBackingStore().Set("assignments", value) if err != nil { @@ -312,28 +312,28 @@ func (m *CloudPcPool) SetCloudPcConfiguration(value CloudPcConfigurationable)() panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +// SetCreatedDateTime sets the createdDateTime property value. The date and time when the pool was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2026 is 2026-01-01T00:00:00Z. Read-only. func (m *CloudPcPool) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { panic(err) } } -// SetDescription sets the description property value. The description property +// SetDescription sets the description property value. The description of the pool. The maximum length is 512 characters. func (m *CloudPcPool) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. The displayName property +// SetDisplayName sets the displayName property value. The display name of the pool. The name is unique across Cloud PC pools in an organization. The maximum length is 60 characters. func (m *CloudPcPool) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The lastModifiedDateTime property +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The date and time when the pool was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2026 is 2026-01-01T00:00:00Z. Read-only. func (m *CloudPcPool) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { diff --git a/models/cloud_pc_provisioning_policy.go b/models/cloud_pc_provisioning_policy.go index 4b83d195710..287f4df4bef 100644 --- a/models/cloud_pc_provisioning_policy.go +++ b/models/cloud_pc_provisioning_policy.go @@ -47,7 +47,7 @@ func (m *CloudPcProvisioningPolicy) GetAssignments()([]CloudPcProvisioningPolicy } return nil } -// GetAutopatch gets the autopatch property value. Indicates the Windows Autopatch settings for Cloud PCs using this provisioning policy. The settings take effect when the tenant enrolls in Autopatch and the managedType of the microsoftManagedDesktop property is set as starterManaged. Supports $select. +// GetAutopatch gets the autopatch property value. Indicates the Windows Autopatch settings for Cloud PCs using this provisioning policy. The settings take effect when the tenant enrolls in Autopatch and the managedType of the microsoftManagedDesktop property is set as starterManaged. When you create or update a provisioning policy with autopatch, you must use a delegated token and the signed-in user must have the Intune Administrator role. Supports $select. // returns a CloudPcProvisioningPolicyAutopatchable when successful func (m *CloudPcProvisioningPolicy) GetAutopatch()(CloudPcProvisioningPolicyAutopatchable) { val, err := m.GetBackingStore().Get("autopatch") @@ -59,7 +59,7 @@ func (m *CloudPcProvisioningPolicy) GetAutopatch()(CloudPcProvisioningPolicyAuto } return nil } -// GetAutopilotConfiguration gets the autopilotConfiguration property value. The specific settings for Windows Autopilot that enable Windows 365 customers to experience it on Cloud PC. Supports $select. +// GetAutopilotConfiguration gets the autopilotConfiguration property value. The specific settings for Windows Autopilot that enable Windows 365 customers to experience it on Cloud PC. When you create or update a provisioning policy with autopilotConfiguration, use the required Microsoft Graph permissions listed on the corresponding create and update API pages. In delegated scenarios, the signed-in user must also have the Microsoft.Intune/DeviceConfigurations/Assign Intune RBAC permission. Supports $select. // returns a CloudPcAutopilotConfigurationable when successful func (m *CloudPcProvisioningPolicy) GetAutopilotConfiguration()(CloudPcAutopilotConfigurationable) { val, err := m.GetBackingStore().Get("autopilotConfiguration") @@ -419,6 +419,16 @@ func (m *CloudPcProvisioningPolicy) GetFieldDeserializers()(map[string]func(i878 } return nil } + res["snapshotResetMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCloudPcSnapshotResetMode) + if err != nil { + return err + } + if val != nil { + m.SetSnapshotResetMode(val.(*CloudPcSnapshotResetMode)) + } + return nil + } res["userExperienceType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseCloudPcUserExperienceType) if err != nil { @@ -593,6 +603,18 @@ func (m *CloudPcProvisioningPolicy) GetScopeIds()([]string) { } return nil } +// GetSnapshotResetMode gets the snapshotResetMode property value. The snapshotResetMode property +// returns a *CloudPcSnapshotResetMode when successful +func (m *CloudPcProvisioningPolicy) GetSnapshotResetMode()(*CloudPcSnapshotResetMode) { + val, err := m.GetBackingStore().Get("snapshotResetMode") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CloudPcSnapshotResetMode) + } + return nil +} // GetUserExperienceType gets the userExperienceType property value. Specifies the type of cloud object the end user can access. The possible values are: cloudPc, cloudApp, unknownFutureValue. cloudPc indicates that the end user can access the entire desktop. cloudApp indicates that the end user can only access apps published under this provisioning policy. The type can't be changed once the provisioning policy is created. If not specified during creation, the default value is cloudPc. When cloudApp is selected, the provisioningType must be sharedByEntraGroup. Supports $filter, $select, $orderBy. // returns a *CloudPcUserExperienceType when successful func (m *CloudPcProvisioningPolicy) GetUserExperienceType()(*CloudPcUserExperienceType) { @@ -800,6 +822,13 @@ func (m *CloudPcProvisioningPolicy) Serialize(writer i878a80d2330e89d26896388a3f return err } } + if m.GetSnapshotResetMode() != nil { + cast := (*m.GetSnapshotResetMode()).String() + err = writer.WriteStringValue("snapshotResetMode", &cast) + if err != nil { + return err + } + } if m.GetUserExperienceType() != nil { cast := (*m.GetUserExperienceType()).String() err = writer.WriteStringValue("userExperienceType", &cast) @@ -841,14 +870,14 @@ func (m *CloudPcProvisioningPolicy) SetAssignments(value []CloudPcProvisioningPo panic(err) } } -// SetAutopatch sets the autopatch property value. Indicates the Windows Autopatch settings for Cloud PCs using this provisioning policy. The settings take effect when the tenant enrolls in Autopatch and the managedType of the microsoftManagedDesktop property is set as starterManaged. Supports $select. +// SetAutopatch sets the autopatch property value. Indicates the Windows Autopatch settings for Cloud PCs using this provisioning policy. The settings take effect when the tenant enrolls in Autopatch and the managedType of the microsoftManagedDesktop property is set as starterManaged. When you create or update a provisioning policy with autopatch, you must use a delegated token and the signed-in user must have the Intune Administrator role. Supports $select. func (m *CloudPcProvisioningPolicy) SetAutopatch(value CloudPcProvisioningPolicyAutopatchable)() { err := m.GetBackingStore().Set("autopatch", value) if err != nil { panic(err) } } -// SetAutopilotConfiguration sets the autopilotConfiguration property value. The specific settings for Windows Autopilot that enable Windows 365 customers to experience it on Cloud PC. Supports $select. +// SetAutopilotConfiguration sets the autopilotConfiguration property value. The specific settings for Windows Autopilot that enable Windows 365 customers to experience it on Cloud PC. When you create or update a provisioning policy with autopilotConfiguration, use the required Microsoft Graph permissions listed on the corresponding create and update API pages. In delegated scenarios, the signed-in user must also have the Microsoft.Intune/DeviceConfigurations/Assign Intune RBAC permission. Supports $select. func (m *CloudPcProvisioningPolicy) SetAutopilotConfiguration(value CloudPcAutopilotConfigurationable)() { err := m.GetBackingStore().Set("autopilotConfiguration", value) if err != nil { @@ -988,6 +1017,13 @@ func (m *CloudPcProvisioningPolicy) SetScopeIds(value []string)() { panic(err) } } +// SetSnapshotResetMode sets the snapshotResetMode property value. The snapshotResetMode property +func (m *CloudPcProvisioningPolicy) SetSnapshotResetMode(value *CloudPcSnapshotResetMode)() { + err := m.GetBackingStore().Set("snapshotResetMode", value) + if err != nil { + panic(err) + } +} // SetUserExperienceType sets the userExperienceType property value. Specifies the type of cloud object the end user can access. The possible values are: cloudPc, cloudApp, unknownFutureValue. cloudPc indicates that the end user can access the entire desktop. cloudApp indicates that the end user can only access apps published under this provisioning policy. The type can't be changed once the provisioning policy is created. If not specified during creation, the default value is cloudPc. When cloudApp is selected, the provisioningType must be sharedByEntraGroup. Supports $filter, $select, $orderBy. func (m *CloudPcProvisioningPolicy) SetUserExperienceType(value *CloudPcUserExperienceType)() { err := m.GetBackingStore().Set("userExperienceType", value) @@ -1042,6 +1078,7 @@ type CloudPcProvisioningPolicyable interface { GetMicrosoftManagedDesktop()(MicrosoftManagedDesktopable) GetProvisioningType()(*CloudPcProvisioningType) GetScopeIds()([]string) + GetSnapshotResetMode()(*CloudPcSnapshotResetMode) GetUserExperienceType()(*CloudPcUserExperienceType) GetUserSettingsPersistenceConfiguration()(CloudPcUserSettingsPersistenceConfigurationable) GetWindowsSetting()(CloudPcWindowsSettingable) @@ -1069,6 +1106,7 @@ type CloudPcProvisioningPolicyable interface { SetMicrosoftManagedDesktop(value MicrosoftManagedDesktopable)() SetProvisioningType(value *CloudPcProvisioningType)() SetScopeIds(value []string)() + SetSnapshotResetMode(value *CloudPcSnapshotResetMode)() SetUserExperienceType(value *CloudPcUserExperienceType)() SetUserSettingsPersistenceConfiguration(value CloudPcUserSettingsPersistenceConfigurationable)() SetWindowsSetting(value CloudPcWindowsSettingable)() diff --git a/models/cloud_pc_region_group_configuration.go b/models/cloud_pc_region_group_configuration.go index 46b35fd9176..ffd02ab30c3 100644 --- a/models/cloud_pc_region_group_configuration.go +++ b/models/cloud_pc_region_group_configuration.go @@ -109,7 +109,7 @@ func (m *CloudPcRegionGroupConfiguration) GetRegionGroup()(*CloudPcRegionGroup) } return nil } -// GetRegions gets the regions property value. The regions property +// GetRegions gets the regions property value. The list of region names within the region group. The default value is automatic. // returns a []string when successful func (m *CloudPcRegionGroupConfiguration) GetRegions()([]string) { val, err := m.GetBackingStore().Get("regions") @@ -175,7 +175,7 @@ func (m *CloudPcRegionGroupConfiguration) SetRegionGroup(value *CloudPcRegionGro panic(err) } } -// SetRegions sets the regions property value. The regions property +// SetRegions sets the regions property value. The list of region names within the region group. The default value is automatic. func (m *CloudPcRegionGroupConfiguration) SetRegions(value []string)() { err := m.GetBackingStore().Set("regions", value) if err != nil { diff --git a/models/cloud_pc_snapshot_reset_mode.go b/models/cloud_pc_snapshot_reset_mode.go new file mode 100644 index 00000000000..5574dddf6dd --- /dev/null +++ b/models/cloud_pc_snapshot_reset_mode.go @@ -0,0 +1,42 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +type CloudPcSnapshotResetMode int + +const ( + NOTAPPLICABLE_CLOUDPCSNAPSHOTRESETMODE CloudPcSnapshotResetMode = iota + ENABLED_CLOUDPCSNAPSHOTRESETMODE + DISABLED_CLOUDPCSNAPSHOTRESETMODE + UNKNOWNFUTUREVALUE_CLOUDPCSNAPSHOTRESETMODE +) + +func (i CloudPcSnapshotResetMode) String() string { + return []string{"notApplicable", "enabled", "disabled", "unknownFutureValue"}[i] +} +func ParseCloudPcSnapshotResetMode(v string) (any, error) { + result := NOTAPPLICABLE_CLOUDPCSNAPSHOTRESETMODE + switch v { + case "notApplicable": + result = NOTAPPLICABLE_CLOUDPCSNAPSHOTRESETMODE + case "enabled": + result = ENABLED_CLOUDPCSNAPSHOTRESETMODE + case "disabled": + result = DISABLED_CLOUDPCSNAPSHOTRESETMODE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLOUDPCSNAPSHOTRESETMODE + default: + return nil, nil + } + return &result, nil +} +func SerializeCloudPcSnapshotResetMode(values []CloudPcSnapshotResetMode) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i CloudPcSnapshotResetMode) isMultiValue() bool { + return false +} diff --git a/models/cloud_pc_status.go b/models/cloud_pc_status.go index 966d150162a..821dc3fbfe9 100644 --- a/models/cloud_pc_status.go +++ b/models/cloud_pc_status.go @@ -22,10 +22,12 @@ const ( MODIFYINGSINGLESIGNON_CLOUDPCSTATUS REFRESHPOLICYCONFIGURATION_CLOUDPCSTATUS PREPARING_CLOUDPCSTATUS + FAILOVERINPROGRESS_CLOUDPCSTATUS + FAILBACKINPROGRESS_CLOUDPCSTATUS ) func (i CloudPcStatus) String() string { - return []string{"notProvisioned", "provisioning", "provisioned", "inGracePeriod", "deprovisioning", "failed", "provisionedWithWarnings", "resizing", "restoring", "pendingProvision", "unknownFutureValue", "movingRegion", "resizePendingLicense", "updatingSingleSignOn", "modifyingSingleSignOn", "refreshPolicyConfiguration", "preparing"}[i] + return []string{"notProvisioned", "provisioning", "provisioned", "inGracePeriod", "deprovisioning", "failed", "provisionedWithWarnings", "resizing", "restoring", "pendingProvision", "unknownFutureValue", "movingRegion", "resizePendingLicense", "updatingSingleSignOn", "modifyingSingleSignOn", "refreshPolicyConfiguration", "preparing", "failoverInProgress", "failbackInProgress"}[i] } func ParseCloudPcStatus(v string) (any, error) { result := NOTPROVISIONED_CLOUDPCSTATUS @@ -64,6 +66,10 @@ func ParseCloudPcStatus(v string) (any, error) { result = REFRESHPOLICYCONFIGURATION_CLOUDPCSTATUS case "preparing": result = PREPARING_CLOUDPCSTATUS + case "failoverInProgress": + result = FAILOVERINPROGRESS_CLOUDPCSTATUS + case "failbackInProgress": + result = FAILBACKINPROGRESS_CLOUDPCSTATUS default: return nil, nil } diff --git a/models/cloud_video_interop_info.go b/models/cloud_video_interop_info.go index 10b6f3004e9..26e4cf68c8b 100644 --- a/models/cloud_video_interop_info.go +++ b/models/cloud_video_interop_info.go @@ -89,7 +89,7 @@ func (m *CloudVideoInteropInfo) GetFieldDeserializers()(map[string]func(i878a80d } return res } -// GetMoreInfoWebUrl gets the moreInfoWebUrl property value. The moreInfoWebUrl property +// GetMoreInfoWebUrl gets the moreInfoWebUrl property value. Provides other video teleconferencing (VTC) dial-in options. Read-only. // returns a *string when successful func (m *CloudVideoInteropInfo) GetMoreInfoWebUrl()(*string) { val, err := m.GetBackingStore().Get("moreInfoWebUrl") @@ -113,7 +113,7 @@ func (m *CloudVideoInteropInfo) GetOdataType()(*string) { } return nil } -// GetTenantKey gets the tenantKey property value. The tenantKey property +// GetTenantKey gets the tenantKey property value. The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. // returns a *string when successful func (m *CloudVideoInteropInfo) GetTenantKey()(*string) { val, err := m.GetBackingStore().Get("tenantKey") @@ -125,7 +125,7 @@ func (m *CloudVideoInteropInfo) GetTenantKey()(*string) { } return nil } -// GetVideoTeleconferenceId gets the videoTeleconferenceId property value. The videoTeleconferenceId property +// GetVideoTeleconferenceId gets the videoTeleconferenceId property value. The video teleconferencing ID. Read-only. // returns a *string when successful func (m *CloudVideoInteropInfo) GetVideoTeleconferenceId()(*string) { val, err := m.GetBackingStore().Get("videoTeleconferenceId") @@ -182,7 +182,7 @@ func (m *CloudVideoInteropInfo) SetAdditionalData(value map[string]any)() { func (m *CloudVideoInteropInfo) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetMoreInfoWebUrl sets the moreInfoWebUrl property value. The moreInfoWebUrl property +// SetMoreInfoWebUrl sets the moreInfoWebUrl property value. Provides other video teleconferencing (VTC) dial-in options. Read-only. func (m *CloudVideoInteropInfo) SetMoreInfoWebUrl(value *string)() { err := m.GetBackingStore().Set("moreInfoWebUrl", value) if err != nil { @@ -196,14 +196,14 @@ func (m *CloudVideoInteropInfo) SetOdataType(value *string)() { panic(err) } } -// SetTenantKey sets the tenantKey property value. The tenantKey property +// SetTenantKey sets the tenantKey property value. The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. func (m *CloudVideoInteropInfo) SetTenantKey(value *string)() { err := m.GetBackingStore().Set("tenantKey", value) if err != nil { panic(err) } } -// SetVideoTeleconferenceId sets the videoTeleconferenceId property value. The videoTeleconferenceId property +// SetVideoTeleconferenceId sets the videoTeleconferenceId property value. The video teleconferencing ID. Read-only. func (m *CloudVideoInteropInfo) SetVideoTeleconferenceId(value *string)() { err := m.GetBackingStore().Set("videoTeleconferenceId", value) if err != nil { diff --git a/models/column_definition.go b/models/column_definition.go index 505f2157de4..f82e66a9e10 100644 --- a/models/column_definition.go +++ b/models/column_definition.go @@ -338,6 +338,16 @@ func (m *ColumnDefinition) GetFieldDeserializers()(map[string]func(i878a80d2330e } return nil } + res["isSearchable"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsSearchable(val) + } + return nil + } res["lookup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateLookupColumnFromDiscriminatorValue) if err != nil { @@ -516,7 +526,7 @@ func (m *ColumnDefinition) GetHyperlinkOrPicture()(HyperlinkOrPictureColumnable) } return nil } -// GetIndexed gets the indexed property value. Specifies whether the column values can used for sorting and searching. +// GetIndexed gets the indexed property value. Specifies whether the column values can be used for sorting and searching. // returns a *bool when successful func (m *ColumnDefinition) GetIndexed()(*bool) { val, err := m.GetBackingStore().Get("indexed") @@ -564,6 +574,18 @@ func (m *ColumnDefinition) GetIsSealed()(*bool) { } return nil } +// GetIsSearchable gets the isSearchable property value. Specifies whether the column values can be used for searching. Currently supported only for columns in a fileStorageContainer. +// returns a *bool when successful +func (m *ColumnDefinition) GetIsSearchable()(*bool) { + val, err := m.GetBackingStore().Get("isSearchable") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetLookup gets the lookup property value. This column's data is looked up from another source in the site. // returns a LookupColumnable when successful func (m *ColumnDefinition) GetLookup()(LookupColumnable) { @@ -846,6 +868,12 @@ func (m *ColumnDefinition) Serialize(writer i878a80d2330e89d26896388a3f487eef27b return err } } + { + err = writer.WriteBoolValue("isSearchable", m.GetIsSearchable()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("lookup", m.GetLookup()) if err != nil { @@ -1031,7 +1059,7 @@ func (m *ColumnDefinition) SetHyperlinkOrPicture(value HyperlinkOrPictureColumna panic(err) } } -// SetIndexed sets the indexed property value. Specifies whether the column values can used for sorting and searching. +// SetIndexed sets the indexed property value. Specifies whether the column values can be used for sorting and searching. func (m *ColumnDefinition) SetIndexed(value *bool)() { err := m.GetBackingStore().Set("indexed", value) if err != nil { @@ -1059,6 +1087,13 @@ func (m *ColumnDefinition) SetIsSealed(value *bool)() { panic(err) } } +// SetIsSearchable sets the isSearchable property value. Specifies whether the column values can be used for searching. Currently supported only for columns in a fileStorageContainer. +func (m *ColumnDefinition) SetIsSearchable(value *bool)() { + err := m.GetBackingStore().Set("isSearchable", value) + if err != nil { + panic(err) + } +} // SetLookup sets the lookup property value. This column's data is looked up from another source in the site. func (m *ColumnDefinition) SetLookup(value LookupColumnable)() { err := m.GetBackingStore().Set("lookup", value) @@ -1178,6 +1213,7 @@ type ColumnDefinitionable interface { GetIsDeletable()(*bool) GetIsReorderable()(*bool) GetIsSealed()(*bool) + GetIsSearchable()(*bool) GetLookup()(LookupColumnable) GetName()(*string) GetNumber()(NumberColumnable) @@ -1210,6 +1246,7 @@ type ColumnDefinitionable interface { SetIsDeletable(value *bool)() SetIsReorderable(value *bool)() SetIsSealed(value *bool)() + SetIsSearchable(value *bool)() SetLookup(value LookupColumnable)() SetName(value *string)() SetNumber(value NumberColumnable)() diff --git a/models/comms_operation.go b/models/comms_operation.go index 668ec7452f9..e9e755a8e29 100644 --- a/models/comms_operation.go +++ b/models/comms_operation.go @@ -34,6 +34,10 @@ func CreateCommsOperationFromDiscriminatorValue(parseNode i878a80d2330e89d268963 switch *mappingValue { case "#microsoft.graph.addLargeGalleryViewOperation": return NewAddLargeGalleryViewOperation(), nil + case "#microsoft.graph.admitAllFromLobbyOperation": + return NewAdmitAllFromLobbyOperation(), nil + case "#microsoft.graph.admitFromLobbyOperation": + return NewAdmitFromLobbyOperation(), nil case "#microsoft.graph.cancelMediaProcessingOperation": return NewCancelMediaProcessingOperation(), nil case "#microsoft.graph.inviteParticipantsOperation": @@ -46,6 +50,8 @@ func CreateCommsOperationFromDiscriminatorValue(parseNode i878a80d2330e89d268963 return NewPlayPromptOperation(), nil case "#microsoft.graph.recordOperation": return NewRecordOperation(), nil + case "#microsoft.graph.removeFromLobbyOperation": + return NewRemoveFromLobbyOperation(), nil case "#microsoft.graph.sendDtmfTonesOperation": return NewSendDtmfTonesOperation(), nil case "#microsoft.graph.startHoldMusicOperation": diff --git a/models/conditional_access_policy.go b/models/conditional_access_policy.go index 82239b66a05..3dad1c77bc9 100644 --- a/models/conditional_access_policy.go +++ b/models/conditional_access_policy.go @@ -55,7 +55,7 @@ func (m *ConditionalAccessPolicy) GetConditions()(ConditionalAccessConditionSeta } return nil } -// GetCreatedDateTime gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Readonly. +// GetCreatedDateTime gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. // returns a *Time when successful func (m *ConditionalAccessPolicy) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") @@ -211,7 +211,7 @@ func (m *ConditionalAccessPolicy) GetId()(*string) { } return nil } -// GetModifiedDateTime gets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Readonly. +// GetModifiedDateTime gets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. // returns a *Time when successful func (m *ConditionalAccessPolicy) GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("modifiedDateTime") @@ -317,7 +317,7 @@ func (m *ConditionalAccessPolicy) SetConditions(value ConditionalAccessCondition panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Readonly. +// SetCreatedDateTime sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. func (m *ConditionalAccessPolicy) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { @@ -352,7 +352,7 @@ func (m *ConditionalAccessPolicy) SetId(value *string)() { panic(err) } } -// SetModifiedDateTime sets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Readonly. +// SetModifiedDateTime sets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. func (m *ConditionalAccessPolicy) SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("modifiedDateTime", value) if err != nil { diff --git a/models/connected_organization_members.go b/models/connected_organization_members.go index 9da4abc3da7..46784c8930b 100644 --- a/models/connected_organization_members.go +++ b/models/connected_organization_members.go @@ -24,7 +24,7 @@ func NewConnectedOrganizationMembers()(*ConnectedOrganizationMembers) { func CreateConnectedOrganizationMembersFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewConnectedOrganizationMembers(), nil } -// GetDescription gets the description property value. The name of the connected organization. Read only. +// GetDescription gets the description property value. The name of the connected organization. Read-only. // returns a *string when successful func (m *ConnectedOrganizationMembers) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") @@ -94,7 +94,7 @@ func (m *ConnectedOrganizationMembers) Serialize(writer i878a80d2330e89d26896388 } return nil } -// SetDescription sets the description property value. The name of the connected organization. Read only. +// SetDescription sets the description property value. The name of the connected organization. Read-only. func (m *ConnectedOrganizationMembers) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { diff --git a/models/context_metadata.go b/models/context_metadata.go new file mode 100644 index 00000000000..8dd24a5bc8f --- /dev/null +++ b/models/context_metadata.go @@ -0,0 +1,153 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ContextMetadata struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewContextMetadata instantiates a new ContextMetadata and sets the default values. +func NewContextMetadata()(*ContextMetadata) { + m := &ContextMetadata{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateContextMetadataFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateContextMetadataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewContextMetadata(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ContextMetadata) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ContextMetadata) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ContextMetadata) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["metadataProperties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCustomMetadataDictionaryFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetMetadataProperties(val.(CustomMetadataDictionaryable)) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetMetadataProperties gets the metadataProperties property value. The metadataProperties property +// returns a CustomMetadataDictionaryable when successful +func (m *ContextMetadata) GetMetadataProperties()(CustomMetadataDictionaryable) { + val, err := m.GetBackingStore().Get("metadataProperties") + if err != nil { + panic(err) + } + if val != nil { + return val.(CustomMetadataDictionaryable) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *ContextMetadata) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ContextMetadata) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("metadataProperties", m.GetMetadataProperties()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ContextMetadata) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ContextMetadata) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetMetadataProperties sets the metadataProperties property value. The metadataProperties property +func (m *ContextMetadata) SetMetadataProperties(value CustomMetadataDictionaryable)() { + err := m.GetBackingStore().Set("metadataProperties", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ContextMetadata) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type ContextMetadataable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetMetadataProperties()(CustomMetadataDictionaryable) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetMetadataProperties(value CustomMetadataDictionaryable)() + SetOdataType(value *string)() +} diff --git a/models/copilot_package.go b/models/copilot_package.go index 00807825e8b..87cca2dbfd3 100644 --- a/models/copilot_package.go +++ b/models/copilot_package.go @@ -77,6 +77,18 @@ func (m *CopilotPackage) GetAvailableTo()(*PackageStatus) { } return nil } +// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// returns a *Time when successful +func (m *CopilotPackage) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} // GetDeployedTo gets the deployedTo property value. The deployedTo property // returns a *PackageStatus when successful func (m *CopilotPackage) GetDeployedTo()(*PackageStatus) { @@ -147,6 +159,16 @@ func (m *CopilotPackage) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return nil } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } res["deployedTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParsePackageStatus) if err != nil { @@ -480,6 +502,12 @@ func (m *CopilotPackage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a return err } } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } if m.GetDeployedTo() != nil { cast := (*m.GetDeployedTo()).String() err = writer.WriteStringValue("deployedTo", &cast) @@ -595,6 +623,13 @@ func (m *CopilotPackage) SetAvailableTo(value *PackageStatus)() { panic(err) } } +// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +func (m *CopilotPackage) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} // SetDeployedTo sets the deployedTo property value. The deployedTo property func (m *CopilotPackage) SetDeployedTo(value *PackageStatus)() { err := m.GetBackingStore().Set("deployedTo", value) @@ -706,6 +741,7 @@ type CopilotPackageable interface { GetAppId()(*string) GetAssetId()(*string) GetAvailableTo()(*PackageStatus) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDeployedTo()(*PackageStatus) GetDisplayName()(*string) GetElementTypes()([]string) @@ -724,6 +760,7 @@ type CopilotPackageable interface { SetAppId(value *string)() SetAssetId(value *string)() SetAvailableTo(value *PackageStatus)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDeployedTo(value *PackageStatus)() SetDisplayName(value *string)() SetElementTypes(value []string)() diff --git a/models/copilot_package_detail.go b/models/copilot_package_detail.go index d188f95ca24..37abaed9550 100644 --- a/models/copilot_package_detail.go +++ b/models/copilot_package_detail.go @@ -160,6 +160,22 @@ func (m *CopilotPackageDetail) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["sharedWithUsersAndGroups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreatePackageAccessEntityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]PackageAccessEntityable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(PackageAccessEntityable) + } + } + m.SetSharedWithUsersAndGroups(res) + } + return nil + } return res } // GetLongDescription gets the longDescription property value. The longDescription property @@ -186,6 +202,18 @@ func (m *CopilotPackageDetail) GetSensitivity()(*string) { } return nil } +// GetSharedWithUsersAndGroups gets the sharedWithUsersAndGroups property value. The sharedWithUsersAndGroups property +// returns a []PackageAccessEntityable when successful +func (m *CopilotPackageDetail) GetSharedWithUsersAndGroups()([]PackageAccessEntityable) { + val, err := m.GetBackingStore().Get("sharedWithUsersAndGroups") + if err != nil { + panic(err) + } + if val != nil { + return val.([]PackageAccessEntityable) + } + return nil +} // Serialize serializes information the current object func (m *CopilotPackageDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.CopilotPackage.Serialize(writer) @@ -246,6 +274,18 @@ func (m *CopilotPackageDetail) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + if m.GetSharedWithUsersAndGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSharedWithUsersAndGroups())) + for i, v := range m.GetSharedWithUsersAndGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("sharedWithUsersAndGroups", cast) + if err != nil { + return err + } + } return nil } // SetAcquireUsersAndGroups sets the acquireUsersAndGroups property value. The acquireUsersAndGroups property @@ -290,6 +330,13 @@ func (m *CopilotPackageDetail) SetSensitivity(value *string)() { panic(err) } } +// SetSharedWithUsersAndGroups sets the sharedWithUsersAndGroups property value. The sharedWithUsersAndGroups property +func (m *CopilotPackageDetail) SetSharedWithUsersAndGroups(value []PackageAccessEntityable)() { + err := m.GetBackingStore().Set("sharedWithUsersAndGroups", value) + if err != nil { + panic(err) + } +} type CopilotPackageDetailable interface { CopilotPackageable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable @@ -299,10 +346,12 @@ type CopilotPackageDetailable interface { GetElementDetails()([]PackageElementDetailable) GetLongDescription()(*string) GetSensitivity()(*string) + GetSharedWithUsersAndGroups()([]PackageAccessEntityable) SetAcquireUsersAndGroups(value []PackageAccessEntityable)() SetAllowedUsersAndGroups(value []PackageAccessEntityable)() SetCategories(value []string)() SetElementDetails(value []PackageElementDetailable)() SetLongDescription(value *string)() SetSensitivity(value *string)() + SetSharedWithUsersAndGroups(value []PackageAccessEntityable)() } diff --git a/models/correlated_identity.go b/models/correlated_identity.go new file mode 100644 index 00000000000..6f4e80e603e --- /dev/null +++ b/models/correlated_identity.go @@ -0,0 +1,228 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type CorrelatedIdentity struct { + Entity +} +// NewCorrelatedIdentity instantiates a new CorrelatedIdentity and sets the default values. +func NewCorrelatedIdentity()(*CorrelatedIdentity) { + m := &CorrelatedIdentity{ + Entity: *NewEntity(), + } + return m +} +// CreateCorrelatedIdentityFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCorrelatedIdentityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCorrelatedIdentity(), nil +} +// GetCorrelatedDateTime gets the correlatedDateTime property value. The date and time when the identity was correlated. Supports $orderby. +// returns a *Time when successful +func (m *CorrelatedIdentity) GetCorrelatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("correlatedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetError gets the error property value. Error information if the correlation for this identity failed. null if successful. Supports $filter (eq). +// returns a CorrelationErrorable when successful +func (m *CorrelatedIdentity) GetError()(CorrelationErrorable) { + val, err := m.GetBackingStore().Get("error") + if err != nil { + panic(err) + } + if val != nil { + return val.(CorrelationErrorable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CorrelatedIdentity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["correlatedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCorrelatedDateTime(val) + } + return nil + } + res["error"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCorrelationErrorFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetError(val.(CorrelationErrorable)) + } + return nil + } + res["sourceIdentity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateIdentityInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSourceIdentity(val.(IdentityInfoable)) + } + return nil + } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStatus(val) + } + return nil + } + res["targetIdentity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateIdentityInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetTargetIdentity(val.(IdentityInfoable)) + } + return nil + } + return res +} +// GetSourceIdentity gets the sourceIdentity property value. The source identity information from the on-premises directory. Supports $filter (eq). +// returns a IdentityInfoable when successful +func (m *CorrelatedIdentity) GetSourceIdentity()(IdentityInfoable) { + val, err := m.GetBackingStore().Get("sourceIdentity") + if err != nil { + panic(err) + } + if val != nil { + return val.(IdentityInfoable) + } + return nil +} +// GetStatus gets the status property value. The correlation and assignment status. Possible values include: uncorrelated, correlatedNotAssigned, correlatedAssigned and failToCorrelate. Supports $filter (eq), $count. +// returns a *string when successful +func (m *CorrelatedIdentity) GetStatus()(*string) { + val, err := m.GetBackingStore().Get("status") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTargetIdentity gets the targetIdentity property value. The target identity information from Microsoft Entra ID. Supports $filter (eq). +// returns a IdentityInfoable when successful +func (m *CorrelatedIdentity) GetTargetIdentity()(IdentityInfoable) { + val, err := m.GetBackingStore().Get("targetIdentity") + if err != nil { + panic(err) + } + if val != nil { + return val.(IdentityInfoable) + } + return nil +} +// Serialize serializes information the current object +func (m *CorrelatedIdentity) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteTimeValue("correlatedDateTime", m.GetCorrelatedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("error", m.GetError()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("sourceIdentity", m.GetSourceIdentity()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("status", m.GetStatus()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("targetIdentity", m.GetTargetIdentity()) + if err != nil { + return err + } + } + return nil +} +// SetCorrelatedDateTime sets the correlatedDateTime property value. The date and time when the identity was correlated. Supports $orderby. +func (m *CorrelatedIdentity) SetCorrelatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("correlatedDateTime", value) + if err != nil { + panic(err) + } +} +// SetError sets the error property value. Error information if the correlation for this identity failed. null if successful. Supports $filter (eq). +func (m *CorrelatedIdentity) SetError(value CorrelationErrorable)() { + err := m.GetBackingStore().Set("error", value) + if err != nil { + panic(err) + } +} +// SetSourceIdentity sets the sourceIdentity property value. The source identity information from the on-premises directory. Supports $filter (eq). +func (m *CorrelatedIdentity) SetSourceIdentity(value IdentityInfoable)() { + err := m.GetBackingStore().Set("sourceIdentity", value) + if err != nil { + panic(err) + } +} +// SetStatus sets the status property value. The correlation and assignment status. Possible values include: uncorrelated, correlatedNotAssigned, correlatedAssigned and failToCorrelate. Supports $filter (eq), $count. +func (m *CorrelatedIdentity) SetStatus(value *string)() { + err := m.GetBackingStore().Set("status", value) + if err != nil { + panic(err) + } +} +// SetTargetIdentity sets the targetIdentity property value. The target identity information from Microsoft Entra ID. Supports $filter (eq). +func (m *CorrelatedIdentity) SetTargetIdentity(value IdentityInfoable)() { + err := m.GetBackingStore().Set("targetIdentity", value) + if err != nil { + panic(err) + } +} +type CorrelatedIdentityable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCorrelatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetError()(CorrelationErrorable) + GetSourceIdentity()(IdentityInfoable) + GetStatus()(*string) + GetTargetIdentity()(IdentityInfoable) + SetCorrelatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetError(value CorrelationErrorable)() + SetSourceIdentity(value IdentityInfoable)() + SetStatus(value *string)() + SetTargetIdentity(value IdentityInfoable)() +} diff --git a/models/correlated_identity_collection_response.go b/models/correlated_identity_collection_response.go new file mode 100644 index 00000000000..67ae68eee2c --- /dev/null +++ b/models/correlated_identity_collection_response.go @@ -0,0 +1,91 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type CorrelatedIdentityCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewCorrelatedIdentityCollectionResponse instantiates a new CorrelatedIdentityCollectionResponse and sets the default values. +func NewCorrelatedIdentityCollectionResponse()(*CorrelatedIdentityCollectionResponse) { + m := &CorrelatedIdentityCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateCorrelatedIdentityCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCorrelatedIdentityCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCorrelatedIdentityCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CorrelatedIdentityCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateCorrelatedIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]CorrelatedIdentityable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(CorrelatedIdentityable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []CorrelatedIdentityable when successful +func (m *CorrelatedIdentityCollectionResponse) GetValue()([]CorrelatedIdentityable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]CorrelatedIdentityable) + } + return nil +} +// Serialize serializes information the current object +func (m *CorrelatedIdentityCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *CorrelatedIdentityCollectionResponse) SetValue(value []CorrelatedIdentityable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type CorrelatedIdentityCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]CorrelatedIdentityable) + SetValue(value []CorrelatedIdentityable)() +} diff --git a/models/correlation_error.go b/models/correlation_error.go new file mode 100644 index 00000000000..9a965607a0d --- /dev/null +++ b/models/correlation_error.go @@ -0,0 +1,190 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type CorrelationError struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCorrelationError instantiates a new CorrelationError and sets the default values. +func NewCorrelationError()(*CorrelationError) { + m := &CorrelationError{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCorrelationErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCorrelationErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCorrelationError(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *CorrelationError) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *CorrelationError) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetCode gets the code property value. The error code indicating why the correlation failed. +// returns a *string when successful +func (m *CorrelationError) GetCode()(*string) { + val, err := m.GetBackingStore().Get("code") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CorrelationError) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["code"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCode(val) + } + return nil + } + res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMessage(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetMessage gets the message property value. A human-readable description of the error. +// returns a *string when successful +func (m *CorrelationError) GetMessage()(*string) { + val, err := m.GetBackingStore().Get("message") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *CorrelationError) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *CorrelationError) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("code", m.GetCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("message", m.GetMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CorrelationError) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *CorrelationError) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetCode sets the code property value. The error code indicating why the correlation failed. +func (m *CorrelationError) SetCode(value *string)() { + err := m.GetBackingStore().Set("code", value) + if err != nil { + panic(err) + } +} +// SetMessage sets the message property value. A human-readable description of the error. +func (m *CorrelationError) SetMessage(value *string)() { + err := m.GetBackingStore().Set("message", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CorrelationError) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type CorrelationErrorable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetCode()(*string) + GetMessage()(*string) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetCode(value *string)() + SetMessage(value *string)() + SetOdataType(value *string)() +} diff --git a/models/cross_cloud_azure_active_directory_tenant.go b/models/cross_cloud_azure_active_directory_tenant.go index 3c6b1beeb88..a6a454b1569 100644 --- a/models/cross_cloud_azure_active_directory_tenant.go +++ b/models/cross_cloud_azure_active_directory_tenant.go @@ -24,7 +24,7 @@ func NewCrossCloudAzureActiveDirectoryTenant()(*CrossCloudAzureActiveDirectoryTe func CreateCrossCloudAzureActiveDirectoryTenantFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCrossCloudAzureActiveDirectoryTenant(), nil } -// GetCloudInstance gets the cloudInstance property value. The ID of the cloud where the tenant is located, one of microsoftonline.com, microsoftonline.us or partner.microsoftonline.cn. Read only. +// GetCloudInstance gets the cloudInstance property value. The ID of the cloud where the tenant is located, one of microsoftonline.com, microsoftonline.us or partner.microsoftonline.cn. Read-only. // returns a *string when successful func (m *CrossCloudAzureActiveDirectoryTenant) GetCloudInstance()(*string) { val, err := m.GetBackingStore().Get("cloudInstance") @@ -36,7 +36,7 @@ func (m *CrossCloudAzureActiveDirectoryTenant) GetCloudInstance()(*string) { } return nil } -// GetDisplayName gets the displayName property value. The name of the Microsoft Entra tenant. Read only. +// GetDisplayName gets the displayName property value. The name of the Microsoft Entra tenant. Read-only. // returns a *string when successful func (m *CrossCloudAzureActiveDirectoryTenant) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -84,7 +84,7 @@ func (m *CrossCloudAzureActiveDirectoryTenant) GetFieldDeserializers()(map[strin } return res } -// GetTenantId gets the tenantId property value. The ID of the Microsoft Entra tenant. Read only. +// GetTenantId gets the tenantId property value. The ID of the Microsoft Entra tenant. Read-only. // returns a *string when successful func (m *CrossCloudAzureActiveDirectoryTenant) GetTenantId()(*string) { val, err := m.GetBackingStore().Get("tenantId") @@ -122,21 +122,21 @@ func (m *CrossCloudAzureActiveDirectoryTenant) Serialize(writer i878a80d2330e89d } return nil } -// SetCloudInstance sets the cloudInstance property value. The ID of the cloud where the tenant is located, one of microsoftonline.com, microsoftonline.us or partner.microsoftonline.cn. Read only. +// SetCloudInstance sets the cloudInstance property value. The ID of the cloud where the tenant is located, one of microsoftonline.com, microsoftonline.us or partner.microsoftonline.cn. Read-only. func (m *CrossCloudAzureActiveDirectoryTenant) SetCloudInstance(value *string)() { err := m.GetBackingStore().Set("cloudInstance", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. The name of the Microsoft Entra tenant. Read only. +// SetDisplayName sets the displayName property value. The name of the Microsoft Entra tenant. Read-only. func (m *CrossCloudAzureActiveDirectoryTenant) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetTenantId sets the tenantId property value. The ID of the Microsoft Entra tenant. Read only. +// SetTenantId sets the tenantId property value. The ID of the Microsoft Entra tenant. Read-only. func (m *CrossCloudAzureActiveDirectoryTenant) SetTenantId(value *string)() { err := m.GetBackingStore().Set("tenantId", value) if err != nil { diff --git a/models/cross_tenant_access_policy_configuration_partner.go b/models/cross_tenant_access_policy_configuration_partner.go index aa28e5f2065..c2b87844649 100644 --- a/models/cross_tenant_access_policy_configuration_partner.go +++ b/models/cross_tenant_access_policy_configuration_partner.go @@ -258,6 +258,16 @@ func (m *CrossTenantAccessPolicyConfigurationPartner) GetFieldDeserializers()(ma } return nil } + res["serviceProviderConstraints"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateServiceProviderConstraintsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetServiceProviderConstraints(val.(ServiceProviderConstraintsable)) + } + return nil + } res["tenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -364,6 +374,18 @@ func (m *CrossTenantAccessPolicyConfigurationPartner) GetM365CollaborationOutbou } return nil } +// GetServiceProviderConstraints gets the serviceProviderConstraints property value. The serviceProviderConstraints property +// returns a ServiceProviderConstraintsable when successful +func (m *CrossTenantAccessPolicyConfigurationPartner) GetServiceProviderConstraints()(ServiceProviderConstraintsable) { + val, err := m.GetBackingStore().Get("serviceProviderConstraints") + if err != nil { + panic(err) + } + if val != nil { + return val.(ServiceProviderConstraintsable) + } + return nil +} // GetTenantId gets the tenantId property value. The tenant identifier for the partner Microsoft Entra organization. Read-only. Key. // returns a *string when successful func (m *CrossTenantAccessPolicyConfigurationPartner) GetTenantId()(*string) { @@ -484,6 +506,12 @@ func (m *CrossTenantAccessPolicyConfigurationPartner) Serialize(writer i878a80d2 return err } } + { + err = writer.WriteObjectValue("serviceProviderConstraints", m.GetServiceProviderConstraints()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("tenantId", m.GetTenantId()) if err != nil { @@ -596,6 +624,13 @@ func (m *CrossTenantAccessPolicyConfigurationPartner) SetM365CollaborationOutbou panic(err) } } +// SetServiceProviderConstraints sets the serviceProviderConstraints property value. The serviceProviderConstraints property +func (m *CrossTenantAccessPolicyConfigurationPartner) SetServiceProviderConstraints(value ServiceProviderConstraintsable)() { + err := m.GetBackingStore().Set("serviceProviderConstraints", value) + if err != nil { + panic(err) + } +} // SetTenantId sets the tenantId property value. The tenant identifier for the partner Microsoft Entra organization. Read-only. Key. func (m *CrossTenantAccessPolicyConfigurationPartner) SetTenantId(value *string)() { err := m.GetBackingStore().Set("tenantId", value) @@ -627,6 +662,7 @@ type CrossTenantAccessPolicyConfigurationPartnerable interface { GetM365Capabilities()([]M365CapabilityBaseable) GetM365CollaborationInbound()(CrossTenantAccessPolicyM365CollaborationInboundSettingable) GetM365CollaborationOutbound()(CrossTenantAccessPolicyM365CollaborationOutboundSettingable) + GetServiceProviderConstraints()(ServiceProviderConstraintsable) GetTenantId()(*string) GetTenantRestrictions()(CrossTenantAccessPolicyTenantRestrictionsable) SetAppServiceConnectInbound(value CrossTenantAccessPolicyAppServiceConnectSettingable)() @@ -643,6 +679,7 @@ type CrossTenantAccessPolicyConfigurationPartnerable interface { SetM365Capabilities(value []M365CapabilityBaseable)() SetM365CollaborationInbound(value CrossTenantAccessPolicyM365CollaborationInboundSettingable)() SetM365CollaborationOutbound(value CrossTenantAccessPolicyM365CollaborationOutboundSettingable)() + SetServiceProviderConstraints(value ServiceProviderConstraintsable)() SetTenantId(value *string)() SetTenantRestrictions(value CrossTenantAccessPolicyTenantRestrictionsable)() } diff --git a/models/cross_tenant_migration_job.go b/models/cross_tenant_migration_job.go index b5bd8ff36fe..6882a15814b 100644 --- a/models/cross_tenant_migration_job.go +++ b/models/cross_tenant_migration_job.go @@ -23,7 +23,7 @@ func NewCrossTenantMigrationJob()(*CrossTenantMigrationJob) { func CreateCrossTenantMigrationJobFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCrossTenantMigrationJob(), nil } -// GetCompleteAfterDateTime gets the completeAfterDateTime property value. DateTime after which the migration should be performed +// GetCompleteAfterDateTime gets the completeAfterDateTime property value. Date and time after which the migration should be performed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024, is 2024-01-01T00:00:00Z. // returns a *Time when successful func (m *CrossTenantMigrationJob) GetCompleteAfterDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("completeAfterDateTime") @@ -35,7 +35,7 @@ func (m *CrossTenantMigrationJob) GetCompleteAfterDateTime()(*i336074805fc853987 } return nil } -// GetCreatedBy gets the createdBy property value. ID of the user that created the job +// GetCreatedBy gets the createdBy property value. User principal name (UPN) of the user who created the job. Read-only. // returns a *string when successful func (m *CrossTenantMigrationJob) GetCreatedBy()(*string) { val, err := m.GetBackingStore().Get("createdBy") @@ -47,7 +47,7 @@ func (m *CrossTenantMigrationJob) GetCreatedBy()(*string) { } return nil } -// GetCreatedDateTime gets the createdDateTime property value. When the job what created +// GetCreatedDateTime gets the createdDateTime property value. When the job was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024, is 2024-01-01T00:00:00Z. Read-only. // returns a *Time when successful func (m *CrossTenantMigrationJob) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") @@ -59,7 +59,7 @@ func (m *CrossTenantMigrationJob) GetCreatedDateTime()(*i336074805fc853987abe6f7 } return nil } -// GetDisplayName gets the displayName property value. Display name of the job. Must be unique per tenant +// GetDisplayName gets the displayName property value. Display name of the job. Must be unique per tenant. // returns a *string when successful func (m *CrossTenantMigrationJob) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -71,7 +71,7 @@ func (m *CrossTenantMigrationJob) GetDisplayName()(*string) { } return nil } -// GetExchangeSettings gets the exchangeSettings property value. Settings to use for migration of Exchange workload +// GetExchangeSettings gets the exchangeSettings property value. Settings to use for migration of Exchange workload. Nullable. // returns a ExchangeOnlineCrossTenantMigrationSettingsable when successful func (m *CrossTenantMigrationJob) GetExchangeSettings()(ExchangeOnlineCrossTenantMigrationSettingsable) { val, err := m.GetBackingStore().Get("exchangeSettings") @@ -269,7 +269,7 @@ func (m *CrossTenantMigrationJob) GetJobType()(*CrossTenantMigrationJobType) { } return nil } -// GetLastUpdatedDateTime gets the lastUpdatedDateTime property value. When this migration job was last updated +// GetLastUpdatedDateTime gets the lastUpdatedDateTime property value. When this migration job was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024, is 2024-01-01T00:00:00Z. Read-only. // returns a *Time when successful func (m *CrossTenantMigrationJob) GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastUpdatedDateTime") @@ -281,7 +281,7 @@ func (m *CrossTenantMigrationJob) GetLastUpdatedDateTime()(*i336074805fc853987ab } return nil } -// GetMessage gets the message property value. Status message of the migration job +// GetMessage gets the message property value. Status message of the migration job. Nullable. Read-only. // returns a *string when successful func (m *CrossTenantMigrationJob) GetMessage()(*string) { val, err := m.GetBackingStore().Get("message") @@ -293,7 +293,7 @@ func (m *CrossTenantMigrationJob) GetMessage()(*string) { } return nil } -// GetResources gets the resources property value. IDs (GUID) of the resources being migrated with the migration job +// GetResources gets the resources property value. IDs (GUID) of the resources that are migrated with the migration job. // returns a []string when successful func (m *CrossTenantMigrationJob) GetResources()([]string) { val, err := m.GetBackingStore().Get("resources") @@ -305,7 +305,7 @@ func (m *CrossTenantMigrationJob) GetResources()([]string) { } return nil } -// GetResourceType gets the resourceType property value. Type of resource being migrated. Only Users is currently supported +// GetResourceType gets the resourceType property value. Type of resource being migrated. Only Users is currently supported. // returns a *string when successful func (m *CrossTenantMigrationJob) GetResourceType()(*string) { val, err := m.GetBackingStore().Get("resourceType") @@ -317,7 +317,7 @@ func (m *CrossTenantMigrationJob) GetResourceType()(*string) { } return nil } -// GetSourceTenantId gets the sourceTenantId property value. ID (GUID) of the tenant that content is being migrated from +// GetSourceTenantId gets the sourceTenantId property value. ID (GUID) of the tenant that content is migrated from. // returns a *string when successful func (m *CrossTenantMigrationJob) GetSourceTenantId()(*string) { val, err := m.GetBackingStore().Get("sourceTenantId") @@ -341,7 +341,7 @@ func (m *CrossTenantMigrationJob) GetStatus()(*CrossTenantMigrationJobStatus) { } return nil } -// GetTargetTenantId gets the targetTenantId property value. ID of the tenant that content is being migrated to +// GetTargetTenantId gets the targetTenantId property value. ID of the tenant that content is migrated to. Read-only. // returns a *string when successful func (m *CrossTenantMigrationJob) GetTargetTenantId()(*string) { val, err := m.GetBackingStore().Get("targetTenantId") @@ -353,7 +353,7 @@ func (m *CrossTenantMigrationJob) GetTargetTenantId()(*string) { } return nil } -// GetUsers gets the users property value. Details and status of the users being migrated in this migration job +// GetUsers gets the users property value. Details and status of the users migrated in this migration job. // returns a []CrossTenantMigrationTaskable when successful func (m *CrossTenantMigrationJob) GetUsers()([]CrossTenantMigrationTaskable) { val, err := m.GetBackingStore().Get("users") @@ -365,7 +365,7 @@ func (m *CrossTenantMigrationJob) GetUsers()([]CrossTenantMigrationTaskable) { } return nil } -// GetWorkloads gets the workloads property value. Workloads to migrate. Supported workloads are Teams, Exchange, and ODSP (OneDrive/SharePoint) +// GetWorkloads gets the workloads property value. Workloads to migrate. Supported workloads are Teams, Exchange, and ODSP (OneDrive/SharePoint). // returns a []string when successful func (m *CrossTenantMigrationJob) GetWorkloads()([]string) { val, err := m.GetBackingStore().Get("workloads") @@ -483,35 +483,35 @@ func (m *CrossTenantMigrationJob) Serialize(writer i878a80d2330e89d26896388a3f48 } return nil } -// SetCompleteAfterDateTime sets the completeAfterDateTime property value. DateTime after which the migration should be performed +// SetCompleteAfterDateTime sets the completeAfterDateTime property value. Date and time after which the migration should be performed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024, is 2024-01-01T00:00:00Z. func (m *CrossTenantMigrationJob) SetCompleteAfterDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("completeAfterDateTime", value) if err != nil { panic(err) } } -// SetCreatedBy sets the createdBy property value. ID of the user that created the job +// SetCreatedBy sets the createdBy property value. User principal name (UPN) of the user who created the job. Read-only. func (m *CrossTenantMigrationJob) SetCreatedBy(value *string)() { err := m.GetBackingStore().Set("createdBy", value) if err != nil { panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. When the job what created +// SetCreatedDateTime sets the createdDateTime property value. When the job was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024, is 2024-01-01T00:00:00Z. Read-only. func (m *CrossTenantMigrationJob) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. Display name of the job. Must be unique per tenant +// SetDisplayName sets the displayName property value. Display name of the job. Must be unique per tenant. func (m *CrossTenantMigrationJob) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetExchangeSettings sets the exchangeSettings property value. Settings to use for migration of Exchange workload +// SetExchangeSettings sets the exchangeSettings property value. Settings to use for migration of Exchange workload. Nullable. func (m *CrossTenantMigrationJob) SetExchangeSettings(value ExchangeOnlineCrossTenantMigrationSettingsable)() { err := m.GetBackingStore().Set("exchangeSettings", value) if err != nil { @@ -525,35 +525,35 @@ func (m *CrossTenantMigrationJob) SetJobType(value *CrossTenantMigrationJobType) panic(err) } } -// SetLastUpdatedDateTime sets the lastUpdatedDateTime property value. When this migration job was last updated +// SetLastUpdatedDateTime sets the lastUpdatedDateTime property value. When this migration job was last updated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024, is 2024-01-01T00:00:00Z. Read-only. func (m *CrossTenantMigrationJob) SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastUpdatedDateTime", value) if err != nil { panic(err) } } -// SetMessage sets the message property value. Status message of the migration job +// SetMessage sets the message property value. Status message of the migration job. Nullable. Read-only. func (m *CrossTenantMigrationJob) SetMessage(value *string)() { err := m.GetBackingStore().Set("message", value) if err != nil { panic(err) } } -// SetResources sets the resources property value. IDs (GUID) of the resources being migrated with the migration job +// SetResources sets the resources property value. IDs (GUID) of the resources that are migrated with the migration job. func (m *CrossTenantMigrationJob) SetResources(value []string)() { err := m.GetBackingStore().Set("resources", value) if err != nil { panic(err) } } -// SetResourceType sets the resourceType property value. Type of resource being migrated. Only Users is currently supported +// SetResourceType sets the resourceType property value. Type of resource being migrated. Only Users is currently supported. func (m *CrossTenantMigrationJob) SetResourceType(value *string)() { err := m.GetBackingStore().Set("resourceType", value) if err != nil { panic(err) } } -// SetSourceTenantId sets the sourceTenantId property value. ID (GUID) of the tenant that content is being migrated from +// SetSourceTenantId sets the sourceTenantId property value. ID (GUID) of the tenant that content is migrated from. func (m *CrossTenantMigrationJob) SetSourceTenantId(value *string)() { err := m.GetBackingStore().Set("sourceTenantId", value) if err != nil { @@ -567,21 +567,21 @@ func (m *CrossTenantMigrationJob) SetStatus(value *CrossTenantMigrationJobStatus panic(err) } } -// SetTargetTenantId sets the targetTenantId property value. ID of the tenant that content is being migrated to +// SetTargetTenantId sets the targetTenantId property value. ID of the tenant that content is migrated to. Read-only. func (m *CrossTenantMigrationJob) SetTargetTenantId(value *string)() { err := m.GetBackingStore().Set("targetTenantId", value) if err != nil { panic(err) } } -// SetUsers sets the users property value. Details and status of the users being migrated in this migration job +// SetUsers sets the users property value. Details and status of the users migrated in this migration job. func (m *CrossTenantMigrationJob) SetUsers(value []CrossTenantMigrationTaskable)() { err := m.GetBackingStore().Set("users", value) if err != nil { panic(err) } } -// SetWorkloads sets the workloads property value. Workloads to migrate. Supported workloads are Teams, Exchange, and ODSP (OneDrive/SharePoint) +// SetWorkloads sets the workloads property value. Workloads to migrate. Supported workloads are Teams, Exchange, and ODSP (OneDrive/SharePoint). func (m *CrossTenantMigrationJob) SetWorkloads(value []string)() { err := m.GetBackingStore().Set("workloads", value) if err != nil { diff --git a/models/custom_app_management_application_configuration.go b/models/custom_app_management_application_configuration.go index 8c7bd597d99..a76c1aea49d 100644 --- a/models/custom_app_management_application_configuration.go +++ b/models/custom_app_management_application_configuration.go @@ -125,7 +125,7 @@ func (m *CustomAppManagementApplicationConfiguration) GetOdataType()(*string) { } return nil } -// GetRedirectUris gets the redirectUris property value. The redirectUris property +// GetRedirectUris gets the redirectUris property value. Configuration for redirect URI validation rules and restrictions. // returns a RedirectUriConfigurationable when successful func (m *CustomAppManagementApplicationConfiguration) GetRedirectUris()(RedirectUriConfigurationable) { val, err := m.GetBackingStore().Get("redirectUris") @@ -203,7 +203,7 @@ func (m *CustomAppManagementApplicationConfiguration) SetOdataType(value *string panic(err) } } -// SetRedirectUris sets the redirectUris property value. The redirectUris property +// SetRedirectUris sets the redirectUris property value. Configuration for redirect URI validation rules and restrictions. func (m *CustomAppManagementApplicationConfiguration) SetRedirectUris(value RedirectUriConfigurationable)() { err := m.GetBackingStore().Set("redirectUris", value) if err != nil { diff --git a/models/custom_data_provided_resource_access_review_upload_session.go b/models/custom_data_provided_resource_access_review_upload_session.go new file mode 100644 index 00000000000..2b5c68e0d31 --- /dev/null +++ b/models/custom_data_provided_resource_access_review_upload_session.go @@ -0,0 +1,44 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type CustomDataProvidedResourceAccessReviewUploadSession struct { + CustomDataProvidedResourceUploadSession +} +// NewCustomDataProvidedResourceAccessReviewUploadSession instantiates a new CustomDataProvidedResourceAccessReviewUploadSession and sets the default values. +func NewCustomDataProvidedResourceAccessReviewUploadSession()(*CustomDataProvidedResourceAccessReviewUploadSession) { + m := &CustomDataProvidedResourceAccessReviewUploadSession{ + CustomDataProvidedResourceUploadSession: *NewCustomDataProvidedResourceUploadSession(), + } + odataTypeValue := "#microsoft.graph.customDataProvidedResourceAccessReviewUploadSession" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCustomDataProvidedResourceAccessReviewUploadSessionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCustomDataProvidedResourceAccessReviewUploadSessionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCustomDataProvidedResourceAccessReviewUploadSession(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CustomDataProvidedResourceAccessReviewUploadSession) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CustomDataProvidedResourceUploadSession.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *CustomDataProvidedResourceAccessReviewUploadSession) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CustomDataProvidedResourceUploadSession.Serialize(writer) + if err != nil { + return err + } + return nil +} +type CustomDataProvidedResourceAccessReviewUploadSessionable interface { + CustomDataProvidedResourceUploadSessionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/custom_data_provided_resource_upload_session.go b/models/custom_data_provided_resource_upload_session.go index 05ee54da87f..4279abd1b1c 100644 --- a/models/custom_data_provided_resource_upload_session.go +++ b/models/custom_data_provided_resource_upload_session.go @@ -21,6 +21,24 @@ func NewCustomDataProvidedResourceUploadSession()(*CustomDataProvidedResourceUpl // CreateCustomDataProvidedResourceUploadSessionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful func CreateCustomDataProvidedResourceUploadSessionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.customDataProvidedResourceAccessReviewUploadSession": + return NewCustomDataProvidedResourceAccessReviewUploadSession(), nil + } + } + } + } return NewCustomDataProvidedResourceUploadSession(), nil } // GetCreatedDateTime gets the createdDateTime property value. DateTime when the upload session was created. Read-only. Supports $orderby. @@ -35,18 +53,6 @@ func (m *CustomDataProvidedResourceUploadSession) GetCreatedDateTime()(*i3360748 } return nil } -// GetData gets the data property value. An object containing the context for which this data is being uploaded. Currently the only possible concrete type is accessReviewResourceDataUploadSessionContextData -// returns a CustomExtensionDataable when successful -func (m *CustomDataProvidedResourceUploadSession) GetData()(CustomExtensionDataable) { - val, err := m.GetBackingStore().Get("data") - if err != nil { - panic(err) - } - if val != nil { - return val.(CustomExtensionDataable) - } - return nil -} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *CustomDataProvidedResourceUploadSession) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { @@ -61,16 +67,6 @@ func (m *CustomDataProvidedResourceUploadSession) GetFieldDeserializers()(map[st } return nil } - res["data"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateCustomExtensionDataFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetData(val.(CustomExtensionDataable)) - } - return nil - } res["files"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateCustomDataProvidedResourceFileFromDiscriminatorValue) if err != nil { @@ -107,16 +103,6 @@ func (m *CustomDataProvidedResourceUploadSession) GetFieldDeserializers()(map[st } return nil } - res["source"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSource(val) - } - return nil - } res["stats"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateCustomDataProvidedResourceUploadStatsFromDiscriminatorValue) if err != nil { @@ -137,16 +123,6 @@ func (m *CustomDataProvidedResourceUploadSession) GetFieldDeserializers()(map[st } return nil } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val) - } - return nil - } return res } // GetFiles gets the files property value. The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. @@ -185,18 +161,6 @@ func (m *CustomDataProvidedResourceUploadSession) GetReferenceId()(*string) { } return nil } -// GetSource gets the source property value. The source of the access data. This should be set to the customdataprovidedresource's name when creating the session. -// returns a *string when successful -func (m *CustomDataProvidedResourceUploadSession) GetSource()(*string) { - val, err := m.GetBackingStore().Get("source") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} // GetStats gets the stats property value. The stats property // returns a CustomDataProvidedResourceUploadStatsable when successful func (m *CustomDataProvidedResourceUploadSession) GetStats()(CustomDataProvidedResourceUploadStatsable) { @@ -221,18 +185,6 @@ func (m *CustomDataProvidedResourceUploadSession) GetStatus()(*CustomDataProvide } return nil } -// GetTypeEscaped gets the type property value. Schematized form of the expected CSV columns in the uploaded file. The only possible value currently is: accessReviewDataUploadTriggerCallbackData -// returns a *string when successful -func (m *CustomDataProvidedResourceUploadSession) GetTypeEscaped()(*string) { - val, err := m.GetBackingStore().Get("typeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} // Serialize serializes information the current object func (m *CustomDataProvidedResourceUploadSession) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -245,12 +197,6 @@ func (m *CustomDataProvidedResourceUploadSession) Serialize(writer i878a80d2330e return err } } - { - err = writer.WriteObjectValue("data", m.GetData()) - if err != nil { - return err - } - } if m.GetFiles() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetFiles())) for i, v := range m.GetFiles() { @@ -275,12 +221,6 @@ func (m *CustomDataProvidedResourceUploadSession) Serialize(writer i878a80d2330e return err } } - { - err = writer.WriteStringValue("source", m.GetSource()) - if err != nil { - return err - } - } { err = writer.WriteObjectValue("stats", m.GetStats()) if err != nil { @@ -294,12 +234,6 @@ func (m *CustomDataProvidedResourceUploadSession) Serialize(writer i878a80d2330e return err } } - { - err = writer.WriteStringValue("type", m.GetTypeEscaped()) - if err != nil { - return err - } - } return nil } // SetCreatedDateTime sets the createdDateTime property value. DateTime when the upload session was created. Read-only. Supports $orderby. @@ -309,13 +243,6 @@ func (m *CustomDataProvidedResourceUploadSession) SetCreatedDateTime(value *i336 panic(err) } } -// SetData sets the data property value. An object containing the context for which this data is being uploaded. Currently the only possible concrete type is accessReviewResourceDataUploadSessionContextData -func (m *CustomDataProvidedResourceUploadSession) SetData(value CustomExtensionDataable)() { - err := m.GetBackingStore().Set("data", value) - if err != nil { - panic(err) - } -} // SetFiles sets the files property value. The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. func (m *CustomDataProvidedResourceUploadSession) SetFiles(value []CustomDataProvidedResourceFileable)() { err := m.GetBackingStore().Set("files", value) @@ -337,13 +264,6 @@ func (m *CustomDataProvidedResourceUploadSession) SetReferenceId(value *string)( panic(err) } } -// SetSource sets the source property value. The source of the access data. This should be set to the customdataprovidedresource's name when creating the session. -func (m *CustomDataProvidedResourceUploadSession) SetSource(value *string)() { - err := m.GetBackingStore().Set("source", value) - if err != nil { - panic(err) - } -} // SetStats sets the stats property value. The stats property func (m *CustomDataProvidedResourceUploadSession) SetStats(value CustomDataProvidedResourceUploadStatsable)() { err := m.GetBackingStore().Set("stats", value) @@ -358,32 +278,19 @@ func (m *CustomDataProvidedResourceUploadSession) SetStatus(value *CustomDataPro panic(err) } } -// SetTypeEscaped sets the type property value. Schematized form of the expected CSV columns in the uploaded file. The only possible value currently is: accessReviewDataUploadTriggerCallbackData -func (m *CustomDataProvidedResourceUploadSession) SetTypeEscaped(value *string)() { - err := m.GetBackingStore().Set("typeEscaped", value) - if err != nil { - panic(err) - } -} type CustomDataProvidedResourceUploadSessionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetData()(CustomExtensionDataable) GetFiles()([]CustomDataProvidedResourceFileable) GetIsUploadDone()(*bool) GetReferenceId()(*string) - GetSource()(*string) GetStats()(CustomDataProvidedResourceUploadStatsable) GetStatus()(*CustomDataProvidedResourceUploadStatus) - GetTypeEscaped()(*string) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetData(value CustomExtensionDataable)() SetFiles(value []CustomDataProvidedResourceFileable)() SetIsUploadDone(value *bool)() SetReferenceId(value *string)() - SetSource(value *string)() SetStats(value CustomDataProvidedResourceUploadStatsable)() SetStatus(value *CustomDataProvidedResourceUploadStatus)() - SetTypeEscaped(value *string)() } diff --git a/models/custom_emoji_from_identity_set.go b/models/custom_emoji_from_identity_set.go new file mode 100644 index 00000000000..4aa5c3ee778 --- /dev/null +++ b/models/custom_emoji_from_identity_set.go @@ -0,0 +1,44 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type CustomEmojiFromIdentitySet struct { + IdentitySet +} +// NewCustomEmojiFromIdentitySet instantiates a new CustomEmojiFromIdentitySet and sets the default values. +func NewCustomEmojiFromIdentitySet()(*CustomEmojiFromIdentitySet) { + m := &CustomEmojiFromIdentitySet{ + IdentitySet: *NewIdentitySet(), + } + odataTypeValue := "#microsoft.graph.customEmojiFromIdentitySet" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCustomEmojiFromIdentitySetFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCustomEmojiFromIdentitySetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCustomEmojiFromIdentitySet(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CustomEmojiFromIdentitySet) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.IdentitySet.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *CustomEmojiFromIdentitySet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.IdentitySet.Serialize(writer) + if err != nil { + return err + } + return nil +} +type CustomEmojiFromIdentitySetable interface { + IdentitySetable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/custom_extension_data.go b/models/custom_extension_data.go index 4c67c869b07..db9e4f547c7 100644 --- a/models/custom_extension_data.go +++ b/models/custom_extension_data.go @@ -37,10 +37,6 @@ func CreateCustomExtensionDataFromDiscriminatorValue(parseNode i878a80d2330e89d2 switch *mappingValue { case "#microsoft.graph.accessPackageAssignmentRequestCallbackData": return NewAccessPackageAssignmentRequestCallbackData(), nil - case "#microsoft.graph.accessReviewDataUploadTriggerCallbackData": - return NewAccessReviewDataUploadTriggerCallbackData(), nil - case "#microsoft.graph.accessReviewResourceDataUploadSessionContextData": - return NewAccessReviewResourceDataUploadSessionContextData(), nil case "#microsoft.graph.assignmentRequestApprovalStageCallbackData": return NewAssignmentRequestApprovalStageCallbackData(), nil } diff --git a/models/customdataprovidedresourcepayloads/access_review_context_data.go b/models/customdataprovidedresourcepayloads/access_review_context_data.go new file mode 100644 index 00000000000..c513149a5a9 --- /dev/null +++ b/models/customdataprovidedresourcepayloads/access_review_context_data.go @@ -0,0 +1,44 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package customdataprovidedresourcepayloads + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type AccessReviewContextData struct { + AccessReviewContextDataBase +} +// NewAccessReviewContextData instantiates a new AccessReviewContextData and sets the default values. +func NewAccessReviewContextData()(*AccessReviewContextData) { + m := &AccessReviewContextData{ + AccessReviewContextDataBase: *NewAccessReviewContextDataBase(), + } + odataTypeValue := "#microsoft.graph.customDataProvidedResourcePayloads.accessReviewContextData" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateAccessReviewContextDataFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAccessReviewContextDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAccessReviewContextData(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AccessReviewContextData) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AccessReviewContextDataBase.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *AccessReviewContextData) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AccessReviewContextDataBase.Serialize(writer) + if err != nil { + return err + } + return nil +} +type AccessReviewContextDataable interface { + AccessReviewContextDataBaseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/customdataprovidedresourcepayloads/access_review_context_data_base.go b/models/customdataprovidedresourcepayloads/access_review_context_data_base.go new file mode 100644 index 00000000000..80c400f28b5 --- /dev/null +++ b/models/customdataprovidedresourcepayloads/access_review_context_data_base.go @@ -0,0 +1,138 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package customdataprovidedresourcepayloads + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type AccessReviewContextDataBase struct { + Data +} +// NewAccessReviewContextDataBase instantiates a new AccessReviewContextDataBase and sets the default values. +func NewAccessReviewContextDataBase()(*AccessReviewContextDataBase) { + m := &AccessReviewContextDataBase{ + Data: *NewData(), + } + odataTypeValue := "#microsoft.graph.customDataProvidedResourcePayloads.accessReviewContextDataBase" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateAccessReviewContextDataBaseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAccessReviewContextDataBaseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.customDataProvidedResourcePayloads.accessReviewContextData": + return NewAccessReviewContextData(), nil + case "#microsoft.graph.customDataProvidedResourcePayloads.applyDecisionContextData": + return NewApplyDecisionContextData(), nil + } + } + } + } + return NewAccessReviewContextDataBase(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AccessReviewContextDataBase) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Data.GetFieldDeserializers() + res["reviewDefinitionId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetReviewDefinitionId(val) + } + return nil + } + res["reviewInstanceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetReviewInstanceId(val) + } + return nil + } + return res +} +// GetReviewDefinitionId gets the reviewDefinitionId property value. The unique identifier of the access review definition that this data is associated with. +// returns a *string when successful +func (m *AccessReviewContextDataBase) GetReviewDefinitionId()(*string) { + val, err := m.GetBackingStore().Get("reviewDefinitionId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetReviewInstanceId gets the reviewInstanceId property value. The unique identifier of the access review instance that this data is associated with. +// returns a *string when successful +func (m *AccessReviewContextDataBase) GetReviewInstanceId()(*string) { + val, err := m.GetBackingStore().Get("reviewInstanceId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *AccessReviewContextDataBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Data.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("reviewDefinitionId", m.GetReviewDefinitionId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("reviewInstanceId", m.GetReviewInstanceId()) + if err != nil { + return err + } + } + return nil +} +// SetReviewDefinitionId sets the reviewDefinitionId property value. The unique identifier of the access review definition that this data is associated with. +func (m *AccessReviewContextDataBase) SetReviewDefinitionId(value *string)() { + err := m.GetBackingStore().Set("reviewDefinitionId", value) + if err != nil { + panic(err) + } +} +// SetReviewInstanceId sets the reviewInstanceId property value. The unique identifier of the access review instance that this data is associated with. +func (m *AccessReviewContextDataBase) SetReviewInstanceId(value *string)() { + err := m.GetBackingStore().Set("reviewInstanceId", value) + if err != nil { + panic(err) + } +} +type AccessReviewContextDataBaseable interface { + Dataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetReviewDefinitionId()(*string) + GetReviewInstanceId()(*string) + SetReviewDefinitionId(value *string)() + SetReviewInstanceId(value *string)() +} diff --git a/models/customdataprovidedresourcepayloads/apply_decision_context_data.go b/models/customdataprovidedresourcepayloads/apply_decision_context_data.go new file mode 100644 index 00000000000..21dcc175c80 --- /dev/null +++ b/models/customdataprovidedresourcepayloads/apply_decision_context_data.go @@ -0,0 +1,44 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package customdataprovidedresourcepayloads + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ApplyDecisionContextData struct { + AccessReviewContextDataBase +} +// NewApplyDecisionContextData instantiates a new ApplyDecisionContextData and sets the default values. +func NewApplyDecisionContextData()(*ApplyDecisionContextData) { + m := &ApplyDecisionContextData{ + AccessReviewContextDataBase: *NewAccessReviewContextDataBase(), + } + odataTypeValue := "#microsoft.graph.customDataProvidedResourcePayloads.applyDecisionContextData" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateApplyDecisionContextDataFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApplyDecisionContextDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApplyDecisionContextData(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ApplyDecisionContextData) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AccessReviewContextDataBase.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *ApplyDecisionContextData) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AccessReviewContextDataBase.Serialize(writer) + if err != nil { + return err + } + return nil +} +type ApplyDecisionContextDataable interface { + AccessReviewContextDataBaseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/customdataprovidedresourcepayloads/data.go b/models/customdataprovidedresourcepayloads/data.go new file mode 100644 index 00000000000..dad8c9a0f79 --- /dev/null +++ b/models/customdataprovidedresourcepayloads/data.go @@ -0,0 +1,138 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package customdataprovidedresourcepayloads + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type Data struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewData instantiates a new Data and sets the default values. +func NewData()(*Data) { + m := &Data{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateDataFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.customDataProvidedResourcePayloads.accessReviewContextData": + return NewAccessReviewContextData(), nil + case "#microsoft.graph.customDataProvidedResourcePayloads.accessReviewContextDataBase": + return NewAccessReviewContextDataBase(), nil + case "#microsoft.graph.customDataProvidedResourcePayloads.applyDecisionContextData": + return NewApplyDecisionContextData(), nil + } + } + } + } + return NewData(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *Data) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *Data) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *Data) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *Data) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *Data) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *Data) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *Data) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Data) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type Dataable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} diff --git a/models/ddm_app_allow_downloads_over_cellular.go b/models/ddm_app_allow_downloads_over_cellular.go new file mode 100644 index 00000000000..5e822928172 --- /dev/null +++ b/models/ddm_app_allow_downloads_over_cellular.go @@ -0,0 +1,47 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +// Describes how and when to install an app, specifically whether the app may be downloaded over cellular connections. Maps to Apple's AppManagedInstallBehaviorObject declaration. +type DdmAppAllowDownloadsOverCellular int + +const ( + // The device downloads apps of any size using a cellular network. + ALWAYSON_DDMAPPALLOWDOWNLOADSOVERCELLULAR DdmAppAllowDownloadsOverCellular = iota + // The device doesn't download apps using a cellular network. The device pauses the automatic install or update operation until a different network is active. + ALWAYSOFF_DDMAPPALLOWDOWNLOADSOVERCELLULAR + // The device uses the settings for the corresponding store when downloading apps. + STORESETTINGS_DDMAPPALLOWDOWNLOADSOVERCELLULAR + // Evolvable enumeration sentinel value. Do not use. + UNKNOWNFUTUREVALUE_DDMAPPALLOWDOWNLOADSOVERCELLULAR +) + +func (i DdmAppAllowDownloadsOverCellular) String() string { + return []string{"alwaysOn", "alwaysOff", "storeSettings", "unknownFutureValue"}[i] +} +func ParseDdmAppAllowDownloadsOverCellular(v string) (any, error) { + result := ALWAYSON_DDMAPPALLOWDOWNLOADSOVERCELLULAR + switch v { + case "alwaysOn": + result = ALWAYSON_DDMAPPALLOWDOWNLOADSOVERCELLULAR + case "alwaysOff": + result = ALWAYSOFF_DDMAPPALLOWDOWNLOADSOVERCELLULAR + case "storeSettings": + result = STORESETTINGS_DDMAPPALLOWDOWNLOADSOVERCELLULAR + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_DDMAPPALLOWDOWNLOADSOVERCELLULAR + default: + return nil, nil + } + return &result, nil +} +func SerializeDdmAppAllowDownloadsOverCellular(values []DdmAppAllowDownloadsOverCellular) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DdmAppAllowDownloadsOverCellular) isMultiValue() bool { + return false +} diff --git a/models/ddm_app_automatic_app_updates.go b/models/ddm_app_automatic_app_updates.go new file mode 100644 index 00000000000..2191b68ad3d --- /dev/null +++ b/models/ddm_app_automatic_app_updates.go @@ -0,0 +1,47 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +// Specifies the update behavior of the apps installed via VPP. Apps in packages are not automatically updated. Maps to Apple's AppManagedUpdateBehaviorObject declaration. +type DdmAppAutomaticAppUpdates int + +const ( + // The device automatically updates the app to the latest version. + ALWAYSON_DDMAPPAUTOMATICAPPUPDATES DdmAppAutomaticAppUpdates = iota + // The device never automatically updates the app. + ALWAYSOFF_DDMAPPAUTOMATICAPPUPDATES + // The device uses the settings for the corresponding store to determine when to automatically update the app. + STORESETTINGS_DDMAPPAUTOMATICAPPUPDATES + // Evolvable enumeration sentinel value. Do not use. + UNKNOWNFUTUREVALUE_DDMAPPAUTOMATICAPPUPDATES +) + +func (i DdmAppAutomaticAppUpdates) String() string { + return []string{"alwaysOn", "alwaysOff", "storeSettings", "unknownFutureValue"}[i] +} +func ParseDdmAppAutomaticAppUpdates(v string) (any, error) { + result := ALWAYSON_DDMAPPAUTOMATICAPPUPDATES + switch v { + case "alwaysOn": + result = ALWAYSON_DDMAPPAUTOMATICAPPUPDATES + case "alwaysOff": + result = ALWAYSOFF_DDMAPPAUTOMATICAPPUPDATES + case "storeSettings": + result = STORESETTINGS_DDMAPPAUTOMATICAPPUPDATES + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_DDMAPPAUTOMATICAPPUPDATES + default: + return nil, nil + } + return &result, nil +} +func SerializeDdmAppAutomaticAppUpdates(values []DdmAppAutomaticAppUpdates) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DdmAppAutomaticAppUpdates) isMultiValue() bool { + return false +} diff --git a/models/delegated_admin_relationship.go b/models/delegated_admin_relationship.go index d55781429e8..e8fa0397acd 100644 --- a/models/delegated_admin_relationship.go +++ b/models/delegated_admin_relationship.go @@ -339,7 +339,7 @@ func (m *DelegatedAdminRelationship) GetRequests()([]DelegatedAdminRelationshipR } return nil } -// GetStatus gets the status property value. The status of the relationship. Read Only. The possible values are: activating, active, approvalPending, approved, created, expired, expiring, terminated, terminating, terminationRequested, unknownFutureValue. Supports $orderby. +// GetStatus gets the status property value. The status of the relationship. Read-only. The possible values are: activating, active, approvalPending, approved, created, expired, expiring, terminated, terminating, terminationRequested, unknownFutureValue. Supports $orderby. // returns a *DelegatedAdminRelationshipStatus when successful func (m *DelegatedAdminRelationship) GetStatus()(*DelegatedAdminRelationshipStatus) { val, err := m.GetBackingStore().Get("status") @@ -540,7 +540,7 @@ func (m *DelegatedAdminRelationship) SetRequests(value []DelegatedAdminRelations panic(err) } } -// SetStatus sets the status property value. The status of the relationship. Read Only. The possible values are: activating, active, approvalPending, approved, created, expired, expiring, terminated, terminating, terminationRequested, unknownFutureValue. Supports $orderby. +// SetStatus sets the status property value. The status of the relationship. Read-only. The possible values are: activating, active, approvalPending, approved, created, expired, expiring, terminated, terminating, terminationRequested, unknownFutureValue. Supports $orderby. func (m *DelegatedAdminRelationship) SetStatus(value *DelegatedAdminRelationshipStatus)() { err := m.GetBackingStore().Set("status", value) if err != nil { diff --git a/models/delegated_admin_service_provider_constraints.go b/models/delegated_admin_service_provider_constraints.go new file mode 100644 index 00000000000..5a4eee2846e --- /dev/null +++ b/models/delegated_admin_service_provider_constraints.go @@ -0,0 +1,162 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type DelegatedAdminServiceProviderConstraints struct { + ServiceProviderConstraints +} +// NewDelegatedAdminServiceProviderConstraints instantiates a new DelegatedAdminServiceProviderConstraints and sets the default values. +func NewDelegatedAdminServiceProviderConstraints()(*DelegatedAdminServiceProviderConstraints) { + m := &DelegatedAdminServiceProviderConstraints{ + ServiceProviderConstraints: *NewServiceProviderConstraints(), + } + odataTypeValue := "#microsoft.graph.delegatedAdminServiceProviderConstraints" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateDelegatedAdminServiceProviderConstraintsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDelegatedAdminServiceProviderConstraintsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDelegatedAdminServiceProviderConstraints(), nil +} +// GetAllowedRoleTemplateIds gets the allowedRoleTemplateIds property value. The allowedRoleTemplateIds property +// returns a []string when successful +func (m *DelegatedAdminServiceProviderConstraints) GetAllowedRoleTemplateIds()([]string) { + val, err := m.GetBackingStore().Get("allowedRoleTemplateIds") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// returns a *Time when successful +func (m *DelegatedAdminServiceProviderConstraints) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DelegatedAdminServiceProviderConstraints) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.ServiceProviderConstraints.GetFieldDeserializers() + res["allowedRoleTemplateIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetAllowedRoleTemplateIds(res) + } + return nil + } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } + res["lastModifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastModifiedDateTime(val) + } + return nil + } + return res +} +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The lastModifiedDateTime property +// returns a *Time when successful +func (m *DelegatedAdminServiceProviderConstraints) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastModifiedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// Serialize serializes information the current object +func (m *DelegatedAdminServiceProviderConstraints) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.ServiceProviderConstraints.Serialize(writer) + if err != nil { + return err + } + if m.GetAllowedRoleTemplateIds() != nil { + err = writer.WriteCollectionOfStringValues("allowedRoleTemplateIds", m.GetAllowedRoleTemplateIds()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("lastModifiedDateTime", m.GetLastModifiedDateTime()) + if err != nil { + return err + } + } + return nil +} +// SetAllowedRoleTemplateIds sets the allowedRoleTemplateIds property value. The allowedRoleTemplateIds property +func (m *DelegatedAdminServiceProviderConstraints) SetAllowedRoleTemplateIds(value []string)() { + err := m.GetBackingStore().Set("allowedRoleTemplateIds", value) + if err != nil { + panic(err) + } +} +// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +func (m *DelegatedAdminServiceProviderConstraints) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The lastModifiedDateTime property +func (m *DelegatedAdminServiceProviderConstraints) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastModifiedDateTime", value) + if err != nil { + panic(err) + } +} +type DelegatedAdminServiceProviderConstraintsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + ServiceProviderConstraintsable + GetAllowedRoleTemplateIds()([]string) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetAllowedRoleTemplateIds(value []string)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/models/device_compliance_policy_script.go b/models/device_compliance_policy_script.go index 1e7a7870951..6b3b3972db5 100644 --- a/models/device_compliance_policy_script.go +++ b/models/device_compliance_policy_script.go @@ -89,6 +89,16 @@ func (m *DeviceCompliancePolicyScript) GetFieldDeserializers()(map[string]func(i } return nil } + res["runIntervalInMinutes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetRunIntervalInMinutes(val) + } + return nil + } return res } // GetOdataType gets the @odata.type property value. The OdataType property @@ -115,6 +125,18 @@ func (m *DeviceCompliancePolicyScript) GetRulesContent()([]byte) { } return nil } +// GetRunIntervalInMinutes gets the runIntervalInMinutes property value. Indicates the interval, in minutes, at which the custom compliance script is evaluated on the device. Allowed range from 1 to 480. Nullable. +// returns a *int32 when successful +func (m *DeviceCompliancePolicyScript) GetRunIntervalInMinutes()(*int32) { + val, err := m.GetBackingStore().Get("runIntervalInMinutes") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} // Serialize serializes information the current object func (m *DeviceCompliancePolicyScript) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { { @@ -135,6 +157,12 @@ func (m *DeviceCompliancePolicyScript) Serialize(writer i878a80d2330e89d26896388 return err } } + { + err := writer.WriteInt32Value("runIntervalInMinutes", m.GetRunIntervalInMinutes()) + if err != nil { + return err + } + } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -175,6 +203,13 @@ func (m *DeviceCompliancePolicyScript) SetRulesContent(value []byte)() { panic(err) } } +// SetRunIntervalInMinutes sets the runIntervalInMinutes property value. Indicates the interval, in minutes, at which the custom compliance script is evaluated on the device. Allowed range from 1 to 480. Nullable. +func (m *DeviceCompliancePolicyScript) SetRunIntervalInMinutes(value *int32)() { + err := m.GetBackingStore().Set("runIntervalInMinutes", value) + if err != nil { + panic(err) + } +} type DeviceCompliancePolicyScriptable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel @@ -183,8 +218,10 @@ type DeviceCompliancePolicyScriptable interface { GetDeviceComplianceScriptId()(*string) GetOdataType()(*string) GetRulesContent()([]byte) + GetRunIntervalInMinutes()(*int32) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDeviceComplianceScriptId(value *string)() SetOdataType(value *string)() SetRulesContent(value []byte)() + SetRunIntervalInMinutes(value *int32)() } diff --git a/models/device_management.go b/models/device_management.go index 115d596afda..eee63155f11 100644 --- a/models/device_management.go +++ b/models/device_management.go @@ -4129,7 +4129,7 @@ func (m *DeviceManagement) GetRemoteAssistanceSettings()(RemoteAssistanceSetting } return nil } -// GetReports gets the reports property value. The reports property +// GetReports gets the reports property value. Reports singleton // returns a DeviceManagementReportsable when successful func (m *DeviceManagement) GetReports()(DeviceManagementReportsable) { val, err := m.GetBackingStore().Get("reports") @@ -7930,7 +7930,7 @@ func (m *DeviceManagement) SetRemoteAssistanceSettings(value RemoteAssistanceSet panic(err) } } -// SetReports sets the reports property value. The reports property +// SetReports sets the reports property value. Reports singleton func (m *DeviceManagement) SetReports(value DeviceManagementReportsable)() { err := m.GetBackingStore().Set("reports", value) if err != nil { diff --git a/models/device_management_reports.go b/models/device_management_reports.go index 175bf9ec213..63c555472c4 100644 --- a/models/device_management_reports.go +++ b/models/device_management_reports.go @@ -7,6 +7,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) +// DeviceManagementReports singleton entity that acts as a container for all reports functionality. type DeviceManagementReports struct { Entity } diff --git a/models/device_platform_type.go b/models/device_platform_type.go index 4eb919142c8..181707b1cef 100644 --- a/models/device_platform_type.go +++ b/models/device_platform_type.go @@ -30,7 +30,7 @@ const ( ANDROIDMOBILEAPPLICATIONMANAGEMENT_DEVICEPLATFORMTYPE // Indicates Mobile Application Management (MAM) for iOS devices IOSMOBILEAPPLICATIONMANAGEMENT_DEVICEPLATFORMTYPE - // Evolvable enumeration sentinel value. Do not use. + // Evolvable enumeration sentinel value. Do not use UNKNOWNFUTUREVALUE_DEVICEPLATFORMTYPE // Indicates Mobile Application Management (MAM) for Windows devices. WINDOWSMOBILEAPPLICATIONMANAGEMENT_DEVICEPLATFORMTYPE diff --git a/models/directory_role.go b/models/directory_role.go index fa07abbe264..777402a07d0 100644 --- a/models/directory_role.go +++ b/models/directory_role.go @@ -128,7 +128,7 @@ func (m *DirectoryRole) GetMembers()([]DirectoryObjectable) { } return nil } -// GetRoleTemplateId gets the roleTemplateId property value. The id of the directoryRoleTemplate that this role is based on. The property must be specified when activating a directory role in a tenant with a POST operation. After the directory role has been activated, the property is read only. Supports $filter (eq), $select. +// GetRoleTemplateId gets the roleTemplateId property value. The id of the directoryRoleTemplate that this role is based on. The property must be specified when activating a directory role in a tenant with a POST operation. After the directory role has been activated, the property is read-only. Supports $filter (eq), $select. // returns a *string when successful func (m *DirectoryRole) GetRoleTemplateId()(*string) { val, err := m.GetBackingStore().Get("roleTemplateId") @@ -223,7 +223,7 @@ func (m *DirectoryRole) SetMembers(value []DirectoryObjectable)() { panic(err) } } -// SetRoleTemplateId sets the roleTemplateId property value. The id of the directoryRoleTemplate that this role is based on. The property must be specified when activating a directory role in a tenant with a POST operation. After the directory role has been activated, the property is read only. Supports $filter (eq), $select. +// SetRoleTemplateId sets the roleTemplateId property value. The id of the directoryRoleTemplate that this role is based on. The property must be specified when activating a directory role in a tenant with a POST operation. After the directory role has been activated, the property is read-only. Supports $filter (eq), $select. func (m *DirectoryRole) SetRoleTemplateId(value *string)() { err := m.GetBackingStore().Set("roleTemplateId", value) if err != nil { diff --git a/models/distribution_list.go b/models/distribution_list.go new file mode 100644 index 00000000000..1a39239a324 --- /dev/null +++ b/models/distribution_list.go @@ -0,0 +1,302 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type DistributionList struct { + OutlookItem +} +// NewDistributionList instantiates a new DistributionList and sets the default values. +func NewDistributionList()(*DistributionList) { + m := &DistributionList{ + OutlookItem: *NewOutlookItem(), + } + odataTypeValue := "#microsoft.graph.distributionList" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateDistributionListFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDistributionListFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDistributionList(), nil +} +// GetDisplayName gets the displayName property value. The display name of the distribution list. +// returns a *string when successful +func (m *DistributionList) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDistributionListMembers gets the distributionListMembers property value. The expanded members of the distribution list. Each member contains detailed information including resolved email addresses. Read-only. +// returns a []DistributionListMemberable when successful +func (m *DistributionList) GetDistributionListMembers()([]DistributionListMemberable) { + val, err := m.GetBackingStore().Get("distributionListMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.([]DistributionListMemberable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DistributionList) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.OutlookItem.GetFieldDeserializers() + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["distributionListMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateDistributionListMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]DistributionListMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(DistributionListMemberable) + } + } + m.SetDistributionListMembers(res) + } + return nil + } + res["members"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]Memberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(Memberable) + } + } + m.SetMembers(res) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNotes(val) + } + return nil + } + res["personIdentifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPersonIdentifier(val) + } + return nil + } + res["singleValueExtendedProperties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateSingleValueLegacyExtendedPropertyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]SingleValueLegacyExtendedPropertyable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(SingleValueLegacyExtendedPropertyable) + } + } + m.SetSingleValueExtendedProperties(res) + } + return nil + } + return res +} +// GetMembers gets the members property value. The list of members in the distribution list. Not returned by default; use $select=members to include. +// returns a []Memberable when successful +func (m *DistributionList) GetMembers()([]Memberable) { + val, err := m.GetBackingStore().Get("members") + if err != nil { + panic(err) + } + if val != nil { + return val.([]Memberable) + } + return nil +} +// GetNotes gets the notes property value. The notes property +// returns a *string when successful +func (m *DistributionList) GetNotes()(*string) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPersonIdentifier gets the personIdentifier property value. The personIdentifier property +// returns a *string when successful +func (m *DistributionList) GetPersonIdentifier()(*string) { + val, err := m.GetBackingStore().Get("personIdentifier") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSingleValueExtendedProperties gets the singleValueExtendedProperties property value. The singleValueExtendedProperties property +// returns a []SingleValueLegacyExtendedPropertyable when successful +func (m *DistributionList) GetSingleValueExtendedProperties()([]SingleValueLegacyExtendedPropertyable) { + val, err := m.GetBackingStore().Get("singleValueExtendedProperties") + if err != nil { + panic(err) + } + if val != nil { + return val.([]SingleValueLegacyExtendedPropertyable) + } + return nil +} +// Serialize serializes information the current object +func (m *DistributionList) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.OutlookItem.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + if m.GetDistributionListMembers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDistributionListMembers())) + for i, v := range m.GetDistributionListMembers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("distributionListMembers", cast) + if err != nil { + return err + } + } + if m.GetMembers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMembers())) + for i, v := range m.GetMembers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("members", cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("personIdentifier", m.GetPersonIdentifier()) + if err != nil { + return err + } + } + if m.GetSingleValueExtendedProperties() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSingleValueExtendedProperties())) + for i, v := range m.GetSingleValueExtendedProperties() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("singleValueExtendedProperties", cast) + if err != nil { + return err + } + } + return nil +} +// SetDisplayName sets the displayName property value. The display name of the distribution list. +func (m *DistributionList) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetDistributionListMembers sets the distributionListMembers property value. The expanded members of the distribution list. Each member contains detailed information including resolved email addresses. Read-only. +func (m *DistributionList) SetDistributionListMembers(value []DistributionListMemberable)() { + err := m.GetBackingStore().Set("distributionListMembers", value) + if err != nil { + panic(err) + } +} +// SetMembers sets the members property value. The list of members in the distribution list. Not returned by default; use $select=members to include. +func (m *DistributionList) SetMembers(value []Memberable)() { + err := m.GetBackingStore().Set("members", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. The notes property +func (m *DistributionList) SetNotes(value *string)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +// SetPersonIdentifier sets the personIdentifier property value. The personIdentifier property +func (m *DistributionList) SetPersonIdentifier(value *string)() { + err := m.GetBackingStore().Set("personIdentifier", value) + if err != nil { + panic(err) + } +} +// SetSingleValueExtendedProperties sets the singleValueExtendedProperties property value. The singleValueExtendedProperties property +func (m *DistributionList) SetSingleValueExtendedProperties(value []SingleValueLegacyExtendedPropertyable)() { + err := m.GetBackingStore().Set("singleValueExtendedProperties", value) + if err != nil { + panic(err) + } +} +type DistributionListable interface { + OutlookItemable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDisplayName()(*string) + GetDistributionListMembers()([]DistributionListMemberable) + GetMembers()([]Memberable) + GetNotes()(*string) + GetPersonIdentifier()(*string) + GetSingleValueExtendedProperties()([]SingleValueLegacyExtendedPropertyable) + SetDisplayName(value *string)() + SetDistributionListMembers(value []DistributionListMemberable)() + SetMembers(value []Memberable)() + SetNotes(value *string)() + SetPersonIdentifier(value *string)() + SetSingleValueExtendedProperties(value []SingleValueLegacyExtendedPropertyable)() +} diff --git a/models/distribution_list_collection_response.go b/models/distribution_list_collection_response.go new file mode 100644 index 00000000000..b3d241f7a3d --- /dev/null +++ b/models/distribution_list_collection_response.go @@ -0,0 +1,91 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type DistributionListCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewDistributionListCollectionResponse instantiates a new DistributionListCollectionResponse and sets the default values. +func NewDistributionListCollectionResponse()(*DistributionListCollectionResponse) { + m := &DistributionListCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateDistributionListCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDistributionListCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDistributionListCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DistributionListCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateDistributionListFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]DistributionListable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(DistributionListable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []DistributionListable when successful +func (m *DistributionListCollectionResponse) GetValue()([]DistributionListable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]DistributionListable) + } + return nil +} +// Serialize serializes information the current object +func (m *DistributionListCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *DistributionListCollectionResponse) SetValue(value []DistributionListable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type DistributionListCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]DistributionListable) + SetValue(value []DistributionListable)() +} diff --git a/models/distribution_list_member.go b/models/distribution_list_member.go new file mode 100644 index 00000000000..df5ccc357a2 --- /dev/null +++ b/models/distribution_list_member.go @@ -0,0 +1,191 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type DistributionListMember struct { + Entity +} +// NewDistributionListMember instantiates a new DistributionListMember and sets the default values. +func NewDistributionListMember()(*DistributionListMember) { + m := &DistributionListMember{ + Entity: *NewEntity(), + } + return m +} +// CreateDistributionListMemberFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDistributionListMemberFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDistributionListMember(), nil +} +// GetContact gets the contact property value. The contact property +// returns a Contactable when successful +func (m *DistributionListMember) GetContact()(Contactable) { + val, err := m.GetBackingStore().Get("contact") + if err != nil { + panic(err) + } + if val != nil { + return val.(Contactable) + } + return nil +} +// GetContactId gets the contactId property value. The ID of the referenced contact, if applicable. Read-only. +// returns a *string when successful +func (m *DistributionListMember) GetContactId()(*string) { + val, err := m.GetBackingStore().Get("contactId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDisplayName gets the displayName property value. The display name of the member. Read-only. +// returns a *string when successful +func (m *DistributionListMember) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DistributionListMember) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["contact"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateContactFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetContact(val.(Contactable)) + } + return nil + } + res["contactId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetContactId(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["recipientType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseRecipientType) + if err != nil { + return err + } + if val != nil { + m.SetRecipientType(val.(*RecipientType)) + } + return nil + } + return res +} +// GetRecipientType gets the recipientType property value. The recipientType property +// returns a *RecipientType when successful +func (m *DistributionListMember) GetRecipientType()(*RecipientType) { + val, err := m.GetBackingStore().Get("recipientType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*RecipientType) + } + return nil +} +// Serialize serializes information the current object +func (m *DistributionListMember) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("contact", m.GetContact()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("contactId", m.GetContactId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + if m.GetRecipientType() != nil { + cast := (*m.GetRecipientType()).String() + err = writer.WriteStringValue("recipientType", &cast) + if err != nil { + return err + } + } + return nil +} +// SetContact sets the contact property value. The contact property +func (m *DistributionListMember) SetContact(value Contactable)() { + err := m.GetBackingStore().Set("contact", value) + if err != nil { + panic(err) + } +} +// SetContactId sets the contactId property value. The ID of the referenced contact, if applicable. Read-only. +func (m *DistributionListMember) SetContactId(value *string)() { + err := m.GetBackingStore().Set("contactId", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. The display name of the member. Read-only. +func (m *DistributionListMember) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetRecipientType sets the recipientType property value. The recipientType property +func (m *DistributionListMember) SetRecipientType(value *RecipientType)() { + err := m.GetBackingStore().Set("recipientType", value) + if err != nil { + panic(err) + } +} +type DistributionListMemberable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetContact()(Contactable) + GetContactId()(*string) + GetDisplayName()(*string) + GetRecipientType()(*RecipientType) + SetContact(value Contactable)() + SetContactId(value *string)() + SetDisplayName(value *string)() + SetRecipientType(value *RecipientType)() +} diff --git a/models/distribution_list_member_collection_response.go b/models/distribution_list_member_collection_response.go new file mode 100644 index 00000000000..61f3e40cbe6 --- /dev/null +++ b/models/distribution_list_member_collection_response.go @@ -0,0 +1,91 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type DistributionListMemberCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewDistributionListMemberCollectionResponse instantiates a new DistributionListMemberCollectionResponse and sets the default values. +func NewDistributionListMemberCollectionResponse()(*DistributionListMemberCollectionResponse) { + m := &DistributionListMemberCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateDistributionListMemberCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDistributionListMemberCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDistributionListMemberCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DistributionListMemberCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateDistributionListMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]DistributionListMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(DistributionListMemberable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []DistributionListMemberable when successful +func (m *DistributionListMemberCollectionResponse) GetValue()([]DistributionListMemberable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]DistributionListMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *DistributionListMemberCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *DistributionListMemberCollectionResponse) SetValue(value []DistributionListMemberable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type DistributionListMemberCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]DistributionListMemberable) + SetValue(value []DistributionListMemberable)() +} diff --git a/models/dlp_action.go b/models/dlp_action.go index 0af3ae516c7..2623e4283c9 100644 --- a/models/dlp_action.go +++ b/models/dlp_action.go @@ -18,10 +18,11 @@ const ( SPSHARINGNOTIFYUSER_DLPACTION SPSHARINGGENERATEINCIDENTREPORT_DLPACTION RESTRICTWEBGROUNDING_DLPACTION + POLICYTIP_DLPACTION ) func (i DlpAction) String() string { - return []string{"notifyUser", "blockAccess", "deviceRestriction", "browserRestriction", "unknownFutureValue", "restrictAccess", "generateAlert", "generateIncidentReportAction", "sPBlockAnonymousAccess", "sPRuntimeAccessControl", "sPSharingNotifyUser", "sPSharingGenerateIncidentReport", "restrictWebGrounding"}[i] + return []string{"notifyUser", "blockAccess", "deviceRestriction", "browserRestriction", "unknownFutureValue", "restrictAccess", "generateAlert", "generateIncidentReportAction", "sPBlockAnonymousAccess", "sPRuntimeAccessControl", "sPSharingNotifyUser", "sPSharingGenerateIncidentReport", "restrictWebGrounding", "policyTip"}[i] } func ParseDlpAction(v string) (any, error) { result := NOTIFYUSER_DLPACTION @@ -52,6 +53,8 @@ func ParseDlpAction(v string) (any, error) { result = SPSHARINGGENERATEINCIDENTREPORT_DLPACTION case "restrictWebGrounding": result = RESTRICTWEBGROUNDING_DLPACTION + case "policyTip": + result = POLICYTIP_DLPACTION default: return nil, nil } diff --git a/models/dlp_action_info.go b/models/dlp_action_info.go index 02e91cc0bbf..824c1ed6c61 100644 --- a/models/dlp_action_info.go +++ b/models/dlp_action_info.go @@ -39,6 +39,8 @@ func CreateDlpActionInfoFromDiscriminatorValue(parseNode i878a80d2330e89d2689638 return NewBlockAccessAction(), nil case "#microsoft.graph.notifyUserAction": return NewNotifyUserAction(), nil + case "#microsoft.graph.policyTipAction": + return NewPolicyTipAction(), nil case "#microsoft.graph.restrictAccessAction": return NewRestrictAccessAction(), nil case "#microsoft.graph.restrictAccessActionBase": diff --git a/models/drive_exclusion_unit.go b/models/drive_exclusion_unit.go index f5f6e7f42f8..c51a22d6667 100644 --- a/models/drive_exclusion_unit.go +++ b/models/drive_exclusion_unit.go @@ -24,7 +24,7 @@ func NewDriveExclusionUnit()(*DriveExclusionUnit) { func CreateDriveExclusionUnitFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewDriveExclusionUnit(), nil } -// GetDirectoryObjectId gets the directoryObjectId property value. The directoryObjectId property +// GetDirectoryObjectId gets the directoryObjectId property value. The unique identifier of the directory object (user) associated with the drive. // returns a *string when successful func (m *DriveExclusionUnit) GetDirectoryObjectId()(*string) { val, err := m.GetBackingStore().Get("directoryObjectId") @@ -36,7 +36,7 @@ func (m *DriveExclusionUnit) GetDirectoryObjectId()(*string) { } return nil } -// GetDisplayName gets the displayName property value. The displayName property +// GetDisplayName gets the displayName property value. The display name of the user associated with the drive. // returns a *string when successful func (m *DriveExclusionUnit) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -48,7 +48,7 @@ func (m *DriveExclusionUnit) GetDisplayName()(*string) { } return nil } -// GetEmail gets the email property value. The email property +// GetEmail gets the email property value. The email address of the user associated with the drive. // returns a *string when successful func (m *DriveExclusionUnit) GetEmail()(*string) { val, err := m.GetBackingStore().Get("email") @@ -110,21 +110,21 @@ func (m *DriveExclusionUnit) Serialize(writer i878a80d2330e89d26896388a3f487eef2 } return nil } -// SetDirectoryObjectId sets the directoryObjectId property value. The directoryObjectId property +// SetDirectoryObjectId sets the directoryObjectId property value. The unique identifier of the directory object (user) associated with the drive. func (m *DriveExclusionUnit) SetDirectoryObjectId(value *string)() { err := m.GetBackingStore().Set("directoryObjectId", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. The displayName property +// SetDisplayName sets the displayName property value. The display name of the user associated with the drive. func (m *DriveExclusionUnit) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetEmail sets the email property value. The email property +// SetEmail sets the email property value. The email address of the user associated with the drive. func (m *DriveExclusionUnit) SetEmail(value *string)() { err := m.GetBackingStore().Set("email", value) if err != nil { diff --git a/models/drive_exclusion_units_bulk_addition_job.go b/models/drive_exclusion_units_bulk_addition_job.go index abda00d1efb..6b3165d6378 100644 --- a/models/drive_exclusion_units_bulk_addition_job.go +++ b/models/drive_exclusion_units_bulk_addition_job.go @@ -24,7 +24,7 @@ func NewDriveExclusionUnitsBulkAdditionJob()(*DriveExclusionUnitsBulkAdditionJob func CreateDriveExclusionUnitsBulkAdditionJobFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewDriveExclusionUnitsBulkAdditionJob(), nil } -// GetDrives gets the drives property value. The drives property +// GetDrives gets the drives property value. The email addresses or user principal names of the users whose OneDrive drives are to be added as exclusion units to the protection policy. // returns a []string when successful func (m *DriveExclusionUnitsBulkAdditionJob) GetDrives()([]string) { val, err := m.GetBackingStore().Get("drives") @@ -72,7 +72,7 @@ func (m *DriveExclusionUnitsBulkAdditionJob) Serialize(writer i878a80d2330e89d26 } return nil } -// SetDrives sets the drives property value. The drives property +// SetDrives sets the drives property value. The email addresses or user principal names of the users whose OneDrive drives are to be added as exclusion units to the protection policy. func (m *DriveExclusionUnitsBulkAdditionJob) SetDrives(value []string)() { err := m.GetBackingStore().Set("drives", value) if err != nil { diff --git a/models/drive_item.go b/models/drive_item.go index 48903eb859c..1b50e3e200a 100644 --- a/models/drive_item.go +++ b/models/drive_item.go @@ -326,6 +326,16 @@ func (m *DriveItem) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689 } return nil } + res["lockInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateLockInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetLockInfo(val.(LockInfoable)) + } + return nil + } res["malware"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateMalwareFromDiscriminatorValue) if err != nil { @@ -654,6 +664,18 @@ func (m *DriveItem) GetLocation()(GeoCoordinatesable) { } return nil } +// GetLockInfo gets the lockInfo property value. Lock metadata for the item, including the lock type, when it was created, when it expires, and which users currently hold the lock. Read-only. +// returns a LockInfoable when successful +func (m *DriveItem) GetLockInfo()(LockInfoable) { + val, err := m.GetBackingStore().Get("lockInfo") + if err != nil { + panic(err) + } + if val != nil { + return val.(LockInfoable) + } + return nil +} // GetMalware gets the malware property value. Malware metadata, if the item was detected to contain malware. Read-only. // returns a Malwareable when successful func (m *DriveItem) GetMalware()(Malwareable) { @@ -1050,6 +1072,12 @@ func (m *DriveItem) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 return err } } + { + err = writer.WriteObjectValue("lockInfo", m.GetLockInfo()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("malware", m.GetMalware()) if err != nil { @@ -1326,6 +1354,13 @@ func (m *DriveItem) SetLocation(value GeoCoordinatesable)() { panic(err) } } +// SetLockInfo sets the lockInfo property value. Lock metadata for the item, including the lock type, when it was created, when it expires, and which users currently hold the lock. Read-only. +func (m *DriveItem) SetLockInfo(value LockInfoable)() { + err := m.GetBackingStore().Set("lockInfo", value) + if err != nil { + panic(err) + } +} // SetMalware sets the malware property value. Malware metadata, if the item was detected to contain malware. Read-only. func (m *DriveItem) SetMalware(value Malwareable)() { err := m.GetBackingStore().Set("malware", value) @@ -1506,6 +1541,7 @@ type DriveItemable interface { GetImage()(Imageable) GetListItem()(ListItemable) GetLocation()(GeoCoordinatesable) + GetLockInfo()(LockInfoable) GetMalware()(Malwareable) GetMedia()(Mediaable) GetPackageEscaped()(PackageEscapedable) @@ -1545,6 +1581,7 @@ type DriveItemable interface { SetImage(value Imageable)() SetListItem(value ListItemable)() SetLocation(value GeoCoordinatesable)() + SetLockInfo(value LockInfoable)() SetMalware(value Malwareable)() SetMedia(value Mediaable)() SetPackageEscaped(value PackageEscapedable)() diff --git a/models/entity.go b/models/entity.go index f513c51f0eb..2b210e9e3d9 100644 --- a/models/entity.go +++ b/models/entity.go @@ -129,6 +129,10 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewAdminWindows(), nil case "#microsoft.graph.adminWindowsUpdates": return NewAdminWindowsUpdates(), nil + case "#microsoft.graph.admitAllFromLobbyOperation": + return NewAdmitAllFromLobbyOperation(), nil + case "#microsoft.graph.admitFromLobbyOperation": + return NewAdmitFromLobbyOperation(), nil case "#microsoft.graph.advancedThreatProtectionOnboardingDeviceSettingState": return NewAdvancedThreatProtectionOnboardingDeviceSettingState(), nil case "#microsoft.graph.advancedThreatProtectionOnboardingStateSummary": @@ -887,6 +891,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewCopilotReportRoot(), nil case "#microsoft.graph.copilotSetting": return NewCopilotSetting(), nil + case "#microsoft.graph.correlatedIdentity": + return NewCorrelatedIdentity(), nil case "#microsoft.graph.corsConfiguration_v2": return NewCorsConfiguration_v2(), nil case "#microsoft.graph.credentialUsageSummary": @@ -937,6 +943,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewCustomClaimsPolicy(), nil case "#microsoft.graph.customDataProvidedResource": return NewCustomDataProvidedResource(), nil + case "#microsoft.graph.customDataProvidedResourceAccessReviewUploadSession": + return NewCustomDataProvidedResourceAccessReviewUploadSession(), nil case "#microsoft.graph.customDataProvidedResourceFile": return NewCustomDataProvidedResourceFile(), nil case "#microsoft.graph.customDataProvidedResourceUploadSession": @@ -1273,6 +1281,10 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewDirectorySetting(), nil case "#microsoft.graph.directorySettingTemplate": return NewDirectorySettingTemplate(), nil + case "#microsoft.graph.distributionList": + return NewDistributionList(), nil + case "#microsoft.graph.distributionListMember": + return NewDistributionListMember(), nil case "#microsoft.graph.dlpEvaluatePoliciesJobResponse": return NewDlpEvaluatePoliciesJobResponse(), nil case "#microsoft.graph.document": @@ -1619,6 +1631,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewGranularSiteRestoreArtifact(), nil case "#microsoft.graph.group": return NewGroup(), nil + case "#microsoft.graph.groupAnalytics": + return NewGroupAnalytics(), nil case "#microsoft.graph.groupLifecyclePolicy": return NewGroupLifecyclePolicy(), nil case "#microsoft.graph.groupPolicyCategory": @@ -1711,10 +1725,14 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewHostSecurityProfile(), nil case "#microsoft.graph.humanSecurityFraudProtectionProvider": return NewHumanSecurityFraudProtectionProvider(), nil + case "#microsoft.graph.identityAnalyticsRoot": + return NewIdentityAnalyticsRoot(), nil case "#microsoft.graph.identityApiConnector": return NewIdentityApiConnector(), nil case "#microsoft.graph.identityBuiltInUserFlowAttribute": return NewIdentityBuiltInUserFlowAttribute(), nil + case "#microsoft.graph.identityCorrelation": + return NewIdentityCorrelation(), nil case "#microsoft.graph.identityCustomUserFlowAttribute": return NewIdentityCustomUserFlowAttribute(), nil case "#microsoft.graph.identityFinding": @@ -2523,6 +2541,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewPlannerDelta(), nil case "#microsoft.graph.plannerGroup": return NewPlannerGroup(), nil + case "#microsoft.graph.plannerHistoryItem": + return NewPlannerHistoryItem(), nil case "#microsoft.graph.plannerPlan": return NewPlannerPlan(), nil case "#microsoft.graph.plannerPlanConfiguration": @@ -2755,6 +2775,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewRemoteAssistanceSettings(), nil case "#microsoft.graph.remoteDesktopSecurityConfiguration": return NewRemoteDesktopSecurityConfiguration(), nil + case "#microsoft.graph.removeFromLobbyOperation": + return NewRemoveFromLobbyOperation(), nil case "#microsoft.graph.reportRoot": return NewReportRoot(), nil case "#microsoft.graph.reportsRoot": @@ -2989,6 +3011,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewSharePointMigrationTask(), nil case "#microsoft.graph.sharePointProtectionPolicy": return NewSharePointProtectionPolicy(), nil + case "#microsoft.graph.sharePointReportSettings": + return NewSharePointReportSettings(), nil case "#microsoft.graph.sharePointRestoreSession": return NewSharePointRestoreSession(), nil case "#microsoft.graph.sharePointRoot": @@ -3137,6 +3161,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewTargetedManagedAppProtection(), nil case "#microsoft.graph.taskFileAttachment": return NewTaskFileAttachment(), nil + case "#microsoft.graph.taskHistoryItem": + return NewTaskHistoryItem(), nil case "#microsoft.graph.taxGroup": return NewTaxGroup(), nil case "#microsoft.graph.team": @@ -3183,6 +3209,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewTeamworkDeviceOperation(), nil case "#microsoft.graph.teamworkHostedContent": return NewTeamworkHostedContent(), nil + case "#microsoft.graph.teamworkMessaging": + return NewTeamworkMessaging(), nil case "#microsoft.graph.teamworkPeripheral": return NewTeamworkPeripheral(), nil case "#microsoft.graph.teamworkSection": diff --git a/models/exchange_protection_policy.go b/models/exchange_protection_policy.go index 81e37ccbf22..f2b1e51dbfd 100644 --- a/models/exchange_protection_policy.go +++ b/models/exchange_protection_policy.go @@ -110,7 +110,7 @@ func (m *ExchangeProtectionPolicy) GetFieldDeserializers()(map[string]func(i878a } return res } -// GetMailboxExclusionUnits gets the mailboxExclusionUnits property value. The mailboxExclusionUnits property +// GetMailboxExclusionUnits gets the mailboxExclusionUnits property value. The mailbox exclusion units associated with the Exchange protection policy. // returns a []MailboxExclusionUnitable when successful func (m *ExchangeProtectionPolicy) GetMailboxExclusionUnits()([]MailboxExclusionUnitable) { val, err := m.GetBackingStore().Get("mailboxExclusionUnits") @@ -122,7 +122,7 @@ func (m *ExchangeProtectionPolicy) GetMailboxExclusionUnits()([]MailboxExclusion } return nil } -// GetMailboxExclusionUnitsBulkAdditionJobs gets the mailboxExclusionUnitsBulkAdditionJobs property value. The mailboxExclusionUnitsBulkAdditionJobs property +// GetMailboxExclusionUnitsBulkAdditionJobs gets the mailboxExclusionUnitsBulkAdditionJobs property value. The list of bulk addition jobs for mailbox exclusion units associated with the Exchange protection policy. // returns a []MailboxExclusionUnitsBulkAdditionJobable when successful func (m *ExchangeProtectionPolicy) GetMailboxExclusionUnitsBulkAdditionJobs()([]MailboxExclusionUnitsBulkAdditionJobable) { val, err := m.GetBackingStore().Get("mailboxExclusionUnitsBulkAdditionJobs") @@ -238,14 +238,14 @@ func (m *ExchangeProtectionPolicy) Serialize(writer i878a80d2330e89d26896388a3f4 } return nil } -// SetMailboxExclusionUnits sets the mailboxExclusionUnits property value. The mailboxExclusionUnits property +// SetMailboxExclusionUnits sets the mailboxExclusionUnits property value. The mailbox exclusion units associated with the Exchange protection policy. func (m *ExchangeProtectionPolicy) SetMailboxExclusionUnits(value []MailboxExclusionUnitable)() { err := m.GetBackingStore().Set("mailboxExclusionUnits", value) if err != nil { panic(err) } } -// SetMailboxExclusionUnitsBulkAdditionJobs sets the mailboxExclusionUnitsBulkAdditionJobs property value. The mailboxExclusionUnitsBulkAdditionJobs property +// SetMailboxExclusionUnitsBulkAdditionJobs sets the mailboxExclusionUnitsBulkAdditionJobs property value. The list of bulk addition jobs for mailbox exclusion units associated with the Exchange protection policy. func (m *ExchangeProtectionPolicy) SetMailboxExclusionUnitsBulkAdditionJobs(value []MailboxExclusionUnitsBulkAdditionJobable)() { err := m.GetBackingStore().Set("mailboxExclusionUnitsBulkAdditionJobs", value) if err != nil { diff --git a/models/exclusion_unit_base.go b/models/exclusion_unit_base.go index e9924a037f6..d61e47ecf18 100644 --- a/models/exclusion_unit_base.go +++ b/models/exclusion_unit_base.go @@ -45,7 +45,7 @@ func CreateExclusionUnitBaseFromDiscriminatorValue(parseNode i878a80d2330e89d268 } return NewExclusionUnitBase(), nil } -// GetCreatedBy gets the createdBy property value. The createdBy property +// GetCreatedBy gets the createdBy property value. The identity of the person who created the exclusion unit. // returns a IdentitySetable when successful func (m *ExclusionUnitBase) GetCreatedBy()(IdentitySetable) { val, err := m.GetBackingStore().Get("createdBy") @@ -57,7 +57,7 @@ func (m *ExclusionUnitBase) GetCreatedBy()(IdentitySetable) { } return nil } -// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// GetCreatedDateTime gets the createdDateTime property value. The date and time when the exclusion unit was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *ExclusionUnitBase) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") @@ -69,7 +69,7 @@ func (m *ExclusionUnitBase) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad9 } return nil } -// GetError gets the error property value. The error property +// GetError gets the error property value. Contains error details if the exclusion unit is in a failed state. // returns a PublicErrorable when successful func (m *ExclusionUnitBase) GetError()(PublicErrorable) { val, err := m.GetBackingStore().Get("error") @@ -147,7 +147,7 @@ func (m *ExclusionUnitBase) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetLastModifiedBy gets the lastModifiedBy property value. The lastModifiedBy property +// GetLastModifiedBy gets the lastModifiedBy property value. The identity of the person who last modified the exclusion unit. // returns a IdentitySetable when successful func (m *ExclusionUnitBase) GetLastModifiedBy()(IdentitySetable) { val, err := m.GetBackingStore().Get("lastModifiedBy") @@ -159,7 +159,7 @@ func (m *ExclusionUnitBase) GetLastModifiedBy()(IdentitySetable) { } return nil } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The lastModifiedDateTime property +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The date and time when the exclusion unit was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *ExclusionUnitBase) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") @@ -171,7 +171,7 @@ func (m *ExclusionUnitBase) GetLastModifiedDateTime()(*i336074805fc853987abe6f7f } return nil } -// GetPolicyId gets the policyId property value. The policyId property +// GetPolicyId gets the policyId property value. The unique identifier of the protection policy that contains this exclusion unit. // returns a *string when successful func (m *ExclusionUnitBase) GetPolicyId()(*string) { val, err := m.GetBackingStore().Get("policyId") @@ -227,42 +227,42 @@ func (m *ExclusionUnitBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetCreatedBy sets the createdBy property value. The createdBy property +// SetCreatedBy sets the createdBy property value. The identity of the person who created the exclusion unit. func (m *ExclusionUnitBase) SetCreatedBy(value IdentitySetable)() { err := m.GetBackingStore().Set("createdBy", value) if err != nil { panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +// SetCreatedDateTime sets the createdDateTime property value. The date and time when the exclusion unit was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *ExclusionUnitBase) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { panic(err) } } -// SetError sets the error property value. The error property +// SetError sets the error property value. Contains error details if the exclusion unit is in a failed state. func (m *ExclusionUnitBase) SetError(value PublicErrorable)() { err := m.GetBackingStore().Set("error", value) if err != nil { panic(err) } } -// SetLastModifiedBy sets the lastModifiedBy property value. The lastModifiedBy property +// SetLastModifiedBy sets the lastModifiedBy property value. The identity of the person who last modified the exclusion unit. func (m *ExclusionUnitBase) SetLastModifiedBy(value IdentitySetable)() { err := m.GetBackingStore().Set("lastModifiedBy", value) if err != nil { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The lastModifiedDateTime property +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The date and time when the exclusion unit was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *ExclusionUnitBase) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { panic(err) } } -// SetPolicyId sets the policyId property value. The policyId property +// SetPolicyId sets the policyId property value. The unique identifier of the protection policy that contains this exclusion unit. func (m *ExclusionUnitBase) SetPolicyId(value *string)() { err := m.GetBackingStore().Set("policyId", value) if err != nil { diff --git a/models/exclusion_unit_bulk_addition_job.go b/models/exclusion_unit_bulk_addition_job.go index 55978529cd3..1f9177d4d19 100644 --- a/models/exclusion_unit_bulk_addition_job.go +++ b/models/exclusion_unit_bulk_addition_job.go @@ -45,7 +45,7 @@ func CreateExclusionUnitBulkAdditionJobFromDiscriminatorValue(parseNode i878a80d } return NewExclusionUnitBulkAdditionJob(), nil } -// GetCreatedBy gets the createdBy property value. The createdBy property +// GetCreatedBy gets the createdBy property value. The identity of the person who created the bulk addition job. // returns a IdentitySetable when successful func (m *ExclusionUnitBulkAdditionJob) GetCreatedBy()(IdentitySetable) { val, err := m.GetBackingStore().Get("createdBy") @@ -57,7 +57,7 @@ func (m *ExclusionUnitBulkAdditionJob) GetCreatedBy()(IdentitySetable) { } return nil } -// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// GetCreatedDateTime gets the createdDateTime property value. The date and time when the bulk addition job was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *ExclusionUnitBulkAdditionJob) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") @@ -69,7 +69,7 @@ func (m *ExclusionUnitBulkAdditionJob) GetCreatedDateTime()(*i336074805fc853987a } return nil } -// GetDisplayName gets the displayName property value. The displayName property +// GetDisplayName gets the displayName property value. The display name of the bulk addition job. // returns a *string when successful func (m *ExclusionUnitBulkAdditionJob) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -81,7 +81,7 @@ func (m *ExclusionUnitBulkAdditionJob) GetDisplayName()(*string) { } return nil } -// GetError gets the error property value. The error property +// GetError gets the error property value. Contains error details if the bulk addition job failed. // returns a PublicErrorable when successful func (m *ExclusionUnitBulkAdditionJob) GetError()(PublicErrorable) { val, err := m.GetBackingStore().Get("error") @@ -169,7 +169,7 @@ func (m *ExclusionUnitBulkAdditionJob) GetFieldDeserializers()(map[string]func(i } return res } -// GetLastModifiedBy gets the lastModifiedBy property value. The lastModifiedBy property +// GetLastModifiedBy gets the lastModifiedBy property value. The identity of the person who last modified the bulk addition job. // returns a IdentitySetable when successful func (m *ExclusionUnitBulkAdditionJob) GetLastModifiedBy()(IdentitySetable) { val, err := m.GetBackingStore().Get("lastModifiedBy") @@ -181,7 +181,7 @@ func (m *ExclusionUnitBulkAdditionJob) GetLastModifiedBy()(IdentitySetable) { } return nil } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The lastModifiedDateTime property +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The date and time when the bulk addition job was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *ExclusionUnitBulkAdditionJob) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") @@ -256,42 +256,42 @@ func (m *ExclusionUnitBulkAdditionJob) Serialize(writer i878a80d2330e89d26896388 } return nil } -// SetCreatedBy sets the createdBy property value. The createdBy property +// SetCreatedBy sets the createdBy property value. The identity of the person who created the bulk addition job. func (m *ExclusionUnitBulkAdditionJob) SetCreatedBy(value IdentitySetable)() { err := m.GetBackingStore().Set("createdBy", value) if err != nil { panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +// SetCreatedDateTime sets the createdDateTime property value. The date and time when the bulk addition job was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *ExclusionUnitBulkAdditionJob) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. The displayName property +// SetDisplayName sets the displayName property value. The display name of the bulk addition job. func (m *ExclusionUnitBulkAdditionJob) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetError sets the error property value. The error property +// SetError sets the error property value. Contains error details if the bulk addition job failed. func (m *ExclusionUnitBulkAdditionJob) SetError(value PublicErrorable)() { err := m.GetBackingStore().Set("error", value) if err != nil { panic(err) } } -// SetLastModifiedBy sets the lastModifiedBy property value. The lastModifiedBy property +// SetLastModifiedBy sets the lastModifiedBy property value. The identity of the person who last modified the bulk addition job. func (m *ExclusionUnitBulkAdditionJob) SetLastModifiedBy(value IdentitySetable)() { err := m.GetBackingStore().Set("lastModifiedBy", value) if err != nil { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The lastModifiedDateTime property +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The date and time when the bulk addition job was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *ExclusionUnitBulkAdditionJob) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { diff --git a/models/external_domain_federation.go b/models/external_domain_federation.go index ca5e0ea5e1b..ad300953969 100644 --- a/models/external_domain_federation.go +++ b/models/external_domain_federation.go @@ -24,7 +24,7 @@ func NewExternalDomainFederation()(*ExternalDomainFederation) { func CreateExternalDomainFederationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewExternalDomainFederation(), nil } -// GetDisplayName gets the displayName property value. The name of the identity source, typically also the domain name. Read only. +// GetDisplayName gets the displayName property value. The name of the identity source, typically also the domain name. Read-only. // returns a *string when successful func (m *ExternalDomainFederation) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -36,7 +36,7 @@ func (m *ExternalDomainFederation) GetDisplayName()(*string) { } return nil } -// GetDomainName gets the domainName property value. The domain name. Read only. +// GetDomainName gets the domainName property value. The domain name. Read-only. // returns a *string when successful func (m *ExternalDomainFederation) GetDomainName()(*string) { val, err := m.GetBackingStore().Get("domainName") @@ -84,7 +84,7 @@ func (m *ExternalDomainFederation) GetFieldDeserializers()(map[string]func(i878a } return res } -// GetIssuerUri gets the issuerUri property value. The issuerURI of the incoming federation. Read only. +// GetIssuerUri gets the issuerUri property value. The issuerURI of the incoming federation. Read-only. // returns a *string when successful func (m *ExternalDomainFederation) GetIssuerUri()(*string) { val, err := m.GetBackingStore().Get("issuerUri") @@ -122,21 +122,21 @@ func (m *ExternalDomainFederation) Serialize(writer i878a80d2330e89d26896388a3f4 } return nil } -// SetDisplayName sets the displayName property value. The name of the identity source, typically also the domain name. Read only. +// SetDisplayName sets the displayName property value. The name of the identity source, typically also the domain name. Read-only. func (m *ExternalDomainFederation) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetDomainName sets the domainName property value. The domain name. Read only. +// SetDomainName sets the domainName property value. The domain name. Read-only. func (m *ExternalDomainFederation) SetDomainName(value *string)() { err := m.GetBackingStore().Set("domainName", value) if err != nil { panic(err) } } -// SetIssuerUri sets the issuerUri property value. The issuerURI of the incoming federation. Read only. +// SetIssuerUri sets the issuerUri property value. The issuerURI of the incoming federation. Read-only. func (m *ExternalDomainFederation) SetIssuerUri(value *string)() { err := m.GetBackingStore().Set("issuerUri", value) if err != nil { diff --git a/models/externalconnectors/label.go b/models/externalconnectors/label.go index 57c0f96ab42..8a4e6043099 100644 --- a/models/externalconnectors/label.go +++ b/models/externalconnectors/label.go @@ -59,10 +59,11 @@ const ( PERSONLANGUAGES_LABEL PERSONPUBLICATIONS_LABEL PERSONPATENTS_LABEL + PERSONWORKPOSITIONS_LABEL ) func (i Label) String() string { - return []string{"title", "url", "createdBy", "lastModifiedBy", "authors", "createdDateTime", "lastModifiedDateTime", "fileName", "fileExtension", "unknownFutureValue", "containerName", "containerUrl", "iconUrl", "assignedToPeople", "closedBy", "closedDate", "priority", "sprintName", "tags", "severity", "state", "dueDate", "itemParentId", "itemPath", "itemType", "numberOfReactions", "parentUrl", "priorityNormalized", "reportedBy", "secondaryId", "personEmails", "personAddresses", "personAnniversaries", "personName", "personNote", "personPhones", "personCurrentPosition", "personWebAccounts", "personWebSite", "personSkills", "personProjects", "personAccount", "personAwards", "personCertifications", "personAssistants", "personColleagues", "personManager", "personAlternateContacts", "personEmergencyContacts", "personEducationalActivities", "personInterests", "personLanguages", "personPublications", "personPatents"}[i] + return []string{"title", "url", "createdBy", "lastModifiedBy", "authors", "createdDateTime", "lastModifiedDateTime", "fileName", "fileExtension", "unknownFutureValue", "containerName", "containerUrl", "iconUrl", "assignedToPeople", "closedBy", "closedDate", "priority", "sprintName", "tags", "severity", "state", "dueDate", "itemParentId", "itemPath", "itemType", "numberOfReactions", "parentUrl", "priorityNormalized", "reportedBy", "secondaryId", "personEmails", "personAddresses", "personAnniversaries", "personName", "personNote", "personPhones", "personCurrentPosition", "personWebAccounts", "personWebSite", "personSkills", "personProjects", "personAccount", "personAwards", "personCertifications", "personAssistants", "personColleagues", "personManager", "personAlternateContacts", "personEmergencyContacts", "personEducationalActivities", "personInterests", "personLanguages", "personPublications", "personPatents", "personWorkPositions"}[i] } func ParseLabel(v string) (any, error) { result := TITLE_LABEL @@ -175,6 +176,8 @@ func ParseLabel(v string) (any, error) { result = PERSONPUBLICATIONS_LABEL case "personPatents": result = PERSONPATENTS_LABEL + case "personWorkPositions": + result = PERSONWORKPOSITIONS_LABEL default: return nil, nil } diff --git a/models/granular_restore_artifact_base.go b/models/granular_restore_artifact_base.go index cdb6bf61e5f..da6468cafe1 100644 --- a/models/granular_restore_artifact_base.go +++ b/models/granular_restore_artifact_base.go @@ -67,7 +67,7 @@ func (m *GranularRestoreArtifactBase) GetCompletionDateTime()(*i336074805fc85398 } return nil } -// GetDestinationType gets the destinationType property value. The destinationType property +// GetDestinationType gets the destinationType property value. The restoration destination. The possible values are: new, inPlace, unknownFutureValue. // returns a *DestinationType when successful func (m *GranularRestoreArtifactBase) GetDestinationType()(*DestinationType) { val, err := m.GetBackingStore().Get("destinationType") @@ -79,6 +79,18 @@ func (m *GranularRestoreArtifactBase) GetDestinationType()(*DestinationType) { } return nil } +// GetError gets the error property value. Contains error details if the restoration fails or completes with an error. +// returns a PublicErrorable when successful +func (m *GranularRestoreArtifactBase) GetError()(PublicErrorable) { + val, err := m.GetBackingStore().Get("error") + if err != nil { + panic(err) + } + if val != nil { + return val.(PublicErrorable) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *GranularRestoreArtifactBase) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { @@ -113,6 +125,16 @@ func (m *GranularRestoreArtifactBase) GetFieldDeserializers()(map[string]func(i8 } return nil } + res["error"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePublicErrorFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetError(val.(PublicErrorable)) + } + return nil + } res["restoredItemKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -209,7 +231,7 @@ func (m *GranularRestoreArtifactBase) GetRestoredItemPath()(*string) { } return nil } -// GetRestoredItemWebUrl gets the restoredItemWebUrl property value. The web url of the restord artifact. +// GetRestoredItemWebUrl gets the restoredItemWebUrl property value. The web url of the restored artifact. // returns a *string when successful func (m *GranularRestoreArtifactBase) GetRestoredItemWebUrl()(*string) { val, err := m.GetBackingStore().Get("restoredItemWebUrl") @@ -294,6 +316,12 @@ func (m *GranularRestoreArtifactBase) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteObjectValue("error", m.GetError()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("restoredItemKey", m.GetRestoredItemKey()) if err != nil { @@ -353,13 +381,20 @@ func (m *GranularRestoreArtifactBase) SetCompletionDateTime(value *i336074805fc8 panic(err) } } -// SetDestinationType sets the destinationType property value. The destinationType property +// SetDestinationType sets the destinationType property value. The restoration destination. The possible values are: new, inPlace, unknownFutureValue. func (m *GranularRestoreArtifactBase) SetDestinationType(value *DestinationType)() { err := m.GetBackingStore().Set("destinationType", value) if err != nil { panic(err) } } +// SetError sets the error property value. Contains error details if the restoration fails or completes with an error. +func (m *GranularRestoreArtifactBase) SetError(value PublicErrorable)() { + err := m.GetBackingStore().Set("error", value) + if err != nil { + panic(err) + } +} // SetRestoredItemKey sets the restoredItemKey property value. The unique identifier for the restored artifact. func (m *GranularRestoreArtifactBase) SetRestoredItemKey(value *string)() { err := m.GetBackingStore().Set("restoredItemKey", value) @@ -374,7 +409,7 @@ func (m *GranularRestoreArtifactBase) SetRestoredItemPath(value *string)() { panic(err) } } -// SetRestoredItemWebUrl sets the restoredItemWebUrl property value. The web url of the restord artifact. +// SetRestoredItemWebUrl sets the restoredItemWebUrl property value. The web url of the restored artifact. func (m *GranularRestoreArtifactBase) SetRestoredItemWebUrl(value *string)() { err := m.GetBackingStore().Set("restoredItemWebUrl", value) if err != nil { @@ -415,6 +450,7 @@ type GranularRestoreArtifactBaseable interface { GetBrowseSessionId()(*string) GetCompletionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDestinationType()(*DestinationType) + GetError()(PublicErrorable) GetRestoredItemKey()(*string) GetRestoredItemPath()(*string) GetRestoredItemWebUrl()(*string) @@ -425,6 +461,7 @@ type GranularRestoreArtifactBaseable interface { SetBrowseSessionId(value *string)() SetCompletionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDestinationType(value *DestinationType)() + SetError(value PublicErrorable)() SetRestoredItemKey(value *string)() SetRestoredItemPath(value *string)() SetRestoredItemWebUrl(value *string)() diff --git a/models/granular_restore_items.go b/models/granular_restore_items.go new file mode 100644 index 00000000000..75d8b4b7c6a --- /dev/null +++ b/models/granular_restore_items.go @@ -0,0 +1,48 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +type GranularRestoreItems int + +const ( + EMAIL_GRANULARRESTOREITEMS GranularRestoreItems = iota + NOTE_GRANULARRESTOREITEMS + CONTACT_GRANULARRESTOREITEMS + TASK_GRANULARRESTOREITEMS + CALENDAR_GRANULARRESTOREITEMS + UNKNOWNFUTUREVALUE_GRANULARRESTOREITEMS +) + +func (i GranularRestoreItems) String() string { + return []string{"email", "note", "contact", "task", "calendar", "unknownFutureValue"}[i] +} +func ParseGranularRestoreItems(v string) (any, error) { + result := EMAIL_GRANULARRESTOREITEMS + switch v { + case "email": + result = EMAIL_GRANULARRESTOREITEMS + case "note": + result = NOTE_GRANULARRESTOREITEMS + case "contact": + result = CONTACT_GRANULARRESTOREITEMS + case "task": + result = TASK_GRANULARRESTOREITEMS + case "calendar": + result = CALENDAR_GRANULARRESTOREITEMS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_GRANULARRESTOREITEMS + default: + return nil, nil + } + return &result, nil +} +func SerializeGranularRestoreItems(values []GranularRestoreItems) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i GranularRestoreItems) isMultiValue() bool { + return false +} diff --git a/models/group_access_type.go b/models/group_access_type.go index bdc869e2db5..3c72a26e257 100644 --- a/models/group_access_type.go +++ b/models/group_access_type.go @@ -9,10 +9,11 @@ const ( PRIVATE_GROUPACCESSTYPE SECRET_GROUPACCESSTYPE PUBLIC_GROUPACCESSTYPE + UNKNOWNFUTUREVALUE_GROUPACCESSTYPE ) func (i GroupAccessType) String() string { - return []string{"none", "private", "secret", "public"}[i] + return []string{"none", "private", "secret", "public", "unknownFutureValue"}[i] } func ParseGroupAccessType(v string) (any, error) { result := NONE_GROUPACCESSTYPE @@ -25,6 +26,8 @@ func ParseGroupAccessType(v string) (any, error) { result = SECRET_GROUPACCESSTYPE case "public": result = PUBLIC_GROUPACCESSTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_GROUPACCESSTYPE default: return nil, nil } diff --git a/models/group_analytics.go b/models/group_analytics.go new file mode 100644 index 00000000000..a9f413b244f --- /dev/null +++ b/models/group_analytics.go @@ -0,0 +1,1302 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type GroupAnalytics struct { + Entity +} +// NewGroupAnalytics instantiates a new GroupAnalytics and sets the default values. +func NewGroupAnalytics()(*GroupAnalytics) { + m := &GroupAnalytics{ + Entity: *NewEntity(), + } + return m +} +// CreateGroupAnalyticsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateGroupAnalyticsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewGroupAnalytics(), nil +} +// GetAssignedRoleCount gets the assignedRoleCount property value. The number of directory roles assigned to the group. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *int64 when successful +func (m *GroupAnalytics) GetAssignedRoleCount()(*int64) { + val, err := m.GetBackingStore().Get("assignedRoleCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetCalculatedDateTime gets the calculatedDateTime property value. The date and time when the analytics for the group were last calculated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *Time when successful +func (m *GroupAnalytics) GetCalculatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("calculatedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetCreatedDateTime gets the createdDateTime property value. The date and time when the group was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *Time when successful +func (m *GroupAnalytics) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetDirectGroupMemberCount gets the directGroupMemberCount property value. The number of direct members of the group that are themselves groups. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *int64 when successful +func (m *GroupAnalytics) GetDirectGroupMemberCount()(*int64) { + val, err := m.GetBackingStore().Get("directGroupMemberCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetDisplayName gets the displayName property value. The display name of the group. Supports $filter (eq, ne, startsWith, endsWith, contains) and $orderby. +// returns a *string when successful +func (m *GroupAnalytics) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDynamicMembershipType gets the dynamicMembershipType property value. The dynamic membership classification of the group, derived from its membership rule. Supports $filter (eq, ne, startsWith, endsWith, contains) and $orderby. +// returns a *string when successful +func (m *GroupAnalytics) GetDynamicMembershipType()(*string) { + val, err := m.GetBackingStore().Get("dynamicMembershipType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *GroupAnalytics) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["assignedRoleCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetAssignedRoleCount(val) + } + return nil + } + res["calculatedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCalculatedDateTime(val) + } + return nil + } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } + res["directGroupMemberCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetDirectGroupMemberCount(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["dynamicMembershipType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDynamicMembershipType(val) + } + return nil + } + res["groupExpirationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetGroupExpirationDateTime(val) + } + return nil + } + res["groupType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseGroupTypeEnum) + if err != nil { + return err + } + if val != nil { + m.SetGroupType(val.(*GroupTypeEnum)) + } + return nil + } + res["guestOwnerCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGuestOwnerCount(val) + } + return nil + } + res["guestTransitiveUserCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetGuestTransitiveUserCount(val) + } + return nil + } + res["isCloudDistributionListGroup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsCloudDistributionListGroup(val) + } + return nil + } + res["isCloudM365Group"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsCloudM365Group(val) + } + return nil + } + res["isCloudMailEnabledSecurityGroup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsCloudMailEnabledSecurityGroup(val) + } + return nil + } + res["isCloudSecurityGroup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsCloudSecurityGroup(val) + } + return nil + } + res["isDynamicGroup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsDynamicGroup(val) + } + return nil + } + res["isOnPremiseDistributionListGroup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsOnPremiseDistributionListGroup(val) + } + return nil + } + res["isOnPremiseMailEnabledSecurityGroup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsOnPremiseMailEnabledSecurityGroup(val) + } + return nil + } + res["isOnPremiseSecurityGroup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsOnPremiseSecurityGroup(val) + } + return nil + } + res["isValidGroup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsValidGroup(val) + } + return nil + } + res["lastRestorationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastRestorationDateTime(val) + } + return nil + } + res["memberOwnerCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetMemberOwnerCount(val) + } + return nil + } + res["membershipRuleContainsCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetMembershipRuleContainsCount(val) + } + return nil + } + res["membershipRuleExpressionCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetMembershipRuleExpressionCount(val) + } + return nil + } + res["membershipRuleMatchCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetMembershipRuleMatchCount(val) + } + return nil + } + res["membershipRuleMemberOfCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetMembershipRuleMemberOfCount(val) + } + return nil + } + res["membershipRuleProcessingState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMembershipRuleProcessingState(val) + } + return nil + } + res["memberTransitiveUserCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetMemberTransitiveUserCount(val) + } + return nil + } + res["preferredDataLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPreferredDataLocation(val) + } + return nil + } + res["sensitivityLabelCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetSensitivityLabelCount(val) + } + return nil + } + res["servicePrincipalOwnerCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetServicePrincipalOwnerCount(val) + } + return nil + } + res["softDeletionDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetSoftDeletionDateTime(val) + } + return nil + } + res["tenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTenantId(val) + } + return nil + } + res["transitiveServicePrincipalCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetTransitiveServicePrincipalCount(val) + } + return nil + } + res["transitiveUserCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetTransitiveUserCount(val) + } + return nil + } + return res +} +// GetGroupExpirationDateTime gets the groupExpirationDateTime property value. The date and time when the group expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *Time when successful +func (m *GroupAnalytics) GetGroupExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("groupExpirationDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetGroupType gets the groupType property value. The groupType property +// returns a *GroupTypeEnum when successful +func (m *GroupAnalytics) GetGroupType()(*GroupTypeEnum) { + val, err := m.GetBackingStore().Get("groupType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*GroupTypeEnum) + } + return nil +} +// GetGuestOwnerCount gets the guestOwnerCount property value. The number of owners of the group that are guest users. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *int64 when successful +func (m *GroupAnalytics) GetGuestOwnerCount()(*int64) { + val, err := m.GetBackingStore().Get("guestOwnerCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetGuestTransitiveUserCount gets the guestTransitiveUserCount property value. The number of transitive user members of the group that are guest users. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *int64 when successful +func (m *GroupAnalytics) GetGuestTransitiveUserCount()(*int64) { + val, err := m.GetBackingStore().Get("guestTransitiveUserCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetIsCloudDistributionListGroup gets the isCloudDistributionListGroup property value. Indicates whether the group is a non-soft-deleted cloud distribution list group. Supports $filter (eq, ne) and $orderby. +// returns a *bool when successful +func (m *GroupAnalytics) GetIsCloudDistributionListGroup()(*bool) { + val, err := m.GetBackingStore().Get("isCloudDistributionListGroup") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsCloudM365Group gets the isCloudM365Group property value. Indicates whether the group is a non-soft-deleted cloud Microsoft 365 group. Supports $filter (eq, ne) and $orderby. +// returns a *bool when successful +func (m *GroupAnalytics) GetIsCloudM365Group()(*bool) { + val, err := m.GetBackingStore().Get("isCloudM365Group") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsCloudMailEnabledSecurityGroup gets the isCloudMailEnabledSecurityGroup property value. Indicates whether the group is a non-soft-deleted cloud mail-enabled security group. Supports $filter (eq, ne) and $orderby. +// returns a *bool when successful +func (m *GroupAnalytics) GetIsCloudMailEnabledSecurityGroup()(*bool) { + val, err := m.GetBackingStore().Get("isCloudMailEnabledSecurityGroup") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsCloudSecurityGroup gets the isCloudSecurityGroup property value. Indicates whether the group is a non-soft-deleted cloud security group. Supports $filter (eq, ne) and $orderby. +// returns a *bool when successful +func (m *GroupAnalytics) GetIsCloudSecurityGroup()(*bool) { + val, err := m.GetBackingStore().Get("isCloudSecurityGroup") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsDynamicGroup gets the isDynamicGroup property value. Indicates whether the group is a dynamic group. Supports $filter (eq, ne) and $orderby. +// returns a *bool when successful +func (m *GroupAnalytics) GetIsDynamicGroup()(*bool) { + val, err := m.GetBackingStore().Get("isDynamicGroup") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsOnPremiseDistributionListGroup gets the isOnPremiseDistributionListGroup property value. Indicates whether the group is a non-soft-deleted on-premises distribution list group. Supports $filter (eq, ne) and $orderby. +// returns a *bool when successful +func (m *GroupAnalytics) GetIsOnPremiseDistributionListGroup()(*bool) { + val, err := m.GetBackingStore().Get("isOnPremiseDistributionListGroup") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsOnPremiseMailEnabledSecurityGroup gets the isOnPremiseMailEnabledSecurityGroup property value. Indicates whether the group is a non-soft-deleted on-premises mail-enabled security group. Supports $filter (eq, ne) and $orderby. +// returns a *bool when successful +func (m *GroupAnalytics) GetIsOnPremiseMailEnabledSecurityGroup()(*bool) { + val, err := m.GetBackingStore().Get("isOnPremiseMailEnabledSecurityGroup") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsOnPremiseSecurityGroup gets the isOnPremiseSecurityGroup property value. Indicates whether the group is a non-soft-deleted on-premises security group. Supports $filter (eq, ne) and $orderby. +// returns a *bool when successful +func (m *GroupAnalytics) GetIsOnPremiseSecurityGroup()(*bool) { + val, err := m.GetBackingStore().Get("isOnPremiseSecurityGroup") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsValidGroup gets the isValidGroup property value. Indicates whether the group is a valid (non-soft-deleted) group. Supports $filter (eq, ne) and $orderby. +// returns a *bool when successful +func (m *GroupAnalytics) GetIsValidGroup()(*bool) { + val, err := m.GetBackingStore().Get("isValidGroup") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetLastRestorationDateTime gets the lastRestorationDateTime property value. The date and time when the group was last restored from a soft-deleted state. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *Time when successful +func (m *GroupAnalytics) GetLastRestorationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastRestorationDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetMemberOwnerCount gets the memberOwnerCount property value. The number of owners of the group that are member (non-guest) users. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *int64 when successful +func (m *GroupAnalytics) GetMemberOwnerCount()(*int64) { + val, err := m.GetBackingStore().Get("memberOwnerCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetMembershipRuleContainsCount gets the membershipRuleContainsCount property value. The number of contains expressions in the membership rule of the group. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *int64 when successful +func (m *GroupAnalytics) GetMembershipRuleContainsCount()(*int64) { + val, err := m.GetBackingStore().Get("membershipRuleContainsCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetMembershipRuleExpressionCount gets the membershipRuleExpressionCount property value. The number of expressions in the membership rule of the group. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *int64 when successful +func (m *GroupAnalytics) GetMembershipRuleExpressionCount()(*int64) { + val, err := m.GetBackingStore().Get("membershipRuleExpressionCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetMembershipRuleMatchCount gets the membershipRuleMatchCount property value. The number of match expressions in the membership rule of the group. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *int64 when successful +func (m *GroupAnalytics) GetMembershipRuleMatchCount()(*int64) { + val, err := m.GetBackingStore().Get("membershipRuleMatchCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetMembershipRuleMemberOfCount gets the membershipRuleMemberOfCount property value. The number of memberOf expressions in the membership rule of the group. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *int64 when successful +func (m *GroupAnalytics) GetMembershipRuleMemberOfCount()(*int64) { + val, err := m.GetBackingStore().Get("membershipRuleMemberOfCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetMembershipRuleProcessingState gets the membershipRuleProcessingState property value. The processing state of the membership rule of the group. Supports $filter (eq, ne, startsWith, endsWith, contains) and $orderby. +// returns a *string when successful +func (m *GroupAnalytics) GetMembershipRuleProcessingState()(*string) { + val, err := m.GetBackingStore().Get("membershipRuleProcessingState") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetMemberTransitiveUserCount gets the memberTransitiveUserCount property value. The number of transitive user members of the group that are member (non-guest) users. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *int64 when successful +func (m *GroupAnalytics) GetMemberTransitiveUserCount()(*int64) { + val, err := m.GetBackingStore().Get("memberTransitiveUserCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetPreferredDataLocation gets the preferredDataLocation property value. The preferred data location of the group. Supports $filter (eq, ne, startsWith, endsWith, contains) and $orderby. +// returns a *string when successful +func (m *GroupAnalytics) GetPreferredDataLocation()(*string) { + val, err := m.GetBackingStore().Get("preferredDataLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSensitivityLabelCount gets the sensitivityLabelCount property value. The number of sensitivity labels applied to the group. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *int64 when successful +func (m *GroupAnalytics) GetSensitivityLabelCount()(*int64) { + val, err := m.GetBackingStore().Get("sensitivityLabelCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetServicePrincipalOwnerCount gets the servicePrincipalOwnerCount property value. The number of owners of the group that are service principals. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *int64 when successful +func (m *GroupAnalytics) GetServicePrincipalOwnerCount()(*int64) { + val, err := m.GetBackingStore().Get("servicePrincipalOwnerCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetSoftDeletionDateTime gets the softDeletionDateTime property value. The date and time when the group was soft-deleted. If this property is empty, the group isn't soft-deleted. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *Time when successful +func (m *GroupAnalytics) GetSoftDeletionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("softDeletionDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetTenantId gets the tenantId property value. The unique identifier of the tenant that the group belongs to. Supports $filter (eq, ne) and $orderby. +// returns a *string when successful +func (m *GroupAnalytics) GetTenantId()(*string) { + val, err := m.GetBackingStore().Get("tenantId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTransitiveServicePrincipalCount gets the transitiveServicePrincipalCount property value. The number of transitive members of the group that are service principals. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *int64 when successful +func (m *GroupAnalytics) GetTransitiveServicePrincipalCount()(*int64) { + val, err := m.GetBackingStore().Get("transitiveServicePrincipalCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetTransitiveUserCount gets the transitiveUserCount property value. The total number of transitive user members of the group. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +// returns a *int64 when successful +func (m *GroupAnalytics) GetTransitiveUserCount()(*int64) { + val, err := m.GetBackingStore().Get("transitiveUserCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// Serialize serializes information the current object +func (m *GroupAnalytics) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteInt64Value("assignedRoleCount", m.GetAssignedRoleCount()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("calculatedDateTime", m.GetCalculatedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("directGroupMemberCount", m.GetDirectGroupMemberCount()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("dynamicMembershipType", m.GetDynamicMembershipType()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("groupExpirationDateTime", m.GetGroupExpirationDateTime()) + if err != nil { + return err + } + } + if m.GetGroupType() != nil { + cast := (*m.GetGroupType()).String() + err = writer.WriteStringValue("groupType", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("guestOwnerCount", m.GetGuestOwnerCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("guestTransitiveUserCount", m.GetGuestTransitiveUserCount()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isCloudDistributionListGroup", m.GetIsCloudDistributionListGroup()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isCloudM365Group", m.GetIsCloudM365Group()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isCloudMailEnabledSecurityGroup", m.GetIsCloudMailEnabledSecurityGroup()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isCloudSecurityGroup", m.GetIsCloudSecurityGroup()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isDynamicGroup", m.GetIsDynamicGroup()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isOnPremiseDistributionListGroup", m.GetIsOnPremiseDistributionListGroup()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isOnPremiseMailEnabledSecurityGroup", m.GetIsOnPremiseMailEnabledSecurityGroup()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isOnPremiseSecurityGroup", m.GetIsOnPremiseSecurityGroup()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isValidGroup", m.GetIsValidGroup()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("lastRestorationDateTime", m.GetLastRestorationDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("memberOwnerCount", m.GetMemberOwnerCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("membershipRuleContainsCount", m.GetMembershipRuleContainsCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("membershipRuleExpressionCount", m.GetMembershipRuleExpressionCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("membershipRuleMatchCount", m.GetMembershipRuleMatchCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("membershipRuleMemberOfCount", m.GetMembershipRuleMemberOfCount()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("membershipRuleProcessingState", m.GetMembershipRuleProcessingState()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("memberTransitiveUserCount", m.GetMemberTransitiveUserCount()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("preferredDataLocation", m.GetPreferredDataLocation()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("sensitivityLabelCount", m.GetSensitivityLabelCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("servicePrincipalOwnerCount", m.GetServicePrincipalOwnerCount()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("softDeletionDateTime", m.GetSoftDeletionDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("tenantId", m.GetTenantId()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("transitiveServicePrincipalCount", m.GetTransitiveServicePrincipalCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("transitiveUserCount", m.GetTransitiveUserCount()) + if err != nil { + return err + } + } + return nil +} +// SetAssignedRoleCount sets the assignedRoleCount property value. The number of directory roles assigned to the group. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetAssignedRoleCount(value *int64)() { + err := m.GetBackingStore().Set("assignedRoleCount", value) + if err != nil { + panic(err) + } +} +// SetCalculatedDateTime sets the calculatedDateTime property value. The date and time when the analytics for the group were last calculated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetCalculatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("calculatedDateTime", value) + if err != nil { + panic(err) + } +} +// SetCreatedDateTime sets the createdDateTime property value. The date and time when the group was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetDirectGroupMemberCount sets the directGroupMemberCount property value. The number of direct members of the group that are themselves groups. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetDirectGroupMemberCount(value *int64)() { + err := m.GetBackingStore().Set("directGroupMemberCount", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. The display name of the group. Supports $filter (eq, ne, startsWith, endsWith, contains) and $orderby. +func (m *GroupAnalytics) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetDynamicMembershipType sets the dynamicMembershipType property value. The dynamic membership classification of the group, derived from its membership rule. Supports $filter (eq, ne, startsWith, endsWith, contains) and $orderby. +func (m *GroupAnalytics) SetDynamicMembershipType(value *string)() { + err := m.GetBackingStore().Set("dynamicMembershipType", value) + if err != nil { + panic(err) + } +} +// SetGroupExpirationDateTime sets the groupExpirationDateTime property value. The date and time when the group expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetGroupExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("groupExpirationDateTime", value) + if err != nil { + panic(err) + } +} +// SetGroupType sets the groupType property value. The groupType property +func (m *GroupAnalytics) SetGroupType(value *GroupTypeEnum)() { + err := m.GetBackingStore().Set("groupType", value) + if err != nil { + panic(err) + } +} +// SetGuestOwnerCount sets the guestOwnerCount property value. The number of owners of the group that are guest users. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetGuestOwnerCount(value *int64)() { + err := m.GetBackingStore().Set("guestOwnerCount", value) + if err != nil { + panic(err) + } +} +// SetGuestTransitiveUserCount sets the guestTransitiveUserCount property value. The number of transitive user members of the group that are guest users. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetGuestTransitiveUserCount(value *int64)() { + err := m.GetBackingStore().Set("guestTransitiveUserCount", value) + if err != nil { + panic(err) + } +} +// SetIsCloudDistributionListGroup sets the isCloudDistributionListGroup property value. Indicates whether the group is a non-soft-deleted cloud distribution list group. Supports $filter (eq, ne) and $orderby. +func (m *GroupAnalytics) SetIsCloudDistributionListGroup(value *bool)() { + err := m.GetBackingStore().Set("isCloudDistributionListGroup", value) + if err != nil { + panic(err) + } +} +// SetIsCloudM365Group sets the isCloudM365Group property value. Indicates whether the group is a non-soft-deleted cloud Microsoft 365 group. Supports $filter (eq, ne) and $orderby. +func (m *GroupAnalytics) SetIsCloudM365Group(value *bool)() { + err := m.GetBackingStore().Set("isCloudM365Group", value) + if err != nil { + panic(err) + } +} +// SetIsCloudMailEnabledSecurityGroup sets the isCloudMailEnabledSecurityGroup property value. Indicates whether the group is a non-soft-deleted cloud mail-enabled security group. Supports $filter (eq, ne) and $orderby. +func (m *GroupAnalytics) SetIsCloudMailEnabledSecurityGroup(value *bool)() { + err := m.GetBackingStore().Set("isCloudMailEnabledSecurityGroup", value) + if err != nil { + panic(err) + } +} +// SetIsCloudSecurityGroup sets the isCloudSecurityGroup property value. Indicates whether the group is a non-soft-deleted cloud security group. Supports $filter (eq, ne) and $orderby. +func (m *GroupAnalytics) SetIsCloudSecurityGroup(value *bool)() { + err := m.GetBackingStore().Set("isCloudSecurityGroup", value) + if err != nil { + panic(err) + } +} +// SetIsDynamicGroup sets the isDynamicGroup property value. Indicates whether the group is a dynamic group. Supports $filter (eq, ne) and $orderby. +func (m *GroupAnalytics) SetIsDynamicGroup(value *bool)() { + err := m.GetBackingStore().Set("isDynamicGroup", value) + if err != nil { + panic(err) + } +} +// SetIsOnPremiseDistributionListGroup sets the isOnPremiseDistributionListGroup property value. Indicates whether the group is a non-soft-deleted on-premises distribution list group. Supports $filter (eq, ne) and $orderby. +func (m *GroupAnalytics) SetIsOnPremiseDistributionListGroup(value *bool)() { + err := m.GetBackingStore().Set("isOnPremiseDistributionListGroup", value) + if err != nil { + panic(err) + } +} +// SetIsOnPremiseMailEnabledSecurityGroup sets the isOnPremiseMailEnabledSecurityGroup property value. Indicates whether the group is a non-soft-deleted on-premises mail-enabled security group. Supports $filter (eq, ne) and $orderby. +func (m *GroupAnalytics) SetIsOnPremiseMailEnabledSecurityGroup(value *bool)() { + err := m.GetBackingStore().Set("isOnPremiseMailEnabledSecurityGroup", value) + if err != nil { + panic(err) + } +} +// SetIsOnPremiseSecurityGroup sets the isOnPremiseSecurityGroup property value. Indicates whether the group is a non-soft-deleted on-premises security group. Supports $filter (eq, ne) and $orderby. +func (m *GroupAnalytics) SetIsOnPremiseSecurityGroup(value *bool)() { + err := m.GetBackingStore().Set("isOnPremiseSecurityGroup", value) + if err != nil { + panic(err) + } +} +// SetIsValidGroup sets the isValidGroup property value. Indicates whether the group is a valid (non-soft-deleted) group. Supports $filter (eq, ne) and $orderby. +func (m *GroupAnalytics) SetIsValidGroup(value *bool)() { + err := m.GetBackingStore().Set("isValidGroup", value) + if err != nil { + panic(err) + } +} +// SetLastRestorationDateTime sets the lastRestorationDateTime property value. The date and time when the group was last restored from a soft-deleted state. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetLastRestorationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastRestorationDateTime", value) + if err != nil { + panic(err) + } +} +// SetMemberOwnerCount sets the memberOwnerCount property value. The number of owners of the group that are member (non-guest) users. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetMemberOwnerCount(value *int64)() { + err := m.GetBackingStore().Set("memberOwnerCount", value) + if err != nil { + panic(err) + } +} +// SetMembershipRuleContainsCount sets the membershipRuleContainsCount property value. The number of contains expressions in the membership rule of the group. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetMembershipRuleContainsCount(value *int64)() { + err := m.GetBackingStore().Set("membershipRuleContainsCount", value) + if err != nil { + panic(err) + } +} +// SetMembershipRuleExpressionCount sets the membershipRuleExpressionCount property value. The number of expressions in the membership rule of the group. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetMembershipRuleExpressionCount(value *int64)() { + err := m.GetBackingStore().Set("membershipRuleExpressionCount", value) + if err != nil { + panic(err) + } +} +// SetMembershipRuleMatchCount sets the membershipRuleMatchCount property value. The number of match expressions in the membership rule of the group. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetMembershipRuleMatchCount(value *int64)() { + err := m.GetBackingStore().Set("membershipRuleMatchCount", value) + if err != nil { + panic(err) + } +} +// SetMembershipRuleMemberOfCount sets the membershipRuleMemberOfCount property value. The number of memberOf expressions in the membership rule of the group. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetMembershipRuleMemberOfCount(value *int64)() { + err := m.GetBackingStore().Set("membershipRuleMemberOfCount", value) + if err != nil { + panic(err) + } +} +// SetMembershipRuleProcessingState sets the membershipRuleProcessingState property value. The processing state of the membership rule of the group. Supports $filter (eq, ne, startsWith, endsWith, contains) and $orderby. +func (m *GroupAnalytics) SetMembershipRuleProcessingState(value *string)() { + err := m.GetBackingStore().Set("membershipRuleProcessingState", value) + if err != nil { + panic(err) + } +} +// SetMemberTransitiveUserCount sets the memberTransitiveUserCount property value. The number of transitive user members of the group that are member (non-guest) users. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetMemberTransitiveUserCount(value *int64)() { + err := m.GetBackingStore().Set("memberTransitiveUserCount", value) + if err != nil { + panic(err) + } +} +// SetPreferredDataLocation sets the preferredDataLocation property value. The preferred data location of the group. Supports $filter (eq, ne, startsWith, endsWith, contains) and $orderby. +func (m *GroupAnalytics) SetPreferredDataLocation(value *string)() { + err := m.GetBackingStore().Set("preferredDataLocation", value) + if err != nil { + panic(err) + } +} +// SetSensitivityLabelCount sets the sensitivityLabelCount property value. The number of sensitivity labels applied to the group. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetSensitivityLabelCount(value *int64)() { + err := m.GetBackingStore().Set("sensitivityLabelCount", value) + if err != nil { + panic(err) + } +} +// SetServicePrincipalOwnerCount sets the servicePrincipalOwnerCount property value. The number of owners of the group that are service principals. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetServicePrincipalOwnerCount(value *int64)() { + err := m.GetBackingStore().Set("servicePrincipalOwnerCount", value) + if err != nil { + panic(err) + } +} +// SetSoftDeletionDateTime sets the softDeletionDateTime property value. The date and time when the group was soft-deleted. If this property is empty, the group isn't soft-deleted. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetSoftDeletionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("softDeletionDateTime", value) + if err != nil { + panic(err) + } +} +// SetTenantId sets the tenantId property value. The unique identifier of the tenant that the group belongs to. Supports $filter (eq, ne) and $orderby. +func (m *GroupAnalytics) SetTenantId(value *string)() { + err := m.GetBackingStore().Set("tenantId", value) + if err != nil { + panic(err) + } +} +// SetTransitiveServicePrincipalCount sets the transitiveServicePrincipalCount property value. The number of transitive members of the group that are service principals. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetTransitiveServicePrincipalCount(value *int64)() { + err := m.GetBackingStore().Set("transitiveServicePrincipalCount", value) + if err != nil { + panic(err) + } +} +// SetTransitiveUserCount sets the transitiveUserCount property value. The total number of transitive user members of the group. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. +func (m *GroupAnalytics) SetTransitiveUserCount(value *int64)() { + err := m.GetBackingStore().Set("transitiveUserCount", value) + if err != nil { + panic(err) + } +} +type GroupAnalyticsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAssignedRoleCount()(*int64) + GetCalculatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetDirectGroupMemberCount()(*int64) + GetDisplayName()(*string) + GetDynamicMembershipType()(*string) + GetGroupExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetGroupType()(*GroupTypeEnum) + GetGuestOwnerCount()(*int64) + GetGuestTransitiveUserCount()(*int64) + GetIsCloudDistributionListGroup()(*bool) + GetIsCloudM365Group()(*bool) + GetIsCloudMailEnabledSecurityGroup()(*bool) + GetIsCloudSecurityGroup()(*bool) + GetIsDynamicGroup()(*bool) + GetIsOnPremiseDistributionListGroup()(*bool) + GetIsOnPremiseMailEnabledSecurityGroup()(*bool) + GetIsOnPremiseSecurityGroup()(*bool) + GetIsValidGroup()(*bool) + GetLastRestorationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetMemberOwnerCount()(*int64) + GetMembershipRuleContainsCount()(*int64) + GetMembershipRuleExpressionCount()(*int64) + GetMembershipRuleMatchCount()(*int64) + GetMembershipRuleMemberOfCount()(*int64) + GetMembershipRuleProcessingState()(*string) + GetMemberTransitiveUserCount()(*int64) + GetPreferredDataLocation()(*string) + GetSensitivityLabelCount()(*int64) + GetServicePrincipalOwnerCount()(*int64) + GetSoftDeletionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetTenantId()(*string) + GetTransitiveServicePrincipalCount()(*int64) + GetTransitiveUserCount()(*int64) + SetAssignedRoleCount(value *int64)() + SetCalculatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetDirectGroupMemberCount(value *int64)() + SetDisplayName(value *string)() + SetDynamicMembershipType(value *string)() + SetGroupExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetGroupType(value *GroupTypeEnum)() + SetGuestOwnerCount(value *int64)() + SetGuestTransitiveUserCount(value *int64)() + SetIsCloudDistributionListGroup(value *bool)() + SetIsCloudM365Group(value *bool)() + SetIsCloudMailEnabledSecurityGroup(value *bool)() + SetIsCloudSecurityGroup(value *bool)() + SetIsDynamicGroup(value *bool)() + SetIsOnPremiseDistributionListGroup(value *bool)() + SetIsOnPremiseMailEnabledSecurityGroup(value *bool)() + SetIsOnPremiseSecurityGroup(value *bool)() + SetIsValidGroup(value *bool)() + SetLastRestorationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetMemberOwnerCount(value *int64)() + SetMembershipRuleContainsCount(value *int64)() + SetMembershipRuleExpressionCount(value *int64)() + SetMembershipRuleMatchCount(value *int64)() + SetMembershipRuleMemberOfCount(value *int64)() + SetMembershipRuleProcessingState(value *string)() + SetMemberTransitiveUserCount(value *int64)() + SetPreferredDataLocation(value *string)() + SetSensitivityLabelCount(value *int64)() + SetServicePrincipalOwnerCount(value *int64)() + SetSoftDeletionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetTenantId(value *string)() + SetTransitiveServicePrincipalCount(value *int64)() + SetTransitiveUserCount(value *int64)() +} diff --git a/models/group_analytics_collection_response.go b/models/group_analytics_collection_response.go new file mode 100644 index 00000000000..6d38b19b2da --- /dev/null +++ b/models/group_analytics_collection_response.go @@ -0,0 +1,91 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type GroupAnalyticsCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewGroupAnalyticsCollectionResponse instantiates a new GroupAnalyticsCollectionResponse and sets the default values. +func NewGroupAnalyticsCollectionResponse()(*GroupAnalyticsCollectionResponse) { + m := &GroupAnalyticsCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateGroupAnalyticsCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateGroupAnalyticsCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewGroupAnalyticsCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *GroupAnalyticsCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateGroupAnalyticsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]GroupAnalyticsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(GroupAnalyticsable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []GroupAnalyticsable when successful +func (m *GroupAnalyticsCollectionResponse) GetValue()([]GroupAnalyticsable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]GroupAnalyticsable) + } + return nil +} +// Serialize serializes information the current object +func (m *GroupAnalyticsCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *GroupAnalyticsCollectionResponse) SetValue(value []GroupAnalyticsable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type GroupAnalyticsCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]GroupAnalyticsable) + SetValue(value []GroupAnalyticsable)() +} diff --git a/models/group_members.go b/models/group_members.go index c8e709802c2..e8f81e8b198 100644 --- a/models/group_members.go +++ b/models/group_members.go @@ -24,7 +24,7 @@ func NewGroupMembers()(*GroupMembers) { func CreateGroupMembersFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewGroupMembers(), nil } -// GetDescription gets the description property value. The name of the group in Microsoft Entra ID. Read only. +// GetDescription gets the description property value. The name of the group in Microsoft Entra ID. Read-only. // returns a *string when successful func (m *GroupMembers) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") @@ -94,7 +94,7 @@ func (m *GroupMembers) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e } return nil } -// SetDescription sets the description property value. The name of the group in Microsoft Entra ID. Read only. +// SetDescription sets the description property value. The name of the group in Microsoft Entra ID. Read-only. func (m *GroupMembers) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { diff --git a/models/group_policy_configuration_ingestion_type.go b/models/group_policy_configuration_ingestion_type.go index f2abd6f1d45..a15725292b0 100644 --- a/models/group_policy_configuration_ingestion_type.go +++ b/models/group_policy_configuration_ingestion_type.go @@ -14,7 +14,7 @@ const ( BUILTIN_GROUPPOLICYCONFIGURATIONINGESTIONTYPE // Indicated atleast 1 tenant admin & system ingested definitions configured for this policy MIXED_GROUPPOLICYCONFIGURATIONINGESTIONTYPE - // Evolvable enumeration sentinel value. Do not use. + // Unknown future enum value UNKNOWNFUTUREVALUE_GROUPPOLICYCONFIGURATIONINGESTIONTYPE ) diff --git a/models/group_type_enum.go b/models/group_type_enum.go new file mode 100644 index 00000000000..9fd3b773727 --- /dev/null +++ b/models/group_type_enum.go @@ -0,0 +1,39 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +type GroupTypeEnum int + +const ( + ISCLOUDGROUP_GROUPTYPEENUM GroupTypeEnum = iota + ISONPREMISEGROUP_GROUPTYPEENUM + ISSOFTDELETEDGROUP_GROUPTYPEENUM +) + +func (i GroupTypeEnum) String() string { + return []string{"isCloudGroup", "isOnPremiseGroup", "isSoftDeletedGroup"}[i] +} +func ParseGroupTypeEnum(v string) (any, error) { + result := ISCLOUDGROUP_GROUPTYPEENUM + switch v { + case "isCloudGroup": + result = ISCLOUDGROUP_GROUPTYPEENUM + case "isOnPremiseGroup": + result = ISONPREMISEGROUP_GROUPTYPEENUM + case "isSoftDeletedGroup": + result = ISSOFTDELETEDGROUP_GROUPTYPEENUM + default: + return nil, nil + } + return &result, nil +} +func SerializeGroupTypeEnum(values []GroupTypeEnum) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i GroupTypeEnum) isMultiValue() bool { + return false +} diff --git a/models/history_entity_type.go b/models/history_entity_type.go new file mode 100644 index 00000000000..c8178bba6e4 --- /dev/null +++ b/models/history_entity_type.go @@ -0,0 +1,36 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +type HistoryEntityType int + +const ( + TASK_HISTORYENTITYTYPE HistoryEntityType = iota + UNKNOWNFUTUREVALUE_HISTORYENTITYTYPE +) + +func (i HistoryEntityType) String() string { + return []string{"task", "unknownFutureValue"}[i] +} +func ParseHistoryEntityType(v string) (any, error) { + result := TASK_HISTORYENTITYTYPE + switch v { + case "task": + result = TASK_HISTORYENTITYTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_HISTORYENTITYTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeHistoryEntityType(values []HistoryEntityType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i HistoryEntityType) isMultiValue() bool { + return false +} diff --git a/models/history_event_type.go b/models/history_event_type.go new file mode 100644 index 00000000000..08e27f60da7 --- /dev/null +++ b/models/history_event_type.go @@ -0,0 +1,48 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +type HistoryEventType int + +const ( + CREATED_HISTORYEVENTTYPE HistoryEventType = iota + UPDATED_HISTORYEVENTTYPE + DELETED_HISTORYEVENTTYPE + UNDELETED_HISTORYEVENTTYPE + MOVED_HISTORYEVENTTYPE + UNKNOWNFUTUREVALUE_HISTORYEVENTTYPE +) + +func (i HistoryEventType) String() string { + return []string{"created", "updated", "deleted", "undeleted", "moved", "unknownFutureValue"}[i] +} +func ParseHistoryEventType(v string) (any, error) { + result := CREATED_HISTORYEVENTTYPE + switch v { + case "created": + result = CREATED_HISTORYEVENTTYPE + case "updated": + result = UPDATED_HISTORYEVENTTYPE + case "deleted": + result = DELETED_HISTORYEVENTTYPE + case "undeleted": + result = UNDELETED_HISTORYEVENTTYPE + case "moved": + result = MOVED_HISTORYEVENTTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_HISTORYEVENTTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeHistoryEventType(values []HistoryEventType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i HistoryEventType) isMultiValue() bool { + return false +} diff --git a/models/identity_analytics_root.go b/models/identity_analytics_root.go new file mode 100644 index 00000000000..1ba78c64706 --- /dev/null +++ b/models/identity_analytics_root.go @@ -0,0 +1,91 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type IdentityAnalyticsRoot struct { + Entity +} +// NewIdentityAnalyticsRoot instantiates a new IdentityAnalyticsRoot and sets the default values. +func NewIdentityAnalyticsRoot()(*IdentityAnalyticsRoot) { + m := &IdentityAnalyticsRoot{ + Entity: *NewEntity(), + } + return m +} +// CreateIdentityAnalyticsRootFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateIdentityAnalyticsRootFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewIdentityAnalyticsRoot(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *IdentityAnalyticsRoot) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["groups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateGroupAnalyticsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]GroupAnalyticsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(GroupAnalyticsable) + } + } + m.SetGroups(res) + } + return nil + } + return res +} +// GetGroups gets the groups property value. The analytics for the groups in the tenant. +// returns a []GroupAnalyticsable when successful +func (m *IdentityAnalyticsRoot) GetGroups()([]GroupAnalyticsable) { + val, err := m.GetBackingStore().Get("groups") + if err != nil { + panic(err) + } + if val != nil { + return val.([]GroupAnalyticsable) + } + return nil +} +// Serialize serializes information the current object +func (m *IdentityAnalyticsRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + if m.GetGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGroups())) + for i, v := range m.GetGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("groups", cast) + if err != nil { + return err + } + } + return nil +} +// SetGroups sets the groups property value. The analytics for the groups in the tenant. +func (m *IdentityAnalyticsRoot) SetGroups(value []GroupAnalyticsable)() { + err := m.GetBackingStore().Set("groups", value) + if err != nil { + panic(err) + } +} +type IdentityAnalyticsRootable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetGroups()([]GroupAnalyticsable) + SetGroups(value []GroupAnalyticsable)() +} diff --git a/models/identity_correlation.go b/models/identity_correlation.go new file mode 100644 index 00000000000..fe59988403b --- /dev/null +++ b/models/identity_correlation.go @@ -0,0 +1,240 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type IdentityCorrelation struct { + Entity +} +// NewIdentityCorrelation instantiates a new IdentityCorrelation and sets the default values. +func NewIdentityCorrelation()(*IdentityCorrelation) { + m := &IdentityCorrelation{ + Entity: *NewEntity(), + } + return m +} +// CreateIdentityCorrelationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateIdentityCorrelationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewIdentityCorrelation(), nil +} +// GetEndDateTime gets the endDateTime property value. The date and time when the correlation process completed. +// returns a *Time when successful +func (m *IdentityCorrelation) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("endDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetError gets the error property value. Error information if the correlation process failed. null if successful. Supports $filter (eq). +// returns a CorrelationErrorable when successful +func (m *IdentityCorrelation) GetError()(CorrelationErrorable) { + val, err := m.GetBackingStore().Get("error") + if err != nil { + panic(err) + } + if val != nil { + return val.(CorrelationErrorable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *IdentityCorrelation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["endDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetEndDateTime(val) + } + return nil + } + res["error"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCorrelationErrorFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetError(val.(CorrelationErrorable)) + } + return nil + } + res["identities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateCorrelatedIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]CorrelatedIdentityable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(CorrelatedIdentityable) + } + } + m.SetIdentities(res) + } + return nil + } + res["servicePrincipal"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateServicePrincipalFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetServicePrincipal(val.(ServicePrincipalable)) + } + return nil + } + res["startDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStartDateTime(val) + } + return nil + } + return res +} +// GetIdentities gets the identities property value. The collection of correlated identity results for this correlation report. +// returns a []CorrelatedIdentityable when successful +func (m *IdentityCorrelation) GetIdentities()([]CorrelatedIdentityable) { + val, err := m.GetBackingStore().Get("identities") + if err != nil { + panic(err) + } + if val != nil { + return val.([]CorrelatedIdentityable) + } + return nil +} +// GetServicePrincipal gets the servicePrincipal property value. The servicePrincipal property +// returns a ServicePrincipalable when successful +func (m *IdentityCorrelation) GetServicePrincipal()(ServicePrincipalable) { + val, err := m.GetBackingStore().Get("servicePrincipal") + if err != nil { + panic(err) + } + if val != nil { + return val.(ServicePrincipalable) + } + return nil +} +// GetStartDateTime gets the startDateTime property value. The date and time when the correlation process started. +// returns a *Time when successful +func (m *IdentityCorrelation) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("startDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// Serialize serializes information the current object +func (m *IdentityCorrelation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteTimeValue("endDateTime", m.GetEndDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("error", m.GetError()) + if err != nil { + return err + } + } + if m.GetIdentities() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetIdentities())) + for i, v := range m.GetIdentities() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("identities", cast) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("servicePrincipal", m.GetServicePrincipal()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("startDateTime", m.GetStartDateTime()) + if err != nil { + return err + } + } + return nil +} +// SetEndDateTime sets the endDateTime property value. The date and time when the correlation process completed. +func (m *IdentityCorrelation) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("endDateTime", value) + if err != nil { + panic(err) + } +} +// SetError sets the error property value. Error information if the correlation process failed. null if successful. Supports $filter (eq). +func (m *IdentityCorrelation) SetError(value CorrelationErrorable)() { + err := m.GetBackingStore().Set("error", value) + if err != nil { + panic(err) + } +} +// SetIdentities sets the identities property value. The collection of correlated identity results for this correlation report. +func (m *IdentityCorrelation) SetIdentities(value []CorrelatedIdentityable)() { + err := m.GetBackingStore().Set("identities", value) + if err != nil { + panic(err) + } +} +// SetServicePrincipal sets the servicePrincipal property value. The servicePrincipal property +func (m *IdentityCorrelation) SetServicePrincipal(value ServicePrincipalable)() { + err := m.GetBackingStore().Set("servicePrincipal", value) + if err != nil { + panic(err) + } +} +// SetStartDateTime sets the startDateTime property value. The date and time when the correlation process started. +func (m *IdentityCorrelation) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("startDateTime", value) + if err != nil { + panic(err) + } +} +type IdentityCorrelationable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetError()(CorrelationErrorable) + GetIdentities()([]CorrelatedIdentityable) + GetServicePrincipal()(ServicePrincipalable) + GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetError(value CorrelationErrorable)() + SetIdentities(value []CorrelatedIdentityable)() + SetServicePrincipal(value ServicePrincipalable)() + SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() +} diff --git a/models/identity_correlation_collection_response.go b/models/identity_correlation_collection_response.go new file mode 100644 index 00000000000..ce49e13a84a --- /dev/null +++ b/models/identity_correlation_collection_response.go @@ -0,0 +1,91 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type IdentityCorrelationCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewIdentityCorrelationCollectionResponse instantiates a new IdentityCorrelationCollectionResponse and sets the default values. +func NewIdentityCorrelationCollectionResponse()(*IdentityCorrelationCollectionResponse) { + m := &IdentityCorrelationCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateIdentityCorrelationCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateIdentityCorrelationCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewIdentityCorrelationCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *IdentityCorrelationCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateIdentityCorrelationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]IdentityCorrelationable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(IdentityCorrelationable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []IdentityCorrelationable when successful +func (m *IdentityCorrelationCollectionResponse) GetValue()([]IdentityCorrelationable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]IdentityCorrelationable) + } + return nil +} +// Serialize serializes information the current object +func (m *IdentityCorrelationCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *IdentityCorrelationCollectionResponse) SetValue(value []IdentityCorrelationable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type IdentityCorrelationCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]IdentityCorrelationable) + SetValue(value []IdentityCorrelationable)() +} diff --git a/models/identity_info.go b/models/identity_info.go new file mode 100644 index 00000000000..db5830a1171 --- /dev/null +++ b/models/identity_info.go @@ -0,0 +1,264 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type IdentityInfo struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewIdentityInfo instantiates a new IdentityInfo and sets the default values. +func NewIdentityInfo()(*IdentityInfo) { + m := &IdentityInfo{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateIdentityInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateIdentityInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewIdentityInfo(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *IdentityInfo) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetAnchor gets the anchor property value. The anchor property that uniquely identifies the identity in its directory. +// returns a AttributeInfoable when successful +func (m *IdentityInfo) GetAnchor()(AttributeInfoable) { + val, err := m.GetBackingStore().Get("anchor") + if err != nil { + panic(err) + } + if val != nil { + return val.(AttributeInfoable) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *IdentityInfo) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetDetails gets the details property value. Additional details about the identity. +// returns a DetailsInfoable when successful +func (m *IdentityInfo) GetDetails()(DetailsInfoable) { + val, err := m.GetBackingStore().Get("details") + if err != nil { + panic(err) + } + if val != nil { + return val.(DetailsInfoable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *IdentityInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["anchor"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAttributeInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAnchor(val.(AttributeInfoable)) + } + return nil + } + res["details"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateDetailsInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetDetails(val.(DetailsInfoable)) + } + return nil + } + res["identityType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetIdentityType(val) + } + return nil + } + res["matchingProperty"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAttributeInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetMatchingProperty(val.(AttributeInfoable)) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetIdentityType gets the identityType property value. The type of identity, such as user. +// returns a *string when successful +func (m *IdentityInfo) GetIdentityType()(*string) { + val, err := m.GetBackingStore().Get("identityType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetMatchingProperty gets the matchingProperty property value. The property used to match identities across directories. +// returns a AttributeInfoable when successful +func (m *IdentityInfo) GetMatchingProperty()(AttributeInfoable) { + val, err := m.GetBackingStore().Get("matchingProperty") + if err != nil { + panic(err) + } + if val != nil { + return val.(AttributeInfoable) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *IdentityInfo) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *IdentityInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("anchor", m.GetAnchor()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("details", m.GetDetails()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("identityType", m.GetIdentityType()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("matchingProperty", m.GetMatchingProperty()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *IdentityInfo) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAnchor sets the anchor property value. The anchor property that uniquely identifies the identity in its directory. +func (m *IdentityInfo) SetAnchor(value AttributeInfoable)() { + err := m.GetBackingStore().Set("anchor", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *IdentityInfo) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetDetails sets the details property value. Additional details about the identity. +func (m *IdentityInfo) SetDetails(value DetailsInfoable)() { + err := m.GetBackingStore().Set("details", value) + if err != nil { + panic(err) + } +} +// SetIdentityType sets the identityType property value. The type of identity, such as user. +func (m *IdentityInfo) SetIdentityType(value *string)() { + err := m.GetBackingStore().Set("identityType", value) + if err != nil { + panic(err) + } +} +// SetMatchingProperty sets the matchingProperty property value. The property used to match identities across directories. +func (m *IdentityInfo) SetMatchingProperty(value AttributeInfoable)() { + err := m.GetBackingStore().Set("matchingProperty", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *IdentityInfo) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type IdentityInfoable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAnchor()(AttributeInfoable) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDetails()(DetailsInfoable) + GetIdentityType()(*string) + GetMatchingProperty()(AttributeInfoable) + GetOdataType()(*string) + SetAnchor(value AttributeInfoable)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDetails(value DetailsInfoable)() + SetIdentityType(value *string)() + SetMatchingProperty(value AttributeInfoable)() + SetOdataType(value *string)() +} diff --git a/models/identity_set.go b/models/identity_set.go index a7a3c29952a..115203dd140 100644 --- a/models/identity_set.go +++ b/models/identity_set.go @@ -47,6 +47,8 @@ func CreateIdentitySetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a return NewChatMessageReactionIdentitySet(), nil case "#microsoft.graph.communicationsIdentitySet": return NewCommunicationsIdentitySet(), nil + case "#microsoft.graph.customEmojiFromIdentitySet": + return NewCustomEmojiFromIdentitySet(), nil case "#microsoft.graph.engagementIdentitySet": return NewEngagementIdentitySet(), nil case "#microsoft.graph.sharePointIdentitySet": diff --git a/models/identitygovernance/attribute_set_entry.go b/models/identitygovernance/attribute_set_entry.go new file mode 100644 index 00000000000..d01a6a206fe --- /dev/null +++ b/models/identitygovernance/attribute_set_entry.go @@ -0,0 +1,190 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type AttributeSetEntry struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAttributeSetEntry instantiates a new AttributeSetEntry and sets the default values. +func NewAttributeSetEntry()(*AttributeSetEntry) { + m := &AttributeSetEntry{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAttributeSetEntryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAttributeSetEntryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAttributeSetEntry(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *AttributeSetEntry) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *AttributeSetEntry) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AttributeSetEntry) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetValue(val) + } + return nil + } + return res +} +// GetName gets the name property value. The name (key) of the attribute. +// returns a *string when successful +func (m *AttributeSetEntry) GetName()(*string) { + val, err := m.GetBackingStore().Get("name") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *AttributeSetEntry) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetValue gets the value property value. The value of the attribute. +// returns a *string when successful +func (m *AttributeSetEntry) GetValue()(*string) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *AttributeSetEntry) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("value", m.GetValue()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AttributeSetEntry) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *AttributeSetEntry) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetName sets the name property value. The name (key) of the attribute. +func (m *AttributeSetEntry) SetName(value *string)() { + err := m.GetBackingStore().Set("name", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AttributeSetEntry) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetValue sets the value property value. The value of the attribute. +func (m *AttributeSetEntry) SetValue(value *string)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type AttributeSetEntryable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetName()(*string) + GetOdataType()(*string) + GetValue()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetName(value *string)() + SetOdataType(value *string)() + SetValue(value *string)() +} diff --git a/models/identitygovernance/awaited_workflow_processing_result.go b/models/identitygovernance/awaited_workflow_processing_result.go new file mode 100644 index 00000000000..fe65686c8ce --- /dev/null +++ b/models/identitygovernance/awaited_workflow_processing_result.go @@ -0,0 +1,234 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type AwaitedWorkflowProcessingResult struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAwaitedWorkflowProcessingResult instantiates a new AwaitedWorkflowProcessingResult and sets the default values. +func NewAwaitedWorkflowProcessingResult()(*AwaitedWorkflowProcessingResult) { + m := &AwaitedWorkflowProcessingResult{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAwaitedWorkflowProcessingResultFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAwaitedWorkflowProcessingResultFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAwaitedWorkflowProcessingResult(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *AwaitedWorkflowProcessingResult) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *AwaitedWorkflowProcessingResult) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AwaitedWorkflowProcessingResult) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["processingStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseLifecycleWorkflowProcessingStatus) + if err != nil { + return err + } + if val != nil { + m.SetProcessingStatus(val.(*LifecycleWorkflowProcessingStatus)) + } + return nil + } + res["statusReasons"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetStatusReasons(res) + } + return nil + } + res["subject"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkflowSubjectFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSubject(val.(WorkflowSubjectable)) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *AwaitedWorkflowProcessingResult) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetProcessingStatus gets the processingStatus property value. The processingStatus property +// returns a *LifecycleWorkflowProcessingStatus when successful +func (m *AwaitedWorkflowProcessingResult) GetProcessingStatus()(*LifecycleWorkflowProcessingStatus) { + val, err := m.GetBackingStore().Get("processingStatus") + if err != nil { + panic(err) + } + if val != nil { + return val.(*LifecycleWorkflowProcessingStatus) + } + return nil +} +// GetStatusReasons gets the statusReasons property value. A collection of reasons for the current processing status. May be empty. +// returns a []string when successful +func (m *AwaitedWorkflowProcessingResult) GetStatusReasons()([]string) { + val, err := m.GetBackingStore().Get("statusReasons") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetSubject gets the subject property value. The subject that was processed by the workflow. +// returns a WorkflowSubjectable when successful +func (m *AwaitedWorkflowProcessingResult) GetSubject()(WorkflowSubjectable) { + val, err := m.GetBackingStore().Get("subject") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkflowSubjectable) + } + return nil +} +// Serialize serializes information the current object +func (m *AwaitedWorkflowProcessingResult) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetProcessingStatus() != nil { + cast := (*m.GetProcessingStatus()).String() + err := writer.WriteStringValue("processingStatus", &cast) + if err != nil { + return err + } + } + if m.GetStatusReasons() != nil { + err := writer.WriteCollectionOfStringValues("statusReasons", m.GetStatusReasons()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("subject", m.GetSubject()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AwaitedWorkflowProcessingResult) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *AwaitedWorkflowProcessingResult) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AwaitedWorkflowProcessingResult) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetProcessingStatus sets the processingStatus property value. The processingStatus property +func (m *AwaitedWorkflowProcessingResult) SetProcessingStatus(value *LifecycleWorkflowProcessingStatus)() { + err := m.GetBackingStore().Set("processingStatus", value) + if err != nil { + panic(err) + } +} +// SetStatusReasons sets the statusReasons property value. A collection of reasons for the current processing status. May be empty. +func (m *AwaitedWorkflowProcessingResult) SetStatusReasons(value []string)() { + err := m.GetBackingStore().Set("statusReasons", value) + if err != nil { + panic(err) + } +} +// SetSubject sets the subject property value. The subject that was processed by the workflow. +func (m *AwaitedWorkflowProcessingResult) SetSubject(value WorkflowSubjectable)() { + err := m.GetBackingStore().Set("subject", value) + if err != nil { + panic(err) + } +} +type AwaitedWorkflowProcessingResultable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetProcessingStatus()(*LifecycleWorkflowProcessingStatus) + GetStatusReasons()([]string) + GetSubject()(WorkflowSubjectable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetProcessingStatus(value *LifecycleWorkflowProcessingStatus)() + SetStatusReasons(value []string)() + SetSubject(value WorkflowSubjectable)() +} diff --git a/models/identitygovernance/count_based_quarantine_condition.go b/models/identitygovernance/count_based_quarantine_condition.go new file mode 100644 index 00000000000..7bd971e6f2e --- /dev/null +++ b/models/identitygovernance/count_based_quarantine_condition.go @@ -0,0 +1,81 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type CountBasedQuarantineCondition struct { + QuarantineCondition +} +// NewCountBasedQuarantineCondition instantiates a new CountBasedQuarantineCondition and sets the default values. +func NewCountBasedQuarantineCondition()(*CountBasedQuarantineCondition) { + m := &CountBasedQuarantineCondition{ + QuarantineCondition: *NewQuarantineCondition(), + } + odataTypeValue := "#microsoft.graph.identityGovernance.countBasedQuarantineCondition" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCountBasedQuarantineConditionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCountBasedQuarantineConditionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCountBasedQuarantineCondition(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CountBasedQuarantineCondition) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.QuarantineCondition.GetFieldDeserializers() + res["threshold"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetThreshold(val) + } + return nil + } + return res +} +// GetThreshold gets the threshold property value. The threshold property +// returns a *int64 when successful +func (m *CountBasedQuarantineCondition) GetThreshold()(*int64) { + val, err := m.GetBackingStore().Get("threshold") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// Serialize serializes information the current object +func (m *CountBasedQuarantineCondition) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.QuarantineCondition.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteInt64Value("threshold", m.GetThreshold()) + if err != nil { + return err + } + } + return nil +} +// SetThreshold sets the threshold property value. The threshold property +func (m *CountBasedQuarantineCondition) SetThreshold(value *int64)() { + err := m.GetBackingStore().Set("threshold", value) + if err != nil { + panic(err) + } +} +type CountBasedQuarantineConditionable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + QuarantineConditionable + GetThreshold()(*int64) + SetThreshold(value *int64)() +} diff --git a/models/identitygovernance/custom_task_extension.go b/models/identitygovernance/custom_task_extension.go index c72ffc1a90e..51d528f7dbc 100644 --- a/models/identitygovernance/custom_task_extension.go +++ b/models/identitygovernance/custom_task_extension.go @@ -116,6 +116,16 @@ func (m *CustomTaskExtension) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } + res["replyMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCustomTaskExtensionReplyMode) + if err != nil { + return err + } + if val != nil { + m.SetReplyMode(val.(*CustomTaskExtensionReplyMode)) + } + return nil + } return res } // GetLastModifiedBy gets the lastModifiedBy property value. The unique identifier of the Microsoft Entra user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. @@ -142,6 +152,18 @@ func (m *CustomTaskExtension) GetLastModifiedDateTime()(*i336074805fc853987abe6f } return nil } +// GetReplyMode gets the replyMode property value. The replyMode property +// returns a *CustomTaskExtensionReplyMode when successful +func (m *CustomTaskExtension) GetReplyMode()(*CustomTaskExtensionReplyMode) { + val, err := m.GetBackingStore().Get("replyMode") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CustomTaskExtensionReplyMode) + } + return nil +} // Serialize serializes information the current object func (m *CustomTaskExtension) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.CustomCalloutExtension.Serialize(writer) @@ -178,6 +200,13 @@ func (m *CustomTaskExtension) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } + if m.GetReplyMode() != nil { + cast := (*m.GetReplyMode()).String() + err = writer.WriteStringValue("replyMode", &cast) + if err != nil { + return err + } + } return nil } // SetCallbackConfiguration sets the callbackConfiguration property value. The callback configuration for a custom task extension. @@ -215,6 +244,13 @@ func (m *CustomTaskExtension) SetLastModifiedDateTime(value *i336074805fc853987a panic(err) } } +// SetReplyMode sets the replyMode property value. The replyMode property +func (m *CustomTaskExtension) SetReplyMode(value *CustomTaskExtensionReplyMode)() { + err := m.GetBackingStore().Set("replyMode", value) + if err != nil { + panic(err) + } +} type CustomTaskExtensionable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable @@ -223,9 +259,11 @@ type CustomTaskExtensionable interface { GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastModifiedBy()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetReplyMode()(*CustomTaskExtensionReplyMode) SetCallbackConfiguration(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomExtensionCallbackConfigurationable)() SetCreatedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastModifiedBy(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetReplyMode(value *CustomTaskExtensionReplyMode)() } diff --git a/models/identitygovernance/custom_task_extension_callout_data.go b/models/identitygovernance/custom_task_extension_callout_data.go index 05dae139c71..2e897291076 100644 --- a/models/identitygovernance/custom_task_extension_callout_data.go +++ b/models/identitygovernance/custom_task_extension_callout_data.go @@ -39,6 +39,16 @@ func (m *CustomTaskExtensionCalloutData) GetFieldDeserializers()(map[string]func } return nil } + res["targetSubject"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkflowSubjectFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetTargetSubject(val.(WorkflowSubjectable)) + } + return nil + } res["task"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateTaskFromDiscriminatorValue) if err != nil { @@ -83,6 +93,18 @@ func (m *CustomTaskExtensionCalloutData) GetSubject()(ie233ee762e29b4ba6970aa2a2 } return nil } +// GetTargetSubject gets the targetSubject property value. The target subject for workflow execution. +// returns a WorkflowSubjectable when successful +func (m *CustomTaskExtensionCalloutData) GetTargetSubject()(WorkflowSubjectable) { + val, err := m.GetBackingStore().Get("targetSubject") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkflowSubjectable) + } + return nil +} // GetTask gets the task property value. The task property // returns a Taskable when successful func (m *CustomTaskExtensionCalloutData) GetTask()(Taskable) { @@ -131,6 +153,12 @@ func (m *CustomTaskExtensionCalloutData) Serialize(writer i878a80d2330e89d268963 return err } } + { + err = writer.WriteObjectValue("targetSubject", m.GetTargetSubject()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("task", m.GetTask()) if err != nil { @@ -158,6 +186,13 @@ func (m *CustomTaskExtensionCalloutData) SetSubject(value ie233ee762e29b4ba6970a panic(err) } } +// SetTargetSubject sets the targetSubject property value. The target subject for workflow execution. +func (m *CustomTaskExtensionCalloutData) SetTargetSubject(value WorkflowSubjectable)() { + err := m.GetBackingStore().Set("targetSubject", value) + if err != nil { + panic(err) + } +} // SetTask sets the task property value. The task property func (m *CustomTaskExtensionCalloutData) SetTask(value Taskable)() { err := m.GetBackingStore().Set("task", value) @@ -183,10 +218,12 @@ type CustomTaskExtensionCalloutDataable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomExtensionDataable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetSubject()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable) + GetTargetSubject()(WorkflowSubjectable) GetTask()(Taskable) GetTaskProcessingresult()(TaskProcessingResultable) GetWorkflow()(Workflowable) SetSubject(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable)() + SetTargetSubject(value WorkflowSubjectable)() SetTask(value Taskable)() SetTaskProcessingresult(value TaskProcessingResultable)() SetWorkflow(value Workflowable)() diff --git a/models/identitygovernance/custom_task_extension_reply_mode.go b/models/identitygovernance/custom_task_extension_reply_mode.go new file mode 100644 index 00000000000..2cb05b43f01 --- /dev/null +++ b/models/identitygovernance/custom_task_extension_reply_mode.go @@ -0,0 +1,42 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance +type CustomTaskExtensionReplyMode int + +const ( + NONE_CUSTOMTASKEXTENSIONREPLYMODE CustomTaskExtensionReplyMode = iota + CALLBACK_CUSTOMTASKEXTENSIONREPLYMODE + RESPONSE_CUSTOMTASKEXTENSIONREPLYMODE + UNKNOWNFUTUREVALUE_CUSTOMTASKEXTENSIONREPLYMODE +) + +func (i CustomTaskExtensionReplyMode) String() string { + return []string{"none", "callback", "response", "unknownFutureValue"}[i] +} +func ParseCustomTaskExtensionReplyMode(v string) (any, error) { + result := NONE_CUSTOMTASKEXTENSIONREPLYMODE + switch v { + case "none": + result = NONE_CUSTOMTASKEXTENSIONREPLYMODE + case "callback": + result = CALLBACK_CUSTOMTASKEXTENSIONREPLYMODE + case "response": + result = RESPONSE_CUSTOMTASKEXTENSIONREPLYMODE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CUSTOMTASKEXTENSIONREPLYMODE + default: + return nil, nil + } + return &result, nil +} +func SerializeCustomTaskExtensionReplyMode(values []CustomTaskExtensionReplyMode) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i CustomTaskExtensionReplyMode) isMultiValue() bool { + return false +} diff --git a/models/identitygovernance/custom_task_extension_response_data.go b/models/identitygovernance/custom_task_extension_response_data.go new file mode 100644 index 00000000000..ec61e037a0f --- /dev/null +++ b/models/identitygovernance/custom_task_extension_response_data.go @@ -0,0 +1,163 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type CustomTaskExtensionResponseData struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomExtensionData +} +// NewCustomTaskExtensionResponseData instantiates a new CustomTaskExtensionResponseData and sets the default values. +func NewCustomTaskExtensionResponseData()(*CustomTaskExtensionResponseData) { + m := &CustomTaskExtensionResponseData{ + CustomExtensionData: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewCustomExtensionData(), + } + odataTypeValue := "#microsoft.graph.identityGovernance.customTaskExtensionResponseData" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCustomTaskExtensionResponseDataFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCustomTaskExtensionResponseDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCustomTaskExtensionResponseData(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CustomTaskExtensionResponseData) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CustomExtensionData.GetFieldDeserializers() + res["operationStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCustomTaskExtensionOperationStatus) + if err != nil { + return err + } + if val != nil { + m.SetOperationStatus(val.(*CustomTaskExtensionOperationStatus)) + } + return nil + } + res["statusReasons"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetStatusReasons(res) + } + return nil + } + res["targetSubject"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkflowSubjectFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetTargetSubject(val.(WorkflowSubjectable)) + } + return nil + } + return res +} +// GetOperationStatus gets the operationStatus property value. The operationStatus property +// returns a *CustomTaskExtensionOperationStatus when successful +func (m *CustomTaskExtensionResponseData) GetOperationStatus()(*CustomTaskExtensionOperationStatus) { + val, err := m.GetBackingStore().Get("operationStatus") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CustomTaskExtensionOperationStatus) + } + return nil +} +// GetStatusReasons gets the statusReasons property value. A collection of status reason strings. May be empty. +// returns a []string when successful +func (m *CustomTaskExtensionResponseData) GetStatusReasons()([]string) { + val, err := m.GetBackingStore().Get("statusReasons") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetTargetSubject gets the targetSubject property value. The workflow subject that was processed by the custom task extension. +// returns a WorkflowSubjectable when successful +func (m *CustomTaskExtensionResponseData) GetTargetSubject()(WorkflowSubjectable) { + val, err := m.GetBackingStore().Get("targetSubject") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkflowSubjectable) + } + return nil +} +// Serialize serializes information the current object +func (m *CustomTaskExtensionResponseData) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CustomExtensionData.Serialize(writer) + if err != nil { + return err + } + if m.GetOperationStatus() != nil { + cast := (*m.GetOperationStatus()).String() + err = writer.WriteStringValue("operationStatus", &cast) + if err != nil { + return err + } + } + if m.GetStatusReasons() != nil { + err = writer.WriteCollectionOfStringValues("statusReasons", m.GetStatusReasons()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("targetSubject", m.GetTargetSubject()) + if err != nil { + return err + } + } + return nil +} +// SetOperationStatus sets the operationStatus property value. The operationStatus property +func (m *CustomTaskExtensionResponseData) SetOperationStatus(value *CustomTaskExtensionOperationStatus)() { + err := m.GetBackingStore().Set("operationStatus", value) + if err != nil { + panic(err) + } +} +// SetStatusReasons sets the statusReasons property value. A collection of status reason strings. May be empty. +func (m *CustomTaskExtensionResponseData) SetStatusReasons(value []string)() { + err := m.GetBackingStore().Set("statusReasons", value) + if err != nil { + panic(err) + } +} +// SetTargetSubject sets the targetSubject property value. The workflow subject that was processed by the custom task extension. +func (m *CustomTaskExtensionResponseData) SetTargetSubject(value WorkflowSubjectable)() { + err := m.GetBackingStore().Set("targetSubject", value) + if err != nil { + panic(err) + } +} +type CustomTaskExtensionResponseDataable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomExtensionDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOperationStatus()(*CustomTaskExtensionOperationStatus) + GetStatusReasons()([]string) + GetTargetSubject()(WorkflowSubjectable) + SetOperationStatus(value *CustomTaskExtensionOperationStatus)() + SetStatusReasons(value []string)() + SetTargetSubject(value WorkflowSubjectable)() +} diff --git a/models/identitygovernance/lifecycle_management_settings.go b/models/identitygovernance/lifecycle_management_settings.go index 98846db6e2e..8452bdb6822 100644 --- a/models/identitygovernance/lifecycle_management_settings.go +++ b/models/identitygovernance/lifecycle_management_settings.go @@ -49,6 +49,16 @@ func (m *LifecycleManagementSettings) GetFieldDeserializers()(map[string]func(i8 } return nil } + res["quarantineConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateQuarantineConfigurationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetQuarantineConfiguration(val.(QuarantineConfigurationable)) + } + return nil + } res["workflowScheduleIntervalInHours"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -61,6 +71,18 @@ func (m *LifecycleManagementSettings) GetFieldDeserializers()(map[string]func(i8 } return res } +// GetQuarantineConfiguration gets the quarantineConfiguration property value. The quarantineConfiguration property +// returns a QuarantineConfigurationable when successful +func (m *LifecycleManagementSettings) GetQuarantineConfiguration()(QuarantineConfigurationable) { + val, err := m.GetBackingStore().Get("quarantineConfiguration") + if err != nil { + panic(err) + } + if val != nil { + return val.(QuarantineConfigurationable) + } + return nil +} // GetWorkflowScheduleIntervalInHours gets the workflowScheduleIntervalInHours property value. The interval in hours at which all workflows running in the tenant should be scheduled for execution. This interval has a minimum value of 1 and a maximum value of 24. The default value is 3 hours. // returns a *int32 when successful func (m *LifecycleManagementSettings) GetWorkflowScheduleIntervalInHours()(*int32) { @@ -85,6 +107,12 @@ func (m *LifecycleManagementSettings) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteObjectValue("quarantineConfiguration", m.GetQuarantineConfiguration()) + if err != nil { + return err + } + } { err = writer.WriteInt32Value("workflowScheduleIntervalInHours", m.GetWorkflowScheduleIntervalInHours()) if err != nil { @@ -100,6 +128,13 @@ func (m *LifecycleManagementSettings) SetEmailSettings(value ie233ee762e29b4ba69 panic(err) } } +// SetQuarantineConfiguration sets the quarantineConfiguration property value. The quarantineConfiguration property +func (m *LifecycleManagementSettings) SetQuarantineConfiguration(value QuarantineConfigurationable)() { + err := m.GetBackingStore().Set("quarantineConfiguration", value) + if err != nil { + panic(err) + } +} // SetWorkflowScheduleIntervalInHours sets the workflowScheduleIntervalInHours property value. The interval in hours at which all workflows running in the tenant should be scheduled for execution. This interval has a minimum value of 1 and a maximum value of 24. The default value is 3 hours. func (m *LifecycleManagementSettings) SetWorkflowScheduleIntervalInHours(value *int32)() { err := m.GetBackingStore().Set("workflowScheduleIntervalInHours", value) @@ -111,7 +146,9 @@ type LifecycleManagementSettingsable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetEmailSettings()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmailSettingsable) + GetQuarantineConfiguration()(QuarantineConfigurationable) GetWorkflowScheduleIntervalInHours()(*int32) SetEmailSettings(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmailSettingsable)() + SetQuarantineConfiguration(value QuarantineConfigurationable)() SetWorkflowScheduleIntervalInHours(value *int32)() } diff --git a/models/identitygovernance/lifecycle_task_category.go b/models/identitygovernance/lifecycle_task_category.go index 187ed0017c3..6a49a6435ce 100644 --- a/models/identitygovernance/lifecycle_task_category.go +++ b/models/identitygovernance/lifecycle_task_category.go @@ -13,12 +13,13 @@ const ( LEAVER_LIFECYCLETASKCATEGORY = 2 UNKNOWNFUTUREVALUE_LIFECYCLETASKCATEGORY = 4 MOVER_LIFECYCLETASKCATEGORY = 8 + EXTENSIBILITY_LIFECYCLETASKCATEGORY = 16 ) func (i LifecycleTaskCategory) String() string { var values []string - options := []string{"joiner", "leaver", "unknownFutureValue", "mover"} - for p := 0; p < 4; p++ { + options := []string{"joiner", "leaver", "unknownFutureValue", "mover", "extensibility"} + for p := 0; p < 5; p++ { mantis := LifecycleTaskCategory(int(math.Pow(2, float64(p)))) if i&mantis == mantis { values = append(values, options[p]) @@ -39,6 +40,8 @@ func ParseLifecycleTaskCategory(v string) (any, error) { result |= UNKNOWNFUTUREVALUE_LIFECYCLETASKCATEGORY case "mover": result |= MOVER_LIFECYCLETASKCATEGORY + case "extensibility": + result |= EXTENSIBILITY_LIFECYCLETASKCATEGORY default: return nil, nil } diff --git a/models/identitygovernance/lifecycle_workflow_category.go b/models/identitygovernance/lifecycle_workflow_category.go index 0e119897901..277c21fc36e 100644 --- a/models/identitygovernance/lifecycle_workflow_category.go +++ b/models/identitygovernance/lifecycle_workflow_category.go @@ -9,10 +9,11 @@ const ( LEAVER_LIFECYCLEWORKFLOWCATEGORY UNKNOWNFUTUREVALUE_LIFECYCLEWORKFLOWCATEGORY MOVER_LIFECYCLEWORKFLOWCATEGORY + EXTENSIBILITY_LIFECYCLEWORKFLOWCATEGORY ) func (i LifecycleWorkflowCategory) String() string { - return []string{"joiner", "leaver", "unknownFutureValue", "mover"}[i] + return []string{"joiner", "leaver", "unknownFutureValue", "mover", "extensibility"}[i] } func ParseLifecycleWorkflowCategory(v string) (any, error) { result := JOINER_LIFECYCLEWORKFLOWCATEGORY @@ -25,6 +26,8 @@ func ParseLifecycleWorkflowCategory(v string) (any, error) { result = UNKNOWNFUTUREVALUE_LIFECYCLEWORKFLOWCATEGORY case "mover": result = MOVER_LIFECYCLEWORKFLOWCATEGORY + case "extensibility": + result = EXTENSIBILITY_LIFECYCLEWORKFLOWCATEGORY default: return nil, nil } diff --git a/models/identitygovernance/lifecycle_workflow_processing_status.go b/models/identitygovernance/lifecycle_workflow_processing_status.go index 129e06dd1cd..1179cb79a05 100644 --- a/models/identitygovernance/lifecycle_workflow_processing_status.go +++ b/models/identitygovernance/lifecycle_workflow_processing_status.go @@ -13,10 +13,11 @@ const ( FAILED_LIFECYCLEWORKFLOWPROCESSINGSTATUS UNKNOWNFUTUREVALUE_LIFECYCLEWORKFLOWPROCESSINGSTATUS CANCELING_LIFECYCLEWORKFLOWPROCESSINGSTATUS + QUARANTINED_LIFECYCLEWORKFLOWPROCESSINGSTATUS ) func (i LifecycleWorkflowProcessingStatus) String() string { - return []string{"queued", "inProgress", "completed", "completedWithErrors", "canceled", "failed", "unknownFutureValue", "canceling"}[i] + return []string{"queued", "inProgress", "completed", "completedWithErrors", "canceled", "failed", "unknownFutureValue", "canceling", "quarantined"}[i] } func ParseLifecycleWorkflowProcessingStatus(v string) (any, error) { result := QUEUED_LIFECYCLEWORKFLOWPROCESSINGSTATUS @@ -37,6 +38,8 @@ func ParseLifecycleWorkflowProcessingStatus(v string) (any, error) { result = UNKNOWNFUTUREVALUE_LIFECYCLEWORKFLOWPROCESSINGSTATUS case "canceling": result = CANCELING_LIFECYCLEWORKFLOWPROCESSINGSTATUS + case "quarantined": + result = QUARANTINED_LIFECYCLEWORKFLOWPROCESSINGSTATUS default: return nil, nil } diff --git a/models/identitygovernance/match_mode.go b/models/identitygovernance/match_mode.go new file mode 100644 index 00000000000..623c67da818 --- /dev/null +++ b/models/identitygovernance/match_mode.go @@ -0,0 +1,39 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance +type MatchMode int + +const ( + ANY_MATCHMODE MatchMode = iota + ALL_MATCHMODE + UNKNOWNFUTUREVALUE_MATCHMODE +) + +func (i MatchMode) String() string { + return []string{"any", "all", "unknownFutureValue"}[i] +} +func ParseMatchMode(v string) (any, error) { + result := ANY_MATCHMODE + switch v { + case "any": + result = ANY_MATCHMODE + case "all": + result = ALL_MATCHMODE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_MATCHMODE + default: + return nil, nil + } + return &result, nil +} +func SerializeMatchMode(values []MatchMode) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i MatchMode) isMultiValue() bool { + return false +} diff --git a/models/identitygovernance/percentage_based_quarantine_condition.go b/models/identitygovernance/percentage_based_quarantine_condition.go new file mode 100644 index 00000000000..74680a1cb4f --- /dev/null +++ b/models/identitygovernance/percentage_based_quarantine_condition.go @@ -0,0 +1,81 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type PercentageBasedQuarantineCondition struct { + QuarantineCondition +} +// NewPercentageBasedQuarantineCondition instantiates a new PercentageBasedQuarantineCondition and sets the default values. +func NewPercentageBasedQuarantineCondition()(*PercentageBasedQuarantineCondition) { + m := &PercentageBasedQuarantineCondition{ + QuarantineCondition: *NewQuarantineCondition(), + } + odataTypeValue := "#microsoft.graph.identityGovernance.percentageBasedQuarantineCondition" + m.SetOdataType(&odataTypeValue) + return m +} +// CreatePercentageBasedQuarantineConditionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreatePercentageBasedQuarantineConditionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPercentageBasedQuarantineCondition(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *PercentageBasedQuarantineCondition) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.QuarantineCondition.GetFieldDeserializers() + res["percentage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetPercentage(val) + } + return nil + } + return res +} +// GetPercentage gets the percentage property value. The percentage property +// returns a *int32 when successful +func (m *PercentageBasedQuarantineCondition) GetPercentage()(*int32) { + val, err := m.GetBackingStore().Get("percentage") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *PercentageBasedQuarantineCondition) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.QuarantineCondition.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteInt32Value("percentage", m.GetPercentage()) + if err != nil { + return err + } + } + return nil +} +// SetPercentage sets the percentage property value. The percentage property +func (m *PercentageBasedQuarantineCondition) SetPercentage(value *int32)() { + err := m.GetBackingStore().Set("percentage", value) + if err != nil { + panic(err) + } +} +type PercentageBasedQuarantineConditionable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + QuarantineConditionable + GetPercentage()(*int32) + SetPercentage(value *int32)() +} diff --git a/models/identitygovernance/provisioning_attribute_mapping.go b/models/identitygovernance/provisioning_attribute_mapping.go new file mode 100644 index 00000000000..739608959f2 --- /dev/null +++ b/models/identitygovernance/provisioning_attribute_mapping.go @@ -0,0 +1,44 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ProvisioningAttributeMapping struct { + WorkflowExecutionConditions +} +// NewProvisioningAttributeMapping instantiates a new ProvisioningAttributeMapping and sets the default values. +func NewProvisioningAttributeMapping()(*ProvisioningAttributeMapping) { + m := &ProvisioningAttributeMapping{ + WorkflowExecutionConditions: *NewWorkflowExecutionConditions(), + } + odataTypeValue := "#microsoft.graph.identityGovernance.provisioningAttributeMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateProvisioningAttributeMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateProvisioningAttributeMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewProvisioningAttributeMapping(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ProvisioningAttributeMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.WorkflowExecutionConditions.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *ProvisioningAttributeMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.WorkflowExecutionConditions.Serialize(writer) + if err != nil { + return err + } + return nil +} +type ProvisioningAttributeMappingable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + WorkflowExecutionConditionsable +} diff --git a/models/identitygovernance/provisioning_object_workflow_subject.go b/models/identitygovernance/provisioning_object_workflow_subject.go new file mode 100644 index 00000000000..167e6bc02c3 --- /dev/null +++ b/models/identitygovernance/provisioning_object_workflow_subject.go @@ -0,0 +1,130 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ProvisioningObjectWorkflowSubject struct { + WorkflowSubject +} +// NewProvisioningObjectWorkflowSubject instantiates a new ProvisioningObjectWorkflowSubject and sets the default values. +func NewProvisioningObjectWorkflowSubject()(*ProvisioningObjectWorkflowSubject) { + m := &ProvisioningObjectWorkflowSubject{ + WorkflowSubject: *NewWorkflowSubject(), + } + odataTypeValue := "#microsoft.graph.identityGovernance.provisioningObjectWorkflowSubject" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateProvisioningObjectWorkflowSubjectFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateProvisioningObjectWorkflowSubjectFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewProvisioningObjectWorkflowSubject(), nil +} +// GetAttributeSetEntries gets the attributeSetEntries property value. The attribute set entries representing the subject's attributes. Each entry is a key-value pair. +// returns a []AttributeSetEntryable when successful +func (m *ProvisioningObjectWorkflowSubject) GetAttributeSetEntries()([]AttributeSetEntryable) { + val, err := m.GetBackingStore().Get("attributeSetEntries") + if err != nil { + panic(err) + } + if val != nil { + return val.([]AttributeSetEntryable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ProvisioningObjectWorkflowSubject) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.WorkflowSubject.GetFieldDeserializers() + res["attributeSetEntries"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateAttributeSetEntryFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]AttributeSetEntryable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(AttributeSetEntryable) + } + } + m.SetAttributeSetEntries(res) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + return res +} +// GetId gets the id property value. The identifier of the provisioning object subject. +// returns a *string when successful +func (m *ProvisioningObjectWorkflowSubject) GetId()(*string) { + val, err := m.GetBackingStore().Get("id") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ProvisioningObjectWorkflowSubject) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.WorkflowSubject.Serialize(writer) + if err != nil { + return err + } + if m.GetAttributeSetEntries() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAttributeSetEntries())) + for i, v := range m.GetAttributeSetEntries() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("attributeSetEntries", cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + return nil +} +// SetAttributeSetEntries sets the attributeSetEntries property value. The attribute set entries representing the subject's attributes. Each entry is a key-value pair. +func (m *ProvisioningObjectWorkflowSubject) SetAttributeSetEntries(value []AttributeSetEntryable)() { + err := m.GetBackingStore().Set("attributeSetEntries", value) + if err != nil { + panic(err) + } +} +// SetId sets the id property value. The identifier of the provisioning object subject. +func (m *ProvisioningObjectWorkflowSubject) SetId(value *string)() { + err := m.GetBackingStore().Set("id", value) + if err != nil { + panic(err) + } +} +type ProvisioningObjectWorkflowSubjectable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + WorkflowSubjectable + GetAttributeSetEntries()([]AttributeSetEntryable) + GetId()(*string) + SetAttributeSetEntries(value []AttributeSetEntryable)() + SetId(value *string)() +} diff --git a/models/identitygovernance/quarantine_condition.go b/models/identitygovernance/quarantine_condition.go new file mode 100644 index 00000000000..4150b0ad9a5 --- /dev/null +++ b/models/identitygovernance/quarantine_condition.go @@ -0,0 +1,136 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type QuarantineCondition struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewQuarantineCondition instantiates a new QuarantineCondition and sets the default values. +func NewQuarantineCondition()(*QuarantineCondition) { + m := &QuarantineCondition{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateQuarantineConditionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateQuarantineConditionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.identityGovernance.countBasedQuarantineCondition": + return NewCountBasedQuarantineCondition(), nil + case "#microsoft.graph.identityGovernance.percentageBasedQuarantineCondition": + return NewPercentageBasedQuarantineCondition(), nil + } + } + } + } + return NewQuarantineCondition(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *QuarantineCondition) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *QuarantineCondition) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *QuarantineCondition) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *QuarantineCondition) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *QuarantineCondition) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *QuarantineCondition) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *QuarantineCondition) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *QuarantineCondition) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type QuarantineConditionable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} diff --git a/models/identitygovernance/quarantine_configuration.go b/models/identitygovernance/quarantine_configuration.go new file mode 100644 index 00000000000..63e94b0284e --- /dev/null +++ b/models/identitygovernance/quarantine_configuration.go @@ -0,0 +1,203 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type QuarantineConfiguration struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewQuarantineConfiguration instantiates a new QuarantineConfiguration and sets the default values. +func NewQuarantineConfiguration()(*QuarantineConfiguration) { + m := &QuarantineConfiguration{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateQuarantineConfigurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateQuarantineConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewQuarantineConfiguration(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *QuarantineConfiguration) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *QuarantineConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetConditions gets the conditions property value. The conditions property +// returns a []QuarantineConditionable when successful +func (m *QuarantineConfiguration) GetConditions()([]QuarantineConditionable) { + val, err := m.GetBackingStore().Get("conditions") + if err != nil { + panic(err) + } + if val != nil { + return val.([]QuarantineConditionable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *QuarantineConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["conditions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateQuarantineConditionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]QuarantineConditionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(QuarantineConditionable) + } + } + m.SetConditions(res) + } + return nil + } + res["matchMode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMatchMode) + if err != nil { + return err + } + if val != nil { + m.SetMatchMode(val.(*MatchMode)) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetMatchMode gets the matchMode property value. The matchMode property +// returns a *MatchMode when successful +func (m *QuarantineConfiguration) GetMatchMode()(*MatchMode) { + val, err := m.GetBackingStore().Get("matchMode") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MatchMode) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *QuarantineConfiguration) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *QuarantineConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetConditions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetConditions())) + for i, v := range m.GetConditions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("conditions", cast) + if err != nil { + return err + } + } + if m.GetMatchMode() != nil { + cast := (*m.GetMatchMode()).String() + err := writer.WriteStringValue("matchMode", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *QuarantineConfiguration) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *QuarantineConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetConditions sets the conditions property value. The conditions property +func (m *QuarantineConfiguration) SetConditions(value []QuarantineConditionable)() { + err := m.GetBackingStore().Set("conditions", value) + if err != nil { + panic(err) + } +} +// SetMatchMode sets the matchMode property value. The matchMode property +func (m *QuarantineConfiguration) SetMatchMode(value *MatchMode)() { + err := m.GetBackingStore().Set("matchMode", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *QuarantineConfiguration) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type QuarantineConfigurationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetConditions()([]QuarantineConditionable) + GetMatchMode()(*MatchMode) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetConditions(value []QuarantineConditionable)() + SetMatchMode(value *MatchMode)() + SetOdataType(value *string)() +} diff --git a/models/identitygovernance/quarantine_details.go b/models/identitygovernance/quarantine_details.go new file mode 100644 index 00000000000..db023be9316 --- /dev/null +++ b/models/identitygovernance/quarantine_details.go @@ -0,0 +1,229 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type QuarantineDetails struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewQuarantineDetails instantiates a new QuarantineDetails and sets the default values. +func NewQuarantineDetails()(*QuarantineDetails) { + m := &QuarantineDetails{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateQuarantineDetailsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateQuarantineDetailsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewQuarantineDetails(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *QuarantineDetails) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *QuarantineDetails) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *QuarantineDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["quarantinedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetQuarantinedDateTime(val) + } + return nil + } + res["quarantineReason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetQuarantineReason(val) + } + return nil + } + res["quarantineType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseQuarantineType) + if err != nil { + return err + } + if val != nil { + m.SetQuarantineType(val.(*QuarantineType)) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *QuarantineDetails) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetQuarantinedDateTime gets the quarantinedDateTime property value. The quarantinedDateTime property +// returns a *Time when successful +func (m *QuarantineDetails) GetQuarantinedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("quarantinedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetQuarantineReason gets the quarantineReason property value. The quarantineReason property +// returns a *string when successful +func (m *QuarantineDetails) GetQuarantineReason()(*string) { + val, err := m.GetBackingStore().Get("quarantineReason") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetQuarantineType gets the quarantineType property value. The quarantineType property +// returns a *QuarantineType when successful +func (m *QuarantineDetails) GetQuarantineType()(*QuarantineType) { + val, err := m.GetBackingStore().Get("quarantineType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*QuarantineType) + } + return nil +} +// Serialize serializes information the current object +func (m *QuarantineDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("quarantinedDateTime", m.GetQuarantinedDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("quarantineReason", m.GetQuarantineReason()) + if err != nil { + return err + } + } + if m.GetQuarantineType() != nil { + cast := (*m.GetQuarantineType()).String() + err := writer.WriteStringValue("quarantineType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *QuarantineDetails) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *QuarantineDetails) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *QuarantineDetails) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetQuarantinedDateTime sets the quarantinedDateTime property value. The quarantinedDateTime property +func (m *QuarantineDetails) SetQuarantinedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("quarantinedDateTime", value) + if err != nil { + panic(err) + } +} +// SetQuarantineReason sets the quarantineReason property value. The quarantineReason property +func (m *QuarantineDetails) SetQuarantineReason(value *string)() { + err := m.GetBackingStore().Set("quarantineReason", value) + if err != nil { + panic(err) + } +} +// SetQuarantineType sets the quarantineType property value. The quarantineType property +func (m *QuarantineDetails) SetQuarantineType(value *QuarantineType)() { + err := m.GetBackingStore().Set("quarantineType", value) + if err != nil { + panic(err) + } +} +type QuarantineDetailsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetQuarantinedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetQuarantineReason()(*string) + GetQuarantineType()(*QuarantineType) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetQuarantinedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetQuarantineReason(value *string)() + SetQuarantineType(value *QuarantineType)() +} diff --git a/models/identitygovernance/quarantine_type.go b/models/identitygovernance/quarantine_type.go new file mode 100644 index 00000000000..40c3410fc6b --- /dev/null +++ b/models/identitygovernance/quarantine_type.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance +type QuarantineType int + +const ( + NOTQUARANTINED_QUARANTINETYPE QuarantineType = iota + COUNTBASEDTHRESHOLDEXCEEDED_QUARANTINETYPE + PERCENTAGEBASEDTHRESHOLDEXCEEDED_QUARANTINETYPE + MULTIPLECONDITIONSEXCEEDED_QUARANTINETYPE + UNKNOWNFUTUREVALUE_QUARANTINETYPE +) + +func (i QuarantineType) String() string { + return []string{"notQuarantined", "countBasedThresholdExceeded", "percentageBasedThresholdExceeded", "multipleConditionsExceeded", "unknownFutureValue"}[i] +} +func ParseQuarantineType(v string) (any, error) { + result := NOTQUARANTINED_QUARANTINETYPE + switch v { + case "notQuarantined": + result = NOTQUARANTINED_QUARANTINETYPE + case "countBasedThresholdExceeded": + result = COUNTBASEDTHRESHOLDEXCEEDED_QUARANTINETYPE + case "percentageBasedThresholdExceeded": + result = PERCENTAGEBASEDTHRESHOLDEXCEEDED_QUARANTINETYPE + case "multipleConditionsExceeded": + result = MULTIPLECONDITIONSEXCEEDED_QUARANTINETYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_QUARANTINETYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeQuarantineType(values []QuarantineType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i QuarantineType) isMultiValue() bool { + return false +} diff --git a/models/identitygovernance/run.go b/models/identitygovernance/run.go index 47b723d2fdc..e84e231bb5f 100644 --- a/models/identitygovernance/run.go +++ b/models/identitygovernance/run.go @@ -172,6 +172,22 @@ func (m *Run) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3 } return nil } + res["subjectProcessingResults"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateSubjectProcessingResultFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]SubjectProcessingResultable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(SubjectProcessingResultable) + } + } + m.SetSubjectProcessingResults(res) + } + return nil + } res["successfulUsersCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -316,6 +332,18 @@ func (m *Run) GetStartedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a163 } return nil } +// GetSubjectProcessingResults gets the subjectProcessingResults property value. The processing results for each subject in this workflow run. +// returns a []SubjectProcessingResultable when successful +func (m *Run) GetSubjectProcessingResults()([]SubjectProcessingResultable) { + val, err := m.GetBackingStore().Get("subjectProcessingResults") + if err != nil { + panic(err) + } + if val != nil { + return val.([]SubjectProcessingResultable) + } + return nil +} // GetSuccessfulUsersCount gets the successfulUsersCount property value. The number of successfully completed users in the run. // returns a *int32 when successful func (m *Run) GetSuccessfulUsersCount()(*int32) { @@ -467,6 +495,18 @@ func (m *Run) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493 return err } } + if m.GetSubjectProcessingResults() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSubjectProcessingResults())) + for i, v := range m.GetSubjectProcessingResults() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("subjectProcessingResults", cast) + if err != nil { + return err + } + } { err = writer.WriteInt32Value("successfulUsersCount", m.GetSuccessfulUsersCount()) if err != nil { @@ -587,6 +627,13 @@ func (m *Run) SetStartedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077 panic(err) } } +// SetSubjectProcessingResults sets the subjectProcessingResults property value. The processing results for each subject in this workflow run. +func (m *Run) SetSubjectProcessingResults(value []SubjectProcessingResultable)() { + err := m.GetBackingStore().Set("subjectProcessingResults", value) + if err != nil { + panic(err) + } +} // SetSuccessfulUsersCount sets the successfulUsersCount property value. The number of successfully completed users in the run. func (m *Run) SetSuccessfulUsersCount(value *int32)() { err := m.GetBackingStore().Set("successfulUsersCount", value) @@ -648,6 +695,7 @@ type Runable interface { GetReprocessedRuns()([]Runable) GetScheduledDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetStartedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetSubjectProcessingResults()([]SubjectProcessingResultable) GetSuccessfulUsersCount()(*int32) GetTaskProcessingResults()([]TaskProcessingResultable) GetTotalTasksCount()(*int32) @@ -664,6 +712,7 @@ type Runable interface { SetReprocessedRuns(value []Runable)() SetScheduledDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetStartedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetSubjectProcessingResults(value []SubjectProcessingResultable)() SetSuccessfulUsersCount(value *int32)() SetTaskProcessingResults(value []TaskProcessingResultable)() SetTotalTasksCount(value *int32)() diff --git a/models/identitygovernance/subject_processing_result.go b/models/identitygovernance/subject_processing_result.go new file mode 100644 index 00000000000..8ccf1cf5e42 --- /dev/null +++ b/models/identitygovernance/subject_processing_result.go @@ -0,0 +1,514 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type SubjectProcessingResult struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity +} +// NewSubjectProcessingResult instantiates a new SubjectProcessingResult and sets the default values. +func NewSubjectProcessingResult()(*SubjectProcessingResult) { + m := &SubjectProcessingResult{ + Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), + } + return m +} +// CreateSubjectProcessingResultFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateSubjectProcessingResultFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewSubjectProcessingResult(), nil +} +// GetCompletedDateTime gets the completedDateTime property value. The date and time when the subject processing completed. Read-only. +// returns a *Time when successful +func (m *SubjectProcessingResult) GetCompletedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("completedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetFailedTasksCount gets the failedTasksCount property value. The count of tasks that failed for the subject. Read-only. +// returns a *int32 when successful +func (m *SubjectProcessingResult) GetFailedTasksCount()(*int32) { + val, err := m.GetBackingStore().Get("failedTasksCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *SubjectProcessingResult) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["completedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCompletedDateTime(val) + } + return nil + } + res["failedTasksCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetFailedTasksCount(val) + } + return nil + } + res["processingStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseLifecycleWorkflowProcessingStatus) + if err != nil { + return err + } + if val != nil { + m.SetProcessingStatus(val.(*LifecycleWorkflowProcessingStatus)) + } + return nil + } + res["reprocessedRuns"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateRunFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]Runable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(Runable) + } + } + m.SetReprocessedRuns(res) + } + return nil + } + res["scheduledDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetScheduledDateTime(val) + } + return nil + } + res["startedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStartedDateTime(val) + } + return nil + } + res["subject"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkflowSubjectFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSubject(val.(WorkflowSubjectable)) + } + return nil + } + res["taskProcessingResults"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateTaskProcessingResultFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]TaskProcessingResultable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(TaskProcessingResultable) + } + } + m.SetTaskProcessingResults(res) + } + return nil + } + res["totalTasksCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotalTasksCount(val) + } + return nil + } + res["totalUnprocessedTasksCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetTotalUnprocessedTasksCount(val) + } + return nil + } + res["workflowExecutionType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseWorkflowExecutionType) + if err != nil { + return err + } + if val != nil { + m.SetWorkflowExecutionType(val.(*WorkflowExecutionType)) + } + return nil + } + res["workflowVersion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetWorkflowVersion(val) + } + return nil + } + return res +} +// GetProcessingStatus gets the processingStatus property value. The processingStatus property +// returns a *LifecycleWorkflowProcessingStatus when successful +func (m *SubjectProcessingResult) GetProcessingStatus()(*LifecycleWorkflowProcessingStatus) { + val, err := m.GetBackingStore().Get("processingStatus") + if err != nil { + panic(err) + } + if val != nil { + return val.(*LifecycleWorkflowProcessingStatus) + } + return nil +} +// GetReprocessedRuns gets the reprocessedRuns property value. The reprocessed runs associated with this subject processing result. +// returns a []Runable when successful +func (m *SubjectProcessingResult) GetReprocessedRuns()([]Runable) { + val, err := m.GetBackingStore().Get("reprocessedRuns") + if err != nil { + panic(err) + } + if val != nil { + return val.([]Runable) + } + return nil +} +// GetScheduledDateTime gets the scheduledDateTime property value. The date and time when processing was scheduled. Read-only. +// returns a *Time when successful +func (m *SubjectProcessingResult) GetScheduledDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("scheduledDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetStartedDateTime gets the startedDateTime property value. The date and time when processing started. Read-only. +// returns a *Time when successful +func (m *SubjectProcessingResult) GetStartedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("startedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetSubject gets the subject property value. The subject property +// returns a WorkflowSubjectable when successful +func (m *SubjectProcessingResult) GetSubject()(WorkflowSubjectable) { + val, err := m.GetBackingStore().Get("subject") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkflowSubjectable) + } + return nil +} +// GetTaskProcessingResults gets the taskProcessingResults property value. The task-level processing results for this subject. Read-only. +// returns a []TaskProcessingResultable when successful +func (m *SubjectProcessingResult) GetTaskProcessingResults()([]TaskProcessingResultable) { + val, err := m.GetBackingStore().Get("taskProcessingResults") + if err != nil { + panic(err) + } + if val != nil { + return val.([]TaskProcessingResultable) + } + return nil +} +// GetTotalTasksCount gets the totalTasksCount property value. The total number of tasks in the workflow. Read-only. +// returns a *int32 when successful +func (m *SubjectProcessingResult) GetTotalTasksCount()(*int32) { + val, err := m.GetBackingStore().Get("totalTasksCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetTotalUnprocessedTasksCount gets the totalUnprocessedTasksCount property value. The count of tasks that have not yet been processed. Read-only. +// returns a *int32 when successful +func (m *SubjectProcessingResult) GetTotalUnprocessedTasksCount()(*int32) { + val, err := m.GetBackingStore().Get("totalUnprocessedTasksCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetWorkflowExecutionType gets the workflowExecutionType property value. The workflowExecutionType property +// returns a *WorkflowExecutionType when successful +func (m *SubjectProcessingResult) GetWorkflowExecutionType()(*WorkflowExecutionType) { + val, err := m.GetBackingStore().Get("workflowExecutionType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*WorkflowExecutionType) + } + return nil +} +// GetWorkflowVersion gets the workflowVersion property value. The version of the workflow at the time of execution. Read-only. +// returns a *int32 when successful +func (m *SubjectProcessingResult) GetWorkflowVersion()(*int32) { + val, err := m.GetBackingStore().Get("workflowVersion") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *SubjectProcessingResult) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteTimeValue("completedDateTime", m.GetCompletedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("failedTasksCount", m.GetFailedTasksCount()) + if err != nil { + return err + } + } + if m.GetProcessingStatus() != nil { + cast := (*m.GetProcessingStatus()).String() + err = writer.WriteStringValue("processingStatus", &cast) + if err != nil { + return err + } + } + if m.GetReprocessedRuns() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetReprocessedRuns())) + for i, v := range m.GetReprocessedRuns() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("reprocessedRuns", cast) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("scheduledDateTime", m.GetScheduledDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("startedDateTime", m.GetStartedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("subject", m.GetSubject()) + if err != nil { + return err + } + } + if m.GetTaskProcessingResults() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTaskProcessingResults())) + for i, v := range m.GetTaskProcessingResults() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("taskProcessingResults", cast) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("totalTasksCount", m.GetTotalTasksCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("totalUnprocessedTasksCount", m.GetTotalUnprocessedTasksCount()) + if err != nil { + return err + } + } + if m.GetWorkflowExecutionType() != nil { + cast := (*m.GetWorkflowExecutionType()).String() + err = writer.WriteStringValue("workflowExecutionType", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("workflowVersion", m.GetWorkflowVersion()) + if err != nil { + return err + } + } + return nil +} +// SetCompletedDateTime sets the completedDateTime property value. The date and time when the subject processing completed. Read-only. +func (m *SubjectProcessingResult) SetCompletedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("completedDateTime", value) + if err != nil { + panic(err) + } +} +// SetFailedTasksCount sets the failedTasksCount property value. The count of tasks that failed for the subject. Read-only. +func (m *SubjectProcessingResult) SetFailedTasksCount(value *int32)() { + err := m.GetBackingStore().Set("failedTasksCount", value) + if err != nil { + panic(err) + } +} +// SetProcessingStatus sets the processingStatus property value. The processingStatus property +func (m *SubjectProcessingResult) SetProcessingStatus(value *LifecycleWorkflowProcessingStatus)() { + err := m.GetBackingStore().Set("processingStatus", value) + if err != nil { + panic(err) + } +} +// SetReprocessedRuns sets the reprocessedRuns property value. The reprocessed runs associated with this subject processing result. +func (m *SubjectProcessingResult) SetReprocessedRuns(value []Runable)() { + err := m.GetBackingStore().Set("reprocessedRuns", value) + if err != nil { + panic(err) + } +} +// SetScheduledDateTime sets the scheduledDateTime property value. The date and time when processing was scheduled. Read-only. +func (m *SubjectProcessingResult) SetScheduledDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("scheduledDateTime", value) + if err != nil { + panic(err) + } +} +// SetStartedDateTime sets the startedDateTime property value. The date and time when processing started. Read-only. +func (m *SubjectProcessingResult) SetStartedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("startedDateTime", value) + if err != nil { + panic(err) + } +} +// SetSubject sets the subject property value. The subject property +func (m *SubjectProcessingResult) SetSubject(value WorkflowSubjectable)() { + err := m.GetBackingStore().Set("subject", value) + if err != nil { + panic(err) + } +} +// SetTaskProcessingResults sets the taskProcessingResults property value. The task-level processing results for this subject. Read-only. +func (m *SubjectProcessingResult) SetTaskProcessingResults(value []TaskProcessingResultable)() { + err := m.GetBackingStore().Set("taskProcessingResults", value) + if err != nil { + panic(err) + } +} +// SetTotalTasksCount sets the totalTasksCount property value. The total number of tasks in the workflow. Read-only. +func (m *SubjectProcessingResult) SetTotalTasksCount(value *int32)() { + err := m.GetBackingStore().Set("totalTasksCount", value) + if err != nil { + panic(err) + } +} +// SetTotalUnprocessedTasksCount sets the totalUnprocessedTasksCount property value. The count of tasks that have not yet been processed. Read-only. +func (m *SubjectProcessingResult) SetTotalUnprocessedTasksCount(value *int32)() { + err := m.GetBackingStore().Set("totalUnprocessedTasksCount", value) + if err != nil { + panic(err) + } +} +// SetWorkflowExecutionType sets the workflowExecutionType property value. The workflowExecutionType property +func (m *SubjectProcessingResult) SetWorkflowExecutionType(value *WorkflowExecutionType)() { + err := m.GetBackingStore().Set("workflowExecutionType", value) + if err != nil { + panic(err) + } +} +// SetWorkflowVersion sets the workflowVersion property value. The version of the workflow at the time of execution. Read-only. +func (m *SubjectProcessingResult) SetWorkflowVersion(value *int32)() { + err := m.GetBackingStore().Set("workflowVersion", value) + if err != nil { + panic(err) + } +} +type SubjectProcessingResultable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCompletedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetFailedTasksCount()(*int32) + GetProcessingStatus()(*LifecycleWorkflowProcessingStatus) + GetReprocessedRuns()([]Runable) + GetScheduledDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetStartedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetSubject()(WorkflowSubjectable) + GetTaskProcessingResults()([]TaskProcessingResultable) + GetTotalTasksCount()(*int32) + GetTotalUnprocessedTasksCount()(*int32) + GetWorkflowExecutionType()(*WorkflowExecutionType) + GetWorkflowVersion()(*int32) + SetCompletedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetFailedTasksCount(value *int32)() + SetProcessingStatus(value *LifecycleWorkflowProcessingStatus)() + SetReprocessedRuns(value []Runable)() + SetScheduledDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetStartedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetSubject(value WorkflowSubjectable)() + SetTaskProcessingResults(value []TaskProcessingResultable)() + SetTotalTasksCount(value *int32)() + SetTotalUnprocessedTasksCount(value *int32)() + SetWorkflowExecutionType(value *WorkflowExecutionType)() + SetWorkflowVersion(value *int32)() +} diff --git a/models/identitygovernance/subject_processing_result_collection_response.go b/models/identitygovernance/subject_processing_result_collection_response.go new file mode 100644 index 00000000000..e08ca3157e6 --- /dev/null +++ b/models/identitygovernance/subject_processing_result_collection_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type SubjectProcessingResultCollectionResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewSubjectProcessingResultCollectionResponse instantiates a new SubjectProcessingResultCollectionResponse and sets the default values. +func NewSubjectProcessingResultCollectionResponse()(*SubjectProcessingResultCollectionResponse) { + m := &SubjectProcessingResultCollectionResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateSubjectProcessingResultCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateSubjectProcessingResultCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewSubjectProcessingResultCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *SubjectProcessingResultCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateSubjectProcessingResultFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]SubjectProcessingResultable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(SubjectProcessingResultable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []SubjectProcessingResultable when successful +func (m *SubjectProcessingResultCollectionResponse) GetValue()([]SubjectProcessingResultable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]SubjectProcessingResultable) + } + return nil +} +// Serialize serializes information the current object +func (m *SubjectProcessingResultCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *SubjectProcessingResultCollectionResponse) SetValue(value []SubjectProcessingResultable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type SubjectProcessingResultCollectionResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]SubjectProcessingResultable) + SetValue(value []SubjectProcessingResultable)() +} diff --git a/models/identitygovernance/task_processing_result.go b/models/identitygovernance/task_processing_result.go index ee5dc644539..e0e2ad86490 100644 --- a/models/identitygovernance/task_processing_result.go +++ b/models/identitygovernance/task_processing_result.go @@ -144,6 +144,16 @@ func (m *TaskProcessingResult) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["workflowSubject"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkflowSubjectFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetWorkflowSubject(val.(WorkflowSubjectable)) + } + return nil + } return res } // GetProcessingInfo gets the processingInfo property value. Additional human-readable context about the task processing outcome. This property contains information about edge cases where the task completed successfully but the expected action wasn't performed because the target was already in the desired state, such as when the user was already a member of the specified group. Returns null when no additional context is needed. Nullable. @@ -206,6 +216,18 @@ func (m *TaskProcessingResult) GetTask()(Taskable) { } return nil } +// GetWorkflowSubject gets the workflowSubject property value. The workflow subject associated with this task processing result. Populated for extensibility and provisioning workflows. +// returns a WorkflowSubjectable when successful +func (m *TaskProcessingResult) GetWorkflowSubject()(WorkflowSubjectable) { + val, err := m.GetBackingStore().Get("workflowSubject") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkflowSubjectable) + } + return nil +} // Serialize serializes information the current object func (m *TaskProcessingResult) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -261,6 +283,12 @@ func (m *TaskProcessingResult) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err = writer.WriteObjectValue("workflowSubject", m.GetWorkflowSubject()) + if err != nil { + return err + } + } return nil } // SetCompletedDateTime sets the completedDateTime property value. The date time when taskProcessingResult execution ended. Value is null if task execution is still in progress.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. @@ -319,6 +347,13 @@ func (m *TaskProcessingResult) SetTask(value Taskable)() { panic(err) } } +// SetWorkflowSubject sets the workflowSubject property value. The workflow subject associated with this task processing result. Populated for extensibility and provisioning workflows. +func (m *TaskProcessingResult) SetWorkflowSubject(value WorkflowSubjectable)() { + err := m.GetBackingStore().Set("workflowSubject", value) + if err != nil { + panic(err) + } +} type TaskProcessingResultable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable @@ -330,6 +365,7 @@ type TaskProcessingResultable interface { GetStartedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetSubject()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable) GetTask()(Taskable) + GetWorkflowSubject()(WorkflowSubjectable) SetCompletedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetFailureReason(value *string)() @@ -338,4 +374,5 @@ type TaskProcessingResultable interface { SetStartedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetSubject(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable)() SetTask(value Taskable)() + SetWorkflowSubject(value WorkflowSubjectable)() } diff --git a/models/identitygovernance/workflow.go b/models/identitygovernance/workflow.go index b1b5db1b79d..cf0043e60f7 100644 --- a/models/identitygovernance/workflow.go +++ b/models/identitygovernance/workflow.go @@ -116,6 +116,16 @@ func (m *Workflow) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return nil } + res["quarantineDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateQuarantineDetailsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetQuarantineDetails(val.(QuarantineDetailsable)) + } + return nil + } res["runs"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateRunFromDiscriminatorValue) if err != nil { @@ -132,6 +142,32 @@ func (m *Workflow) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return nil } + res["settings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkflowSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSettings(val.(WorkflowSettingable)) + } + return nil + } + res["subjectProcessingResults"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateSubjectProcessingResultFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]SubjectProcessingResultable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(SubjectProcessingResultable) + } + } + m.SetSubjectProcessingResults(res) + } + return nil + } res["taskReports"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateTaskReportFromDiscriminatorValue) if err != nil { @@ -228,6 +264,18 @@ func (m *Workflow) GetPreviewScope()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697 } return nil } +// GetQuarantineDetails gets the quarantineDetails property value. The quarantineDetails property +// returns a QuarantineDetailsable when successful +func (m *Workflow) GetQuarantineDetails()(QuarantineDetailsable) { + val, err := m.GetBackingStore().Get("quarantineDetails") + if err != nil { + panic(err) + } + if val != nil { + return val.(QuarantineDetailsable) + } + return nil +} // GetRuns gets the runs property value. Workflow runs. // returns a []Runable when successful func (m *Workflow) GetRuns()([]Runable) { @@ -240,6 +288,30 @@ func (m *Workflow) GetRuns()([]Runable) { } return nil } +// GetSettings gets the settings property value. The settings property +// returns a WorkflowSettingable when successful +func (m *Workflow) GetSettings()(WorkflowSettingable) { + val, err := m.GetBackingStore().Get("settings") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkflowSettingable) + } + return nil +} +// GetSubjectProcessingResults gets the subjectProcessingResults property value. The subjectProcessingResults property +// returns a []SubjectProcessingResultable when successful +func (m *Workflow) GetSubjectProcessingResults()([]SubjectProcessingResultable) { + val, err := m.GetBackingStore().Get("subjectProcessingResults") + if err != nil { + panic(err) + } + if val != nil { + return val.([]SubjectProcessingResultable) + } + return nil +} // GetTaskReports gets the taskReports property value. Represents the aggregation of task execution data for tasks within a workflow object. // returns a []TaskReportable when successful func (m *Workflow) GetTaskReports()([]TaskReportable) { @@ -336,6 +408,12 @@ func (m *Workflow) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + { + err = writer.WriteObjectValue("quarantineDetails", m.GetQuarantineDetails()) + if err != nil { + return err + } + } if m.GetRuns() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRuns())) for i, v := range m.GetRuns() { @@ -348,6 +426,24 @@ func (m *Workflow) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + { + err = writer.WriteObjectValue("settings", m.GetSettings()) + if err != nil { + return err + } + } + if m.GetSubjectProcessingResults() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSubjectProcessingResults())) + for i, v := range m.GetSubjectProcessingResults() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("subjectProcessingResults", cast) + if err != nil { + return err + } + } if m.GetTaskReports() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTaskReports())) for i, v := range m.GetTaskReports() { @@ -427,6 +523,13 @@ func (m *Workflow) SetPreviewScope(value []ie233ee762e29b4ba6970aa2a2efce4b7fde1 panic(err) } } +// SetQuarantineDetails sets the quarantineDetails property value. The quarantineDetails property +func (m *Workflow) SetQuarantineDetails(value QuarantineDetailsable)() { + err := m.GetBackingStore().Set("quarantineDetails", value) + if err != nil { + panic(err) + } +} // SetRuns sets the runs property value. Workflow runs. func (m *Workflow) SetRuns(value []Runable)() { err := m.GetBackingStore().Set("runs", value) @@ -434,6 +537,20 @@ func (m *Workflow) SetRuns(value []Runable)() { panic(err) } } +// SetSettings sets the settings property value. The settings property +func (m *Workflow) SetSettings(value WorkflowSettingable)() { + err := m.GetBackingStore().Set("settings", value) + if err != nil { + panic(err) + } +} +// SetSubjectProcessingResults sets the subjectProcessingResults property value. The subjectProcessingResults property +func (m *Workflow) SetSubjectProcessingResults(value []SubjectProcessingResultable)() { + err := m.GetBackingStore().Set("subjectProcessingResults", value) + if err != nil { + panic(err) + } +} // SetTaskReports sets the taskReports property value. Represents the aggregation of task execution data for tasks within a workflow object. func (m *Workflow) SetTaskReports(value []TaskReportable)() { err := m.GetBackingStore().Set("taskReports", value) @@ -470,7 +587,10 @@ type Workflowable interface { GetId()(*string) GetNextScheduleRunDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetPreviewScope()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable) + GetQuarantineDetails()(QuarantineDetailsable) GetRuns()([]Runable) + GetSettings()(WorkflowSettingable) + GetSubjectProcessingResults()([]SubjectProcessingResultable) GetTaskReports()([]TaskReportable) GetUserProcessingResults()([]UserProcessingResultable) GetVersion()(*int32) @@ -480,7 +600,10 @@ type Workflowable interface { SetId(value *string)() SetNextScheduleRunDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetPreviewScope(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable)() + SetQuarantineDetails(value QuarantineDetailsable)() SetRuns(value []Runable)() + SetSettings(value WorkflowSettingable)() + SetSubjectProcessingResults(value []SubjectProcessingResultable)() SetTaskReports(value []TaskReportable)() SetUserProcessingResults(value []UserProcessingResultable)() SetVersion(value *int32)() diff --git a/models/identitygovernance/workflow_execution_conditions.go b/models/identitygovernance/workflow_execution_conditions.go index 514ac834272..29fee223585 100644 --- a/models/identitygovernance/workflow_execution_conditions.go +++ b/models/identitygovernance/workflow_execution_conditions.go @@ -37,6 +37,8 @@ func CreateWorkflowExecutionConditionsFromDiscriminatorValue(parseNode i878a80d2 switch *mappingValue { case "#microsoft.graph.identityGovernance.onDemandExecutionOnly": return NewOnDemandExecutionOnly(), nil + case "#microsoft.graph.identityGovernance.provisioningAttributeMapping": + return NewProvisioningAttributeMapping(), nil case "#microsoft.graph.identityGovernance.triggerAndScopeBasedConditions": return NewTriggerAndScopeBasedConditions(), nil } diff --git a/models/identitygovernance/workflow_execution_type.go b/models/identitygovernance/workflow_execution_type.go index 639ae48d6c4..793e0ac2563 100644 --- a/models/identitygovernance/workflow_execution_type.go +++ b/models/identitygovernance/workflow_execution_type.go @@ -10,10 +10,11 @@ const ( UNKNOWNFUTUREVALUE_WORKFLOWEXECUTIONTYPE ACTIVATEDWITHSCOPE_WORKFLOWEXECUTIONTYPE PREVIEW_WORKFLOWEXECUTIONTYPE + EXTENSIBILITYONDEMAND_WORKFLOWEXECUTIONTYPE ) func (i WorkflowExecutionType) String() string { - return []string{"scheduled", "onDemand", "unknownFutureValue", "activatedWithScope", "preview"}[i] + return []string{"scheduled", "onDemand", "unknownFutureValue", "activatedWithScope", "preview", "extensibilityOnDemand"}[i] } func ParseWorkflowExecutionType(v string) (any, error) { result := SCHEDULED_WORKFLOWEXECUTIONTYPE @@ -28,6 +29,8 @@ func ParseWorkflowExecutionType(v string) (any, error) { result = ACTIVATEDWITHSCOPE_WORKFLOWEXECUTIONTYPE case "preview": result = PREVIEW_WORKFLOWEXECUTIONTYPE + case "extensibilityOnDemand": + result = EXTENSIBILITYONDEMAND_WORKFLOWEXECUTIONTYPE default: return nil, nil } diff --git a/models/identitygovernance/workflow_setting.go b/models/identitygovernance/workflow_setting.go new file mode 100644 index 00000000000..cf4c11a7a59 --- /dev/null +++ b/models/identitygovernance/workflow_setting.go @@ -0,0 +1,153 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type WorkflowSetting struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewWorkflowSetting instantiates a new WorkflowSetting and sets the default values. +func NewWorkflowSetting()(*WorkflowSetting) { + m := &WorkflowSetting{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateWorkflowSettingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWorkflowSettingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWorkflowSetting(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *WorkflowSetting) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *WorkflowSetting) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *WorkflowSetting) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["quarantineConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateQuarantineConfigurationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetQuarantineConfiguration(val.(QuarantineConfigurationable)) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *WorkflowSetting) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetQuarantineConfiguration gets the quarantineConfiguration property value. The quarantineConfiguration property +// returns a QuarantineConfigurationable when successful +func (m *WorkflowSetting) GetQuarantineConfiguration()(QuarantineConfigurationable) { + val, err := m.GetBackingStore().Get("quarantineConfiguration") + if err != nil { + panic(err) + } + if val != nil { + return val.(QuarantineConfigurationable) + } + return nil +} +// Serialize serializes information the current object +func (m *WorkflowSetting) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("quarantineConfiguration", m.GetQuarantineConfiguration()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *WorkflowSetting) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *WorkflowSetting) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WorkflowSetting) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetQuarantineConfiguration sets the quarantineConfiguration property value. The quarantineConfiguration property +func (m *WorkflowSetting) SetQuarantineConfiguration(value QuarantineConfigurationable)() { + err := m.GetBackingStore().Set("quarantineConfiguration", value) + if err != nil { + panic(err) + } +} +type WorkflowSettingable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetQuarantineConfiguration()(QuarantineConfigurationable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetQuarantineConfiguration(value QuarantineConfigurationable)() +} diff --git a/models/identitygovernance/workflow_subject.go b/models/identitygovernance/workflow_subject.go new file mode 100644 index 00000000000..d3818122788 --- /dev/null +++ b/models/identitygovernance/workflow_subject.go @@ -0,0 +1,134 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type WorkflowSubject struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewWorkflowSubject instantiates a new WorkflowSubject and sets the default values. +func NewWorkflowSubject()(*WorkflowSubject) { + m := &WorkflowSubject{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateWorkflowSubjectFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWorkflowSubjectFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.identityGovernance.provisioningObjectWorkflowSubject": + return NewProvisioningObjectWorkflowSubject(), nil + } + } + } + } + return NewWorkflowSubject(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *WorkflowSubject) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *WorkflowSubject) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *WorkflowSubject) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *WorkflowSubject) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *WorkflowSubject) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *WorkflowSubject) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *WorkflowSubject) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WorkflowSubject) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type WorkflowSubjectable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} diff --git a/models/identitygovernance/workflow_version.go b/models/identitygovernance/workflow_version.go index c0d67155131..53b761150d7 100644 --- a/models/identitygovernance/workflow_version.go +++ b/models/identitygovernance/workflow_version.go @@ -28,6 +28,16 @@ func CreateWorkflowVersionFromDiscriminatorValue(parseNode i878a80d2330e89d26896 // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *WorkflowVersion) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.WorkflowBase.GetFieldDeserializers() + res["settings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkflowSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSettings(val.(WorkflowSettingable)) + } + return nil + } res["versionNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -40,6 +50,18 @@ func (m *WorkflowVersion) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return res } +// GetSettings gets the settings property value. The settings property +// returns a WorkflowSettingable when successful +func (m *WorkflowVersion) GetSettings()(WorkflowSettingable) { + val, err := m.GetBackingStore().Get("settings") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkflowSettingable) + } + return nil +} // GetVersionNumber gets the versionNumber property value. The version of the workflow.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. // returns a *int32 when successful func (m *WorkflowVersion) GetVersionNumber()(*int32) { @@ -58,6 +80,12 @@ func (m *WorkflowVersion) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 if err != nil { return err } + { + err = writer.WriteObjectValue("settings", m.GetSettings()) + if err != nil { + return err + } + } { err = writer.WriteInt32Value("versionNumber", m.GetVersionNumber()) if err != nil { @@ -66,6 +94,13 @@ func (m *WorkflowVersion) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 } return nil } +// SetSettings sets the settings property value. The settings property +func (m *WorkflowVersion) SetSettings(value WorkflowSettingable)() { + err := m.GetBackingStore().Set("settings", value) + if err != nil { + panic(err) + } +} // SetVersionNumber sets the versionNumber property value. The version of the workflow.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. func (m *WorkflowVersion) SetVersionNumber(value *int32)() { err := m.GetBackingStore().Set("versionNumber", value) @@ -76,6 +111,8 @@ func (m *WorkflowVersion) SetVersionNumber(value *int32)() { type WorkflowVersionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable WorkflowBaseable + GetSettings()(WorkflowSettingable) GetVersionNumber()(*int32) + SetSettings(value WorkflowSettingable)() SetVersionNumber(value *int32)() } diff --git a/models/ingestion_source.go b/models/ingestion_source.go index cba1b69c1cf..9b6563f0ca7 100644 --- a/models/ingestion_source.go +++ b/models/ingestion_source.go @@ -12,7 +12,7 @@ const ( CUSTOM_INGESTIONSOURCE // Indicates the category is ingested through system ingestion process BUILTIN_INGESTIONSOURCE - // Evolvable enumeration sentinel value. Do not use. + // Unknown future enum value UNKNOWNFUTUREVALUE_INGESTIONSOURCE ) diff --git a/models/ios_ddm_lob_app_assignment_settings.go b/models/ios_ddm_lob_app_assignment_settings.go index 4ba7f0e60f5..632992bea8c 100644 --- a/models/ios_ddm_lob_app_assignment_settings.go +++ b/models/ios_ddm_lob_app_assignment_settings.go @@ -49,6 +49,42 @@ func (m *IosDdmLobAppAssignmentSettings) GetAssociatedDomainsDirectDownloadAllow } return nil } +// GetCellularSliceConfigurationId gets the cellularSliceConfigurationId property value. The cellularSliceConfigurationId property +// returns a *string when successful +func (m *IosDdmLobAppAssignmentSettings) GetCellularSliceConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("cellularSliceConfigurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetContentFilterConfigurationId gets the contentFilterConfigurationId property value. The contentFilterConfigurationId property +// returns a *string when successful +func (m *IosDdmLobAppAssignmentSettings) GetContentFilterConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("contentFilterConfigurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDnsProxyConfigurationId gets the dnsProxyConfigurationId property value. The dnsProxyConfigurationId property +// returns a *string when successful +func (m *IosDdmLobAppAssignmentSettings) GetDnsProxyConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("dnsProxyConfigurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *IosDdmLobAppAssignmentSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { @@ -79,6 +115,36 @@ func (m *IosDdmLobAppAssignmentSettings) GetFieldDeserializers()(map[string]func } return nil } + res["cellularSliceConfigurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCellularSliceConfigurationId(val) + } + return nil + } + res["contentFilterConfigurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetContentFilterConfigurationId(val) + } + return nil + } + res["dnsProxyConfigurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDnsProxyConfigurationId(val) + } + return nil + } res["preventManagedAppBackup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -89,6 +155,16 @@ func (m *IosDdmLobAppAssignmentSettings) GetFieldDeserializers()(map[string]func } return nil } + res["relayConfigurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRelayConfigurationId(val) + } + return nil + } res["tapToPayScreenLockEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -123,6 +199,18 @@ func (m *IosDdmLobAppAssignmentSettings) GetPreventManagedAppBackup()(*bool) { } return nil } +// GetRelayConfigurationId gets the relayConfigurationId property value. The relayConfigurationId property +// returns a *string when successful +func (m *IosDdmLobAppAssignmentSettings) GetRelayConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("relayConfigurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetTapToPayScreenLockEnabled gets the tapToPayScreenLockEnabled property value. When true, the device locks its screen after every transaction that requires a customer’s card PIN. When false, the user can choose the behavior. Default value is false. // returns a *bool when successful func (m *IosDdmLobAppAssignmentSettings) GetTapToPayScreenLockEnabled()(*bool) { @@ -165,12 +253,36 @@ func (m *IosDdmLobAppAssignmentSettings) Serialize(writer i878a80d2330e89d268963 return err } } + { + err = writer.WriteStringValue("cellularSliceConfigurationId", m.GetCellularSliceConfigurationId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("contentFilterConfigurationId", m.GetContentFilterConfigurationId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("dnsProxyConfigurationId", m.GetDnsProxyConfigurationId()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("preventManagedAppBackup", m.GetPreventManagedAppBackup()) if err != nil { return err } } + { + err = writer.WriteStringValue("relayConfigurationId", m.GetRelayConfigurationId()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("tapToPayScreenLockEnabled", m.GetTapToPayScreenLockEnabled()) if err != nil { @@ -199,6 +311,27 @@ func (m *IosDdmLobAppAssignmentSettings) SetAssociatedDomainsDirectDownloadAllow panic(err) } } +// SetCellularSliceConfigurationId sets the cellularSliceConfigurationId property value. The cellularSliceConfigurationId property +func (m *IosDdmLobAppAssignmentSettings) SetCellularSliceConfigurationId(value *string)() { + err := m.GetBackingStore().Set("cellularSliceConfigurationId", value) + if err != nil { + panic(err) + } +} +// SetContentFilterConfigurationId sets the contentFilterConfigurationId property value. The contentFilterConfigurationId property +func (m *IosDdmLobAppAssignmentSettings) SetContentFilterConfigurationId(value *string)() { + err := m.GetBackingStore().Set("contentFilterConfigurationId", value) + if err != nil { + panic(err) + } +} +// SetDnsProxyConfigurationId sets the dnsProxyConfigurationId property value. The dnsProxyConfigurationId property +func (m *IosDdmLobAppAssignmentSettings) SetDnsProxyConfigurationId(value *string)() { + err := m.GetBackingStore().Set("dnsProxyConfigurationId", value) + if err != nil { + panic(err) + } +} // SetPreventManagedAppBackup sets the preventManagedAppBackup property value. When true, indicates that the app should not be backed up to iCloud. When false, indicates that the app may be backed up to iCloud. Default is false. func (m *IosDdmLobAppAssignmentSettings) SetPreventManagedAppBackup(value *bool)() { err := m.GetBackingStore().Set("preventManagedAppBackup", value) @@ -206,6 +339,13 @@ func (m *IosDdmLobAppAssignmentSettings) SetPreventManagedAppBackup(value *bool) panic(err) } } +// SetRelayConfigurationId sets the relayConfigurationId property value. The relayConfigurationId property +func (m *IosDdmLobAppAssignmentSettings) SetRelayConfigurationId(value *string)() { + err := m.GetBackingStore().Set("relayConfigurationId", value) + if err != nil { + panic(err) + } +} // SetTapToPayScreenLockEnabled sets the tapToPayScreenLockEnabled property value. When true, the device locks its screen after every transaction that requires a customer’s card PIN. When false, the user can choose the behavior. Default value is false. func (m *IosDdmLobAppAssignmentSettings) SetTapToPayScreenLockEnabled(value *bool)() { err := m.GetBackingStore().Set("tapToPayScreenLockEnabled", value) @@ -225,12 +365,20 @@ type IosDdmLobAppAssignmentSettingsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAssociatedDomains()([]string) GetAssociatedDomainsDirectDownloadAllowed()(*bool) + GetCellularSliceConfigurationId()(*string) + GetContentFilterConfigurationId()(*string) + GetDnsProxyConfigurationId()(*string) GetPreventManagedAppBackup()(*bool) + GetRelayConfigurationId()(*string) GetTapToPayScreenLockEnabled()(*bool) GetVpnConfigurationId()(*string) SetAssociatedDomains(value []string)() SetAssociatedDomainsDirectDownloadAllowed(value *bool)() + SetCellularSliceConfigurationId(value *string)() + SetContentFilterConfigurationId(value *string)() + SetDnsProxyConfigurationId(value *string)() SetPreventManagedAppBackup(value *bool)() + SetRelayConfigurationId(value *string)() SetTapToPayScreenLockEnabled(value *bool)() SetVpnConfigurationId(value *string)() } diff --git a/models/ios_ddm_store_app_assignment_settings.go b/models/ios_ddm_store_app_assignment_settings.go new file mode 100644 index 00000000000..123d91adcef --- /dev/null +++ b/models/ios_ddm_store_app_assignment_settings.go @@ -0,0 +1,497 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// IosDdmStoreAppAssignmentSettings contains properties used to assign an iOS Declarative Device Management (DDM) Store App to a group. +type IosDdmStoreAppAssignmentSettings struct { + MobileAppAssignmentSettings +} +// NewIosDdmStoreAppAssignmentSettings instantiates a new IosDdmStoreAppAssignmentSettings and sets the default values. +func NewIosDdmStoreAppAssignmentSettings()(*IosDdmStoreAppAssignmentSettings) { + m := &IosDdmStoreAppAssignmentSettings{ + MobileAppAssignmentSettings: *NewMobileAppAssignmentSettings(), + } + odataTypeValue := "#microsoft.graph.iosDdmStoreAppAssignmentSettings" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateIosDdmStoreAppAssignmentSettingsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateIosDdmStoreAppAssignmentSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewIosDdmStoreAppAssignmentSettings(), nil +} +// GetAllowDownloadsOverCellular gets the allowDownloadsOverCellular property value. Specifies whether the app may be downloaded over cellular connections. Possible values are: 'alwaysOn', 'alwaysOff', 'storeSettings'. By default, this value is set to 'storeSettings'. +// returns a *DdmAppAllowDownloadsOverCellular when successful +func (m *IosDdmStoreAppAssignmentSettings) GetAllowDownloadsOverCellular()(*DdmAppAllowDownloadsOverCellular) { + val, err := m.GetBackingStore().Get("allowDownloadsOverCellular") + if err != nil { + panic(err) + } + if val != nil { + return val.(*DdmAppAllowDownloadsOverCellular) + } + return nil +} +// GetAssociatedDomains gets the associatedDomains property value. Domain names to associate with the app +// returns a []string when successful +func (m *IosDdmStoreAppAssignmentSettings) GetAssociatedDomains()([]string) { + val, err := m.GetBackingStore().Get("associatedDomains") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetAssociatedDomainsDirectDownloadAllowed gets the associatedDomainsDirectDownloadAllowed property value. When true, the system allows direct downloads for the AssociatedDomains. When false, the system will not allow direct downloads for the AssociatedDomains. Default is false. +// returns a *bool when successful +func (m *IosDdmStoreAppAssignmentSettings) GetAssociatedDomainsDirectDownloadAllowed()(*bool) { + val, err := m.GetBackingStore().Get("associatedDomainsDirectDownloadAllowed") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetAutomaticAppUpdates gets the automaticAppUpdates property value. Specifies whether the device automatically updates the app. Possible values are: 'alwaysOn', 'alwaysOff', 'storeSettings'. By default, this value is set to 'storeSettings'. +// returns a *DdmAppAutomaticAppUpdates when successful +func (m *IosDdmStoreAppAssignmentSettings) GetAutomaticAppUpdates()(*DdmAppAutomaticAppUpdates) { + val, err := m.GetBackingStore().Get("automaticAppUpdates") + if err != nil { + panic(err) + } + if val != nil { + return val.(*DdmAppAutomaticAppUpdates) + } + return nil +} +// GetCellularSliceConfigurationId gets the cellularSliceConfigurationId property value. The cellular slice identifier, which can be the data network name (DNN) or app category. For DNN, encode the value as 'DNN:name', where 'name' is the carrier-provided DNN name. For app category, encode the value as 'AppCategory:category', where 'category' is a carrier-provided string such as 'Enterprise1'. +// returns a *string when successful +func (m *IosDdmStoreAppAssignmentSettings) GetCellularSliceConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("cellularSliceConfigurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetContentFilterConfigurationId gets the contentFilterConfigurationId property value. The unique identifier of the content filter to associate with the app. +// returns a *string when successful +func (m *IosDdmStoreAppAssignmentSettings) GetContentFilterConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("contentFilterConfigurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDnsProxyConfigurationId gets the dnsProxyConfigurationId property value. The unique identifier of the DNS proxy to associate with the app. +// returns a *string when successful +func (m *IosDdmStoreAppAssignmentSettings) GetDnsProxyConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("dnsProxyConfigurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *IosDdmStoreAppAssignmentSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.MobileAppAssignmentSettings.GetFieldDeserializers() + res["allowDownloadsOverCellular"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseDdmAppAllowDownloadsOverCellular) + if err != nil { + return err + } + if val != nil { + m.SetAllowDownloadsOverCellular(val.(*DdmAppAllowDownloadsOverCellular)) + } + return nil + } + res["associatedDomains"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetAssociatedDomains(res) + } + return nil + } + res["associatedDomainsDirectDownloadAllowed"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAssociatedDomainsDirectDownloadAllowed(val) + } + return nil + } + res["automaticAppUpdates"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseDdmAppAutomaticAppUpdates) + if err != nil { + return err + } + if val != nil { + m.SetAutomaticAppUpdates(val.(*DdmAppAutomaticAppUpdates)) + } + return nil + } + res["cellularSliceConfigurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCellularSliceConfigurationId(val) + } + return nil + } + res["contentFilterConfigurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetContentFilterConfigurationId(val) + } + return nil + } + res["dnsProxyConfigurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDnsProxyConfigurationId(val) + } + return nil + } + res["preventManagedAppBackup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetPreventManagedAppBackup(val) + } + return nil + } + res["relayConfigurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRelayConfigurationId(val) + } + return nil + } + res["tapToPayScreenLockEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetTapToPayScreenLockEnabled(val) + } + return nil + } + res["version"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetVersion(val) + } + return nil + } + res["vpnConfigurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetVpnConfigurationId(val) + } + return nil + } + return res +} +// GetPreventManagedAppBackup gets the preventManagedAppBackup property value. When true, indicates that the app should not be backed up to iCloud. When false, indicates that the app may be backed up to iCloud. Default is false. +// returns a *bool when successful +func (m *IosDdmStoreAppAssignmentSettings) GetPreventManagedAppBackup()(*bool) { + val, err := m.GetBackingStore().Get("preventManagedAppBackup") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetRelayConfigurationId gets the relayConfigurationId property value. The unique identifier of the relay to associate with the app. +// returns a *string when successful +func (m *IosDdmStoreAppAssignmentSettings) GetRelayConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("relayConfigurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTapToPayScreenLockEnabled gets the tapToPayScreenLockEnabled property value. When true, the device locks its screen after every transaction that requires a customer's card PIN. When false, the user can choose the behavior. Default value is false. +// returns a *bool when successful +func (m *IosDdmStoreAppAssignmentSettings) GetTapToPayScreenLockEnabled()(*bool) { + val, err := m.GetBackingStore().Get("tapToPayScreenLockEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetVersion gets the version property value. Specifies the version of the Store app to install. When not set, the device installs the latest version. When set, the device installs the specified version. The device never installs an older version of the app over a newer version. +// returns a *int32 when successful +func (m *IosDdmStoreAppAssignmentSettings) GetVersion()(*int32) { + val, err := m.GetBackingStore().Get("version") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetVpnConfigurationId gets the vpnConfigurationId property value. The unique identifier of the VPN Configuration to apply to the app. +// returns a *string when successful +func (m *IosDdmStoreAppAssignmentSettings) GetVpnConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("vpnConfigurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *IosDdmStoreAppAssignmentSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.MobileAppAssignmentSettings.Serialize(writer) + if err != nil { + return err + } + if m.GetAllowDownloadsOverCellular() != nil { + cast := (*m.GetAllowDownloadsOverCellular()).String() + err = writer.WriteStringValue("allowDownloadsOverCellular", &cast) + if err != nil { + return err + } + } + if m.GetAssociatedDomains() != nil { + err = writer.WriteCollectionOfStringValues("associatedDomains", m.GetAssociatedDomains()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("associatedDomainsDirectDownloadAllowed", m.GetAssociatedDomainsDirectDownloadAllowed()) + if err != nil { + return err + } + } + if m.GetAutomaticAppUpdates() != nil { + cast := (*m.GetAutomaticAppUpdates()).String() + err = writer.WriteStringValue("automaticAppUpdates", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("cellularSliceConfigurationId", m.GetCellularSliceConfigurationId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("contentFilterConfigurationId", m.GetContentFilterConfigurationId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("dnsProxyConfigurationId", m.GetDnsProxyConfigurationId()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("preventManagedAppBackup", m.GetPreventManagedAppBackup()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("relayConfigurationId", m.GetRelayConfigurationId()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("tapToPayScreenLockEnabled", m.GetTapToPayScreenLockEnabled()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("version", m.GetVersion()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("vpnConfigurationId", m.GetVpnConfigurationId()) + if err != nil { + return err + } + } + return nil +} +// SetAllowDownloadsOverCellular sets the allowDownloadsOverCellular property value. Specifies whether the app may be downloaded over cellular connections. Possible values are: 'alwaysOn', 'alwaysOff', 'storeSettings'. By default, this value is set to 'storeSettings'. +func (m *IosDdmStoreAppAssignmentSettings) SetAllowDownloadsOverCellular(value *DdmAppAllowDownloadsOverCellular)() { + err := m.GetBackingStore().Set("allowDownloadsOverCellular", value) + if err != nil { + panic(err) + } +} +// SetAssociatedDomains sets the associatedDomains property value. Domain names to associate with the app +func (m *IosDdmStoreAppAssignmentSettings) SetAssociatedDomains(value []string)() { + err := m.GetBackingStore().Set("associatedDomains", value) + if err != nil { + panic(err) + } +} +// SetAssociatedDomainsDirectDownloadAllowed sets the associatedDomainsDirectDownloadAllowed property value. When true, the system allows direct downloads for the AssociatedDomains. When false, the system will not allow direct downloads for the AssociatedDomains. Default is false. +func (m *IosDdmStoreAppAssignmentSettings) SetAssociatedDomainsDirectDownloadAllowed(value *bool)() { + err := m.GetBackingStore().Set("associatedDomainsDirectDownloadAllowed", value) + if err != nil { + panic(err) + } +} +// SetAutomaticAppUpdates sets the automaticAppUpdates property value. Specifies whether the device automatically updates the app. Possible values are: 'alwaysOn', 'alwaysOff', 'storeSettings'. By default, this value is set to 'storeSettings'. +func (m *IosDdmStoreAppAssignmentSettings) SetAutomaticAppUpdates(value *DdmAppAutomaticAppUpdates)() { + err := m.GetBackingStore().Set("automaticAppUpdates", value) + if err != nil { + panic(err) + } +} +// SetCellularSliceConfigurationId sets the cellularSliceConfigurationId property value. The cellular slice identifier, which can be the data network name (DNN) or app category. For DNN, encode the value as 'DNN:name', where 'name' is the carrier-provided DNN name. For app category, encode the value as 'AppCategory:category', where 'category' is a carrier-provided string such as 'Enterprise1'. +func (m *IosDdmStoreAppAssignmentSettings) SetCellularSliceConfigurationId(value *string)() { + err := m.GetBackingStore().Set("cellularSliceConfigurationId", value) + if err != nil { + panic(err) + } +} +// SetContentFilterConfigurationId sets the contentFilterConfigurationId property value. The unique identifier of the content filter to associate with the app. +func (m *IosDdmStoreAppAssignmentSettings) SetContentFilterConfigurationId(value *string)() { + err := m.GetBackingStore().Set("contentFilterConfigurationId", value) + if err != nil { + panic(err) + } +} +// SetDnsProxyConfigurationId sets the dnsProxyConfigurationId property value. The unique identifier of the DNS proxy to associate with the app. +func (m *IosDdmStoreAppAssignmentSettings) SetDnsProxyConfigurationId(value *string)() { + err := m.GetBackingStore().Set("dnsProxyConfigurationId", value) + if err != nil { + panic(err) + } +} +// SetPreventManagedAppBackup sets the preventManagedAppBackup property value. When true, indicates that the app should not be backed up to iCloud. When false, indicates that the app may be backed up to iCloud. Default is false. +func (m *IosDdmStoreAppAssignmentSettings) SetPreventManagedAppBackup(value *bool)() { + err := m.GetBackingStore().Set("preventManagedAppBackup", value) + if err != nil { + panic(err) + } +} +// SetRelayConfigurationId sets the relayConfigurationId property value. The unique identifier of the relay to associate with the app. +func (m *IosDdmStoreAppAssignmentSettings) SetRelayConfigurationId(value *string)() { + err := m.GetBackingStore().Set("relayConfigurationId", value) + if err != nil { + panic(err) + } +} +// SetTapToPayScreenLockEnabled sets the tapToPayScreenLockEnabled property value. When true, the device locks its screen after every transaction that requires a customer's card PIN. When false, the user can choose the behavior. Default value is false. +func (m *IosDdmStoreAppAssignmentSettings) SetTapToPayScreenLockEnabled(value *bool)() { + err := m.GetBackingStore().Set("tapToPayScreenLockEnabled", value) + if err != nil { + panic(err) + } +} +// SetVersion sets the version property value. Specifies the version of the Store app to install. When not set, the device installs the latest version. When set, the device installs the specified version. The device never installs an older version of the app over a newer version. +func (m *IosDdmStoreAppAssignmentSettings) SetVersion(value *int32)() { + err := m.GetBackingStore().Set("version", value) + if err != nil { + panic(err) + } +} +// SetVpnConfigurationId sets the vpnConfigurationId property value. The unique identifier of the VPN Configuration to apply to the app. +func (m *IosDdmStoreAppAssignmentSettings) SetVpnConfigurationId(value *string)() { + err := m.GetBackingStore().Set("vpnConfigurationId", value) + if err != nil { + panic(err) + } +} +type IosDdmStoreAppAssignmentSettingsable interface { + MobileAppAssignmentSettingsable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAllowDownloadsOverCellular()(*DdmAppAllowDownloadsOverCellular) + GetAssociatedDomains()([]string) + GetAssociatedDomainsDirectDownloadAllowed()(*bool) + GetAutomaticAppUpdates()(*DdmAppAutomaticAppUpdates) + GetCellularSliceConfigurationId()(*string) + GetContentFilterConfigurationId()(*string) + GetDnsProxyConfigurationId()(*string) + GetPreventManagedAppBackup()(*bool) + GetRelayConfigurationId()(*string) + GetTapToPayScreenLockEnabled()(*bool) + GetVersion()(*int32) + GetVpnConfigurationId()(*string) + SetAllowDownloadsOverCellular(value *DdmAppAllowDownloadsOverCellular)() + SetAssociatedDomains(value []string)() + SetAssociatedDomainsDirectDownloadAllowed(value *bool)() + SetAutomaticAppUpdates(value *DdmAppAutomaticAppUpdates)() + SetCellularSliceConfigurationId(value *string)() + SetContentFilterConfigurationId(value *string)() + SetDnsProxyConfigurationId(value *string)() + SetPreventManagedAppBackup(value *bool)() + SetRelayConfigurationId(value *string)() + SetTapToPayScreenLockEnabled(value *bool)() + SetVersion(value *int32)() + SetVpnConfigurationId(value *string)() +} diff --git a/models/ios_ddm_vpp_app_assignment_settings.go b/models/ios_ddm_vpp_app_assignment_settings.go new file mode 100644 index 00000000000..3f181f19cfd --- /dev/null +++ b/models/ios_ddm_vpp_app_assignment_settings.go @@ -0,0 +1,534 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// IosDdmVppAppAssignmentSettings contains properties used to assign an iOS Declarative Device Management (DDM) VPP mobile app to a group. +type IosDdmVppAppAssignmentSettings struct { + MobileAppAssignmentSettings +} +// NewIosDdmVppAppAssignmentSettings instantiates a new IosDdmVppAppAssignmentSettings and sets the default values. +func NewIosDdmVppAppAssignmentSettings()(*IosDdmVppAppAssignmentSettings) { + m := &IosDdmVppAppAssignmentSettings{ + MobileAppAssignmentSettings: *NewMobileAppAssignmentSettings(), + } + odataTypeValue := "#microsoft.graph.iosDdmVppAppAssignmentSettings" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateIosDdmVppAppAssignmentSettingsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateIosDdmVppAppAssignmentSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewIosDdmVppAppAssignmentSettings(), nil +} +// GetAllowDownloadsOverCellular gets the allowDownloadsOverCellular property value. Specifies whether the app may be downloaded over cellular connections. Possible values are: 'alwaysOn', 'alwaysOff', 'storeSettings'. By default, this value is set to 'storeSettings'. +// returns a *DdmAppAllowDownloadsOverCellular when successful +func (m *IosDdmVppAppAssignmentSettings) GetAllowDownloadsOverCellular()(*DdmAppAllowDownloadsOverCellular) { + val, err := m.GetBackingStore().Get("allowDownloadsOverCellular") + if err != nil { + panic(err) + } + if val != nil { + return val.(*DdmAppAllowDownloadsOverCellular) + } + return nil +} +// GetAssociatedDomains gets the associatedDomains property value. Domain names to associate with the app +// returns a []string when successful +func (m *IosDdmVppAppAssignmentSettings) GetAssociatedDomains()([]string) { + val, err := m.GetBackingStore().Get("associatedDomains") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetAssociatedDomainsDirectDownloadAllowed gets the associatedDomainsDirectDownloadAllowed property value. When true, the system allows direct downloads for the AssociatedDomains. When false, the system will not allow direct downloads for the AssociatedDomains. Default is false. +// returns a *bool when successful +func (m *IosDdmVppAppAssignmentSettings) GetAssociatedDomainsDirectDownloadAllowed()(*bool) { + val, err := m.GetBackingStore().Get("associatedDomainsDirectDownloadAllowed") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetAutomaticAppUpdates gets the automaticAppUpdates property value. Specifies whether the device automatically updates the app. Possible values are: 'alwaysOn', 'alwaysOff', 'storeSettings'. By default, this value is set to 'storeSettings'. +// returns a *DdmAppAutomaticAppUpdates when successful +func (m *IosDdmVppAppAssignmentSettings) GetAutomaticAppUpdates()(*DdmAppAutomaticAppUpdates) { + val, err := m.GetBackingStore().Get("automaticAppUpdates") + if err != nil { + panic(err) + } + if val != nil { + return val.(*DdmAppAutomaticAppUpdates) + } + return nil +} +// GetCellularSliceConfigurationId gets the cellularSliceConfigurationId property value. The cellular slice identifier, which can be the data network name (DNN) or app category. For DNN, encode the value as 'DNN:name', where 'name' is the carrier-provided DNN name. For app category, encode the value as 'AppCategory:category', where 'category' is a carrier-provided string such as 'Enterprise1'. +// returns a *string when successful +func (m *IosDdmVppAppAssignmentSettings) GetCellularSliceConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("cellularSliceConfigurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetContentFilterConfigurationId gets the contentFilterConfigurationId property value. The unique identifier of the content filter to associate with the app. +// returns a *string when successful +func (m *IosDdmVppAppAssignmentSettings) GetContentFilterConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("contentFilterConfigurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDnsProxyConfigurationId gets the dnsProxyConfigurationId property value. The unique identifier of the DNS proxy to associate with the app. +// returns a *string when successful +func (m *IosDdmVppAppAssignmentSettings) GetDnsProxyConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("dnsProxyConfigurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *IosDdmVppAppAssignmentSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.MobileAppAssignmentSettings.GetFieldDeserializers() + res["allowDownloadsOverCellular"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseDdmAppAllowDownloadsOverCellular) + if err != nil { + return err + } + if val != nil { + m.SetAllowDownloadsOverCellular(val.(*DdmAppAllowDownloadsOverCellular)) + } + return nil + } + res["associatedDomains"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetAssociatedDomains(res) + } + return nil + } + res["associatedDomainsDirectDownloadAllowed"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAssociatedDomainsDirectDownloadAllowed(val) + } + return nil + } + res["automaticAppUpdates"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseDdmAppAutomaticAppUpdates) + if err != nil { + return err + } + if val != nil { + m.SetAutomaticAppUpdates(val.(*DdmAppAutomaticAppUpdates)) + } + return nil + } + res["cellularSliceConfigurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCellularSliceConfigurationId(val) + } + return nil + } + res["contentFilterConfigurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetContentFilterConfigurationId(val) + } + return nil + } + res["dnsProxyConfigurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDnsProxyConfigurationId(val) + } + return nil + } + res["preventManagedAppBackup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetPreventManagedAppBackup(val) + } + return nil + } + res["relayConfigurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRelayConfigurationId(val) + } + return nil + } + res["tapToPayScreenLockEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetTapToPayScreenLockEnabled(val) + } + return nil + } + res["useDeviceLicensing"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetUseDeviceLicensing(val) + } + return nil + } + res["version"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetVersion(val) + } + return nil + } + res["vpnConfigurationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetVpnConfigurationId(val) + } + return nil + } + return res +} +// GetPreventManagedAppBackup gets the preventManagedAppBackup property value. When true, indicates that the app should not be backed up to iCloud. When false, indicates that the app may be backed up to iCloud. Default is false. +// returns a *bool when successful +func (m *IosDdmVppAppAssignmentSettings) GetPreventManagedAppBackup()(*bool) { + val, err := m.GetBackingStore().Get("preventManagedAppBackup") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetRelayConfigurationId gets the relayConfigurationId property value. The unique identifier of the relay to associate with the app. +// returns a *string when successful +func (m *IosDdmVppAppAssignmentSettings) GetRelayConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("relayConfigurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTapToPayScreenLockEnabled gets the tapToPayScreenLockEnabled property value. When true, the device locks its screen after every transaction that requires a customer's card PIN. When false, the user can choose the behavior. Default value is false. +// returns a *bool when successful +func (m *IosDdmVppAppAssignmentSettings) GetTapToPayScreenLockEnabled()(*bool) { + val, err := m.GetBackingStore().Get("tapToPayScreenLockEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetUseDeviceLicensing gets the useDeviceLicensing property value. Whether or not to use device licensing. +// returns a *bool when successful +func (m *IosDdmVppAppAssignmentSettings) GetUseDeviceLicensing()(*bool) { + val, err := m.GetBackingStore().Get("useDeviceLicensing") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetVersion gets the version property value. Specifies the version of the VPP app to install. When not set, the device installs the latest version. When set, the device installs the specified version. The device never installs an older version of the app over a newer version. This property maps to the Version key in Apple's AppManagedInstallBehaviorObject declaration. +// returns a *int32 when successful +func (m *IosDdmVppAppAssignmentSettings) GetVersion()(*int32) { + val, err := m.GetBackingStore().Get("version") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetVpnConfigurationId gets the vpnConfigurationId property value. The unique identifier of the VPN Configuration to apply to the app. +// returns a *string when successful +func (m *IosDdmVppAppAssignmentSettings) GetVpnConfigurationId()(*string) { + val, err := m.GetBackingStore().Get("vpnConfigurationId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *IosDdmVppAppAssignmentSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.MobileAppAssignmentSettings.Serialize(writer) + if err != nil { + return err + } + if m.GetAllowDownloadsOverCellular() != nil { + cast := (*m.GetAllowDownloadsOverCellular()).String() + err = writer.WriteStringValue("allowDownloadsOverCellular", &cast) + if err != nil { + return err + } + } + if m.GetAssociatedDomains() != nil { + err = writer.WriteCollectionOfStringValues("associatedDomains", m.GetAssociatedDomains()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("associatedDomainsDirectDownloadAllowed", m.GetAssociatedDomainsDirectDownloadAllowed()) + if err != nil { + return err + } + } + if m.GetAutomaticAppUpdates() != nil { + cast := (*m.GetAutomaticAppUpdates()).String() + err = writer.WriteStringValue("automaticAppUpdates", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("cellularSliceConfigurationId", m.GetCellularSliceConfigurationId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("contentFilterConfigurationId", m.GetContentFilterConfigurationId()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("dnsProxyConfigurationId", m.GetDnsProxyConfigurationId()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("preventManagedAppBackup", m.GetPreventManagedAppBackup()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("relayConfigurationId", m.GetRelayConfigurationId()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("tapToPayScreenLockEnabled", m.GetTapToPayScreenLockEnabled()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("useDeviceLicensing", m.GetUseDeviceLicensing()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("version", m.GetVersion()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("vpnConfigurationId", m.GetVpnConfigurationId()) + if err != nil { + return err + } + } + return nil +} +// SetAllowDownloadsOverCellular sets the allowDownloadsOverCellular property value. Specifies whether the app may be downloaded over cellular connections. Possible values are: 'alwaysOn', 'alwaysOff', 'storeSettings'. By default, this value is set to 'storeSettings'. +func (m *IosDdmVppAppAssignmentSettings) SetAllowDownloadsOverCellular(value *DdmAppAllowDownloadsOverCellular)() { + err := m.GetBackingStore().Set("allowDownloadsOverCellular", value) + if err != nil { + panic(err) + } +} +// SetAssociatedDomains sets the associatedDomains property value. Domain names to associate with the app +func (m *IosDdmVppAppAssignmentSettings) SetAssociatedDomains(value []string)() { + err := m.GetBackingStore().Set("associatedDomains", value) + if err != nil { + panic(err) + } +} +// SetAssociatedDomainsDirectDownloadAllowed sets the associatedDomainsDirectDownloadAllowed property value. When true, the system allows direct downloads for the AssociatedDomains. When false, the system will not allow direct downloads for the AssociatedDomains. Default is false. +func (m *IosDdmVppAppAssignmentSettings) SetAssociatedDomainsDirectDownloadAllowed(value *bool)() { + err := m.GetBackingStore().Set("associatedDomainsDirectDownloadAllowed", value) + if err != nil { + panic(err) + } +} +// SetAutomaticAppUpdates sets the automaticAppUpdates property value. Specifies whether the device automatically updates the app. Possible values are: 'alwaysOn', 'alwaysOff', 'storeSettings'. By default, this value is set to 'storeSettings'. +func (m *IosDdmVppAppAssignmentSettings) SetAutomaticAppUpdates(value *DdmAppAutomaticAppUpdates)() { + err := m.GetBackingStore().Set("automaticAppUpdates", value) + if err != nil { + panic(err) + } +} +// SetCellularSliceConfigurationId sets the cellularSliceConfigurationId property value. The cellular slice identifier, which can be the data network name (DNN) or app category. For DNN, encode the value as 'DNN:name', where 'name' is the carrier-provided DNN name. For app category, encode the value as 'AppCategory:category', where 'category' is a carrier-provided string such as 'Enterprise1'. +func (m *IosDdmVppAppAssignmentSettings) SetCellularSliceConfigurationId(value *string)() { + err := m.GetBackingStore().Set("cellularSliceConfigurationId", value) + if err != nil { + panic(err) + } +} +// SetContentFilterConfigurationId sets the contentFilterConfigurationId property value. The unique identifier of the content filter to associate with the app. +func (m *IosDdmVppAppAssignmentSettings) SetContentFilterConfigurationId(value *string)() { + err := m.GetBackingStore().Set("contentFilterConfigurationId", value) + if err != nil { + panic(err) + } +} +// SetDnsProxyConfigurationId sets the dnsProxyConfigurationId property value. The unique identifier of the DNS proxy to associate with the app. +func (m *IosDdmVppAppAssignmentSettings) SetDnsProxyConfigurationId(value *string)() { + err := m.GetBackingStore().Set("dnsProxyConfigurationId", value) + if err != nil { + panic(err) + } +} +// SetPreventManagedAppBackup sets the preventManagedAppBackup property value. When true, indicates that the app should not be backed up to iCloud. When false, indicates that the app may be backed up to iCloud. Default is false. +func (m *IosDdmVppAppAssignmentSettings) SetPreventManagedAppBackup(value *bool)() { + err := m.GetBackingStore().Set("preventManagedAppBackup", value) + if err != nil { + panic(err) + } +} +// SetRelayConfigurationId sets the relayConfigurationId property value. The unique identifier of the relay to associate with the app. +func (m *IosDdmVppAppAssignmentSettings) SetRelayConfigurationId(value *string)() { + err := m.GetBackingStore().Set("relayConfigurationId", value) + if err != nil { + panic(err) + } +} +// SetTapToPayScreenLockEnabled sets the tapToPayScreenLockEnabled property value. When true, the device locks its screen after every transaction that requires a customer's card PIN. When false, the user can choose the behavior. Default value is false. +func (m *IosDdmVppAppAssignmentSettings) SetTapToPayScreenLockEnabled(value *bool)() { + err := m.GetBackingStore().Set("tapToPayScreenLockEnabled", value) + if err != nil { + panic(err) + } +} +// SetUseDeviceLicensing sets the useDeviceLicensing property value. Whether or not to use device licensing. +func (m *IosDdmVppAppAssignmentSettings) SetUseDeviceLicensing(value *bool)() { + err := m.GetBackingStore().Set("useDeviceLicensing", value) + if err != nil { + panic(err) + } +} +// SetVersion sets the version property value. Specifies the version of the VPP app to install. When not set, the device installs the latest version. When set, the device installs the specified version. The device never installs an older version of the app over a newer version. This property maps to the Version key in Apple's AppManagedInstallBehaviorObject declaration. +func (m *IosDdmVppAppAssignmentSettings) SetVersion(value *int32)() { + err := m.GetBackingStore().Set("version", value) + if err != nil { + panic(err) + } +} +// SetVpnConfigurationId sets the vpnConfigurationId property value. The unique identifier of the VPN Configuration to apply to the app. +func (m *IosDdmVppAppAssignmentSettings) SetVpnConfigurationId(value *string)() { + err := m.GetBackingStore().Set("vpnConfigurationId", value) + if err != nil { + panic(err) + } +} +type IosDdmVppAppAssignmentSettingsable interface { + MobileAppAssignmentSettingsable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAllowDownloadsOverCellular()(*DdmAppAllowDownloadsOverCellular) + GetAssociatedDomains()([]string) + GetAssociatedDomainsDirectDownloadAllowed()(*bool) + GetAutomaticAppUpdates()(*DdmAppAutomaticAppUpdates) + GetCellularSliceConfigurationId()(*string) + GetContentFilterConfigurationId()(*string) + GetDnsProxyConfigurationId()(*string) + GetPreventManagedAppBackup()(*bool) + GetRelayConfigurationId()(*string) + GetTapToPayScreenLockEnabled()(*bool) + GetUseDeviceLicensing()(*bool) + GetVersion()(*int32) + GetVpnConfigurationId()(*string) + SetAllowDownloadsOverCellular(value *DdmAppAllowDownloadsOverCellular)() + SetAssociatedDomains(value []string)() + SetAssociatedDomainsDirectDownloadAllowed(value *bool)() + SetAutomaticAppUpdates(value *DdmAppAutomaticAppUpdates)() + SetCellularSliceConfigurationId(value *string)() + SetContentFilterConfigurationId(value *string)() + SetDnsProxyConfigurationId(value *string)() + SetPreventManagedAppBackup(value *bool)() + SetRelayConfigurationId(value *string)() + SetTapToPayScreenLockEnabled(value *bool)() + SetUseDeviceLicensing(value *bool)() + SetVersion(value *int32)() + SetVpnConfigurationId(value *string)() +} diff --git a/models/ios_lob_app_provisioning_configuration_policy_set_item.go b/models/ios_lob_app_provisioning_configuration_policy_set_item.go index ea7d57b344b..3be074f8b61 100644 --- a/models/ios_lob_app_provisioning_configuration_policy_set_item.go +++ b/models/ios_lob_app_provisioning_configuration_policy_set_item.go @@ -7,7 +7,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// IosLobAppProvisioningConfigurationPolicySetItem a class containing the properties used for iOS LOB app provisioning configuration PolicySetItem. +// IosLobAppProvisioningConfigurationPolicySetItem a class containing the properties used for iOS lob app provisioning configuration PolicySetItem. type IosLobAppProvisioningConfigurationPolicySetItem struct { PolicySetItem } diff --git a/models/ios_store_app.go b/models/ios_store_app.go index db4a3754325..6d21f4a5db7 100644 --- a/models/ios_store_app.go +++ b/models/ios_store_app.go @@ -25,6 +25,18 @@ func NewIosStoreApp()(*IosStoreApp) { func CreateIosStoreAppFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewIosStoreApp(), nil } +// GetAppleDeviceAppDeliveryProtocolType gets the appleDeviceAppDeliveryProtocolType property value. The appleDeviceAppDeliveryProtocolType property +// returns a *AppleDeviceDeliveryProtocol when successful +func (m *IosStoreApp) GetAppleDeviceAppDeliveryProtocolType()(*AppleDeviceDeliveryProtocol) { + val, err := m.GetBackingStore().Get("appleDeviceAppDeliveryProtocolType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*AppleDeviceDeliveryProtocol) + } + return nil +} // GetApplicableDeviceType gets the applicableDeviceType property value. Contains properties of the possible iOS device types the mobile app can run on. // returns a IosDeviceTypeable when successful func (m *IosStoreApp) GetApplicableDeviceType()(IosDeviceTypeable) { @@ -65,6 +77,16 @@ func (m *IosStoreApp) GetBundleId()(*string) { // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *IosStoreApp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MobileApp.GetFieldDeserializers() + res["appleDeviceAppDeliveryProtocolType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseAppleDeviceDeliveryProtocol) + if err != nil { + return err + } + if val != nil { + m.SetAppleDeviceAppDeliveryProtocolType(val.(*AppleDeviceDeliveryProtocol)) + } + return nil + } res["applicableDeviceType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateIosDeviceTypeFromDiscriminatorValue) if err != nil { @@ -125,6 +147,13 @@ func (m *IosStoreApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 if err != nil { return err } + if m.GetAppleDeviceAppDeliveryProtocolType() != nil { + cast := (*m.GetAppleDeviceAppDeliveryProtocolType()).String() + err = writer.WriteStringValue("appleDeviceAppDeliveryProtocolType", &cast) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("applicableDeviceType", m.GetApplicableDeviceType()) if err != nil { @@ -151,6 +180,13 @@ func (m *IosStoreApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 } return nil } +// SetAppleDeviceAppDeliveryProtocolType sets the appleDeviceAppDeliveryProtocolType property value. The appleDeviceAppDeliveryProtocolType property +func (m *IosStoreApp) SetAppleDeviceAppDeliveryProtocolType(value *AppleDeviceDeliveryProtocol)() { + err := m.GetBackingStore().Set("appleDeviceAppDeliveryProtocolType", value) + if err != nil { + panic(err) + } +} // SetApplicableDeviceType sets the applicableDeviceType property value. Contains properties of the possible iOS device types the mobile app can run on. func (m *IosStoreApp) SetApplicableDeviceType(value IosDeviceTypeable)() { err := m.GetBackingStore().Set("applicableDeviceType", value) @@ -182,10 +218,12 @@ func (m *IosStoreApp) SetMinimumSupportedOperatingSystem(value IosMinimumOperati type IosStoreAppable interface { MobileAppable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAppleDeviceAppDeliveryProtocolType()(*AppleDeviceDeliveryProtocol) GetApplicableDeviceType()(IosDeviceTypeable) GetAppStoreUrl()(*string) GetBundleId()(*string) GetMinimumSupportedOperatingSystem()(IosMinimumOperatingSystemable) + SetAppleDeviceAppDeliveryProtocolType(value *AppleDeviceDeliveryProtocol)() SetApplicableDeviceType(value IosDeviceTypeable)() SetAppStoreUrl(value *string)() SetBundleId(value *string)() diff --git a/models/ios_vpp_app.go b/models/ios_vpp_app.go index 03298c7a586..c83b4b865b0 100644 --- a/models/ios_vpp_app.go +++ b/models/ios_vpp_app.go @@ -26,6 +26,18 @@ func NewIosVppApp()(*IosVppApp) { func CreateIosVppAppFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewIosVppApp(), nil } +// GetAppleDeviceAppDeliveryProtocolType gets the appleDeviceAppDeliveryProtocolType property value. The appleDeviceAppDeliveryProtocolType property +// returns a *AppleDeviceDeliveryProtocol when successful +func (m *IosVppApp) GetAppleDeviceAppDeliveryProtocolType()(*AppleDeviceDeliveryProtocol) { + val, err := m.GetBackingStore().Get("appleDeviceAppDeliveryProtocolType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*AppleDeviceDeliveryProtocol) + } + return nil +} // GetApplicableDeviceType gets the applicableDeviceType property value. The applicable iOS Device Type. // returns a IosDeviceTypeable when successful func (m *IosVppApp) GetApplicableDeviceType()(IosDeviceTypeable) { @@ -78,6 +90,16 @@ func (m *IosVppApp) GetBundleId()(*string) { // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *IosVppApp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MobileApp.GetFieldDeserializers() + res["appleDeviceAppDeliveryProtocolType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseAppleDeviceDeliveryProtocol) + if err != nil { + return err + } + if val != nil { + m.SetAppleDeviceAppDeliveryProtocolType(val.(*AppleDeviceDeliveryProtocol)) + } + return nil + } res["applicableDeviceType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateIosDeviceTypeFromDiscriminatorValue) if err != nil { @@ -358,6 +380,13 @@ func (m *IosVppApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 if err != nil { return err } + if m.GetAppleDeviceAppDeliveryProtocolType() != nil { + cast := (*m.GetAppleDeviceAppDeliveryProtocolType()).String() + err = writer.WriteStringValue("appleDeviceAppDeliveryProtocolType", &cast) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("applicableDeviceType", m.GetApplicableDeviceType()) if err != nil { @@ -457,6 +486,13 @@ func (m *IosVppApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 } return nil } +// SetAppleDeviceAppDeliveryProtocolType sets the appleDeviceAppDeliveryProtocolType property value. The appleDeviceAppDeliveryProtocolType property +func (m *IosVppApp) SetAppleDeviceAppDeliveryProtocolType(value *AppleDeviceDeliveryProtocol)() { + err := m.GetBackingStore().Set("appleDeviceAppDeliveryProtocolType", value) + if err != nil { + panic(err) + } +} // SetApplicableDeviceType sets the applicableDeviceType property value. The applicable iOS Device Type. func (m *IosVppApp) SetApplicableDeviceType(value IosDeviceTypeable)() { err := m.GetBackingStore().Set("applicableDeviceType", value) @@ -558,6 +594,7 @@ func (m *IosVppApp) SetVppTokenOrganizationName(value *string)() { type IosVppAppable interface { MobileAppable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAppleDeviceAppDeliveryProtocolType()(*AppleDeviceDeliveryProtocol) GetApplicableDeviceType()(IosDeviceTypeable) GetAppStoreUrl()(*string) GetAssignedLicenses()([]IosVppAppAssignedLicenseable) @@ -572,6 +609,7 @@ type IosVppAppable interface { GetVppTokenDisplayName()(*string) GetVppTokenId()(*string) GetVppTokenOrganizationName()(*string) + SetAppleDeviceAppDeliveryProtocolType(value *AppleDeviceDeliveryProtocol)() SetApplicableDeviceType(value IosDeviceTypeable)() SetAppStoreUrl(value *string)() SetAssignedLicenses(value []IosVppAppAssignedLicenseable)() diff --git a/models/lock_info.go b/models/lock_info.go new file mode 100644 index 00000000000..9511c522735 --- /dev/null +++ b/models/lock_info.go @@ -0,0 +1,278 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type LockInfo struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewLockInfo instantiates a new LockInfo and sets the default values. +func NewLockInfo()(*LockInfo) { + m := &LockInfo{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateLockInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateLockInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewLockInfo(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *LockInfo) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *LockInfo) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetCreatedDateTime gets the createdDateTime property value. The date and time when the lock was created, in UTC. Read-only. +// returns a *Time when successful +func (m *LockInfo) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetExpirationDateTime gets the expirationDateTime property value. The date and time when the lock expires, in UTC. Read-only. +// returns a *Time when successful +func (m *LockInfo) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("expirationDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *LockInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } + res["expirationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetExpirationDateTime(val) + } + return nil + } + res["lockType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseLockType) + if err != nil { + return err + } + if val != nil { + m.SetLockType(val.(*LockType)) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["owners"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateUserIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]UserIdentityable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(UserIdentityable) + } + } + m.SetOwners(res) + } + return nil + } + return res +} +// GetLockType gets the lockType property value. The lockType property +// returns a *LockType when successful +func (m *LockInfo) GetLockType()(*LockType) { + val, err := m.GetBackingStore().Get("lockType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*LockType) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *LockInfo) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOwners gets the owners property value. The collection of users that currently hold the lock on the file. Read-only. +// returns a []UserIdentityable when successful +func (m *LockInfo) GetOwners()([]UserIdentityable) { + val, err := m.GetBackingStore().Get("owners") + if err != nil { + panic(err) + } + if val != nil { + return val.([]UserIdentityable) + } + return nil +} +// Serialize serializes information the current object +func (m *LockInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("expirationDateTime", m.GetExpirationDateTime()) + if err != nil { + return err + } + } + if m.GetLockType() != nil { + cast := (*m.GetLockType()).String() + err := writer.WriteStringValue("lockType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetOwners() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetOwners())) + for i, v := range m.GetOwners() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("owners", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *LockInfo) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *LockInfo) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetCreatedDateTime sets the createdDateTime property value. The date and time when the lock was created, in UTC. Read-only. +func (m *LockInfo) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetExpirationDateTime sets the expirationDateTime property value. The date and time when the lock expires, in UTC. Read-only. +func (m *LockInfo) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("expirationDateTime", value) + if err != nil { + panic(err) + } +} +// SetLockType sets the lockType property value. The lockType property +func (m *LockInfo) SetLockType(value *LockType)() { + err := m.GetBackingStore().Set("lockType", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *LockInfo) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetOwners sets the owners property value. The collection of users that currently hold the lock on the file. Read-only. +func (m *LockInfo) SetOwners(value []UserIdentityable)() { + err := m.GetBackingStore().Set("owners", value) + if err != nil { + panic(err) + } +} +type LockInfoable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetLockType()(*LockType) + GetOdataType()(*string) + GetOwners()([]UserIdentityable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetLockType(value *LockType)() + SetOdataType(value *string)() + SetOwners(value []UserIdentityable)() +} diff --git a/models/lock_type.go b/models/lock_type.go new file mode 100644 index 00000000000..7ab12619a28 --- /dev/null +++ b/models/lock_type.go @@ -0,0 +1,42 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +type LockType int + +const ( + NONE_LOCKTYPE LockType = iota + EXCLUSIVE_LOCKTYPE + SHARED_LOCKTYPE + UNKNOWNFUTUREVALUE_LOCKTYPE +) + +func (i LockType) String() string { + return []string{"none", "exclusive", "shared", "unknownFutureValue"}[i] +} +func ParseLockType(v string) (any, error) { + result := NONE_LOCKTYPE + switch v { + case "none": + result = NONE_LOCKTYPE + case "exclusive": + result = EXCLUSIVE_LOCKTYPE + case "shared": + result = SHARED_LOCKTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_LOCKTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeLockType(values []LockType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i LockType) isMultiValue() bool { + return false +} diff --git a/models/mac_o_s_wi_fi_configuration.go b/models/mac_o_s_wi_fi_configuration.go index 7a2361f29d3..bf6b17812e0 100644 --- a/models/mac_o_s_wi_fi_configuration.go +++ b/models/mac_o_s_wi_fi_configuration.go @@ -183,6 +183,16 @@ func (m *MacOSWiFiConfiguration) GetFieldDeserializers()(map[string]func(i878a80 } return nil } + res["wifiRequirePhysicalMacAddressEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetWifiRequirePhysicalMacAddressEnabled(val) + } + return nil + } res["wiFiSecurityType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseWiFiSecurityType) if err != nil { @@ -279,6 +289,18 @@ func (m *MacOSWiFiConfiguration) GetSsid()(*string) { } return nil } +// GetWifiRequirePhysicalMacAddressEnabled gets the wifiRequirePhysicalMacAddressEnabled property value. Indicates whether devices connecting with this Wi-Fi profile must use their physical MAC address instead of a randomized MAC address. When TRUE, it uses the actual Wi-Fi MAC address. When FALSE, it enables the MAC address randomization. Applies to macOS 15 and later. Default is false. +// returns a *bool when successful +func (m *MacOSWiFiConfiguration) GetWifiRequirePhysicalMacAddressEnabled()(*bool) { + val, err := m.GetBackingStore().Get("wifiRequirePhysicalMacAddressEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetWiFiSecurityType gets the wiFiSecurityType property value. Wi-Fi Security Types. // returns a *WiFiSecurityType when successful func (m *MacOSWiFiConfiguration) GetWiFiSecurityType()(*WiFiSecurityType) { @@ -359,6 +381,12 @@ func (m *MacOSWiFiConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487 return err } } + { + err = writer.WriteBoolValue("wifiRequirePhysicalMacAddressEnabled", m.GetWifiRequirePhysicalMacAddressEnabled()) + if err != nil { + return err + } + } if m.GetWiFiSecurityType() != nil { cast := (*m.GetWiFiSecurityType()).String() err = writer.WriteStringValue("wiFiSecurityType", &cast) @@ -438,6 +466,13 @@ func (m *MacOSWiFiConfiguration) SetSsid(value *string)() { panic(err) } } +// SetWifiRequirePhysicalMacAddressEnabled sets the wifiRequirePhysicalMacAddressEnabled property value. Indicates whether devices connecting with this Wi-Fi profile must use their physical MAC address instead of a randomized MAC address. When TRUE, it uses the actual Wi-Fi MAC address. When FALSE, it enables the MAC address randomization. Applies to macOS 15 and later. Default is false. +func (m *MacOSWiFiConfiguration) SetWifiRequirePhysicalMacAddressEnabled(value *bool)() { + err := m.GetBackingStore().Set("wifiRequirePhysicalMacAddressEnabled", value) + if err != nil { + panic(err) + } +} // SetWiFiSecurityType sets the wiFiSecurityType property value. Wi-Fi Security Types. func (m *MacOSWiFiConfiguration) SetWiFiSecurityType(value *WiFiSecurityType)() { err := m.GetBackingStore().Set("wiFiSecurityType", value) @@ -458,6 +493,7 @@ type MacOSWiFiConfigurationable interface { GetProxyManualPort()(*int32) GetProxySettings()(*WiFiProxySetting) GetSsid()(*string) + GetWifiRequirePhysicalMacAddressEnabled()(*bool) GetWiFiSecurityType()(*WiFiSecurityType) SetConnectAutomatically(value *bool)() SetConnectWhenNetworkNameIsHidden(value *bool)() @@ -469,5 +505,6 @@ type MacOSWiFiConfigurationable interface { SetProxyManualPort(value *int32)() SetProxySettings(value *WiFiProxySetting)() SetSsid(value *string)() + SetWifiRequirePhysicalMacAddressEnabled(value *bool)() SetWiFiSecurityType(value *WiFiSecurityType)() } diff --git a/models/mac_os_ddm_vpp_app_assignment_settings.go b/models/mac_os_ddm_vpp_app_assignment_settings.go new file mode 100644 index 00000000000..14c84c789fe --- /dev/null +++ b/models/mac_os_ddm_vpp_app_assignment_settings.go @@ -0,0 +1,194 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// MacOsDdmVppAppAssignmentSettings contains properties used to assign a macOS Declarative Device Management (DDM) VPP mobile app to a group. +type MacOsDdmVppAppAssignmentSettings struct { + MobileAppAssignmentSettings +} +// NewMacOsDdmVppAppAssignmentSettings instantiates a new MacOsDdmVppAppAssignmentSettings and sets the default values. +func NewMacOsDdmVppAppAssignmentSettings()(*MacOsDdmVppAppAssignmentSettings) { + m := &MacOsDdmVppAppAssignmentSettings{ + MobileAppAssignmentSettings: *NewMobileAppAssignmentSettings(), + } + odataTypeValue := "#microsoft.graph.macOsDdmVppAppAssignmentSettings" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateMacOsDdmVppAppAssignmentSettingsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMacOsDdmVppAppAssignmentSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMacOsDdmVppAppAssignmentSettings(), nil +} +// GetAutomaticAppUpdates gets the automaticAppUpdates property value. Specifies whether the device automatically updates the app. Possible values are: 'alwaysOn', 'alwaysOff', 'storeSettings'. By default, this value is set to 'storeSettings'. +// returns a *DdmAppAutomaticAppUpdates when successful +func (m *MacOsDdmVppAppAssignmentSettings) GetAutomaticAppUpdates()(*DdmAppAutomaticAppUpdates) { + val, err := m.GetBackingStore().Get("automaticAppUpdates") + if err != nil { + panic(err) + } + if val != nil { + return val.(*DdmAppAutomaticAppUpdates) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MacOsDdmVppAppAssignmentSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.MobileAppAssignmentSettings.GetFieldDeserializers() + res["automaticAppUpdates"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseDdmAppAutomaticAppUpdates) + if err != nil { + return err + } + if val != nil { + m.SetAutomaticAppUpdates(val.(*DdmAppAutomaticAppUpdates)) + } + return nil + } + res["isIosApp"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsIosApp(val) + } + return nil + } + res["useDeviceLicensing"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetUseDeviceLicensing(val) + } + return nil + } + res["version"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetVersion(val) + } + return nil + } + return res +} +// GetIsIosApp gets the isIosApp property value. If true, the device installs an iOS or iPadOS app that runs on a Mac with Apple Silicon. This is only used when the app is a VPP app. Default is false. +// returns a *bool when successful +func (m *MacOsDdmVppAppAssignmentSettings) GetIsIosApp()(*bool) { + val, err := m.GetBackingStore().Get("isIosApp") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetUseDeviceLicensing gets the useDeviceLicensing property value. When TRUE, indicates that the app should be assigned using device licensing. When FALSE, indicates that the app should be assigned using user licensing. By default, this property is set to FALSE. +// returns a *bool when successful +func (m *MacOsDdmVppAppAssignmentSettings) GetUseDeviceLicensing()(*bool) { + val, err := m.GetBackingStore().Get("useDeviceLicensing") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetVersion gets the version property value. Specifies the version of the VPP app to install. When not set, the device installs the latest version. When set, the device installs the specified version. The device never installs an older version of the app over a newer version. This property maps to the Version key in Apple's AppManagedInstallBehaviorObject declaration. +// returns a *int32 when successful +func (m *MacOsDdmVppAppAssignmentSettings) GetVersion()(*int32) { + val, err := m.GetBackingStore().Get("version") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// Serialize serializes information the current object +func (m *MacOsDdmVppAppAssignmentSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.MobileAppAssignmentSettings.Serialize(writer) + if err != nil { + return err + } + if m.GetAutomaticAppUpdates() != nil { + cast := (*m.GetAutomaticAppUpdates()).String() + err = writer.WriteStringValue("automaticAppUpdates", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isIosApp", m.GetIsIosApp()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("useDeviceLicensing", m.GetUseDeviceLicensing()) + if err != nil { + return err + } + } + { + err = writer.WriteInt32Value("version", m.GetVersion()) + if err != nil { + return err + } + } + return nil +} +// SetAutomaticAppUpdates sets the automaticAppUpdates property value. Specifies whether the device automatically updates the app. Possible values are: 'alwaysOn', 'alwaysOff', 'storeSettings'. By default, this value is set to 'storeSettings'. +func (m *MacOsDdmVppAppAssignmentSettings) SetAutomaticAppUpdates(value *DdmAppAutomaticAppUpdates)() { + err := m.GetBackingStore().Set("automaticAppUpdates", value) + if err != nil { + panic(err) + } +} +// SetIsIosApp sets the isIosApp property value. If true, the device installs an iOS or iPadOS app that runs on a Mac with Apple Silicon. This is only used when the app is a VPP app. Default is false. +func (m *MacOsDdmVppAppAssignmentSettings) SetIsIosApp(value *bool)() { + err := m.GetBackingStore().Set("isIosApp", value) + if err != nil { + panic(err) + } +} +// SetUseDeviceLicensing sets the useDeviceLicensing property value. When TRUE, indicates that the app should be assigned using device licensing. When FALSE, indicates that the app should be assigned using user licensing. By default, this property is set to FALSE. +func (m *MacOsDdmVppAppAssignmentSettings) SetUseDeviceLicensing(value *bool)() { + err := m.GetBackingStore().Set("useDeviceLicensing", value) + if err != nil { + panic(err) + } +} +// SetVersion sets the version property value. Specifies the version of the VPP app to install. When not set, the device installs the latest version. When set, the device installs the specified version. The device never installs an older version of the app over a newer version. This property maps to the Version key in Apple's AppManagedInstallBehaviorObject declaration. +func (m *MacOsDdmVppAppAssignmentSettings) SetVersion(value *int32)() { + err := m.GetBackingStore().Set("version", value) + if err != nil { + panic(err) + } +} +type MacOsDdmVppAppAssignmentSettingsable interface { + MobileAppAssignmentSettingsable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAutomaticAppUpdates()(*DdmAppAutomaticAppUpdates) + GetIsIosApp()(*bool) + GetUseDeviceLicensing()(*bool) + GetVersion()(*int32) + SetAutomaticAppUpdates(value *DdmAppAutomaticAppUpdates)() + SetIsIosApp(value *bool)() + SetUseDeviceLicensing(value *bool)() + SetVersion(value *int32)() +} diff --git a/models/mac_os_vpp_app.go b/models/mac_os_vpp_app.go index 0143ed9d2e2..f1cb11e4338 100644 --- a/models/mac_os_vpp_app.go +++ b/models/mac_os_vpp_app.go @@ -26,6 +26,18 @@ func NewMacOsVppApp()(*MacOsVppApp) { func CreateMacOsVppAppFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewMacOsVppApp(), nil } +// GetAppleDeviceAppDeliveryProtocolType gets the appleDeviceAppDeliveryProtocolType property value. Enum of the supported types of Apple delivery protocols, representing the available protocols to deliver payloads to Apple devices +// returns a *AppleDeviceDeliveryProtocol when successful +func (m *MacOsVppApp) GetAppleDeviceAppDeliveryProtocolType()(*AppleDeviceDeliveryProtocol) { + val, err := m.GetBackingStore().Get("appleDeviceAppDeliveryProtocolType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*AppleDeviceDeliveryProtocol) + } + return nil +} // GetAppStoreUrl gets the appStoreUrl property value. The store URL. // returns a *string when successful func (m *MacOsVppApp) GetAppStoreUrl()(*string) { @@ -66,6 +78,16 @@ func (m *MacOsVppApp) GetBundleId()(*string) { // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *MacOsVppApp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.MobileApp.GetFieldDeserializers() + res["appleDeviceAppDeliveryProtocolType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseAppleDeviceDeliveryProtocol) + if err != nil { + return err + } + if val != nil { + m.SetAppleDeviceAppDeliveryProtocolType(val.(*AppleDeviceDeliveryProtocol)) + } + return nil + } res["appStoreUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -336,6 +358,13 @@ func (m *MacOsVppApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 if err != nil { return err } + if m.GetAppleDeviceAppDeliveryProtocolType() != nil { + cast := (*m.GetAppleDeviceAppDeliveryProtocolType()).String() + err = writer.WriteStringValue("appleDeviceAppDeliveryProtocolType", &cast) + if err != nil { + return err + } + } { err = writer.WriteStringValue("appStoreUrl", m.GetAppStoreUrl()) if err != nil { @@ -429,6 +458,13 @@ func (m *MacOsVppApp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 } return nil } +// SetAppleDeviceAppDeliveryProtocolType sets the appleDeviceAppDeliveryProtocolType property value. Enum of the supported types of Apple delivery protocols, representing the available protocols to deliver payloads to Apple devices +func (m *MacOsVppApp) SetAppleDeviceAppDeliveryProtocolType(value *AppleDeviceDeliveryProtocol)() { + err := m.GetBackingStore().Set("appleDeviceAppDeliveryProtocolType", value) + if err != nil { + panic(err) + } +} // SetAppStoreUrl sets the appStoreUrl property value. The store URL. func (m *MacOsVppApp) SetAppStoreUrl(value *string)() { err := m.GetBackingStore().Set("appStoreUrl", value) @@ -523,6 +559,7 @@ func (m *MacOsVppApp) SetVppTokenOrganizationName(value *string)() { type MacOsVppAppable interface { MobileAppable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAppleDeviceAppDeliveryProtocolType()(*AppleDeviceDeliveryProtocol) GetAppStoreUrl()(*string) GetAssignedLicenses()([]MacOsVppAppAssignedLicenseable) GetBundleId()(*string) @@ -536,6 +573,7 @@ type MacOsVppAppable interface { GetVppTokenDisplayName()(*string) GetVppTokenId()(*string) GetVppTokenOrganizationName()(*string) + SetAppleDeviceAppDeliveryProtocolType(value *AppleDeviceDeliveryProtocol)() SetAppStoreUrl(value *string)() SetAssignedLicenses(value []MacOsVppAppAssignedLicenseable)() SetBundleId(value *string)() diff --git a/models/mailbox_exclusion_unit.go b/models/mailbox_exclusion_unit.go index 9715a9acc73..5f9bd35132e 100644 --- a/models/mailbox_exclusion_unit.go +++ b/models/mailbox_exclusion_unit.go @@ -24,7 +24,7 @@ func NewMailboxExclusionUnit()(*MailboxExclusionUnit) { func CreateMailboxExclusionUnitFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewMailboxExclusionUnit(), nil } -// GetDirectoryObjectId gets the directoryObjectId property value. The directoryObjectId property +// GetDirectoryObjectId gets the directoryObjectId property value. The unique identifier of the directory object (user) associated with the mailbox. // returns a *string when successful func (m *MailboxExclusionUnit) GetDirectoryObjectId()(*string) { val, err := m.GetBackingStore().Get("directoryObjectId") @@ -36,7 +36,7 @@ func (m *MailboxExclusionUnit) GetDirectoryObjectId()(*string) { } return nil } -// GetDisplayName gets the displayName property value. The displayName property +// GetDisplayName gets the displayName property value. The display name of the mailbox. // returns a *string when successful func (m *MailboxExclusionUnit) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -48,7 +48,7 @@ func (m *MailboxExclusionUnit) GetDisplayName()(*string) { } return nil } -// GetEmail gets the email property value. The email property +// GetEmail gets the email property value. The email address of the mailbox. // returns a *string when successful func (m *MailboxExclusionUnit) GetEmail()(*string) { val, err := m.GetBackingStore().Get("email") @@ -139,21 +139,21 @@ func (m *MailboxExclusionUnit) Serialize(writer i878a80d2330e89d26896388a3f487ee } return nil } -// SetDirectoryObjectId sets the directoryObjectId property value. The directoryObjectId property +// SetDirectoryObjectId sets the directoryObjectId property value. The unique identifier of the directory object (user) associated with the mailbox. func (m *MailboxExclusionUnit) SetDirectoryObjectId(value *string)() { err := m.GetBackingStore().Set("directoryObjectId", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. The displayName property +// SetDisplayName sets the displayName property value. The display name of the mailbox. func (m *MailboxExclusionUnit) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetEmail sets the email property value. The email property +// SetEmail sets the email property value. The email address of the mailbox. func (m *MailboxExclusionUnit) SetEmail(value *string)() { err := m.GetBackingStore().Set("email", value) if err != nil { diff --git a/models/mailbox_exclusion_units_bulk_addition_job.go b/models/mailbox_exclusion_units_bulk_addition_job.go index d83a6991360..5ea89cc685e 100644 --- a/models/mailbox_exclusion_units_bulk_addition_job.go +++ b/models/mailbox_exclusion_units_bulk_addition_job.go @@ -46,7 +46,7 @@ func (m *MailboxExclusionUnitsBulkAdditionJob) GetFieldDeserializers()(map[strin } return res } -// GetMailboxes gets the mailboxes property value. The mailboxes property +// GetMailboxes gets the mailboxes property value. The email addresses of the mailboxes to be added as exclusion units to the protection policy. // returns a []string when successful func (m *MailboxExclusionUnitsBulkAdditionJob) GetMailboxes()([]string) { val, err := m.GetBackingStore().Get("mailboxes") @@ -72,7 +72,7 @@ func (m *MailboxExclusionUnitsBulkAdditionJob) Serialize(writer i878a80d2330e89d } return nil } -// SetMailboxes sets the mailboxes property value. The mailboxes property +// SetMailboxes sets the mailboxes property value. The email addresses of the mailboxes to be added as exclusion units to the protection policy. func (m *MailboxExclusionUnitsBulkAdditionJob) SetMailboxes(value []string)() { err := m.GetBackingStore().Set("mailboxes", value) if err != nil { diff --git a/models/managed_app_protection.go b/models/managed_app_protection.go index b1ced21f53d..4102b943dc7 100644 --- a/models/managed_app_protection.go +++ b/models/managed_app_protection.go @@ -695,6 +695,16 @@ func (m *ManagedAppProtection) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["purviewContentEvaluationRequired"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseManagedAppPurviewEvaluationRequirement) + if err != nil { + return err + } + if val != nil { + m.SetPurviewContentEvaluationRequired(val.(*ManagedAppPurviewEvaluationRequirement)) + } + return nil + } res["saveAsBlocked"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -1077,6 +1087,18 @@ func (m *ManagedAppProtection) GetProtectedMessagingRedirectAppType()(*Messaging } return nil } +// GetPurviewContentEvaluationRequired gets the purviewContentEvaluationRequired property value. Specifies whether Microsoft Purview Data Loss Prevention (DLP) content evaluation is required before data sharing. +// returns a *ManagedAppPurviewEvaluationRequirement when successful +func (m *ManagedAppProtection) GetPurviewContentEvaluationRequired()(*ManagedAppPurviewEvaluationRequirement) { + val, err := m.GetBackingStore().Get("purviewContentEvaluationRequired") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ManagedAppPurviewEvaluationRequirement) + } + return nil +} // GetSaveAsBlocked gets the saveAsBlocked property value. Indicates whether users may use the 'Save As' menu item to save a copy of protected files. // returns a *bool when successful func (m *ManagedAppProtection) GetSaveAsBlocked()(*bool) { @@ -1391,6 +1413,13 @@ func (m *ManagedAppProtection) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + if m.GetPurviewContentEvaluationRequired() != nil { + cast := (*m.GetPurviewContentEvaluationRequired()).String() + err = writer.WriteStringValue("purviewContentEvaluationRequired", &cast) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("saveAsBlocked", m.GetSaveAsBlocked()) if err != nil { @@ -1720,6 +1749,13 @@ func (m *ManagedAppProtection) SetProtectedMessagingRedirectAppType(value *Messa panic(err) } } +// SetPurviewContentEvaluationRequired sets the purviewContentEvaluationRequired property value. Specifies whether Microsoft Purview Data Loss Prevention (DLP) content evaluation is required before data sharing. +func (m *ManagedAppProtection) SetPurviewContentEvaluationRequired(value *ManagedAppPurviewEvaluationRequirement)() { + err := m.GetBackingStore().Set("purviewContentEvaluationRequired", value) + if err != nil { + panic(err) + } +} // SetSaveAsBlocked sets the saveAsBlocked property value. Indicates whether users may use the 'Save As' menu item to save a copy of protected files. func (m *ManagedAppProtection) SetSaveAsBlocked(value *bool)() { err := m.GetBackingStore().Set("saveAsBlocked", value) @@ -1782,6 +1818,7 @@ type ManagedAppProtectionable interface { GetPreviousPinBlockCount()(*int32) GetPrintBlocked()(*bool) GetProtectedMessagingRedirectAppType()(*MessagingRedirectAppType) + GetPurviewContentEvaluationRequired()(*ManagedAppPurviewEvaluationRequirement) GetSaveAsBlocked()(*bool) GetSimplePinBlocked()(*bool) SetAllowedDataIngestionLocations(value []ManagedAppDataIngestionLocation)() @@ -1829,6 +1866,7 @@ type ManagedAppProtectionable interface { SetPreviousPinBlockCount(value *int32)() SetPrintBlocked(value *bool)() SetProtectedMessagingRedirectAppType(value *MessagingRedirectAppType)() + SetPurviewContentEvaluationRequired(value *ManagedAppPurviewEvaluationRequirement)() SetSaveAsBlocked(value *bool)() SetSimplePinBlocked(value *bool)() } diff --git a/models/managed_app_purview_evaluation_requirement.go b/models/managed_app_purview_evaluation_requirement.go new file mode 100644 index 00000000000..c8d764bf794 --- /dev/null +++ b/models/managed_app_purview_evaluation_requirement.go @@ -0,0 +1,47 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +// Specifies whether Microsoft Purview Data Loss Prevention (DLP) content evaluation is required before data sharing. +type ManagedAppPurviewEvaluationRequirement int + +const ( + // Microsoft Purview Data Loss Prevention (DLP) content evaluation is not required. + NOTREQUIRED_MANAGEDAPPPURVIEWEVALUATIONREQUIREMENT ManagedAppPurviewEvaluationRequirement = iota + // Microsoft Purview Data Loss Prevention (DLP) content evaluation is required when online; sharing is allowed if the service is unreachable. + REQUIREDWHENONLINE_MANAGEDAPPPURVIEWEVALUATIONREQUIREMENT + // Microsoft Purview Data Loss Prevention (DLP) content evaluation is always required; sharing is blocked if the service is unreachable. + REQUIRED_MANAGEDAPPPURVIEWEVALUATIONREQUIREMENT + // Evolvable enumeration sentinel value. Do not use. + UNKNOWNFUTUREVALUE_MANAGEDAPPPURVIEWEVALUATIONREQUIREMENT +) + +func (i ManagedAppPurviewEvaluationRequirement) String() string { + return []string{"notRequired", "requiredWhenOnline", "required", "unknownFutureValue"}[i] +} +func ParseManagedAppPurviewEvaluationRequirement(v string) (any, error) { + result := NOTREQUIRED_MANAGEDAPPPURVIEWEVALUATIONREQUIREMENT + switch v { + case "notRequired": + result = NOTREQUIRED_MANAGEDAPPPURVIEWEVALUATIONREQUIREMENT + case "requiredWhenOnline": + result = REQUIREDWHENONLINE_MANAGEDAPPPURVIEWEVALUATIONREQUIREMENT + case "required": + result = REQUIRED_MANAGEDAPPPURVIEWEVALUATIONREQUIREMENT + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_MANAGEDAPPPURVIEWEVALUATIONREQUIREMENT + default: + return nil, nil + } + return &result, nil +} +func SerializeManagedAppPurviewEvaluationRequirement(values []ManagedAppPurviewEvaluationRequirement) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ManagedAppPurviewEvaluationRequirement) isMultiValue() bool { + return false +} diff --git a/models/member.go b/models/member.go new file mode 100644 index 00000000000..4664b5419d6 --- /dev/null +++ b/models/member.go @@ -0,0 +1,302 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type Member struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewMember instantiates a new Member and sets the default values. +func NewMember()(*Member) { + m := &Member{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateMemberFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMemberFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMember(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *Member) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *Member) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetContactId gets the contactId property value. The ID of the referenced contact, if applicable. Optional. +// returns a *string when successful +func (m *Member) GetContactId()(*string) { + val, err := m.GetBackingStore().Get("contactId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDisplayName gets the displayName property value. The display name of the member. Optional. +// returns a *string when successful +func (m *Member) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *Member) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["contactId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetContactId(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["key"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetKey(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["recipientType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseRecipientType) + if err != nil { + return err + } + if val != nil { + m.SetRecipientType(val.(*RecipientType)) + } + return nil + } + res["routingType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRoutingType(val) + } + return nil + } + return res +} +// GetKey gets the key property value. The email address or routing key of the member. Required. +// returns a *string when successful +func (m *Member) GetKey()(*string) { + val, err := m.GetBackingStore().Get("key") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *Member) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRecipientType gets the recipientType property value. The recipientType property +// returns a *RecipientType when successful +func (m *Member) GetRecipientType()(*RecipientType) { + val, err := m.GetBackingStore().Get("recipientType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*RecipientType) + } + return nil +} +// GetRoutingType gets the routingType property value. The routing type for the member, for example, SMTP. Optional. +// returns a *string when successful +func (m *Member) GetRoutingType()(*string) { + val, err := m.GetBackingStore().Get("routingType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *Member) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("contactId", m.GetContactId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("key", m.GetKey()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetRecipientType() != nil { + cast := (*m.GetRecipientType()).String() + err := writer.WriteStringValue("recipientType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("routingType", m.GetRoutingType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *Member) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *Member) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetContactId sets the contactId property value. The ID of the referenced contact, if applicable. Optional. +func (m *Member) SetContactId(value *string)() { + err := m.GetBackingStore().Set("contactId", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. The display name of the member. Optional. +func (m *Member) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetKey sets the key property value. The email address or routing key of the member. Required. +func (m *Member) SetKey(value *string)() { + err := m.GetBackingStore().Set("key", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Member) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetRecipientType sets the recipientType property value. The recipientType property +func (m *Member) SetRecipientType(value *RecipientType)() { + err := m.GetBackingStore().Set("recipientType", value) + if err != nil { + panic(err) + } +} +// SetRoutingType sets the routingType property value. The routing type for the member, for example, SMTP. Optional. +func (m *Member) SetRoutingType(value *string)() { + err := m.GetBackingStore().Set("routingType", value) + if err != nil { + panic(err) + } +} +type Memberable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetContactId()(*string) + GetDisplayName()(*string) + GetKey()(*string) + GetOdataType()(*string) + GetRecipientType()(*RecipientType) + GetRoutingType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetContactId(value *string)() + SetDisplayName(value *string)() + SetKey(value *string)() + SetOdataType(value *string)() + SetRecipientType(value *RecipientType)() + SetRoutingType(value *string)() +} diff --git a/models/microsoft_tunnel_log_collection_status.go b/models/microsoft_tunnel_log_collection_status.go index 677b24f8ebc..c174e105e82 100644 --- a/models/microsoft_tunnel_log_collection_status.go +++ b/models/microsoft_tunnel_log_collection_status.go @@ -12,7 +12,7 @@ const ( COMPLETED_MICROSOFTTUNNELLOGCOLLECTIONSTATUS // Indicates that the log collection has failed FAILED_MICROSOFTTUNNELLOGCOLLECTIONSTATUS - // Evolvable enumeration sentinel value. Do not use. + // Placeholder value for future expansion enums UNKNOWNFUTUREVALUE_MICROSOFTTUNNELLOGCOLLECTIONSTATUS ) diff --git a/models/microsoft_tunnel_server_health_status.go b/models/microsoft_tunnel_server_health_status.go index 9b966b55328..e98db5b9811 100644 --- a/models/microsoft_tunnel_server_health_status.go +++ b/models/microsoft_tunnel_server_health_status.go @@ -20,7 +20,7 @@ const ( UPGRADEINPROGRESS_MICROSOFTTUNNELSERVERHEALTHSTATUS // Indicates the failure of the upgrade during the upgrade cycle of when Intune begins upgrading servers, one server at a time UPGRADEFAILED_MICROSOFTTUNNELSERVERHEALTHSTATUS - // Evolvable enumeration sentinel value. Do not use. + // Evolvable enumeration sentinel value. Do not use enums. UNKNOWNFUTUREVALUE_MICROSOFTTUNNELSERVERHEALTHSTATUS ) diff --git a/models/mobile_app_assignment_settings.go b/models/mobile_app_assignment_settings.go index 0067d96e8ca..e5cb3992c31 100644 --- a/models/mobile_app_assignment_settings.go +++ b/models/mobile_app_assignment_settings.go @@ -40,12 +40,18 @@ func CreateMobileAppAssignmentSettingsFromDiscriminatorValue(parseNode i878a80d2 return NewAndroidManagedStoreAppAssignmentSettings(), nil case "#microsoft.graph.iosDdmLobAppAssignmentSettings": return NewIosDdmLobAppAssignmentSettings(), nil + case "#microsoft.graph.iosDdmStoreAppAssignmentSettings": + return NewIosDdmStoreAppAssignmentSettings(), nil + case "#microsoft.graph.iosDdmVppAppAssignmentSettings": + return NewIosDdmVppAppAssignmentSettings(), nil case "#microsoft.graph.iosLobAppAssignmentSettings": return NewIosLobAppAssignmentSettings(), nil case "#microsoft.graph.iosStoreAppAssignmentSettings": return NewIosStoreAppAssignmentSettings(), nil case "#microsoft.graph.iosVppAppAssignmentSettings": return NewIosVppAppAssignmentSettings(), nil + case "#microsoft.graph.macOsDdmVppAppAssignmentSettings": + return NewMacOsDdmVppAppAssignmentSettings(), nil case "#microsoft.graph.macOsLobAppAssignmentSettings": return NewMacOsLobAppAssignmentSettings(), nil case "#microsoft.graph.macOsVppAppAssignmentSettings": diff --git a/models/networkaccess/tls_certificate_status.go b/models/networkaccess/tls_certificate_status.go index 1446eab1eae..850019e51ac 100644 --- a/models/networkaccess/tls_certificate_status.go +++ b/models/networkaccess/tls_certificate_status.go @@ -13,10 +13,12 @@ const ( EXPIRED_TLSCERTIFICATESTATUS ENABLED_TLSCERTIFICATESTATUS DISABLED_TLSCERTIFICATESTATUS + CREATING_TLSCERTIFICATESTATUS + REVOKED_TLSCERTIFICATESTATUS ) func (i TlsCertificateStatus) String() string { - return []string{"csrGenerated", "enrolling", "active", "unknownFutureValue", "expiring", "expired", "enabled", "disabled"}[i] + return []string{"csrGenerated", "enrolling", "active", "unknownFutureValue", "expiring", "expired", "enabled", "disabled", "creating", "revoked"}[i] } func ParseTlsCertificateStatus(v string) (any, error) { result := CSRGENERATED_TLSCERTIFICATESTATUS @@ -37,6 +39,10 @@ func ParseTlsCertificateStatus(v string) (any, error) { result = ENABLED_TLSCERTIFICATESTATUS case "disabled": result = DISABLED_TLSCERTIFICATESTATUS + case "creating": + result = CREATING_TLSCERTIFICATESTATUS + case "revoked": + result = REVOKED_TLSCERTIFICATESTATUS default: return nil, nil } diff --git a/models/notify_user_action.go b/models/notify_user_action.go index 4c52666eee7..d17f63ec4fb 100644 --- a/models/notify_user_action.go +++ b/models/notify_user_action.go @@ -9,12 +9,12 @@ import ( ) type NotifyUserAction struct { - DlpActionInfo + PolicyTipAction } // NewNotifyUserAction instantiates a new NotifyUserAction and sets the default values. func NewNotifyUserAction()(*NotifyUserAction) { m := &NotifyUserAction{ - DlpActionInfo: *NewDlpActionInfo(), + PolicyTipAction: *NewPolicyTipAction(), } return m } @@ -50,7 +50,7 @@ func (m *NotifyUserAction) GetEmailText()(*string) { // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *NotifyUserAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.DlpActionInfo.GetFieldDeserializers() + res := m.PolicyTipAction.GetFieldDeserializers() res["actionLastModifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -71,16 +71,6 @@ func (m *NotifyUserAction) GetFieldDeserializers()(map[string]func(i878a80d2330e } return nil } - res["policyTip"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPolicyTip(val) - } - return nil - } res["recipients"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -99,18 +89,6 @@ func (m *NotifyUserAction) GetFieldDeserializers()(map[string]func(i878a80d2330e } return res } -// GetPolicyTip gets the policyTip property value. The text of the policy tip displayed to the user within the application (For example, Outlook, Word). -// returns a *string when successful -func (m *NotifyUserAction) GetPolicyTip()(*string) { - val, err := m.GetBackingStore().Get("policyTip") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} // GetRecipients gets the recipients property value. List of email addresses or user identifiers designated to receive the notification email. Can include sender, owner, manager, etc. // returns a []string when successful func (m *NotifyUserAction) GetRecipients()([]string) { @@ -125,7 +103,7 @@ func (m *NotifyUserAction) GetRecipients()([]string) { } // Serialize serializes information the current object func (m *NotifyUserAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.DlpActionInfo.Serialize(writer) + err := m.PolicyTipAction.Serialize(writer) if err != nil { return err } @@ -141,12 +119,6 @@ func (m *NotifyUserAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b return err } } - { - err = writer.WriteStringValue("policyTip", m.GetPolicyTip()) - if err != nil { - return err - } - } if m.GetRecipients() != nil { err = writer.WriteCollectionOfStringValues("recipients", m.GetRecipients()) if err != nil { @@ -169,13 +141,6 @@ func (m *NotifyUserAction) SetEmailText(value *string)() { panic(err) } } -// SetPolicyTip sets the policyTip property value. The text of the policy tip displayed to the user within the application (For example, Outlook, Word). -func (m *NotifyUserAction) SetPolicyTip(value *string)() { - err := m.GetBackingStore().Set("policyTip", value) - if err != nil { - panic(err) - } -} // SetRecipients sets the recipients property value. List of email addresses or user identifiers designated to receive the notification email. Can include sender, owner, manager, etc. func (m *NotifyUserAction) SetRecipients(value []string)() { err := m.GetBackingStore().Set("recipients", value) @@ -184,14 +149,12 @@ func (m *NotifyUserAction) SetRecipients(value []string)() { } } type NotifyUserActionable interface { - DlpActionInfoable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + PolicyTipActionable GetActionLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetEmailText()(*string) - GetPolicyTip()(*string) GetRecipients()([]string) SetActionLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetEmailText(value *string)() - SetPolicyTip(value *string)() SetRecipients(value []string)() } diff --git a/models/onboarding_status.go b/models/onboarding_status.go index 3772ea19d81..8d777bb7e15 100644 --- a/models/onboarding_status.go +++ b/models/onboarding_status.go @@ -16,7 +16,7 @@ const ( FAILED_ONBOARDINGSTATUS // Offboarding OFFBOARDING_ONBOARDINGSTATUS - // Evolvable enumeration sentinel value. Do not use. + // UnknownFutureValue UNKNOWNFUTUREVALUE_ONBOARDINGSTATUS ) diff --git a/models/one_drive_for_business_protection_policy.go b/models/one_drive_for_business_protection_policy.go index 8bafe627667..cb7eb390ae8 100644 --- a/models/one_drive_for_business_protection_policy.go +++ b/models/one_drive_for_business_protection_policy.go @@ -24,7 +24,7 @@ func NewOneDriveForBusinessProtectionPolicy()(*OneDriveForBusinessProtectionPoli func CreateOneDriveForBusinessProtectionPolicyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewOneDriveForBusinessProtectionPolicy(), nil } -// GetDriveExclusionUnits gets the driveExclusionUnits property value. The driveExclusionUnits property +// GetDriveExclusionUnits gets the driveExclusionUnits property value. The drive exclusion units associated with the OneDrive for work or school protection policy. // returns a []DriveExclusionUnitable when successful func (m *OneDriveForBusinessProtectionPolicy) GetDriveExclusionUnits()([]DriveExclusionUnitable) { val, err := m.GetBackingStore().Get("driveExclusionUnits") @@ -36,7 +36,7 @@ func (m *OneDriveForBusinessProtectionPolicy) GetDriveExclusionUnits()([]DriveEx } return nil } -// GetDriveExclusionUnitsBulkAdditionJobs gets the driveExclusionUnitsBulkAdditionJobs property value. The driveExclusionUnitsBulkAdditionJobs property +// GetDriveExclusionUnitsBulkAdditionJobs gets the driveExclusionUnitsBulkAdditionJobs property value. The list of bulk addition jobs for drive exclusion units associated with the OneDrive for work or school protection policy. // returns a []DriveExclusionUnitsBulkAdditionJobable when successful func (m *OneDriveForBusinessProtectionPolicy) GetDriveExclusionUnitsBulkAdditionJobs()([]DriveExclusionUnitsBulkAdditionJobable) { val, err := m.GetBackingStore().Get("driveExclusionUnitsBulkAdditionJobs") @@ -238,14 +238,14 @@ func (m *OneDriveForBusinessProtectionPolicy) Serialize(writer i878a80d2330e89d2 } return nil } -// SetDriveExclusionUnits sets the driveExclusionUnits property value. The driveExclusionUnits property +// SetDriveExclusionUnits sets the driveExclusionUnits property value. The drive exclusion units associated with the OneDrive for work or school protection policy. func (m *OneDriveForBusinessProtectionPolicy) SetDriveExclusionUnits(value []DriveExclusionUnitable)() { err := m.GetBackingStore().Set("driveExclusionUnits", value) if err != nil { panic(err) } } -// SetDriveExclusionUnitsBulkAdditionJobs sets the driveExclusionUnitsBulkAdditionJobs property value. The driveExclusionUnitsBulkAdditionJobs property +// SetDriveExclusionUnitsBulkAdditionJobs sets the driveExclusionUnitsBulkAdditionJobs property value. The list of bulk addition jobs for drive exclusion units associated with the OneDrive for work or school protection policy. func (m *OneDriveForBusinessProtectionPolicy) SetDriveExclusionUnitsBulkAdditionJobs(value []DriveExclusionUnitsBulkAdditionJobable)() { err := m.GetBackingStore().Set("driveExclusionUnitsBulkAdditionJobs", value) if err != nil { diff --git a/models/online_meeting_base.go b/models/online_meeting_base.go index a60b12ac7c5..b09cd177a15 100644 --- a/models/online_meeting_base.go +++ b/models/online_meeting_base.go @@ -271,7 +271,7 @@ func (m *OnlineMeetingBase) GetChatRestrictions()(ChatRestrictionsable) { } return nil } -// GetCloudVideoInteropInfo gets the cloudVideoInteropInfo property value. The cloudVideoInteropInfo property +// GetCloudVideoInteropInfo gets the cloudVideoInteropInfo property value. Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. // returns a CloudVideoInteropInfoable when successful func (m *OnlineMeetingBase) GetCloudVideoInteropInfo()(CloudVideoInteropInfoable) { val, err := m.GetBackingStore().Get("cloudVideoInteropInfo") @@ -601,6 +601,16 @@ func (m *OnlineMeetingBase) GetFieldDeserializers()(map[string]func(i878a80d2330 } return nil } + res["meetingType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseOnlineMeetingType) + if err != nil { + return err + } + if val != nil { + m.SetMeetingType(val.(*OnlineMeetingType)) + } + return nil + } res["recordAutomatically"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -759,6 +769,18 @@ func (m *OnlineMeetingBase) GetMeetingSpokenLanguageTag()(*string) { } return nil } +// GetMeetingType gets the meetingType property value. The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. +// returns a *OnlineMeetingType when successful +func (m *OnlineMeetingBase) GetMeetingType()(*OnlineMeetingType) { + val, err := m.GetBackingStore().Get("meetingType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*OnlineMeetingType) + } + return nil +} // GetRecordAutomatically gets the recordAutomatically property value. Indicates whether to record the meeting automatically. // returns a *bool when successful func (m *OnlineMeetingBase) GetRecordAutomatically()(*bool) { @@ -1021,6 +1043,13 @@ func (m *OnlineMeetingBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } + if m.GetMeetingType() != nil { + cast := (*m.GetMeetingType()).String() + err = writer.WriteStringValue("meetingType", &cast) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("recordAutomatically", m.GetRecordAutomatically()) if err != nil { @@ -1193,7 +1222,7 @@ func (m *OnlineMeetingBase) SetChatRestrictions(value ChatRestrictionsable)() { panic(err) } } -// SetCloudVideoInteropInfo sets the cloudVideoInteropInfo property value. The cloudVideoInteropInfo property +// SetCloudVideoInteropInfo sets the cloudVideoInteropInfo property value. Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. func (m *OnlineMeetingBase) SetCloudVideoInteropInfo(value CloudVideoInteropInfoable)() { err := m.GetBackingStore().Set("cloudVideoInteropInfo", value) if err != nil { @@ -1263,6 +1292,13 @@ func (m *OnlineMeetingBase) SetMeetingSpokenLanguageTag(value *string)() { panic(err) } } +// SetMeetingType sets the meetingType property value. The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. +func (m *OnlineMeetingBase) SetMeetingType(value *OnlineMeetingType)() { + err := m.GetBackingStore().Set("meetingType", value) + if err != nil { + panic(err) + } +} // SetRecordAutomatically sets the recordAutomatically property value. Indicates whether to record the meeting automatically. func (m *OnlineMeetingBase) SetRecordAutomatically(value *bool)() { err := m.GetBackingStore().Set("recordAutomatically", value) @@ -1337,6 +1373,7 @@ type OnlineMeetingBaseable interface { GetLobbyBypassSettings()(LobbyBypassSettingsable) GetMeetingOptionsWebUrl()(*string) GetMeetingSpokenLanguageTag()(*string) + GetMeetingType()(*OnlineMeetingType) GetRecordAutomatically()(*bool) GetSensitivityLabelAssignment()(OnlineMeetingSensitivityLabelAssignmentable) GetShareMeetingChatHistoryDefault()(*MeetingChatHistoryDefaultMode) @@ -1372,6 +1409,7 @@ type OnlineMeetingBaseable interface { SetLobbyBypassSettings(value LobbyBypassSettingsable)() SetMeetingOptionsWebUrl(value *string)() SetMeetingSpokenLanguageTag(value *string)() + SetMeetingType(value *OnlineMeetingType)() SetRecordAutomatically(value *bool)() SetSensitivityLabelAssignment(value OnlineMeetingSensitivityLabelAssignmentable)() SetShareMeetingChatHistoryDefault(value *MeetingChatHistoryDefaultMode)() diff --git a/models/online_meeting_type.go b/models/online_meeting_type.go new file mode 100644 index 00000000000..cbd664c4502 --- /dev/null +++ b/models/online_meeting_type.go @@ -0,0 +1,48 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +type OnlineMeetingType int + +const ( + ADHOC_ONLINEMEETINGTYPE OnlineMeetingType = iota + SCHEDULED_ONLINEMEETINGTYPE + RECURRING_ONLINEMEETINGTYPE + BROADCAST_ONLINEMEETINGTYPE + MEETNOW_ONLINEMEETINGTYPE + UNKNOWNFUTUREVALUE_ONLINEMEETINGTYPE +) + +func (i OnlineMeetingType) String() string { + return []string{"adhoc", "scheduled", "recurring", "broadcast", "meetnow", "unknownFutureValue"}[i] +} +func ParseOnlineMeetingType(v string) (any, error) { + result := ADHOC_ONLINEMEETINGTYPE + switch v { + case "adhoc": + result = ADHOC_ONLINEMEETINGTYPE + case "scheduled": + result = SCHEDULED_ONLINEMEETINGTYPE + case "recurring": + result = RECURRING_ONLINEMEETINGTYPE + case "broadcast": + result = BROADCAST_ONLINEMEETINGTYPE + case "meetnow": + result = MEETNOW_ONLINEMEETINGTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_ONLINEMEETINGTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeOnlineMeetingType(values []OnlineMeetingType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i OnlineMeetingType) isMultiValue() bool { + return false +} diff --git a/models/outlook_item.go b/models/outlook_item.go index a18e9568b36..38ccfa317af 100644 --- a/models/outlook_item.go +++ b/models/outlook_item.go @@ -37,6 +37,8 @@ func CreateOutlookItemFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a return NewCalendarSharingMessage(), nil case "#microsoft.graph.contact": return NewContact(), nil + case "#microsoft.graph.distributionList": + return NewDistributionList(), nil case "#microsoft.graph.event": return NewEvent(), nil case "#microsoft.graph.eventMessage": diff --git a/models/password_single_sign_on_field.go b/models/password_single_sign_on_field.go index f38c5d6f293..0668301951d 100644 --- a/models/password_single_sign_on_field.go +++ b/models/password_single_sign_on_field.go @@ -55,7 +55,7 @@ func (m *PasswordSingleSignOnField) GetCustomizedLabel()(*string) { } return nil } -// GetDefaultLabel gets the defaultLabel property value. Label that would be used if no customizedLabel is provided. Read only. +// GetDefaultLabel gets the defaultLabel property value. Label that would be used if no customizedLabel is provided. Read-only. // returns a *string when successful func (m *PasswordSingleSignOnField) GetDefaultLabel()(*string) { val, err := m.GetBackingStore().Get("defaultLabel") @@ -217,7 +217,7 @@ func (m *PasswordSingleSignOnField) SetCustomizedLabel(value *string)() { panic(err) } } -// SetDefaultLabel sets the defaultLabel property value. Label that would be used if no customizedLabel is provided. Read only. +// SetDefaultLabel sets the defaultLabel property value. Label that would be used if no customizedLabel is provided. Read-only. func (m *PasswordSingleSignOnField) SetDefaultLabel(value *string)() { err := m.GetBackingStore().Set("defaultLabel", value) if err != nil { diff --git a/models/planner_delta.go b/models/planner_delta.go index 7de1e9ac239..64a10601ead 100644 --- a/models/planner_delta.go +++ b/models/planner_delta.go @@ -40,6 +40,8 @@ func CreatePlannerDeltaFromDiscriminatorValue(parseNode i878a80d2330e89d26896388 return NewPlannerBucket(), nil case "#microsoft.graph.plannerBucketTaskBoardTaskFormat": return NewPlannerBucketTaskBoardTaskFormat(), nil + case "#microsoft.graph.plannerHistoryItem": + return NewPlannerHistoryItem(), nil case "#microsoft.graph.plannerPlan": return NewPlannerPlan(), nil case "#microsoft.graph.plannerPlanDetails": @@ -52,6 +54,8 @@ func CreatePlannerDeltaFromDiscriminatorValue(parseNode i878a80d2330e89d26896388 return NewPlannerTaskDetails(), nil case "#microsoft.graph.plannerUser": return NewPlannerUser(), nil + case "#microsoft.graph.taskHistoryItem": + return NewTaskHistoryItem(), nil } } } diff --git a/models/planner_history_item.go b/models/planner_history_item.go new file mode 100644 index 00000000000..5f0c79c0d9a --- /dev/null +++ b/models/planner_history_item.go @@ -0,0 +1,285 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type PlannerHistoryItem struct { + PlannerDelta +} +// NewPlannerHistoryItem instantiates a new PlannerHistoryItem and sets the default values. +func NewPlannerHistoryItem()(*PlannerHistoryItem) { + m := &PlannerHistoryItem{ + PlannerDelta: *NewPlannerDelta(), + } + return m +} +// CreatePlannerHistoryItemFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreatePlannerHistoryItemFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.taskHistoryItem": + return NewTaskHistoryItem(), nil + } + } + } + } + return NewPlannerHistoryItem(), nil +} +// GetActor gets the actor property value. The actor property +// returns a IdentitySetable when successful +func (m *PlannerHistoryItem) GetActor()(IdentitySetable) { + val, err := m.GetBackingStore().Get("actor") + if err != nil { + panic(err) + } + if val != nil { + return val.(IdentitySetable) + } + return nil +} +// GetEntityId gets the entityId property value. The entityId property +// returns a *string when successful +func (m *PlannerHistoryItem) GetEntityId()(*string) { + val, err := m.GetBackingStore().Get("entityId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetEntityType gets the entityType property value. The entityType property +// returns a *HistoryEntityType when successful +func (m *PlannerHistoryItem) GetEntityType()(*HistoryEntityType) { + val, err := m.GetBackingStore().Get("entityType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*HistoryEntityType) + } + return nil +} +// GetEventType gets the eventType property value. The eventType property +// returns a *HistoryEventType when successful +func (m *PlannerHistoryItem) GetEventType()(*HistoryEventType) { + val, err := m.GetBackingStore().Get("eventType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*HistoryEventType) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *PlannerHistoryItem) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.PlannerDelta.GetFieldDeserializers() + res["actor"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateIdentitySetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetActor(val.(IdentitySetable)) + } + return nil + } + res["entityId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEntityId(val) + } + return nil + } + res["entityType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseHistoryEntityType) + if err != nil { + return err + } + if val != nil { + m.SetEntityType(val.(*HistoryEntityType)) + } + return nil + } + res["eventType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseHistoryEventType) + if err != nil { + return err + } + if val != nil { + m.SetEventType(val.(*HistoryEventType)) + } + return nil + } + res["occurredDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetOccurredDateTime(val) + } + return nil + } + res["planId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPlanId(val) + } + return nil + } + return res +} +// GetOccurredDateTime gets the occurredDateTime property value. The occurredDateTime property +// returns a *Time when successful +func (m *PlannerHistoryItem) GetOccurredDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("occurredDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetPlanId gets the planId property value. The planId property +// returns a *string when successful +func (m *PlannerHistoryItem) GetPlanId()(*string) { + val, err := m.GetBackingStore().Get("planId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *PlannerHistoryItem) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.PlannerDelta.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("actor", m.GetActor()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("entityId", m.GetEntityId()) + if err != nil { + return err + } + } + if m.GetEntityType() != nil { + cast := (*m.GetEntityType()).String() + err = writer.WriteStringValue("entityType", &cast) + if err != nil { + return err + } + } + if m.GetEventType() != nil { + cast := (*m.GetEventType()).String() + err = writer.WriteStringValue("eventType", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("occurredDateTime", m.GetOccurredDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("planId", m.GetPlanId()) + if err != nil { + return err + } + } + return nil +} +// SetActor sets the actor property value. The actor property +func (m *PlannerHistoryItem) SetActor(value IdentitySetable)() { + err := m.GetBackingStore().Set("actor", value) + if err != nil { + panic(err) + } +} +// SetEntityId sets the entityId property value. The entityId property +func (m *PlannerHistoryItem) SetEntityId(value *string)() { + err := m.GetBackingStore().Set("entityId", value) + if err != nil { + panic(err) + } +} +// SetEntityType sets the entityType property value. The entityType property +func (m *PlannerHistoryItem) SetEntityType(value *HistoryEntityType)() { + err := m.GetBackingStore().Set("entityType", value) + if err != nil { + panic(err) + } +} +// SetEventType sets the eventType property value. The eventType property +func (m *PlannerHistoryItem) SetEventType(value *HistoryEventType)() { + err := m.GetBackingStore().Set("eventType", value) + if err != nil { + panic(err) + } +} +// SetOccurredDateTime sets the occurredDateTime property value. The occurredDateTime property +func (m *PlannerHistoryItem) SetOccurredDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("occurredDateTime", value) + if err != nil { + panic(err) + } +} +// SetPlanId sets the planId property value. The planId property +func (m *PlannerHistoryItem) SetPlanId(value *string)() { + err := m.GetBackingStore().Set("planId", value) + if err != nil { + panic(err) + } +} +type PlannerHistoryItemable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + PlannerDeltaable + GetActor()(IdentitySetable) + GetEntityId()(*string) + GetEntityType()(*HistoryEntityType) + GetEventType()(*HistoryEventType) + GetOccurredDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetPlanId()(*string) + SetActor(value IdentitySetable)() + SetEntityId(value *string)() + SetEntityType(value *HistoryEntityType)() + SetEventType(value *HistoryEventType)() + SetOccurredDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetPlanId(value *string)() +} diff --git a/models/planner_history_item_collection_response.go b/models/planner_history_item_collection_response.go new file mode 100644 index 00000000000..e982ace21a6 --- /dev/null +++ b/models/planner_history_item_collection_response.go @@ -0,0 +1,91 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type PlannerHistoryItemCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewPlannerHistoryItemCollectionResponse instantiates a new PlannerHistoryItemCollectionResponse and sets the default values. +func NewPlannerHistoryItemCollectionResponse()(*PlannerHistoryItemCollectionResponse) { + m := &PlannerHistoryItemCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreatePlannerHistoryItemCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreatePlannerHistoryItemCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPlannerHistoryItemCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *PlannerHistoryItemCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreatePlannerHistoryItemFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]PlannerHistoryItemable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(PlannerHistoryItemable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []PlannerHistoryItemable when successful +func (m *PlannerHistoryItemCollectionResponse) GetValue()([]PlannerHistoryItemable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]PlannerHistoryItemable) + } + return nil +} +// Serialize serializes information the current object +func (m *PlannerHistoryItemCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *PlannerHistoryItemCollectionResponse) SetValue(value []PlannerHistoryItemable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type PlannerHistoryItemCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]PlannerHistoryItemable) + SetValue(value []PlannerHistoryItemable)() +} diff --git a/models/planner_plan.go b/models/planner_plan.go index 4270fa1fa1a..41b709508a2 100644 --- a/models/planner_plan.go +++ b/models/planner_plan.go @@ -231,6 +231,22 @@ func (m *PlannerPlan) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return nil } + res["historyItems"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreatePlannerHistoryItemFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]PlannerHistoryItemable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(PlannerHistoryItemable) + } + } + m.SetHistoryItems(res) + } + return nil + } res["isArchived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -295,6 +311,18 @@ func (m *PlannerPlan) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return res } +// GetHistoryItems gets the historyItems property value. The historyItems property +// returns a []PlannerHistoryItemable when successful +func (m *PlannerPlan) GetHistoryItems()([]PlannerHistoryItemable) { + val, err := m.GetBackingStore().Get("historyItems") + if err != nil { + panic(err) + } + if val != nil { + return val.([]PlannerHistoryItemable) + } + return nil +} // GetIsArchived gets the isArchived property value. Read-only. If set to true, the plan is archived. An archived plan is read-only. // returns a *bool when successful func (m *PlannerPlan) GetIsArchived()(*bool) { @@ -421,6 +449,18 @@ func (m *PlannerPlan) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + if m.GetHistoryItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetHistoryItems())) + for i, v := range m.GetHistoryItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("historyItems", cast) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("isArchived", m.GetIsArchived()) if err != nil { @@ -528,6 +568,13 @@ func (m *PlannerPlan) SetDetails(value PlannerPlanDetailsable)() { panic(err) } } +// SetHistoryItems sets the historyItems property value. The historyItems property +func (m *PlannerPlan) SetHistoryItems(value []PlannerHistoryItemable)() { + err := m.GetBackingStore().Set("historyItems", value) + if err != nil { + panic(err) + } +} // SetIsArchived sets the isArchived property value. Read-only. If set to true, the plan is archived. An archived plan is read-only. func (m *PlannerPlan) SetIsArchived(value *bool)() { err := m.GetBackingStore().Set("isArchived", value) @@ -575,6 +622,7 @@ type PlannerPlanable interface { GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetCreationSource()(PlannerPlanCreationable) GetDetails()(PlannerPlanDetailsable) + GetHistoryItems()([]PlannerHistoryItemable) GetIsArchived()(*bool) GetOwner()(*string) GetSharedWithContainers()([]PlannerSharedWithContainerable) @@ -589,6 +637,7 @@ type PlannerPlanable interface { SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCreationSource(value PlannerPlanCreationable)() SetDetails(value PlannerPlanDetailsable)() + SetHistoryItems(value []PlannerHistoryItemable)() SetIsArchived(value *bool)() SetOwner(value *string)() SetSharedWithContainers(value []PlannerSharedWithContainerable)() diff --git a/models/planner_task_data.go b/models/planner_task_data.go new file mode 100644 index 00000000000..c34ff0d94e8 --- /dev/null +++ b/models/planner_task_data.go @@ -0,0 +1,1081 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type PlannerTaskData struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewPlannerTaskData instantiates a new PlannerTaskData and sets the default values. +func NewPlannerTaskData()(*PlannerTaskData) { + m := &PlannerTaskData{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreatePlannerTaskDataFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreatePlannerTaskDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPlannerTaskData(), nil +} +// GetActiveChecklistItemCount gets the activeChecklistItemCount property value. The activeChecklistItemCount property +// returns a *int32 when successful +func (m *PlannerTaskData) GetActiveChecklistItemCount()(*int32) { + val, err := m.GetBackingStore().Get("activeChecklistItemCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *PlannerTaskData) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetAppliedCategories gets the appliedCategories property value. The appliedCategories property +// returns a PlannerAppliedCategoriesable when successful +func (m *PlannerTaskData) GetAppliedCategories()(PlannerAppliedCategoriesable) { + val, err := m.GetBackingStore().Get("appliedCategories") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerAppliedCategoriesable) + } + return nil +} +// GetArchivalInfo gets the archivalInfo property value. The archivalInfo property +// returns a PlannerArchivalInfoable when successful +func (m *PlannerTaskData) GetArchivalInfo()(PlannerArchivalInfoable) { + val, err := m.GetBackingStore().Get("archivalInfo") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerArchivalInfoable) + } + return nil +} +// GetAssignments gets the assignments property value. The assignments property +// returns a PlannerAssignmentsable when successful +func (m *PlannerTaskData) GetAssignments()(PlannerAssignmentsable) { + val, err := m.GetBackingStore().Get("assignments") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerAssignmentsable) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *PlannerTaskData) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetBucketId gets the bucketId property value. The bucketId property +// returns a *string when successful +func (m *PlannerTaskData) GetBucketId()(*string) { + val, err := m.GetBackingStore().Get("bucketId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetChecklistItemCount gets the checklistItemCount property value. The checklistItemCount property +// returns a *int32 when successful +func (m *PlannerTaskData) GetChecklistItemCount()(*int32) { + val, err := m.GetBackingStore().Get("checklistItemCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetCompletedBy gets the completedBy property value. The completedBy property +// returns a IdentitySetable when successful +func (m *PlannerTaskData) GetCompletedBy()(IdentitySetable) { + val, err := m.GetBackingStore().Get("completedBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(IdentitySetable) + } + return nil +} +// GetCompletedDateTime gets the completedDateTime property value. The completedDateTime property +// returns a *Time when successful +func (m *PlannerTaskData) GetCompletedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("completedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetConversationThreadId gets the conversationThreadId property value. The conversationThreadId property +// returns a *string when successful +func (m *PlannerTaskData) GetConversationThreadId()(*string) { + val, err := m.GetBackingStore().Get("conversationThreadId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetCreatedBy gets the createdBy property value. The createdBy property +// returns a IdentitySetable when successful +func (m *PlannerTaskData) GetCreatedBy()(IdentitySetable) { + val, err := m.GetBackingStore().Get("createdBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(IdentitySetable) + } + return nil +} +// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// returns a *Time when successful +func (m *PlannerTaskData) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetCreationSource gets the creationSource property value. The creationSource property +// returns a PlannerTaskCreationable when successful +func (m *PlannerTaskData) GetCreationSource()(PlannerTaskCreationable) { + val, err := m.GetBackingStore().Get("creationSource") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerTaskCreationable) + } + return nil +} +// GetDetails gets the details property value. The details property +// returns a PlannerTaskDetailsDataable when successful +func (m *PlannerTaskData) GetDetails()(PlannerTaskDetailsDataable) { + val, err := m.GetBackingStore().Get("details") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerTaskDetailsDataable) + } + return nil +} +// GetDueDateTime gets the dueDateTime property value. The dueDateTime property +// returns a *Time when successful +func (m *PlannerTaskData) GetDueDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("dueDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *PlannerTaskData) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["activeChecklistItemCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetActiveChecklistItemCount(val) + } + return nil + } + res["appliedCategories"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerAppliedCategoriesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAppliedCategories(val.(PlannerAppliedCategoriesable)) + } + return nil + } + res["archivalInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerArchivalInfoFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetArchivalInfo(val.(PlannerArchivalInfoable)) + } + return nil + } + res["assignments"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerAssignmentsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAssignments(val.(PlannerAssignmentsable)) + } + return nil + } + res["bucketId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetBucketId(val) + } + return nil + } + res["checklistItemCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetChecklistItemCount(val) + } + return nil + } + res["completedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateIdentitySetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCompletedBy(val.(IdentitySetable)) + } + return nil + } + res["completedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCompletedDateTime(val) + } + return nil + } + res["conversationThreadId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetConversationThreadId(val) + } + return nil + } + res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateIdentitySetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCreatedBy(val.(IdentitySetable)) + } + return nil + } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } + res["creationSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerTaskCreationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCreationSource(val.(PlannerTaskCreationable)) + } + return nil + } + res["details"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerTaskDetailsDataFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetDetails(val.(PlannerTaskDetailsDataable)) + } + return nil + } + res["dueDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetDueDateTime(val) + } + return nil + } + res["hasChat"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetHasChat(val) + } + return nil + } + res["hasDescription"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetHasDescription(val) + } + return nil + } + res["isArchived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsArchived(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["orderHint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOrderHint(val) + } + return nil + } + res["percentComplete"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetPercentComplete(val) + } + return nil + } + res["previewType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParsePlannerPreviewType) + if err != nil { + return err + } + if val != nil { + m.SetPreviewType(val.(*PlannerPreviewType)) + } + return nil + } + res["priority"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetPriority(val) + } + return nil + } + res["recurrence"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerTaskRecurrenceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetRecurrence(val.(PlannerTaskRecurrenceable)) + } + return nil + } + res["referenceCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetReferenceCount(val) + } + return nil + } + res["specifiedCompletionRequirements"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParsePlannerTaskCompletionRequirements) + if err != nil { + return err + } + if val != nil { + m.SetSpecifiedCompletionRequirements(val.(*PlannerTaskCompletionRequirements)) + } + return nil + } + res["startDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStartDateTime(val) + } + return nil + } + res["title"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTitle(val) + } + return nil + } + return res +} +// GetHasChat gets the hasChat property value. The hasChat property +// returns a *bool when successful +func (m *PlannerTaskData) GetHasChat()(*bool) { + val, err := m.GetBackingStore().Get("hasChat") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetHasDescription gets the hasDescription property value. The hasDescription property +// returns a *bool when successful +func (m *PlannerTaskData) GetHasDescription()(*bool) { + val, err := m.GetBackingStore().Get("hasDescription") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsArchived gets the isArchived property value. The isArchived property +// returns a *bool when successful +func (m *PlannerTaskData) GetIsArchived()(*bool) { + val, err := m.GetBackingStore().Get("isArchived") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *PlannerTaskData) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOrderHint gets the orderHint property value. The orderHint property +// returns a *string when successful +func (m *PlannerTaskData) GetOrderHint()(*string) { + val, err := m.GetBackingStore().Get("orderHint") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPercentComplete gets the percentComplete property value. The percentComplete property +// returns a *int32 when successful +func (m *PlannerTaskData) GetPercentComplete()(*int32) { + val, err := m.GetBackingStore().Get("percentComplete") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetPreviewType gets the previewType property value. The previewType property +// returns a *PlannerPreviewType when successful +func (m *PlannerTaskData) GetPreviewType()(*PlannerPreviewType) { + val, err := m.GetBackingStore().Get("previewType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*PlannerPreviewType) + } + return nil +} +// GetPriority gets the priority property value. The priority property +// returns a *int32 when successful +func (m *PlannerTaskData) GetPriority()(*int32) { + val, err := m.GetBackingStore().Get("priority") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetRecurrence gets the recurrence property value. The recurrence property +// returns a PlannerTaskRecurrenceable when successful +func (m *PlannerTaskData) GetRecurrence()(PlannerTaskRecurrenceable) { + val, err := m.GetBackingStore().Get("recurrence") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerTaskRecurrenceable) + } + return nil +} +// GetReferenceCount gets the referenceCount property value. The referenceCount property +// returns a *int32 when successful +func (m *PlannerTaskData) GetReferenceCount()(*int32) { + val, err := m.GetBackingStore().Get("referenceCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetSpecifiedCompletionRequirements gets the specifiedCompletionRequirements property value. The specifiedCompletionRequirements property +// returns a *PlannerTaskCompletionRequirements when successful +func (m *PlannerTaskData) GetSpecifiedCompletionRequirements()(*PlannerTaskCompletionRequirements) { + val, err := m.GetBackingStore().Get("specifiedCompletionRequirements") + if err != nil { + panic(err) + } + if val != nil { + return val.(*PlannerTaskCompletionRequirements) + } + return nil +} +// GetStartDateTime gets the startDateTime property value. The startDateTime property +// returns a *Time when successful +func (m *PlannerTaskData) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("startDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetTitle gets the title property value. The title property +// returns a *string when successful +func (m *PlannerTaskData) GetTitle()(*string) { + val, err := m.GetBackingStore().Get("title") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *PlannerTaskData) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("activeChecklistItemCount", m.GetActiveChecklistItemCount()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("appliedCategories", m.GetAppliedCategories()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("archivalInfo", m.GetArchivalInfo()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("assignments", m.GetAssignments()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("bucketId", m.GetBucketId()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("checklistItemCount", m.GetChecklistItemCount()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("completedBy", m.GetCompletedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("completedDateTime", m.GetCompletedDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("conversationThreadId", m.GetConversationThreadId()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("createdBy", m.GetCreatedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("creationSource", m.GetCreationSource()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("details", m.GetDetails()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("dueDateTime", m.GetDueDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("hasChat", m.GetHasChat()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("hasDescription", m.GetHasDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isArchived", m.GetIsArchived()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("orderHint", m.GetOrderHint()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("percentComplete", m.GetPercentComplete()) + if err != nil { + return err + } + } + if m.GetPreviewType() != nil { + cast := (*m.GetPreviewType()).String() + err := writer.WriteStringValue("previewType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("priority", m.GetPriority()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("recurrence", m.GetRecurrence()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("referenceCount", m.GetReferenceCount()) + if err != nil { + return err + } + } + if m.GetSpecifiedCompletionRequirements() != nil { + cast := (*m.GetSpecifiedCompletionRequirements()).String() + err := writer.WriteStringValue("specifiedCompletionRequirements", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("startDateTime", m.GetStartDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("title", m.GetTitle()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetActiveChecklistItemCount sets the activeChecklistItemCount property value. The activeChecklistItemCount property +func (m *PlannerTaskData) SetActiveChecklistItemCount(value *int32)() { + err := m.GetBackingStore().Set("activeChecklistItemCount", value) + if err != nil { + panic(err) + } +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlannerTaskData) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAppliedCategories sets the appliedCategories property value. The appliedCategories property +func (m *PlannerTaskData) SetAppliedCategories(value PlannerAppliedCategoriesable)() { + err := m.GetBackingStore().Set("appliedCategories", value) + if err != nil { + panic(err) + } +} +// SetArchivalInfo sets the archivalInfo property value. The archivalInfo property +func (m *PlannerTaskData) SetArchivalInfo(value PlannerArchivalInfoable)() { + err := m.GetBackingStore().Set("archivalInfo", value) + if err != nil { + panic(err) + } +} +// SetAssignments sets the assignments property value. The assignments property +func (m *PlannerTaskData) SetAssignments(value PlannerAssignmentsable)() { + err := m.GetBackingStore().Set("assignments", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *PlannerTaskData) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetBucketId sets the bucketId property value. The bucketId property +func (m *PlannerTaskData) SetBucketId(value *string)() { + err := m.GetBackingStore().Set("bucketId", value) + if err != nil { + panic(err) + } +} +// SetChecklistItemCount sets the checklistItemCount property value. The checklistItemCount property +func (m *PlannerTaskData) SetChecklistItemCount(value *int32)() { + err := m.GetBackingStore().Set("checklistItemCount", value) + if err != nil { + panic(err) + } +} +// SetCompletedBy sets the completedBy property value. The completedBy property +func (m *PlannerTaskData) SetCompletedBy(value IdentitySetable)() { + err := m.GetBackingStore().Set("completedBy", value) + if err != nil { + panic(err) + } +} +// SetCompletedDateTime sets the completedDateTime property value. The completedDateTime property +func (m *PlannerTaskData) SetCompletedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("completedDateTime", value) + if err != nil { + panic(err) + } +} +// SetConversationThreadId sets the conversationThreadId property value. The conversationThreadId property +func (m *PlannerTaskData) SetConversationThreadId(value *string)() { + err := m.GetBackingStore().Set("conversationThreadId", value) + if err != nil { + panic(err) + } +} +// SetCreatedBy sets the createdBy property value. The createdBy property +func (m *PlannerTaskData) SetCreatedBy(value IdentitySetable)() { + err := m.GetBackingStore().Set("createdBy", value) + if err != nil { + panic(err) + } +} +// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +func (m *PlannerTaskData) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetCreationSource sets the creationSource property value. The creationSource property +func (m *PlannerTaskData) SetCreationSource(value PlannerTaskCreationable)() { + err := m.GetBackingStore().Set("creationSource", value) + if err != nil { + panic(err) + } +} +// SetDetails sets the details property value. The details property +func (m *PlannerTaskData) SetDetails(value PlannerTaskDetailsDataable)() { + err := m.GetBackingStore().Set("details", value) + if err != nil { + panic(err) + } +} +// SetDueDateTime sets the dueDateTime property value. The dueDateTime property +func (m *PlannerTaskData) SetDueDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("dueDateTime", value) + if err != nil { + panic(err) + } +} +// SetHasChat sets the hasChat property value. The hasChat property +func (m *PlannerTaskData) SetHasChat(value *bool)() { + err := m.GetBackingStore().Set("hasChat", value) + if err != nil { + panic(err) + } +} +// SetHasDescription sets the hasDescription property value. The hasDescription property +func (m *PlannerTaskData) SetHasDescription(value *bool)() { + err := m.GetBackingStore().Set("hasDescription", value) + if err != nil { + panic(err) + } +} +// SetIsArchived sets the isArchived property value. The isArchived property +func (m *PlannerTaskData) SetIsArchived(value *bool)() { + err := m.GetBackingStore().Set("isArchived", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *PlannerTaskData) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetOrderHint sets the orderHint property value. The orderHint property +func (m *PlannerTaskData) SetOrderHint(value *string)() { + err := m.GetBackingStore().Set("orderHint", value) + if err != nil { + panic(err) + } +} +// SetPercentComplete sets the percentComplete property value. The percentComplete property +func (m *PlannerTaskData) SetPercentComplete(value *int32)() { + err := m.GetBackingStore().Set("percentComplete", value) + if err != nil { + panic(err) + } +} +// SetPreviewType sets the previewType property value. The previewType property +func (m *PlannerTaskData) SetPreviewType(value *PlannerPreviewType)() { + err := m.GetBackingStore().Set("previewType", value) + if err != nil { + panic(err) + } +} +// SetPriority sets the priority property value. The priority property +func (m *PlannerTaskData) SetPriority(value *int32)() { + err := m.GetBackingStore().Set("priority", value) + if err != nil { + panic(err) + } +} +// SetRecurrence sets the recurrence property value. The recurrence property +func (m *PlannerTaskData) SetRecurrence(value PlannerTaskRecurrenceable)() { + err := m.GetBackingStore().Set("recurrence", value) + if err != nil { + panic(err) + } +} +// SetReferenceCount sets the referenceCount property value. The referenceCount property +func (m *PlannerTaskData) SetReferenceCount(value *int32)() { + err := m.GetBackingStore().Set("referenceCount", value) + if err != nil { + panic(err) + } +} +// SetSpecifiedCompletionRequirements sets the specifiedCompletionRequirements property value. The specifiedCompletionRequirements property +func (m *PlannerTaskData) SetSpecifiedCompletionRequirements(value *PlannerTaskCompletionRequirements)() { + err := m.GetBackingStore().Set("specifiedCompletionRequirements", value) + if err != nil { + panic(err) + } +} +// SetStartDateTime sets the startDateTime property value. The startDateTime property +func (m *PlannerTaskData) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("startDateTime", value) + if err != nil { + panic(err) + } +} +// SetTitle sets the title property value. The title property +func (m *PlannerTaskData) SetTitle(value *string)() { + err := m.GetBackingStore().Set("title", value) + if err != nil { + panic(err) + } +} +type PlannerTaskDataable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetActiveChecklistItemCount()(*int32) + GetAppliedCategories()(PlannerAppliedCategoriesable) + GetArchivalInfo()(PlannerArchivalInfoable) + GetAssignments()(PlannerAssignmentsable) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBucketId()(*string) + GetChecklistItemCount()(*int32) + GetCompletedBy()(IdentitySetable) + GetCompletedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetConversationThreadId()(*string) + GetCreatedBy()(IdentitySetable) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCreationSource()(PlannerTaskCreationable) + GetDetails()(PlannerTaskDetailsDataable) + GetDueDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetHasChat()(*bool) + GetHasDescription()(*bool) + GetIsArchived()(*bool) + GetOdataType()(*string) + GetOrderHint()(*string) + GetPercentComplete()(*int32) + GetPreviewType()(*PlannerPreviewType) + GetPriority()(*int32) + GetRecurrence()(PlannerTaskRecurrenceable) + GetReferenceCount()(*int32) + GetSpecifiedCompletionRequirements()(*PlannerTaskCompletionRequirements) + GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetTitle()(*string) + SetActiveChecklistItemCount(value *int32)() + SetAppliedCategories(value PlannerAppliedCategoriesable)() + SetArchivalInfo(value PlannerArchivalInfoable)() + SetAssignments(value PlannerAssignmentsable)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBucketId(value *string)() + SetChecklistItemCount(value *int32)() + SetCompletedBy(value IdentitySetable)() + SetCompletedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetConversationThreadId(value *string)() + SetCreatedBy(value IdentitySetable)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCreationSource(value PlannerTaskCreationable)() + SetDetails(value PlannerTaskDetailsDataable)() + SetDueDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetHasChat(value *bool)() + SetHasDescription(value *bool)() + SetIsArchived(value *bool)() + SetOdataType(value *string)() + SetOrderHint(value *string)() + SetPercentComplete(value *int32)() + SetPreviewType(value *PlannerPreviewType)() + SetPriority(value *int32)() + SetRecurrence(value PlannerTaskRecurrenceable)() + SetReferenceCount(value *int32)() + SetSpecifiedCompletionRequirements(value *PlannerTaskCompletionRequirements)() + SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetTitle(value *string)() +} diff --git a/models/planner_task_details_data.go b/models/planner_task_details_data.go new file mode 100644 index 00000000000..1e1c960c35e --- /dev/null +++ b/models/planner_task_details_data.go @@ -0,0 +1,413 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type PlannerTaskDetailsData struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewPlannerTaskDetailsData instantiates a new PlannerTaskDetailsData and sets the default values. +func NewPlannerTaskDetailsData()(*PlannerTaskDetailsData) { + m := &PlannerTaskDetailsData{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreatePlannerTaskDetailsDataFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreatePlannerTaskDetailsDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewPlannerTaskDetailsData(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *PlannerTaskDetailsData) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApprovalAttachment gets the approvalAttachment property value. The approvalAttachment property +// returns a PlannerBaseApprovalAttachmentable when successful +func (m *PlannerTaskDetailsData) GetApprovalAttachment()(PlannerBaseApprovalAttachmentable) { + val, err := m.GetBackingStore().Get("approvalAttachment") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerBaseApprovalAttachmentable) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *PlannerTaskDetailsData) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetChecklist gets the checklist property value. The checklist property +// returns a PlannerChecklistItemsable when successful +func (m *PlannerTaskDetailsData) GetChecklist()(PlannerChecklistItemsable) { + val, err := m.GetBackingStore().Get("checklist") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerChecklistItemsable) + } + return nil +} +// GetCompletionRequirements gets the completionRequirements property value. The completionRequirements property +// returns a PlannerTaskCompletionRequirementDetailsable when successful +func (m *PlannerTaskDetailsData) GetCompletionRequirements()(PlannerTaskCompletionRequirementDetailsable) { + val, err := m.GetBackingStore().Get("completionRequirements") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerTaskCompletionRequirementDetailsable) + } + return nil +} +// GetDescription gets the description property value. The description property +// returns a *string when successful +func (m *PlannerTaskDetailsData) GetDescription()(*string) { + val, err := m.GetBackingStore().Get("description") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *PlannerTaskDetailsData) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["approvalAttachment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerBaseApprovalAttachmentFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetApprovalAttachment(val.(PlannerBaseApprovalAttachmentable)) + } + return nil + } + res["checklist"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerChecklistItemsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetChecklist(val.(PlannerChecklistItemsable)) + } + return nil + } + res["completionRequirements"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerTaskCompletionRequirementDetailsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCompletionRequirements(val.(PlannerTaskCompletionRequirementDetailsable)) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["forms"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerFormsDictionaryFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetForms(val.(PlannerFormsDictionaryable)) + } + return nil + } + res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotes(val.(ItemBodyable)) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["previewType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParsePlannerPreviewType) + if err != nil { + return err + } + if val != nil { + m.SetPreviewType(val.(*PlannerPreviewType)) + } + return nil + } + res["references"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerExternalReferencesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetReferences(val.(PlannerExternalReferencesable)) + } + return nil + } + return res +} +// GetForms gets the forms property value. The forms property +// returns a PlannerFormsDictionaryable when successful +func (m *PlannerTaskDetailsData) GetForms()(PlannerFormsDictionaryable) { + val, err := m.GetBackingStore().Get("forms") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerFormsDictionaryable) + } + return nil +} +// GetNotes gets the notes property value. The notes property +// returns a ItemBodyable when successful +func (m *PlannerTaskDetailsData) GetNotes()(ItemBodyable) { + val, err := m.GetBackingStore().Get("notes") + if err != nil { + panic(err) + } + if val != nil { + return val.(ItemBodyable) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *PlannerTaskDetailsData) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPreviewType gets the previewType property value. The previewType property +// returns a *PlannerPreviewType when successful +func (m *PlannerTaskDetailsData) GetPreviewType()(*PlannerPreviewType) { + val, err := m.GetBackingStore().Get("previewType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*PlannerPreviewType) + } + return nil +} +// GetReferences gets the references property value. The references property +// returns a PlannerExternalReferencesable when successful +func (m *PlannerTaskDetailsData) GetReferences()(PlannerExternalReferencesable) { + val, err := m.GetBackingStore().Get("references") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerExternalReferencesable) + } + return nil +} +// Serialize serializes information the current object +func (m *PlannerTaskDetailsData) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("approvalAttachment", m.GetApprovalAttachment()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("checklist", m.GetChecklist()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("completionRequirements", m.GetCompletionRequirements()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("forms", m.GetForms()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("notes", m.GetNotes()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetPreviewType() != nil { + cast := (*m.GetPreviewType()).String() + err := writer.WriteStringValue("previewType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("references", m.GetReferences()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *PlannerTaskDetailsData) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApprovalAttachment sets the approvalAttachment property value. The approvalAttachment property +func (m *PlannerTaskDetailsData) SetApprovalAttachment(value PlannerBaseApprovalAttachmentable)() { + err := m.GetBackingStore().Set("approvalAttachment", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *PlannerTaskDetailsData) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetChecklist sets the checklist property value. The checklist property +func (m *PlannerTaskDetailsData) SetChecklist(value PlannerChecklistItemsable)() { + err := m.GetBackingStore().Set("checklist", value) + if err != nil { + panic(err) + } +} +// SetCompletionRequirements sets the completionRequirements property value. The completionRequirements property +func (m *PlannerTaskDetailsData) SetCompletionRequirements(value PlannerTaskCompletionRequirementDetailsable)() { + err := m.GetBackingStore().Set("completionRequirements", value) + if err != nil { + panic(err) + } +} +// SetDescription sets the description property value. The description property +func (m *PlannerTaskDetailsData) SetDescription(value *string)() { + err := m.GetBackingStore().Set("description", value) + if err != nil { + panic(err) + } +} +// SetForms sets the forms property value. The forms property +func (m *PlannerTaskDetailsData) SetForms(value PlannerFormsDictionaryable)() { + err := m.GetBackingStore().Set("forms", value) + if err != nil { + panic(err) + } +} +// SetNotes sets the notes property value. The notes property +func (m *PlannerTaskDetailsData) SetNotes(value ItemBodyable)() { + err := m.GetBackingStore().Set("notes", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *PlannerTaskDetailsData) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetPreviewType sets the previewType property value. The previewType property +func (m *PlannerTaskDetailsData) SetPreviewType(value *PlannerPreviewType)() { + err := m.GetBackingStore().Set("previewType", value) + if err != nil { + panic(err) + } +} +// SetReferences sets the references property value. The references property +func (m *PlannerTaskDetailsData) SetReferences(value PlannerExternalReferencesable)() { + err := m.GetBackingStore().Set("references", value) + if err != nil { + panic(err) + } +} +type PlannerTaskDetailsDataable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApprovalAttachment()(PlannerBaseApprovalAttachmentable) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetChecklist()(PlannerChecklistItemsable) + GetCompletionRequirements()(PlannerTaskCompletionRequirementDetailsable) + GetDescription()(*string) + GetForms()(PlannerFormsDictionaryable) + GetNotes()(ItemBodyable) + GetOdataType()(*string) + GetPreviewType()(*PlannerPreviewType) + GetReferences()(PlannerExternalReferencesable) + SetApprovalAttachment(value PlannerBaseApprovalAttachmentable)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetChecklist(value PlannerChecklistItemsable)() + SetCompletionRequirements(value PlannerTaskCompletionRequirementDetailsable)() + SetDescription(value *string)() + SetForms(value PlannerFormsDictionaryable)() + SetNotes(value ItemBodyable)() + SetOdataType(value *string)() + SetPreviewType(value *PlannerPreviewType)() + SetReferences(value PlannerExternalReferencesable)() +} diff --git a/models/policy_deletable_item.go b/models/policy_deletable_item.go index 5f3927d560e..b6f7283a14f 100644 --- a/models/policy_deletable_item.go +++ b/models/policy_deletable_item.go @@ -46,12 +46,16 @@ func CreatePolicyDeletableItemFromDiscriminatorValue(parseNode i878a80d2330e89d2 return NewCrossTenantAccessPolicyConfigurationPartner(), nil case "#microsoft.graph.crossTenantIdentitySyncPolicyPartner": return NewCrossTenantIdentitySyncPolicyPartner(), nil + case "#microsoft.graph.delegatedAdminServiceProviderConstraints": + return NewDelegatedAdminServiceProviderConstraints(), nil case "#microsoft.graph.ipNamedLocation": return NewIpNamedLocation(), nil case "#microsoft.graph.namedLocation": return NewNamedLocation(), nil case "#microsoft.graph.privateLinkNamedLocation": return NewPrivateLinkNamedLocation(), nil + case "#microsoft.graph.serviceProviderConstraints": + return NewServiceProviderConstraints(), nil case "#microsoft.graph.serviceTagNamedLocation": return NewServiceTagNamedLocation(), nil case "#microsoft.graph.whatIfAnalysisResult": diff --git a/models/policy_tip_action.go b/models/policy_tip_action.go new file mode 100644 index 00000000000..fc443a2fb40 --- /dev/null +++ b/models/policy_tip_action.go @@ -0,0 +1,97 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type PolicyTipAction struct { + DlpActionInfo +} +// NewPolicyTipAction instantiates a new PolicyTipAction and sets the default values. +func NewPolicyTipAction()(*PolicyTipAction) { + m := &PolicyTipAction{ + DlpActionInfo: *NewDlpActionInfo(), + } + return m +} +// CreatePolicyTipActionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreatePolicyTipActionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.notifyUserAction": + return NewNotifyUserAction(), nil + } + } + } + } + return NewPolicyTipAction(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *PolicyTipAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.DlpActionInfo.GetFieldDeserializers() + res["policyTip"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPolicyTip(val) + } + return nil + } + return res +} +// GetPolicyTip gets the policyTip property value. The text of the policy tip that explains what triggered the DLP policy. Developers can display this information to users in the app. +// returns a *string when successful +func (m *PolicyTipAction) GetPolicyTip()(*string) { + val, err := m.GetBackingStore().Get("policyTip") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *PolicyTipAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.DlpActionInfo.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("policyTip", m.GetPolicyTip()) + if err != nil { + return err + } + } + return nil +} +// SetPolicyTip sets the policyTip property value. The text of the policy tip that explains what triggered the DLP policy. Developers can display this information to users in the app. +func (m *PolicyTipAction) SetPolicyTip(value *string)() { + err := m.GetBackingStore().Set("policyTip", value) + if err != nil { + panic(err) + } +} +type PolicyTipActionable interface { + DlpActionInfoable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPolicyTip()(*string) + SetPolicyTip(value *string)() +} diff --git a/models/principal_type.go b/models/principal_type.go deleted file mode 100644 index 31cd89033dc..00000000000 --- a/models/principal_type.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package models -type PrincipalType int - -const ( - ENTRAIDUSER_PRINCIPALTYPE PrincipalType = iota - UNKNOWNFUTUREVALUE_PRINCIPALTYPE -) - -func (i PrincipalType) String() string { - return []string{"entraIdUser", "unknownFutureValue"}[i] -} -func ParsePrincipalType(v string) (any, error) { - result := ENTRAIDUSER_PRINCIPALTYPE - switch v { - case "entraIdUser": - result = ENTRAIDUSER_PRINCIPALTYPE - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_PRINCIPALTYPE - default: - return nil, nil - } - return &result, nil -} -func SerializePrincipalType(values []PrincipalType) []string { - result := make([]string, len(values)) - for i, v := range values { - result[i] = v.String() - } - return result -} -func (i PrincipalType) isMultiValue() bool { - return false -} diff --git a/models/process_content_request.go b/models/process_content_request.go index c1ccf41d01b..0cf8e35fa6c 100644 --- a/models/process_content_request.go +++ b/models/process_content_request.go @@ -67,6 +67,18 @@ func (m *ProcessContentRequest) GetContentEntries()([]ProcessContentMetadataBase } return nil } +// GetContextMetadata gets the contextMetadata property value. The contextMetadata property +// returns a ContextMetadataable when successful +func (m *ProcessContentRequest) GetContextMetadata()(ContextMetadataable) { + val, err := m.GetBackingStore().Get("contextMetadata") + if err != nil { + panic(err) + } + if val != nil { + return val.(ContextMetadataable) + } + return nil +} // GetDeviceMetadata gets the deviceMetadata property value. The deviceMetadata property // returns a DeviceMetadataable when successful func (m *ProcessContentRequest) GetDeviceMetadata()(DeviceMetadataable) { @@ -109,6 +121,16 @@ func (m *ProcessContentRequest) GetFieldDeserializers()(map[string]func(i878a80d } return nil } + res["contextMetadata"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateContextMetadataFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetContextMetadata(val.(ContextMetadataable)) + } + return nil + } res["deviceMetadata"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateDeviceMetadataFromDiscriminatorValue) if err != nil { @@ -207,6 +229,12 @@ func (m *ProcessContentRequest) Serialize(writer i878a80d2330e89d26896388a3f487e return err } } + { + err := writer.WriteObjectValue("contextMetadata", m.GetContextMetadata()) + if err != nil { + return err + } + } { err := writer.WriteObjectValue("deviceMetadata", m.GetDeviceMetadata()) if err != nil { @@ -264,6 +292,13 @@ func (m *ProcessContentRequest) SetContentEntries(value []ProcessContentMetadata panic(err) } } +// SetContextMetadata sets the contextMetadata property value. The contextMetadata property +func (m *ProcessContentRequest) SetContextMetadata(value ContextMetadataable)() { + err := m.GetBackingStore().Set("contextMetadata", value) + if err != nil { + panic(err) + } +} // SetDeviceMetadata sets the deviceMetadata property value. The deviceMetadata property func (m *ProcessContentRequest) SetDeviceMetadata(value DeviceMetadataable)() { err := m.GetBackingStore().Set("deviceMetadata", value) @@ -299,6 +334,7 @@ type ProcessContentRequestable interface { GetActivityMetadata()(ActivityMetadataable) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetContentEntries()([]ProcessContentMetadataBaseable) + GetContextMetadata()(ContextMetadataable) GetDeviceMetadata()(DeviceMetadataable) GetIntegratedAppMetadata()(IntegratedApplicationMetadataable) GetOdataType()(*string) @@ -306,6 +342,7 @@ type ProcessContentRequestable interface { SetActivityMetadata(value ActivityMetadataable)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetContentEntries(value []ProcessContentMetadataBaseable)() + SetContextMetadata(value ContextMetadataable)() SetDeviceMetadata(value DeviceMetadataable)() SetIntegratedAppMetadata(value IntegratedApplicationMetadataable)() SetOdataType(value *string)() diff --git a/models/profile_property_setting.go b/models/profile_property_setting.go index c0a06598658..160f553cbb8 100644 --- a/models/profile_property_setting.go +++ b/models/profile_property_setting.go @@ -22,7 +22,7 @@ func NewProfilePropertySetting()(*ProfilePropertySetting) { func CreateProfilePropertySettingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewProfilePropertySetting(), nil } -// GetDisplayName gets the displayName property value. Name of the property-level setting. +// GetDisplayName gets the displayName property value. Name of the property associated with this setting. // returns a *string when successful func (m *ProfilePropertySetting) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -88,7 +88,7 @@ func (m *ProfilePropertySetting) GetName()(*string) { } return nil } -// GetPrioritizedSourceUrls gets the prioritizedSourceUrls property value. A collection of prioritized profile source URLs ordered by data precedence within an organization. +// GetPrioritizedSourceUrls gets the prioritizedSourceUrls property value. A collection of prioritized profile source URLs ordered by data precedence within an organization. For details, see Manage profile source precedence in Microsoft 365. // returns a []string when successful func (m *ProfilePropertySetting) GetPrioritizedSourceUrls()([]string) { val, err := m.GetBackingStore().Get("prioritizedSourceUrls") @@ -126,7 +126,7 @@ func (m *ProfilePropertySetting) Serialize(writer i878a80d2330e89d26896388a3f487 } return nil } -// SetDisplayName sets the displayName property value. Name of the property-level setting. +// SetDisplayName sets the displayName property value. Name of the property associated with this setting. func (m *ProfilePropertySetting) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { @@ -140,7 +140,7 @@ func (m *ProfilePropertySetting) SetName(value *string)() { panic(err) } } -// SetPrioritizedSourceUrls sets the prioritizedSourceUrls property value. A collection of prioritized profile source URLs ordered by data precedence within an organization. +// SetPrioritizedSourceUrls sets the prioritizedSourceUrls property value. A collection of prioritized profile source URLs ordered by data precedence within an organization. For details, see Manage profile source precedence in Microsoft 365. func (m *ProfilePropertySetting) SetPrioritizedSourceUrls(value []string)() { err := m.GetBackingStore().Set("prioritizedSourceUrls", value) if err != nil { diff --git a/models/protection_policy_base.go b/models/protection_policy_base.go index 96b2c464b2f..e32d8947255 100644 --- a/models/protection_policy_base.go +++ b/models/protection_policy_base.go @@ -273,7 +273,7 @@ func (m *ProtectionPolicyBase) GetOffboardRequestedDateTime()(*i336074805fc85398 } return nil } -// GetProtectionMode gets the protectionMode property value. The protectionMode property +// GetProtectionMode gets the protectionMode property value. The backup mode for the protection policy. The possible values are: standard, fullServiceBackup, unknownFutureValue. When set to fullServiceBackup, the entire workload is backed up and specific items can be excluded using exclusion units. When set to standard, only the items explicitly added as protection units are backed up. // returns a *BackupPolicyProtectionMode when successful func (m *ProtectionPolicyBase) GetProtectionMode()(*BackupPolicyProtectionMode) { val, err := m.GetBackingStore().Get("protectionMode") @@ -285,7 +285,7 @@ func (m *ProtectionPolicyBase) GetProtectionMode()(*BackupPolicyProtectionMode) } return nil } -// GetProtectionPolicyArtifactCount gets the protectionPolicyArtifactCount property value. The count of artifacts in the protection policy by status. Requires $select to retrieve. +// GetProtectionPolicyArtifactCount gets the protectionPolicyArtifactCount property value. The count of artifacts in the protection policy by status. Returned only on $select. // returns a ProtectionPolicyArtifactCountable when successful func (m *ProtectionPolicyBase) GetProtectionPolicyArtifactCount()(ProtectionPolicyArtifactCountable) { val, err := m.GetBackingStore().Get("protectionPolicyArtifactCount") @@ -465,14 +465,14 @@ func (m *ProtectionPolicyBase) SetOffboardRequestedDateTime(value *i336074805fc8 panic(err) } } -// SetProtectionMode sets the protectionMode property value. The protectionMode property +// SetProtectionMode sets the protectionMode property value. The backup mode for the protection policy. The possible values are: standard, fullServiceBackup, unknownFutureValue. When set to fullServiceBackup, the entire workload is backed up and specific items can be excluded using exclusion units. When set to standard, only the items explicitly added as protection units are backed up. func (m *ProtectionPolicyBase) SetProtectionMode(value *BackupPolicyProtectionMode)() { err := m.GetBackingStore().Set("protectionMode", value) if err != nil { panic(err) } } -// SetProtectionPolicyArtifactCount sets the protectionPolicyArtifactCount property value. The count of artifacts in the protection policy by status. Requires $select to retrieve. +// SetProtectionPolicyArtifactCount sets the protectionPolicyArtifactCount property value. The count of artifacts in the protection policy by status. Returned only on $select. func (m *ProtectionPolicyBase) SetProtectionPolicyArtifactCount(value ProtectionPolicyArtifactCountable)() { err := m.GetBackingStore().Set("protectionPolicyArtifactCount", value) if err != nil { diff --git a/models/recipient_type.go b/models/recipient_type.go new file mode 100644 index 00000000000..25eee3c98a6 --- /dev/null +++ b/models/recipient_type.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +type RecipientType int + +const ( + CONTACT_RECIPIENTTYPE RecipientType = iota + ONEOFF_RECIPIENTTYPE + MAILBOX_RECIPIENTTYPE + PRIVATEDL_RECIPIENTTYPE + UNKNOWNFUTUREVALUE_RECIPIENTTYPE +) + +func (i RecipientType) String() string { + return []string{"contact", "oneOff", "mailbox", "privateDL", "unknownFutureValue"}[i] +} +func ParseRecipientType(v string) (any, error) { + result := CONTACT_RECIPIENTTYPE + switch v { + case "contact": + result = CONTACT_RECIPIENTTYPE + case "oneOff": + result = ONEOFF_RECIPIENTTYPE + case "mailbox": + result = MAILBOX_RECIPIENTTYPE + case "privateDL": + result = PRIVATEDL_RECIPIENTTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_RECIPIENTTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeRecipientType(values []RecipientType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i RecipientType) isMultiValue() bool { + return false +} diff --git a/models/redirect_uri_allowed_domain_configuration.go b/models/redirect_uri_allowed_domain_configuration.go index 091a6c9e774..431b8034f9f 100644 --- a/models/redirect_uri_allowed_domain_configuration.go +++ b/models/redirect_uri_allowed_domain_configuration.go @@ -39,7 +39,7 @@ func (m *RedirectUriAllowedDomainConfiguration) GetAdditionalData()(map[string]a } return val.(map[string]any) } -// GetAllowedDomains gets the allowedDomains property value. The allowedDomains property +// GetAllowedDomains gets the allowedDomains property value. Collection of domain names that are allowed globally across all platforms. Domain validation follows RFC 3986 (URI syntax, section 3.2.2 for the host component). Domain matching is case-insensitive and exact; wildcards are not supported. // returns a []string when successful func (m *RedirectUriAllowedDomainConfiguration) GetAllowedDomains()([]string) { val, err := m.GetBackingStore().Get("allowedDomains") @@ -56,7 +56,7 @@ func (m *RedirectUriAllowedDomainConfiguration) GetAllowedDomains()([]string) { func (m *RedirectUriAllowedDomainConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetExcludeActors gets the excludeActors property value. The excludeActors property +// GetExcludeActors gets the excludeActors property value. Applications or service principals that are exempt from this restriction. // returns a AppManagementPolicyActorExemptionsable when successful func (m *RedirectUriAllowedDomainConfiguration) GetExcludeActors()(AppManagementPolicyActorExemptionsable) { val, err := m.GetBackingStore().Get("excludeActors") @@ -170,7 +170,7 @@ func (m *RedirectUriAllowedDomainConfiguration) GetFieldDeserializers()(map[stri } return res } -// GetIsStateSetByMicrosoft gets the isStateSetByMicrosoft property value. The isStateSetByMicrosoft property +// GetIsStateSetByMicrosoft gets the isStateSetByMicrosoft property value. Indicates whether the restriction state was set by Microsoft. // returns a *bool when successful func (m *RedirectUriAllowedDomainConfiguration) GetIsStateSetByMicrosoft()(*bool) { val, err := m.GetBackingStore().Get("isStateSetByMicrosoft") @@ -194,7 +194,7 @@ func (m *RedirectUriAllowedDomainConfiguration) GetOdataType()(*string) { } return nil } -// GetPublicClient gets the publicClient property value. The publicClient property +// GetPublicClient gets the publicClient property value. Platform-specific allowed domain configuration for public client applications (native/mobile apps). // returns a RedirectUriPlatformAllowedDomainConfigurationable when successful func (m *RedirectUriAllowedDomainConfiguration) GetPublicClient()(RedirectUriPlatformAllowedDomainConfigurationable) { val, err := m.GetBackingStore().Get("publicClient") @@ -206,7 +206,7 @@ func (m *RedirectUriAllowedDomainConfiguration) GetPublicClient()(RedirectUriPla } return nil } -// GetRestrictForAppsCreatedAfterDateTime gets the restrictForAppsCreatedAfterDateTime property value. The restrictForAppsCreatedAfterDateTime property +// GetRestrictForAppsCreatedAfterDateTime gets the restrictForAppsCreatedAfterDateTime property value. Date and time when this restriction starts applying to newly created applications. Applications created before this date are not affected. // returns a *Time when successful func (m *RedirectUriAllowedDomainConfiguration) GetRestrictForAppsCreatedAfterDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("restrictForAppsCreatedAfterDateTime") @@ -218,7 +218,7 @@ func (m *RedirectUriAllowedDomainConfiguration) GetRestrictForAppsCreatedAfterDa } return nil } -// GetSpa gets the spa property value. The spa property +// GetSpa gets the spa property value. Platform-specific allowed domain configuration for single-page applications (SPAs). // returns a RedirectUriPlatformAllowedDomainConfigurationable when successful func (m *RedirectUriAllowedDomainConfiguration) GetSpa()(RedirectUriPlatformAllowedDomainConfigurationable) { val, err := m.GetBackingStore().Get("spa") @@ -242,7 +242,7 @@ func (m *RedirectUriAllowedDomainConfiguration) GetState()(*AppManagementRestric } return nil } -// GetWeb gets the web property value. The web property +// GetWeb gets the web property value. Platform-specific allowed domain configuration for web applications. // returns a RedirectUriPlatformAllowedDomainConfigurationable when successful func (m *RedirectUriAllowedDomainConfiguration) GetWeb()(RedirectUriPlatformAllowedDomainConfigurationable) { val, err := m.GetBackingStore().Get("web") @@ -320,7 +320,7 @@ func (m *RedirectUriAllowedDomainConfiguration) SetAdditionalData(value map[stri panic(err) } } -// SetAllowedDomains sets the allowedDomains property value. The allowedDomains property +// SetAllowedDomains sets the allowedDomains property value. Collection of domain names that are allowed globally across all platforms. Domain validation follows RFC 3986 (URI syntax, section 3.2.2 for the host component). Domain matching is case-insensitive and exact; wildcards are not supported. func (m *RedirectUriAllowedDomainConfiguration) SetAllowedDomains(value []string)() { err := m.GetBackingStore().Set("allowedDomains", value) if err != nil { @@ -331,14 +331,14 @@ func (m *RedirectUriAllowedDomainConfiguration) SetAllowedDomains(value []string func (m *RedirectUriAllowedDomainConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetExcludeActors sets the excludeActors property value. The excludeActors property +// SetExcludeActors sets the excludeActors property value. Applications or service principals that are exempt from this restriction. func (m *RedirectUriAllowedDomainConfiguration) SetExcludeActors(value AppManagementPolicyActorExemptionsable)() { err := m.GetBackingStore().Set("excludeActors", value) if err != nil { panic(err) } } -// SetIsStateSetByMicrosoft sets the isStateSetByMicrosoft property value. The isStateSetByMicrosoft property +// SetIsStateSetByMicrosoft sets the isStateSetByMicrosoft property value. Indicates whether the restriction state was set by Microsoft. func (m *RedirectUriAllowedDomainConfiguration) SetIsStateSetByMicrosoft(value *bool)() { err := m.GetBackingStore().Set("isStateSetByMicrosoft", value) if err != nil { @@ -352,21 +352,21 @@ func (m *RedirectUriAllowedDomainConfiguration) SetOdataType(value *string)() { panic(err) } } -// SetPublicClient sets the publicClient property value. The publicClient property +// SetPublicClient sets the publicClient property value. Platform-specific allowed domain configuration for public client applications (native/mobile apps). func (m *RedirectUriAllowedDomainConfiguration) SetPublicClient(value RedirectUriPlatformAllowedDomainConfigurationable)() { err := m.GetBackingStore().Set("publicClient", value) if err != nil { panic(err) } } -// SetRestrictForAppsCreatedAfterDateTime sets the restrictForAppsCreatedAfterDateTime property value. The restrictForAppsCreatedAfterDateTime property +// SetRestrictForAppsCreatedAfterDateTime sets the restrictForAppsCreatedAfterDateTime property value. Date and time when this restriction starts applying to newly created applications. Applications created before this date are not affected. func (m *RedirectUriAllowedDomainConfiguration) SetRestrictForAppsCreatedAfterDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("restrictForAppsCreatedAfterDateTime", value) if err != nil { panic(err) } } -// SetSpa sets the spa property value. The spa property +// SetSpa sets the spa property value. Platform-specific allowed domain configuration for single-page applications (SPAs). func (m *RedirectUriAllowedDomainConfiguration) SetSpa(value RedirectUriPlatformAllowedDomainConfigurationable)() { err := m.GetBackingStore().Set("spa", value) if err != nil { @@ -380,7 +380,7 @@ func (m *RedirectUriAllowedDomainConfiguration) SetState(value *AppManagementRes panic(err) } } -// SetWeb sets the web property value. The web property +// SetWeb sets the web property value. Platform-specific allowed domain configuration for web applications. func (m *RedirectUriAllowedDomainConfiguration) SetWeb(value RedirectUriPlatformAllowedDomainConfigurationable)() { err := m.GetBackingStore().Set("web", value) if err != nil { diff --git a/models/redirect_uri_allowed_scheme_configuration.go b/models/redirect_uri_allowed_scheme_configuration.go index 66f30e527f8..40b6ebc06f6 100644 --- a/models/redirect_uri_allowed_scheme_configuration.go +++ b/models/redirect_uri_allowed_scheme_configuration.go @@ -39,7 +39,7 @@ func (m *RedirectUriAllowedSchemeConfiguration) GetAdditionalData()(map[string]a } return val.(map[string]any) } -// GetAllowedSchemes gets the allowedSchemes property value. The allowedSchemes property +// GetAllowedSchemes gets the allowedSchemes property value. Collection of URI schemes that are allowed globally across all platforms. Schemes refer to URI schemes as defined in RFC 3986 §3.1. The value '*' can be used to allow any scheme. // returns a []string when successful func (m *RedirectUriAllowedSchemeConfiguration) GetAllowedSchemes()([]string) { val, err := m.GetBackingStore().Get("allowedSchemes") @@ -56,7 +56,7 @@ func (m *RedirectUriAllowedSchemeConfiguration) GetAllowedSchemes()([]string) { func (m *RedirectUriAllowedSchemeConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetExcludeActors gets the excludeActors property value. The excludeActors property +// GetExcludeActors gets the excludeActors property value. Applications or service principals that are exempt from this restriction. // returns a AppManagementPolicyActorExemptionsable when successful func (m *RedirectUriAllowedSchemeConfiguration) GetExcludeActors()(AppManagementPolicyActorExemptionsable) { val, err := m.GetBackingStore().Get("excludeActors") @@ -170,7 +170,7 @@ func (m *RedirectUriAllowedSchemeConfiguration) GetFieldDeserializers()(map[stri } return res } -// GetIsStateSetByMicrosoft gets the isStateSetByMicrosoft property value. The isStateSetByMicrosoft property +// GetIsStateSetByMicrosoft gets the isStateSetByMicrosoft property value. Indicates whether the restriction state was set by Microsoft. // returns a *bool when successful func (m *RedirectUriAllowedSchemeConfiguration) GetIsStateSetByMicrosoft()(*bool) { val, err := m.GetBackingStore().Get("isStateSetByMicrosoft") @@ -194,7 +194,7 @@ func (m *RedirectUriAllowedSchemeConfiguration) GetOdataType()(*string) { } return nil } -// GetPublicClient gets the publicClient property value. The publicClient property +// GetPublicClient gets the publicClient property value. Platform-specific allowed scheme configuration for public client applications (native/mobile apps). // returns a RedirectUriPlatformAllowedSchemeConfigurationable when successful func (m *RedirectUriAllowedSchemeConfiguration) GetPublicClient()(RedirectUriPlatformAllowedSchemeConfigurationable) { val, err := m.GetBackingStore().Get("publicClient") @@ -206,7 +206,7 @@ func (m *RedirectUriAllowedSchemeConfiguration) GetPublicClient()(RedirectUriPla } return nil } -// GetRestrictForAppsCreatedAfterDateTime gets the restrictForAppsCreatedAfterDateTime property value. The restrictForAppsCreatedAfterDateTime property +// GetRestrictForAppsCreatedAfterDateTime gets the restrictForAppsCreatedAfterDateTime property value. Date and time when this restriction starts applying to newly created applications. Applications created before this date are not affected. // returns a *Time when successful func (m *RedirectUriAllowedSchemeConfiguration) GetRestrictForAppsCreatedAfterDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("restrictForAppsCreatedAfterDateTime") @@ -218,7 +218,7 @@ func (m *RedirectUriAllowedSchemeConfiguration) GetRestrictForAppsCreatedAfterDa } return nil } -// GetSpa gets the spa property value. The spa property +// GetSpa gets the spa property value. Platform-specific allowed scheme configuration for single-page applications (SPAs). // returns a RedirectUriPlatformAllowedSchemeConfigurationable when successful func (m *RedirectUriAllowedSchemeConfiguration) GetSpa()(RedirectUriPlatformAllowedSchemeConfigurationable) { val, err := m.GetBackingStore().Get("spa") @@ -242,7 +242,7 @@ func (m *RedirectUriAllowedSchemeConfiguration) GetState()(*AppManagementRestric } return nil } -// GetWeb gets the web property value. The web property +// GetWeb gets the web property value. Platform-specific allowed scheme configuration for web applications. // returns a RedirectUriPlatformAllowedSchemeConfigurationable when successful func (m *RedirectUriAllowedSchemeConfiguration) GetWeb()(RedirectUriPlatformAllowedSchemeConfigurationable) { val, err := m.GetBackingStore().Get("web") @@ -320,7 +320,7 @@ func (m *RedirectUriAllowedSchemeConfiguration) SetAdditionalData(value map[stri panic(err) } } -// SetAllowedSchemes sets the allowedSchemes property value. The allowedSchemes property +// SetAllowedSchemes sets the allowedSchemes property value. Collection of URI schemes that are allowed globally across all platforms. Schemes refer to URI schemes as defined in RFC 3986 §3.1. The value '*' can be used to allow any scheme. func (m *RedirectUriAllowedSchemeConfiguration) SetAllowedSchemes(value []string)() { err := m.GetBackingStore().Set("allowedSchemes", value) if err != nil { @@ -331,14 +331,14 @@ func (m *RedirectUriAllowedSchemeConfiguration) SetAllowedSchemes(value []string func (m *RedirectUriAllowedSchemeConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetExcludeActors sets the excludeActors property value. The excludeActors property +// SetExcludeActors sets the excludeActors property value. Applications or service principals that are exempt from this restriction. func (m *RedirectUriAllowedSchemeConfiguration) SetExcludeActors(value AppManagementPolicyActorExemptionsable)() { err := m.GetBackingStore().Set("excludeActors", value) if err != nil { panic(err) } } -// SetIsStateSetByMicrosoft sets the isStateSetByMicrosoft property value. The isStateSetByMicrosoft property +// SetIsStateSetByMicrosoft sets the isStateSetByMicrosoft property value. Indicates whether the restriction state was set by Microsoft. func (m *RedirectUriAllowedSchemeConfiguration) SetIsStateSetByMicrosoft(value *bool)() { err := m.GetBackingStore().Set("isStateSetByMicrosoft", value) if err != nil { @@ -352,21 +352,21 @@ func (m *RedirectUriAllowedSchemeConfiguration) SetOdataType(value *string)() { panic(err) } } -// SetPublicClient sets the publicClient property value. The publicClient property +// SetPublicClient sets the publicClient property value. Platform-specific allowed scheme configuration for public client applications (native/mobile apps). func (m *RedirectUriAllowedSchemeConfiguration) SetPublicClient(value RedirectUriPlatformAllowedSchemeConfigurationable)() { err := m.GetBackingStore().Set("publicClient", value) if err != nil { panic(err) } } -// SetRestrictForAppsCreatedAfterDateTime sets the restrictForAppsCreatedAfterDateTime property value. The restrictForAppsCreatedAfterDateTime property +// SetRestrictForAppsCreatedAfterDateTime sets the restrictForAppsCreatedAfterDateTime property value. Date and time when this restriction starts applying to newly created applications. Applications created before this date are not affected. func (m *RedirectUriAllowedSchemeConfiguration) SetRestrictForAppsCreatedAfterDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("restrictForAppsCreatedAfterDateTime", value) if err != nil { panic(err) } } -// SetSpa sets the spa property value. The spa property +// SetSpa sets the spa property value. Platform-specific allowed scheme configuration for single-page applications (SPAs). func (m *RedirectUriAllowedSchemeConfiguration) SetSpa(value RedirectUriPlatformAllowedSchemeConfigurationable)() { err := m.GetBackingStore().Set("spa", value) if err != nil { @@ -380,7 +380,7 @@ func (m *RedirectUriAllowedSchemeConfiguration) SetState(value *AppManagementRes panic(err) } } -// SetWeb sets the web property value. The web property +// SetWeb sets the web property value. Platform-specific allowed scheme configuration for web applications. func (m *RedirectUriAllowedSchemeConfiguration) SetWeb(value RedirectUriPlatformAllowedSchemeConfigurationable)() { err := m.GetBackingStore().Set("web", value) if err != nil { diff --git a/models/redirect_uri_blocked_domain_configuration.go b/models/redirect_uri_blocked_domain_configuration.go index deeef160a4c..d985300f346 100644 --- a/models/redirect_uri_blocked_domain_configuration.go +++ b/models/redirect_uri_blocked_domain_configuration.go @@ -44,7 +44,7 @@ func (m *RedirectUriBlockedDomainConfiguration) GetAdditionalData()(map[string]a func (m *RedirectUriBlockedDomainConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetBlockedDomains gets the blockedDomains property value. The blockedDomains property +// GetBlockedDomains gets the blockedDomains property value. Collection of domain names that are blocked globally across all platforms. Domain validation follows RFC 3986 (URI syntax, section 3.2.2 for the host component). Domain matching is case-insensitive and exact; wildcards are not supported. // returns a []string when successful func (m *RedirectUriBlockedDomainConfiguration) GetBlockedDomains()([]string) { val, err := m.GetBackingStore().Get("blockedDomains") @@ -56,7 +56,7 @@ func (m *RedirectUriBlockedDomainConfiguration) GetBlockedDomains()([]string) { } return nil } -// GetExcludeActors gets the excludeActors property value. The excludeActors property +// GetExcludeActors gets the excludeActors property value. Applications or service principals that are exempt from this restriction. // returns a AppManagementPolicyActorExemptionsable when successful func (m *RedirectUriBlockedDomainConfiguration) GetExcludeActors()(AppManagementPolicyActorExemptionsable) { val, err := m.GetBackingStore().Get("excludeActors") @@ -170,7 +170,7 @@ func (m *RedirectUriBlockedDomainConfiguration) GetFieldDeserializers()(map[stri } return res } -// GetIsStateSetByMicrosoft gets the isStateSetByMicrosoft property value. The isStateSetByMicrosoft property +// GetIsStateSetByMicrosoft gets the isStateSetByMicrosoft property value. Indicates whether the restriction state was set by Microsoft. // returns a *bool when successful func (m *RedirectUriBlockedDomainConfiguration) GetIsStateSetByMicrosoft()(*bool) { val, err := m.GetBackingStore().Get("isStateSetByMicrosoft") @@ -194,7 +194,7 @@ func (m *RedirectUriBlockedDomainConfiguration) GetOdataType()(*string) { } return nil } -// GetPublicClient gets the publicClient property value. The publicClient property +// GetPublicClient gets the publicClient property value. Platform-specific blocked domain configuration for public client applications (native/mobile apps). // returns a RedirectUriPlatformBlockedDomainConfigurationable when successful func (m *RedirectUriBlockedDomainConfiguration) GetPublicClient()(RedirectUriPlatformBlockedDomainConfigurationable) { val, err := m.GetBackingStore().Get("publicClient") @@ -206,7 +206,7 @@ func (m *RedirectUriBlockedDomainConfiguration) GetPublicClient()(RedirectUriPla } return nil } -// GetRestrictForAppsCreatedAfterDateTime gets the restrictForAppsCreatedAfterDateTime property value. The restrictForAppsCreatedAfterDateTime property +// GetRestrictForAppsCreatedAfterDateTime gets the restrictForAppsCreatedAfterDateTime property value. Date and time when this restriction starts applying to newly created applications. Applications created before this date are not affected. // returns a *Time when successful func (m *RedirectUriBlockedDomainConfiguration) GetRestrictForAppsCreatedAfterDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("restrictForAppsCreatedAfterDateTime") @@ -218,7 +218,7 @@ func (m *RedirectUriBlockedDomainConfiguration) GetRestrictForAppsCreatedAfterDa } return nil } -// GetSpa gets the spa property value. The spa property +// GetSpa gets the spa property value. Platform-specific blocked domain configuration for single-page applications (SPAs). // returns a RedirectUriPlatformBlockedDomainConfigurationable when successful func (m *RedirectUriBlockedDomainConfiguration) GetSpa()(RedirectUriPlatformBlockedDomainConfigurationable) { val, err := m.GetBackingStore().Get("spa") @@ -242,7 +242,7 @@ func (m *RedirectUriBlockedDomainConfiguration) GetState()(*AppManagementRestric } return nil } -// GetWeb gets the web property value. The web property +// GetWeb gets the web property value. Platform-specific blocked domain configuration for web applications. // returns a RedirectUriPlatformBlockedDomainConfigurationable when successful func (m *RedirectUriBlockedDomainConfiguration) GetWeb()(RedirectUriPlatformBlockedDomainConfigurationable) { val, err := m.GetBackingStore().Get("web") @@ -324,21 +324,21 @@ func (m *RedirectUriBlockedDomainConfiguration) SetAdditionalData(value map[stri func (m *RedirectUriBlockedDomainConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetBlockedDomains sets the blockedDomains property value. The blockedDomains property +// SetBlockedDomains sets the blockedDomains property value. Collection of domain names that are blocked globally across all platforms. Domain validation follows RFC 3986 (URI syntax, section 3.2.2 for the host component). Domain matching is case-insensitive and exact; wildcards are not supported. func (m *RedirectUriBlockedDomainConfiguration) SetBlockedDomains(value []string)() { err := m.GetBackingStore().Set("blockedDomains", value) if err != nil { panic(err) } } -// SetExcludeActors sets the excludeActors property value. The excludeActors property +// SetExcludeActors sets the excludeActors property value. Applications or service principals that are exempt from this restriction. func (m *RedirectUriBlockedDomainConfiguration) SetExcludeActors(value AppManagementPolicyActorExemptionsable)() { err := m.GetBackingStore().Set("excludeActors", value) if err != nil { panic(err) } } -// SetIsStateSetByMicrosoft sets the isStateSetByMicrosoft property value. The isStateSetByMicrosoft property +// SetIsStateSetByMicrosoft sets the isStateSetByMicrosoft property value. Indicates whether the restriction state was set by Microsoft. func (m *RedirectUriBlockedDomainConfiguration) SetIsStateSetByMicrosoft(value *bool)() { err := m.GetBackingStore().Set("isStateSetByMicrosoft", value) if err != nil { @@ -352,21 +352,21 @@ func (m *RedirectUriBlockedDomainConfiguration) SetOdataType(value *string)() { panic(err) } } -// SetPublicClient sets the publicClient property value. The publicClient property +// SetPublicClient sets the publicClient property value. Platform-specific blocked domain configuration for public client applications (native/mobile apps). func (m *RedirectUriBlockedDomainConfiguration) SetPublicClient(value RedirectUriPlatformBlockedDomainConfigurationable)() { err := m.GetBackingStore().Set("publicClient", value) if err != nil { panic(err) } } -// SetRestrictForAppsCreatedAfterDateTime sets the restrictForAppsCreatedAfterDateTime property value. The restrictForAppsCreatedAfterDateTime property +// SetRestrictForAppsCreatedAfterDateTime sets the restrictForAppsCreatedAfterDateTime property value. Date and time when this restriction starts applying to newly created applications. Applications created before this date are not affected. func (m *RedirectUriBlockedDomainConfiguration) SetRestrictForAppsCreatedAfterDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("restrictForAppsCreatedAfterDateTime", value) if err != nil { panic(err) } } -// SetSpa sets the spa property value. The spa property +// SetSpa sets the spa property value. Platform-specific blocked domain configuration for single-page applications (SPAs). func (m *RedirectUriBlockedDomainConfiguration) SetSpa(value RedirectUriPlatformBlockedDomainConfigurationable)() { err := m.GetBackingStore().Set("spa", value) if err != nil { @@ -380,7 +380,7 @@ func (m *RedirectUriBlockedDomainConfiguration) SetState(value *AppManagementRes panic(err) } } -// SetWeb sets the web property value. The web property +// SetWeb sets the web property value. Platform-specific blocked domain configuration for web applications. func (m *RedirectUriBlockedDomainConfiguration) SetWeb(value RedirectUriPlatformBlockedDomainConfigurationable)() { err := m.GetBackingStore().Set("web", value) if err != nil { diff --git a/models/redirect_uri_blocked_scheme_configuration.go b/models/redirect_uri_blocked_scheme_configuration.go index 6a154852e7b..97e4206ab39 100644 --- a/models/redirect_uri_blocked_scheme_configuration.go +++ b/models/redirect_uri_blocked_scheme_configuration.go @@ -44,7 +44,7 @@ func (m *RedirectUriBlockedSchemeConfiguration) GetAdditionalData()(map[string]a func (m *RedirectUriBlockedSchemeConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetBlockedSchemes gets the blockedSchemes property value. The blockedSchemes property +// GetBlockedSchemes gets the blockedSchemes property value. Collection of URI schemes that are blocked globally across all platforms. Schemes refer to URI schemes as defined in RFC 3986 §3.1. // returns a []string when successful func (m *RedirectUriBlockedSchemeConfiguration) GetBlockedSchemes()([]string) { val, err := m.GetBackingStore().Get("blockedSchemes") @@ -56,7 +56,7 @@ func (m *RedirectUriBlockedSchemeConfiguration) GetBlockedSchemes()([]string) { } return nil } -// GetExcludeActors gets the excludeActors property value. The excludeActors property +// GetExcludeActors gets the excludeActors property value. Applications or service principals that are exempt from this restriction. // returns a AppManagementPolicyActorExemptionsable when successful func (m *RedirectUriBlockedSchemeConfiguration) GetExcludeActors()(AppManagementPolicyActorExemptionsable) { val, err := m.GetBackingStore().Get("excludeActors") @@ -68,7 +68,7 @@ func (m *RedirectUriBlockedSchemeConfiguration) GetExcludeActors()(AppManagement } return nil } -// GetExemptFormats gets the exemptFormats property value. The exemptFormats property +// GetExemptFormats gets the exemptFormats property value. Collection of URI patterns that are exempt from the blocked scheme restrictions. Patterns must follow specific validation rules for standard URI formats or URN formats. // returns a []string when successful func (m *RedirectUriBlockedSchemeConfiguration) GetExemptFormats()([]string) { val, err := m.GetBackingStore().Get("exemptFormats") @@ -198,7 +198,7 @@ func (m *RedirectUriBlockedSchemeConfiguration) GetFieldDeserializers()(map[stri } return res } -// GetIsStateSetByMicrosoft gets the isStateSetByMicrosoft property value. The isStateSetByMicrosoft property +// GetIsStateSetByMicrosoft gets the isStateSetByMicrosoft property value. Indicates whether the restriction state was set by Microsoft. // returns a *bool when successful func (m *RedirectUriBlockedSchemeConfiguration) GetIsStateSetByMicrosoft()(*bool) { val, err := m.GetBackingStore().Get("isStateSetByMicrosoft") @@ -222,7 +222,7 @@ func (m *RedirectUriBlockedSchemeConfiguration) GetOdataType()(*string) { } return nil } -// GetPublicClient gets the publicClient property value. The publicClient property +// GetPublicClient gets the publicClient property value. Platform-specific blocked scheme configuration for public client applications (native/mobile apps). // returns a RedirectUriPlatformBlockedSchemeConfigurationable when successful func (m *RedirectUriBlockedSchemeConfiguration) GetPublicClient()(RedirectUriPlatformBlockedSchemeConfigurationable) { val, err := m.GetBackingStore().Get("publicClient") @@ -234,7 +234,7 @@ func (m *RedirectUriBlockedSchemeConfiguration) GetPublicClient()(RedirectUriPla } return nil } -// GetRestrictForAppsCreatedAfterDateTime gets the restrictForAppsCreatedAfterDateTime property value. The restrictForAppsCreatedAfterDateTime property +// GetRestrictForAppsCreatedAfterDateTime gets the restrictForAppsCreatedAfterDateTime property value. Date and time when this restriction starts applying to newly created applications. Applications created before this date are not affected. // returns a *Time when successful func (m *RedirectUriBlockedSchemeConfiguration) GetRestrictForAppsCreatedAfterDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("restrictForAppsCreatedAfterDateTime") @@ -246,7 +246,7 @@ func (m *RedirectUriBlockedSchemeConfiguration) GetRestrictForAppsCreatedAfterDa } return nil } -// GetSpa gets the spa property value. The spa property +// GetSpa gets the spa property value. Platform-specific blocked scheme configuration for single-page applications (SPAs). // returns a RedirectUriPlatformBlockedSchemeConfigurationable when successful func (m *RedirectUriBlockedSchemeConfiguration) GetSpa()(RedirectUriPlatformBlockedSchemeConfigurationable) { val, err := m.GetBackingStore().Get("spa") @@ -270,7 +270,7 @@ func (m *RedirectUriBlockedSchemeConfiguration) GetState()(*AppManagementRestric } return nil } -// GetWeb gets the web property value. The web property +// GetWeb gets the web property value. Platform-specific blocked scheme configuration for web applications. // returns a RedirectUriPlatformBlockedSchemeConfigurationable when successful func (m *RedirectUriBlockedSchemeConfiguration) GetWeb()(RedirectUriPlatformBlockedSchemeConfigurationable) { val, err := m.GetBackingStore().Get("web") @@ -358,28 +358,28 @@ func (m *RedirectUriBlockedSchemeConfiguration) SetAdditionalData(value map[stri func (m *RedirectUriBlockedSchemeConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetBlockedSchemes sets the blockedSchemes property value. The blockedSchemes property +// SetBlockedSchemes sets the blockedSchemes property value. Collection of URI schemes that are blocked globally across all platforms. Schemes refer to URI schemes as defined in RFC 3986 §3.1. func (m *RedirectUriBlockedSchemeConfiguration) SetBlockedSchemes(value []string)() { err := m.GetBackingStore().Set("blockedSchemes", value) if err != nil { panic(err) } } -// SetExcludeActors sets the excludeActors property value. The excludeActors property +// SetExcludeActors sets the excludeActors property value. Applications or service principals that are exempt from this restriction. func (m *RedirectUriBlockedSchemeConfiguration) SetExcludeActors(value AppManagementPolicyActorExemptionsable)() { err := m.GetBackingStore().Set("excludeActors", value) if err != nil { panic(err) } } -// SetExemptFormats sets the exemptFormats property value. The exemptFormats property +// SetExemptFormats sets the exemptFormats property value. Collection of URI patterns that are exempt from the blocked scheme restrictions. Patterns must follow specific validation rules for standard URI formats or URN formats. func (m *RedirectUriBlockedSchemeConfiguration) SetExemptFormats(value []string)() { err := m.GetBackingStore().Set("exemptFormats", value) if err != nil { panic(err) } } -// SetIsStateSetByMicrosoft sets the isStateSetByMicrosoft property value. The isStateSetByMicrosoft property +// SetIsStateSetByMicrosoft sets the isStateSetByMicrosoft property value. Indicates whether the restriction state was set by Microsoft. func (m *RedirectUriBlockedSchemeConfiguration) SetIsStateSetByMicrosoft(value *bool)() { err := m.GetBackingStore().Set("isStateSetByMicrosoft", value) if err != nil { @@ -393,21 +393,21 @@ func (m *RedirectUriBlockedSchemeConfiguration) SetOdataType(value *string)() { panic(err) } } -// SetPublicClient sets the publicClient property value. The publicClient property +// SetPublicClient sets the publicClient property value. Platform-specific blocked scheme configuration for public client applications (native/mobile apps). func (m *RedirectUriBlockedSchemeConfiguration) SetPublicClient(value RedirectUriPlatformBlockedSchemeConfigurationable)() { err := m.GetBackingStore().Set("publicClient", value) if err != nil { panic(err) } } -// SetRestrictForAppsCreatedAfterDateTime sets the restrictForAppsCreatedAfterDateTime property value. The restrictForAppsCreatedAfterDateTime property +// SetRestrictForAppsCreatedAfterDateTime sets the restrictForAppsCreatedAfterDateTime property value. Date and time when this restriction starts applying to newly created applications. Applications created before this date are not affected. func (m *RedirectUriBlockedSchemeConfiguration) SetRestrictForAppsCreatedAfterDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("restrictForAppsCreatedAfterDateTime", value) if err != nil { panic(err) } } -// SetSpa sets the spa property value. The spa property +// SetSpa sets the spa property value. Platform-specific blocked scheme configuration for single-page applications (SPAs). func (m *RedirectUriBlockedSchemeConfiguration) SetSpa(value RedirectUriPlatformBlockedSchemeConfigurationable)() { err := m.GetBackingStore().Set("spa", value) if err != nil { @@ -421,7 +421,7 @@ func (m *RedirectUriBlockedSchemeConfiguration) SetState(value *AppManagementRes panic(err) } } -// SetWeb sets the web property value. The web property +// SetWeb sets the web property value. Platform-specific blocked scheme configuration for web applications. func (m *RedirectUriBlockedSchemeConfiguration) SetWeb(value RedirectUriPlatformBlockedSchemeConfigurationable)() { err := m.GetBackingStore().Set("web", value) if err != nil { diff --git a/models/redirect_uri_configuration.go b/models/redirect_uri_configuration.go index 0242794927d..2b45d86ffb0 100644 --- a/models/redirect_uri_configuration.go +++ b/models/redirect_uri_configuration.go @@ -121,7 +121,7 @@ func (m *RedirectUriConfiguration) GetOdataType()(*string) { } return nil } -// GetUriWithBlockedDomain gets the uriWithBlockedDomain property value. The uriWithBlockedDomain property +// GetUriWithBlockedDomain gets the uriWithBlockedDomain property value. Configuration that specifies blocked domains for redirect URIs with global and platform-specific settings. // returns a RedirectUriBlockedDomainConfigurationable when successful func (m *RedirectUriConfiguration) GetUriWithBlockedDomain()(RedirectUriBlockedDomainConfigurationable) { val, err := m.GetBackingStore().Get("uriWithBlockedDomain") @@ -133,7 +133,7 @@ func (m *RedirectUriConfiguration) GetUriWithBlockedDomain()(RedirectUriBlockedD } return nil } -// GetUriWithBlockedScheme gets the uriWithBlockedScheme property value. The uriWithBlockedScheme property +// GetUriWithBlockedScheme gets the uriWithBlockedScheme property value. Configuration that specifies blocked URI schemes for redirect URIs with global and platform-specific settings and exempt format patterns. // returns a RedirectUriBlockedSchemeConfigurationable when successful func (m *RedirectUriConfiguration) GetUriWithBlockedScheme()(RedirectUriBlockedSchemeConfigurationable) { val, err := m.GetBackingStore().Get("uriWithBlockedScheme") @@ -145,7 +145,7 @@ func (m *RedirectUriConfiguration) GetUriWithBlockedScheme()(RedirectUriBlockedS } return nil } -// GetUriWithoutAllowedDomain gets the uriWithoutAllowedDomain property value. The uriWithoutAllowedDomain property +// GetUriWithoutAllowedDomain gets the uriWithoutAllowedDomain property value. Configuration that specifies allowed domains for redirect URIs with global and platform-specific settings. // returns a RedirectUriAllowedDomainConfigurationable when successful func (m *RedirectUriConfiguration) GetUriWithoutAllowedDomain()(RedirectUriAllowedDomainConfigurationable) { val, err := m.GetBackingStore().Get("uriWithoutAllowedDomain") @@ -157,7 +157,7 @@ func (m *RedirectUriConfiguration) GetUriWithoutAllowedDomain()(RedirectUriAllow } return nil } -// GetUriWithoutAllowedScheme gets the uriWithoutAllowedScheme property value. The uriWithoutAllowedScheme property +// GetUriWithoutAllowedScheme gets the uriWithoutAllowedScheme property value. Configuration that specifies allowed URI schemes for redirect URIs with global and platform-specific settings. // returns a RedirectUriAllowedSchemeConfigurationable when successful func (m *RedirectUriConfiguration) GetUriWithoutAllowedScheme()(RedirectUriAllowedSchemeConfigurationable) { val, err := m.GetBackingStore().Get("uriWithoutAllowedScheme") @@ -169,7 +169,7 @@ func (m *RedirectUriConfiguration) GetUriWithoutAllowedScheme()(RedirectUriAllow } return nil } -// GetUriWithWildcard gets the uriWithWildcard property value. The uriWithWildcard property +// GetUriWithWildcard gets the uriWithWildcard property value. Configuration that controls the use of wildcard patterns in redirect URIs with configurable exceptions. // returns a RedirectUriWildcardConfigurationable when successful func (m *RedirectUriConfiguration) GetUriWithWildcard()(RedirectUriWildcardConfigurationable) { val, err := m.GetBackingStore().Get("uriWithWildcard") @@ -245,35 +245,35 @@ func (m *RedirectUriConfiguration) SetOdataType(value *string)() { panic(err) } } -// SetUriWithBlockedDomain sets the uriWithBlockedDomain property value. The uriWithBlockedDomain property +// SetUriWithBlockedDomain sets the uriWithBlockedDomain property value. Configuration that specifies blocked domains for redirect URIs with global and platform-specific settings. func (m *RedirectUriConfiguration) SetUriWithBlockedDomain(value RedirectUriBlockedDomainConfigurationable)() { err := m.GetBackingStore().Set("uriWithBlockedDomain", value) if err != nil { panic(err) } } -// SetUriWithBlockedScheme sets the uriWithBlockedScheme property value. The uriWithBlockedScheme property +// SetUriWithBlockedScheme sets the uriWithBlockedScheme property value. Configuration that specifies blocked URI schemes for redirect URIs with global and platform-specific settings and exempt format patterns. func (m *RedirectUriConfiguration) SetUriWithBlockedScheme(value RedirectUriBlockedSchemeConfigurationable)() { err := m.GetBackingStore().Set("uriWithBlockedScheme", value) if err != nil { panic(err) } } -// SetUriWithoutAllowedDomain sets the uriWithoutAllowedDomain property value. The uriWithoutAllowedDomain property +// SetUriWithoutAllowedDomain sets the uriWithoutAllowedDomain property value. Configuration that specifies allowed domains for redirect URIs with global and platform-specific settings. func (m *RedirectUriConfiguration) SetUriWithoutAllowedDomain(value RedirectUriAllowedDomainConfigurationable)() { err := m.GetBackingStore().Set("uriWithoutAllowedDomain", value) if err != nil { panic(err) } } -// SetUriWithoutAllowedScheme sets the uriWithoutAllowedScheme property value. The uriWithoutAllowedScheme property +// SetUriWithoutAllowedScheme sets the uriWithoutAllowedScheme property value. Configuration that specifies allowed URI schemes for redirect URIs with global and platform-specific settings. func (m *RedirectUriConfiguration) SetUriWithoutAllowedScheme(value RedirectUriAllowedSchemeConfigurationable)() { err := m.GetBackingStore().Set("uriWithoutAllowedScheme", value) if err != nil { panic(err) } } -// SetUriWithWildcard sets the uriWithWildcard property value. The uriWithWildcard property +// SetUriWithWildcard sets the uriWithWildcard property value. Configuration that controls the use of wildcard patterns in redirect URIs with configurable exceptions. func (m *RedirectUriConfiguration) SetUriWithWildcard(value RedirectUriWildcardConfigurationable)() { err := m.GetBackingStore().Set("uriWithWildcard", value) if err != nil { diff --git a/models/redirect_uri_platform_allowed_domain_configuration.go b/models/redirect_uri_platform_allowed_domain_configuration.go index a39a7a8bd57..27556a780f5 100644 --- a/models/redirect_uri_platform_allowed_domain_configuration.go +++ b/models/redirect_uri_platform_allowed_domain_configuration.go @@ -38,7 +38,7 @@ func (m *RedirectUriPlatformAllowedDomainConfiguration) GetAdditionalData()(map[ } return val.(map[string]any) } -// GetAllowedDomains gets the allowedDomains property value. The allowedDomains property +// GetAllowedDomains gets the allowedDomains property value. Collection of domain names that are allowed for this specific platform. Domain validation follows RFC 3986 (URI syntax, section 3.2.2 for the host component). Domain matching is case-insensitive and exact; wildcards are not supported. // returns a []string when successful func (m *RedirectUriPlatformAllowedDomainConfiguration) GetAllowedDomains()([]string) { val, err := m.GetBackingStore().Get("allowedDomains") @@ -128,7 +128,7 @@ func (m *RedirectUriPlatformAllowedDomainConfiguration) SetAdditionalData(value panic(err) } } -// SetAllowedDomains sets the allowedDomains property value. The allowedDomains property +// SetAllowedDomains sets the allowedDomains property value. Collection of domain names that are allowed for this specific platform. Domain validation follows RFC 3986 (URI syntax, section 3.2.2 for the host component). Domain matching is case-insensitive and exact; wildcards are not supported. func (m *RedirectUriPlatformAllowedDomainConfiguration) SetAllowedDomains(value []string)() { err := m.GetBackingStore().Set("allowedDomains", value) if err != nil { diff --git a/models/redirect_uri_platform_allowed_scheme_configuration.go b/models/redirect_uri_platform_allowed_scheme_configuration.go index 2d02b6f3818..18632f922df 100644 --- a/models/redirect_uri_platform_allowed_scheme_configuration.go +++ b/models/redirect_uri_platform_allowed_scheme_configuration.go @@ -38,7 +38,7 @@ func (m *RedirectUriPlatformAllowedSchemeConfiguration) GetAdditionalData()(map[ } return val.(map[string]any) } -// GetAllowedSchemes gets the allowedSchemes property value. The allowedSchemes property +// GetAllowedSchemes gets the allowedSchemes property value. Collection of URI schemes that are allowed for this specific platform. Schemes refer to URI schemes as defined in RFC 3986 §3.1. The value '*' can be used to allow any scheme for this platform. // returns a []string when successful func (m *RedirectUriPlatformAllowedSchemeConfiguration) GetAllowedSchemes()([]string) { val, err := m.GetBackingStore().Get("allowedSchemes") @@ -128,7 +128,7 @@ func (m *RedirectUriPlatformAllowedSchemeConfiguration) SetAdditionalData(value panic(err) } } -// SetAllowedSchemes sets the allowedSchemes property value. The allowedSchemes property +// SetAllowedSchemes sets the allowedSchemes property value. Collection of URI schemes that are allowed for this specific platform. Schemes refer to URI schemes as defined in RFC 3986 §3.1. The value '*' can be used to allow any scheme for this platform. func (m *RedirectUriPlatformAllowedSchemeConfiguration) SetAllowedSchemes(value []string)() { err := m.GetBackingStore().Set("allowedSchemes", value) if err != nil { diff --git a/models/redirect_uri_platform_blocked_domain_configuration.go b/models/redirect_uri_platform_blocked_domain_configuration.go index 7afe4fb0868..53bf0ba3412 100644 --- a/models/redirect_uri_platform_blocked_domain_configuration.go +++ b/models/redirect_uri_platform_blocked_domain_configuration.go @@ -43,7 +43,7 @@ func (m *RedirectUriPlatformBlockedDomainConfiguration) GetAdditionalData()(map[ func (m *RedirectUriPlatformBlockedDomainConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetBlockedDomains gets the blockedDomains property value. The blockedDomains property +// GetBlockedDomains gets the blockedDomains property value. Collection of domain names that are blocked for this specific platform. Domain validation follows RFC 3986 (URI syntax, section 3.2.2 for the host component). Domain matching is case-insensitive and exact; wildcards are not supported. // returns a []string when successful func (m *RedirectUriPlatformBlockedDomainConfiguration) GetBlockedDomains()([]string) { val, err := m.GetBackingStore().Get("blockedDomains") @@ -132,7 +132,7 @@ func (m *RedirectUriPlatformBlockedDomainConfiguration) SetAdditionalData(value func (m *RedirectUriPlatformBlockedDomainConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetBlockedDomains sets the blockedDomains property value. The blockedDomains property +// SetBlockedDomains sets the blockedDomains property value. Collection of domain names that are blocked for this specific platform. Domain validation follows RFC 3986 (URI syntax, section 3.2.2 for the host component). Domain matching is case-insensitive and exact; wildcards are not supported. func (m *RedirectUriPlatformBlockedDomainConfiguration) SetBlockedDomains(value []string)() { err := m.GetBackingStore().Set("blockedDomains", value) if err != nil { diff --git a/models/redirect_uri_platform_blocked_scheme_configuration.go b/models/redirect_uri_platform_blocked_scheme_configuration.go index 624d5ee747d..7f56f5fa0bd 100644 --- a/models/redirect_uri_platform_blocked_scheme_configuration.go +++ b/models/redirect_uri_platform_blocked_scheme_configuration.go @@ -43,7 +43,7 @@ func (m *RedirectUriPlatformBlockedSchemeConfiguration) GetAdditionalData()(map[ func (m *RedirectUriPlatformBlockedSchemeConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetBlockedSchemes gets the blockedSchemes property value. The blockedSchemes property +// GetBlockedSchemes gets the blockedSchemes property value. Collection of URI schemes that are blocked for this specific platform. Schemes refer to URI schemes as defined in RFC 3986 §3.1. // returns a []string when successful func (m *RedirectUriPlatformBlockedSchemeConfiguration) GetBlockedSchemes()([]string) { val, err := m.GetBackingStore().Get("blockedSchemes") @@ -55,7 +55,7 @@ func (m *RedirectUriPlatformBlockedSchemeConfiguration) GetBlockedSchemes()([]st } return nil } -// GetExemptFormats gets the exemptFormats property value. The exemptFormats property +// GetExemptFormats gets the exemptFormats property value. Collection of URI patterns that are exempt from the blocked scheme restrictions for this platform. Patterns must follow specific validation rules for standard URI formats or URN formats. // returns a []string when successful func (m *RedirectUriPlatformBlockedSchemeConfiguration) GetExemptFormats()([]string) { val, err := m.GetBackingStore().Get("exemptFormats") @@ -166,14 +166,14 @@ func (m *RedirectUriPlatformBlockedSchemeConfiguration) SetAdditionalData(value func (m *RedirectUriPlatformBlockedSchemeConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetBlockedSchemes sets the blockedSchemes property value. The blockedSchemes property +// SetBlockedSchemes sets the blockedSchemes property value. Collection of URI schemes that are blocked for this specific platform. Schemes refer to URI schemes as defined in RFC 3986 §3.1. func (m *RedirectUriPlatformBlockedSchemeConfiguration) SetBlockedSchemes(value []string)() { err := m.GetBackingStore().Set("blockedSchemes", value) if err != nil { panic(err) } } -// SetExemptFormats sets the exemptFormats property value. The exemptFormats property +// SetExemptFormats sets the exemptFormats property value. Collection of URI patterns that are exempt from the blocked scheme restrictions for this platform. Patterns must follow specific validation rules for standard URI formats or URN formats. func (m *RedirectUriPlatformBlockedSchemeConfiguration) SetExemptFormats(value []string)() { err := m.GetBackingStore().Set("exemptFormats", value) if err != nil { diff --git a/models/redirect_uri_wildcard_configuration.go b/models/redirect_uri_wildcard_configuration.go index 3e19ab838b4..892f097fe9d 100644 --- a/models/redirect_uri_wildcard_configuration.go +++ b/models/redirect_uri_wildcard_configuration.go @@ -44,7 +44,7 @@ func (m *RedirectUriWildcardConfiguration) GetAdditionalData()(map[string]any) { func (m *RedirectUriWildcardConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetExcludeActors gets the excludeActors property value. The excludeActors property +// GetExcludeActors gets the excludeActors property value. Applications or service principals that are exempt from this restriction. // returns a AppManagementPolicyActorExemptionsable when successful func (m *RedirectUriWildcardConfiguration) GetExcludeActors()(AppManagementPolicyActorExemptionsable) { val, err := m.GetBackingStore().Get("excludeActors") @@ -56,7 +56,7 @@ func (m *RedirectUriWildcardConfiguration) GetExcludeActors()(AppManagementPolic } return nil } -// GetExcludeFormats gets the excludeFormats property value. The excludeFormats property +// GetExcludeFormats gets the excludeFormats property value. Configuration that specifies exceptions to the wildcard restriction, such as allowing wildcards for specific trusted domains. // returns a RedirectUriWildcardExcludeFormatsable when successful func (m *RedirectUriWildcardConfiguration) GetExcludeFormats()(RedirectUriWildcardExcludeFormatsable) { val, err := m.GetBackingStore().Get("excludeFormats") @@ -134,7 +134,7 @@ func (m *RedirectUriWildcardConfiguration) GetFieldDeserializers()(map[string]fu } return res } -// GetIsStateSetByMicrosoft gets the isStateSetByMicrosoft property value. The isStateSetByMicrosoft property +// GetIsStateSetByMicrosoft gets the isStateSetByMicrosoft property value. Indicates whether the restriction state was set by Microsoft. // returns a *bool when successful func (m *RedirectUriWildcardConfiguration) GetIsStateSetByMicrosoft()(*bool) { val, err := m.GetBackingStore().Get("isStateSetByMicrosoft") @@ -158,7 +158,7 @@ func (m *RedirectUriWildcardConfiguration) GetOdataType()(*string) { } return nil } -// GetRestrictForAppsCreatedAfterDateTime gets the restrictForAppsCreatedAfterDateTime property value. The restrictForAppsCreatedAfterDateTime property +// GetRestrictForAppsCreatedAfterDateTime gets the restrictForAppsCreatedAfterDateTime property value. Date and time when this restriction starts applying to newly created applications. Applications created before this date are not affected. // returns a *Time when successful func (m *RedirectUriWildcardConfiguration) GetRestrictForAppsCreatedAfterDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("restrictForAppsCreatedAfterDateTime") @@ -234,21 +234,21 @@ func (m *RedirectUriWildcardConfiguration) SetAdditionalData(value map[string]an func (m *RedirectUriWildcardConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetExcludeActors sets the excludeActors property value. The excludeActors property +// SetExcludeActors sets the excludeActors property value. Applications or service principals that are exempt from this restriction. func (m *RedirectUriWildcardConfiguration) SetExcludeActors(value AppManagementPolicyActorExemptionsable)() { err := m.GetBackingStore().Set("excludeActors", value) if err != nil { panic(err) } } -// SetExcludeFormats sets the excludeFormats property value. The excludeFormats property +// SetExcludeFormats sets the excludeFormats property value. Configuration that specifies exceptions to the wildcard restriction, such as allowing wildcards for specific trusted domains. func (m *RedirectUriWildcardConfiguration) SetExcludeFormats(value RedirectUriWildcardExcludeFormatsable)() { err := m.GetBackingStore().Set("excludeFormats", value) if err != nil { panic(err) } } -// SetIsStateSetByMicrosoft sets the isStateSetByMicrosoft property value. The isStateSetByMicrosoft property +// SetIsStateSetByMicrosoft sets the isStateSetByMicrosoft property value. Indicates whether the restriction state was set by Microsoft. func (m *RedirectUriWildcardConfiguration) SetIsStateSetByMicrosoft(value *bool)() { err := m.GetBackingStore().Set("isStateSetByMicrosoft", value) if err != nil { @@ -262,7 +262,7 @@ func (m *RedirectUriWildcardConfiguration) SetOdataType(value *string)() { panic(err) } } -// SetRestrictForAppsCreatedAfterDateTime sets the restrictForAppsCreatedAfterDateTime property value. The restrictForAppsCreatedAfterDateTime property +// SetRestrictForAppsCreatedAfterDateTime sets the restrictForAppsCreatedAfterDateTime property value. Date and time when this restriction starts applying to newly created applications. Applications created before this date are not affected. func (m *RedirectUriWildcardConfiguration) SetRestrictForAppsCreatedAfterDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("restrictForAppsCreatedAfterDateTime", value) if err != nil { diff --git a/models/redirect_uri_wildcard_exclude_formats.go b/models/redirect_uri_wildcard_exclude_formats.go index 5c10385978d..090a8ea2a62 100644 --- a/models/redirect_uri_wildcard_exclude_formats.go +++ b/models/redirect_uri_wildcard_exclude_formats.go @@ -43,7 +43,7 @@ func (m *RedirectUriWildcardExcludeFormats) GetAdditionalData()(map[string]any) func (m *RedirectUriWildcardExcludeFormats) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetExcludeWildcardsInPath gets the excludeWildcardsInPath property value. The excludeWildcardsInPath property +// GetExcludeWildcardsInPath gets the excludeWildcardsInPath property value. When true, blocks the use of wildcards in the path portion of redirect URIs. When false, allows wildcards in paths. // returns a *bool when successful func (m *RedirectUriWildcardExcludeFormats) GetExcludeWildcardsInPath()(*bool) { val, err := m.GetBackingStore().Get("excludeWildcardsInPath") @@ -55,7 +55,7 @@ func (m *RedirectUriWildcardExcludeFormats) GetExcludeWildcardsInPath()(*bool) { } return nil } -// GetExcludeWildcardsInPathWithDomains gets the excludeWildcardsInPathWithDomains property value. The excludeWildcardsInPathWithDomains property +// GetExcludeWildcardsInPathWithDomains gets the excludeWildcardsInPathWithDomains property value. Collection of domain names where wildcards in the path portion of redirect URIs are blocked. Accepts only valid host names (no wildcards) as defined in RFC 3986 §3.2.2. For example, login.microsoft.com or contoso.com. // returns a []string when successful func (m *RedirectUriWildcardExcludeFormats) GetExcludeWildcardsInPathWithDomains()([]string) { val, err := m.GetBackingStore().Get("excludeWildcardsInPathWithDomains") @@ -160,14 +160,14 @@ func (m *RedirectUriWildcardExcludeFormats) SetAdditionalData(value map[string]a func (m *RedirectUriWildcardExcludeFormats) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetExcludeWildcardsInPath sets the excludeWildcardsInPath property value. The excludeWildcardsInPath property +// SetExcludeWildcardsInPath sets the excludeWildcardsInPath property value. When true, blocks the use of wildcards in the path portion of redirect URIs. When false, allows wildcards in paths. func (m *RedirectUriWildcardExcludeFormats) SetExcludeWildcardsInPath(value *bool)() { err := m.GetBackingStore().Set("excludeWildcardsInPath", value) if err != nil { panic(err) } } -// SetExcludeWildcardsInPathWithDomains sets the excludeWildcardsInPathWithDomains property value. The excludeWildcardsInPathWithDomains property +// SetExcludeWildcardsInPathWithDomains sets the excludeWildcardsInPathWithDomains property value. Collection of domain names where wildcards in the path portion of redirect URIs are blocked. Accepts only valid host names (no wildcards) as defined in RFC 3986 §3.2.2. For example, login.microsoft.com or contoso.com. func (m *RedirectUriWildcardExcludeFormats) SetExcludeWildcardsInPathWithDomains(value []string)() { err := m.GetBackingStore().Set("excludeWildcardsInPathWithDomains", value) if err != nil { diff --git a/models/reminder.go b/models/reminder.go index 6d3642c4c04..7291b93ac55 100644 --- a/models/reminder.go +++ b/models/reminder.go @@ -67,7 +67,7 @@ func (m *Reminder) GetEventEndTime()(DateTimeTimeZoneable) { } return nil } -// GetEventId gets the eventId property value. The unique ID of the event. Read only. +// GetEventId gets the eventId property value. The unique ID of the event. Read-only. // returns a *string when successful func (m *Reminder) GetEventId()(*string) { val, err := m.GetBackingStore().Get("eventId") @@ -336,7 +336,7 @@ func (m *Reminder) SetEventEndTime(value DateTimeTimeZoneable)() { panic(err) } } -// SetEventId sets the eventId property value. The unique ID of the event. Read only. +// SetEventId sets the eventId property value. The unique ID of the event. Read-only. func (m *Reminder) SetEventId(value *string)() { err := m.GetBackingStore().Set("eventId", value) if err != nil { diff --git a/models/remove_from_lobby_operation.go b/models/remove_from_lobby_operation.go new file mode 100644 index 00000000000..c6c9062906c --- /dev/null +++ b/models/remove_from_lobby_operation.go @@ -0,0 +1,42 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type RemoveFromLobbyOperation struct { + CommsOperation +} +// NewRemoveFromLobbyOperation instantiates a new RemoveFromLobbyOperation and sets the default values. +func NewRemoveFromLobbyOperation()(*RemoveFromLobbyOperation) { + m := &RemoveFromLobbyOperation{ + CommsOperation: *NewCommsOperation(), + } + return m +} +// CreateRemoveFromLobbyOperationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateRemoveFromLobbyOperationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewRemoveFromLobbyOperation(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *RemoveFromLobbyOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CommsOperation.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *RemoveFromLobbyOperation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CommsOperation.Serialize(writer) + if err != nil { + return err + } + return nil +} +type RemoveFromLobbyOperationable interface { + CommsOperationable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/report_root.go b/models/report_root.go index 6937400d45d..b11586e7ba6 100644 --- a/models/report_root.go +++ b/models/report_root.go @@ -70,6 +70,18 @@ func (m *ReportRoot) GetAzureADPremiumLicenseInsight()(AzureADPremiumLicenseInsi } return nil } +// GetCorrelations gets the correlations property value. The identity correlation reports in the tenant. +// returns a []IdentityCorrelationable when successful +func (m *ReportRoot) GetCorrelations()([]IdentityCorrelationable) { + val, err := m.GetBackingStore().Get("correlations") + if err != nil { + panic(err) + } + if val != nil { + return val.([]IdentityCorrelationable) + } + return nil +} // GetCredentialUserRegistrationDetails gets the credentialUserRegistrationDetails property value. Details of the usage of self-service password reset and multifactor authentication (MFA) for all registered users. // returns a []CredentialUserRegistrationDetailsable when successful func (m *ReportRoot) GetCredentialUserRegistrationDetails()([]CredentialUserRegistrationDetailsable) { @@ -198,6 +210,22 @@ func (m *ReportRoot) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 } return nil } + res["correlations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateIdentityCorrelationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]IdentityCorrelationable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(IdentityCorrelationable) + } + } + m.SetCorrelations(res) + } + return nil + } res["credentialUserRegistrationDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateCredentialUserRegistrationDetailsFromDiscriminatorValue) if err != nil { @@ -294,6 +322,16 @@ func (m *ReportRoot) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 } return nil } + res["identityAnalytics"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateIdentityAnalyticsRootFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetIdentityAnalytics(val.(IdentityAnalyticsRootable)) + } + return nil + } res["monthlyPrintUsageByPrinter"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreatePrintUsageByPrinterFromDiscriminatorValue) if err != nil { @@ -442,6 +480,18 @@ func (m *ReportRoot) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 } return res } +// GetIdentityAnalytics gets the identityAnalytics property value. Microsoft Entra identity analytics for the tenant, including its groups. +// returns a IdentityAnalyticsRootable when successful +func (m *ReportRoot) GetIdentityAnalytics()(IdentityAnalyticsRootable) { + val, err := m.GetBackingStore().Get("identityAnalytics") + if err != nil { + panic(err) + } + if val != nil { + return val.(IdentityAnalyticsRootable) + } + return nil +} // GetMonthlyPrintUsageByPrinter gets the monthlyPrintUsageByPrinter property value. Retrieve a list of monthly print usage summaries, grouped by printer. // returns a []PrintUsageByPrinterable when successful func (m *ReportRoot) GetMonthlyPrintUsageByPrinter()([]PrintUsageByPrinterable) { @@ -616,6 +666,18 @@ func (m *ReportRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c return err } } + if m.GetCorrelations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCorrelations())) + for i, v := range m.GetCorrelations() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("correlations", cast) + if err != nil { + return err + } + } if m.GetCredentialUserRegistrationDetails() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCredentialUserRegistrationDetails())) for i, v := range m.GetCredentialUserRegistrationDetails() { @@ -688,6 +750,12 @@ func (m *ReportRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c return err } } + { + err = writer.WriteObjectValue("identityAnalytics", m.GetIdentityAnalytics()) + if err != nil { + return err + } + } if m.GetMonthlyPrintUsageByPrinter() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMonthlyPrintUsageByPrinter())) for i, v := range m.GetMonthlyPrintUsageByPrinter() { @@ -820,6 +888,13 @@ func (m *ReportRoot) SetAzureADPremiumLicenseInsight(value AzureADPremiumLicense panic(err) } } +// SetCorrelations sets the correlations property value. The identity correlation reports in the tenant. +func (m *ReportRoot) SetCorrelations(value []IdentityCorrelationable)() { + err := m.GetBackingStore().Set("correlations", value) + if err != nil { + panic(err) + } +} // SetCredentialUserRegistrationDetails sets the credentialUserRegistrationDetails property value. Details of the usage of self-service password reset and multifactor authentication (MFA) for all registered users. func (m *ReportRoot) SetCredentialUserRegistrationDetails(value []CredentialUserRegistrationDetailsable)() { err := m.GetBackingStore().Set("credentialUserRegistrationDetails", value) @@ -862,6 +937,13 @@ func (m *ReportRoot) SetDailyPrintUsageSummariesByUser(value []PrintUsageByUsera panic(err) } } +// SetIdentityAnalytics sets the identityAnalytics property value. Microsoft Entra identity analytics for the tenant, including its groups. +func (m *ReportRoot) SetIdentityAnalytics(value IdentityAnalyticsRootable)() { + err := m.GetBackingStore().Set("identityAnalytics", value) + if err != nil { + panic(err) + } +} // SetMonthlyPrintUsageByPrinter sets the monthlyPrintUsageByPrinter property value. Retrieve a list of monthly print usage summaries, grouped by printer. func (m *ReportRoot) SetMonthlyPrintUsageByPrinter(value []PrintUsageByPrinterable)() { err := m.GetBackingStore().Set("monthlyPrintUsageByPrinter", value) @@ -946,12 +1028,14 @@ type ReportRootable interface { GetApplicationSignInDetailedSummary()([]ApplicationSignInDetailedSummaryable) GetAuthenticationMethods()(AuthenticationMethodsRootable) GetAzureADPremiumLicenseInsight()(AzureADPremiumLicenseInsightable) + GetCorrelations()([]IdentityCorrelationable) GetCredentialUserRegistrationDetails()([]CredentialUserRegistrationDetailsable) GetDailyPrintUsage()([]PrintUsageable) GetDailyPrintUsageByPrinter()([]PrintUsageByPrinterable) GetDailyPrintUsageByUser()([]PrintUsageByUserable) GetDailyPrintUsageSummariesByPrinter()([]PrintUsageByPrinterable) GetDailyPrintUsageSummariesByUser()([]PrintUsageByUserable) + GetIdentityAnalytics()(IdentityAnalyticsRootable) GetMonthlyPrintUsageByPrinter()([]PrintUsageByPrinterable) GetMonthlyPrintUsageByUser()([]PrintUsageByUserable) GetMonthlyPrintUsageSummariesByPrinter()([]PrintUsageByPrinterable) @@ -967,12 +1051,14 @@ type ReportRootable interface { SetApplicationSignInDetailedSummary(value []ApplicationSignInDetailedSummaryable)() SetAuthenticationMethods(value AuthenticationMethodsRootable)() SetAzureADPremiumLicenseInsight(value AzureADPremiumLicenseInsightable)() + SetCorrelations(value []IdentityCorrelationable)() SetCredentialUserRegistrationDetails(value []CredentialUserRegistrationDetailsable)() SetDailyPrintUsage(value []PrintUsageable)() SetDailyPrintUsageByPrinter(value []PrintUsageByPrinterable)() SetDailyPrintUsageByUser(value []PrintUsageByUserable)() SetDailyPrintUsageSummariesByPrinter(value []PrintUsageByPrinterable)() SetDailyPrintUsageSummariesByUser(value []PrintUsageByUserable)() + SetIdentityAnalytics(value IdentityAnalyticsRootable)() SetMonthlyPrintUsageByPrinter(value []PrintUsageByPrinterable)() SetMonthlyPrintUsageByUser(value []PrintUsageByUserable)() SetMonthlyPrintUsageSummariesByPrinter(value []PrintUsageByPrinterable)() diff --git a/models/restore_point_search_result.go b/models/restore_point_search_result.go index 4882f360799..09e5921bba1 100644 --- a/models/restore_point_search_result.go +++ b/models/restore_point_search_result.go @@ -38,7 +38,7 @@ func (m *RestorePointSearchResult) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } -// GetArtifactHitCount gets the artifactHitCount property value. Total number of mailbox items that can be restored for a granular restore session. +// GetArtifactHitCount gets the artifactHitCount property value. The number of items that match the specified search criteria and were changed within the given time range. // returns a *int32 when successful func (m *RestorePointSearchResult) GetArtifactHitCount()(*int32) { val, err := m.GetBackingStore().Get("artifactHitCount") @@ -150,7 +150,7 @@ func (m *RestorePointSearchResult) SetAdditionalData(value map[string]any)() { panic(err) } } -// SetArtifactHitCount sets the artifactHitCount property value. Total number of mailbox items that can be restored for a granular restore session. +// SetArtifactHitCount sets the artifactHitCount property value. The number of items that match the specified search criteria and were changed within the given time range. func (m *RestorePointSearchResult) SetArtifactHitCount(value *int32)() { err := m.GetBackingStore().Set("artifactHitCount", value) if err != nil { diff --git a/models/restore_search_artifact_query_expression.go b/models/restore_search_artifact_query_expression.go new file mode 100644 index 00000000000..22ea0293db9 --- /dev/null +++ b/models/restore_search_artifact_query_expression.go @@ -0,0 +1,325 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type RestoreSearchArtifactQueryExpression struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewRestoreSearchArtifactQueryExpression instantiates a new RestoreSearchArtifactQueryExpression and sets the default values. +func NewRestoreSearchArtifactQueryExpression()(*RestoreSearchArtifactQueryExpression) { + m := &RestoreSearchArtifactQueryExpression{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateRestoreSearchArtifactQueryExpressionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateRestoreSearchArtifactQueryExpressionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewRestoreSearchArtifactQueryExpression(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *RestoreSearchArtifactQueryExpression) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *RestoreSearchArtifactQueryExpression) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *RestoreSearchArtifactQueryExpression) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["hasAttachment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetHasAttachment(val) + } + return nil + } + res["items"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfEnumValues(ParseGranularRestoreItems) + if err != nil { + return err + } + if val != nil { + res := make([]GranularRestoreItems, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*GranularRestoreItems)) + } + } + m.SetItems(res) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["recipients"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetRecipients(res) + } + return nil + } + res["senders"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetSenders(res) + } + return nil + } + res["subjects"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetSubjects(res) + } + return nil + } + return res +} +// GetHasAttachment gets the hasAttachment property value. Indicates whether the artifact has an attachment. Optional. +// returns a *bool when successful +func (m *RestoreSearchArtifactQueryExpression) GetHasAttachment()(*bool) { + val, err := m.GetBackingStore().Get("hasAttachment") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetItems gets the items property value. The types of items to include in the search. Optional. +// returns a []GranularRestoreItems when successful +func (m *RestoreSearchArtifactQueryExpression) GetItems()([]GranularRestoreItems) { + val, err := m.GetBackingStore().Get("items") + if err != nil { + panic(err) + } + if val != nil { + return val.([]GranularRestoreItems) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *RestoreSearchArtifactQueryExpression) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRecipients gets the recipients property value. The recipient email addresses to filter by. Optional. +// returns a []string when successful +func (m *RestoreSearchArtifactQueryExpression) GetRecipients()([]string) { + val, err := m.GetBackingStore().Get("recipients") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetSenders gets the senders property value. The sender email addresses to filter by. Optional. +// returns a []string when successful +func (m *RestoreSearchArtifactQueryExpression) GetSenders()([]string) { + val, err := m.GetBackingStore().Get("senders") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetSubjects gets the subjects property value. The subject lines to filter by. Optional. +// returns a []string when successful +func (m *RestoreSearchArtifactQueryExpression) GetSubjects()([]string) { + val, err := m.GetBackingStore().Get("subjects") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// Serialize serializes information the current object +func (m *RestoreSearchArtifactQueryExpression) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("hasAttachment", m.GetHasAttachment()) + if err != nil { + return err + } + } + if m.GetItems() != nil { + err := writer.WriteCollectionOfStringValues("items", SerializeGranularRestoreItems(m.GetItems())) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetRecipients() != nil { + err := writer.WriteCollectionOfStringValues("recipients", m.GetRecipients()) + if err != nil { + return err + } + } + if m.GetSenders() != nil { + err := writer.WriteCollectionOfStringValues("senders", m.GetSenders()) + if err != nil { + return err + } + } + if m.GetSubjects() != nil { + err := writer.WriteCollectionOfStringValues("subjects", m.GetSubjects()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *RestoreSearchArtifactQueryExpression) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *RestoreSearchArtifactQueryExpression) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetHasAttachment sets the hasAttachment property value. Indicates whether the artifact has an attachment. Optional. +func (m *RestoreSearchArtifactQueryExpression) SetHasAttachment(value *bool)() { + err := m.GetBackingStore().Set("hasAttachment", value) + if err != nil { + panic(err) + } +} +// SetItems sets the items property value. The types of items to include in the search. Optional. +func (m *RestoreSearchArtifactQueryExpression) SetItems(value []GranularRestoreItems)() { + err := m.GetBackingStore().Set("items", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *RestoreSearchArtifactQueryExpression) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetRecipients sets the recipients property value. The recipient email addresses to filter by. Optional. +func (m *RestoreSearchArtifactQueryExpression) SetRecipients(value []string)() { + err := m.GetBackingStore().Set("recipients", value) + if err != nil { + panic(err) + } +} +// SetSenders sets the senders property value. The sender email addresses to filter by. Optional. +func (m *RestoreSearchArtifactQueryExpression) SetSenders(value []string)() { + err := m.GetBackingStore().Set("senders", value) + if err != nil { + panic(err) + } +} +// SetSubjects sets the subjects property value. The subject lines to filter by. Optional. +func (m *RestoreSearchArtifactQueryExpression) SetSubjects(value []string)() { + err := m.GetBackingStore().Set("subjects", value) + if err != nil { + panic(err) + } +} +type RestoreSearchArtifactQueryExpressionable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetHasAttachment()(*bool) + GetItems()([]GranularRestoreItems) + GetOdataType()(*string) + GetRecipients()([]string) + GetSenders()([]string) + GetSubjects()([]string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetHasAttachment(value *bool)() + SetItems(value []GranularRestoreItems)() + SetOdataType(value *string)() + SetRecipients(value []string)() + SetSenders(value []string)() + SetSubjects(value []string)() +} diff --git a/models/schedule.go b/models/schedule.go index 65cec64e148..fbed90fb819 100644 --- a/models/schedule.go +++ b/models/schedule.go @@ -698,7 +698,7 @@ func (m *Schedule) GetTimesOff()([]TimeOffable) { } return nil } -// GetTimeZone gets the timeZone property value. Indicates the time zone of the schedule team using tz database format. Required. +// GetTimeZone gets the timeZone property value. The time zone of the schedule team as an IANA time zone database (tz database) name; for example, America/Chicago. For the full list of valid values, see List of tz database time zones. Required. // returns a *string when successful func (m *Schedule) GetTimeZone()(*string) { val, err := m.GetBackingStore().Get("timeZone") @@ -1141,7 +1141,7 @@ func (m *Schedule) SetTimesOff(value []TimeOffable)() { panic(err) } } -// SetTimeZone sets the timeZone property value. Indicates the time zone of the schedule team using tz database format. Required. +// SetTimeZone sets the timeZone property value. The time zone of the schedule team as an IANA time zone database (tz database) name; for example, America/Chicago. For the full list of valid values, see List of tz database time zones. Required. func (m *Schedule) SetTimeZone(value *string)() { err := m.GetBackingStore().Set("timeZone", value) if err != nil { diff --git a/models/security/a_i_span_outputs_audit_record.go b/models/security/a_i_span_outputs_audit_record.go new file mode 100644 index 00000000000..b48680d2beb --- /dev/null +++ b/models/security/a_i_span_outputs_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// AISpanOutputsAuditRecord audit data for AI Span Outputs events. +type AISpanOutputsAuditRecord struct { + AuditData +} +// NewAISpanOutputsAuditRecord instantiates a new AISpanOutputsAuditRecord and sets the default values. +func NewAISpanOutputsAuditRecord()(*AISpanOutputsAuditRecord) { + m := &AISpanOutputsAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.aISpanOutputsAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateAISpanOutputsAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAISpanOutputsAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAISpanOutputsAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AISpanOutputsAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *AISpanOutputsAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type AISpanOutputsAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/account_entity_mapping.go b/models/security/account_entity_mapping.go new file mode 100644 index 00000000000..68d3cb4dd5b --- /dev/null +++ b/models/security/account_entity_mapping.go @@ -0,0 +1,303 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type AccountEntityMapping struct { + EntityMapping +} +// NewAccountEntityMapping instantiates a new AccountEntityMapping and sets the default values. +func NewAccountEntityMapping()(*AccountEntityMapping) { + m := &AccountEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.accountEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateAccountEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAccountEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAccountEntityMapping(), nil +} +// GetAadUserIdColumn gets the aadUserIdColumn property value. Name of the detection query column that maps to the Microsoft Entra user ID of the alert entity. +// returns a *string when successful +func (m *AccountEntityMapping) GetAadUserIdColumn()(*string) { + val, err := m.GetBackingStore().Get("aadUserIdColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDnsDomainColumn gets the dnsDomainColumn property value. Name of the detection query column that maps to the DNS domain of the alert entity. +// returns a *string when successful +func (m *AccountEntityMapping) GetDnsDomainColumn()(*string) { + val, err := m.GetBackingStore().Get("dnsDomainColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AccountEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["aadUserIdColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAadUserIdColumn(val) + } + return nil + } + res["dnsDomainColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDnsDomainColumn(val) + } + return nil + } + res["nameColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNameColumn(val) + } + return nil + } + res["ntDomainColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNtDomainColumn(val) + } + return nil + } + res["sidColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSidColumn(val) + } + return nil + } + res["upnColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUpnColumn(val) + } + return nil + } + res["upnSuffixColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUpnSuffixColumn(val) + } + return nil + } + return res +} +// GetNameColumn gets the nameColumn property value. Name of the detection query column that maps to the name of the alert entity. +// returns a *string when successful +func (m *AccountEntityMapping) GetNameColumn()(*string) { + val, err := m.GetBackingStore().Get("nameColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetNtDomainColumn gets the ntDomainColumn property value. Name of the detection query column that maps to the NT domain of the alert entity. +// returns a *string when successful +func (m *AccountEntityMapping) GetNtDomainColumn()(*string) { + val, err := m.GetBackingStore().Get("ntDomainColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSidColumn gets the sidColumn property value. Name of the detection query column that maps to the security identifier (SID) of the alert entity. +// returns a *string when successful +func (m *AccountEntityMapping) GetSidColumn()(*string) { + val, err := m.GetBackingStore().Get("sidColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUpnColumn gets the upnColumn property value. Name of the detection query column that maps to the user principal name (UPN) of the alert entity. +// returns a *string when successful +func (m *AccountEntityMapping) GetUpnColumn()(*string) { + val, err := m.GetBackingStore().Get("upnColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUpnSuffixColumn gets the upnSuffixColumn property value. Name of the detection query column that maps to the UPN suffix of the alert entity. +// returns a *string when successful +func (m *AccountEntityMapping) GetUpnSuffixColumn()(*string) { + val, err := m.GetBackingStore().Get("upnSuffixColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *AccountEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("aadUserIdColumn", m.GetAadUserIdColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("dnsDomainColumn", m.GetDnsDomainColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("nameColumn", m.GetNameColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("ntDomainColumn", m.GetNtDomainColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("sidColumn", m.GetSidColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("upnColumn", m.GetUpnColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("upnSuffixColumn", m.GetUpnSuffixColumn()) + if err != nil { + return err + } + } + return nil +} +// SetAadUserIdColumn sets the aadUserIdColumn property value. Name of the detection query column that maps to the Microsoft Entra user ID of the alert entity. +func (m *AccountEntityMapping) SetAadUserIdColumn(value *string)() { + err := m.GetBackingStore().Set("aadUserIdColumn", value) + if err != nil { + panic(err) + } +} +// SetDnsDomainColumn sets the dnsDomainColumn property value. Name of the detection query column that maps to the DNS domain of the alert entity. +func (m *AccountEntityMapping) SetDnsDomainColumn(value *string)() { + err := m.GetBackingStore().Set("dnsDomainColumn", value) + if err != nil { + panic(err) + } +} +// SetNameColumn sets the nameColumn property value. Name of the detection query column that maps to the name of the alert entity. +func (m *AccountEntityMapping) SetNameColumn(value *string)() { + err := m.GetBackingStore().Set("nameColumn", value) + if err != nil { + panic(err) + } +} +// SetNtDomainColumn sets the ntDomainColumn property value. Name of the detection query column that maps to the NT domain of the alert entity. +func (m *AccountEntityMapping) SetNtDomainColumn(value *string)() { + err := m.GetBackingStore().Set("ntDomainColumn", value) + if err != nil { + panic(err) + } +} +// SetSidColumn sets the sidColumn property value. Name of the detection query column that maps to the security identifier (SID) of the alert entity. +func (m *AccountEntityMapping) SetSidColumn(value *string)() { + err := m.GetBackingStore().Set("sidColumn", value) + if err != nil { + panic(err) + } +} +// SetUpnColumn sets the upnColumn property value. Name of the detection query column that maps to the user principal name (UPN) of the alert entity. +func (m *AccountEntityMapping) SetUpnColumn(value *string)() { + err := m.GetBackingStore().Set("upnColumn", value) + if err != nil { + panic(err) + } +} +// SetUpnSuffixColumn sets the upnSuffixColumn property value. Name of the detection query column that maps to the UPN suffix of the alert entity. +func (m *AccountEntityMapping) SetUpnSuffixColumn(value *string)() { + err := m.GetBackingStore().Set("upnSuffixColumn", value) + if err != nil { + panic(err) + } +} +type AccountEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAadUserIdColumn()(*string) + GetDnsDomainColumn()(*string) + GetNameColumn()(*string) + GetNtDomainColumn()(*string) + GetSidColumn()(*string) + GetUpnColumn()(*string) + GetUpnSuffixColumn()(*string) + SetAadUserIdColumn(value *string)() + SetDnsDomainColumn(value *string)() + SetNameColumn(value *string)() + SetNtDomainColumn(value *string)() + SetSidColumn(value *string)() + SetUpnColumn(value *string)() + SetUpnSuffixColumn(value *string)() +} diff --git a/models/security/account_object_id_action.go b/models/security/account_object_id_action.go new file mode 100644 index 00000000000..e92dadc3ea3 --- /dev/null +++ b/models/security/account_object_id_action.go @@ -0,0 +1,81 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type AccountObjectIdAction struct { + AutomatedAction +} +// NewAccountObjectIdAction instantiates a new AccountObjectIdAction and sets the default values. +func NewAccountObjectIdAction()(*AccountObjectIdAction) { + m := &AccountObjectIdAction{ + AutomatedAction: *NewAutomatedAction(), + } + odataTypeValue := "#microsoft.graph.security.accountObjectIdAction" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateAccountObjectIdActionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAccountObjectIdActionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAccountObjectIdAction(), nil +} +// GetAccountObjectIdColumn gets the accountObjectIdColumn property value. Name of the hunting-query result column that contains the Microsoft Entra object ID of the targeted account. +// returns a *string when successful +func (m *AccountObjectIdAction) GetAccountObjectIdColumn()(*string) { + val, err := m.GetBackingStore().Get("accountObjectIdColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AccountObjectIdAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AutomatedAction.GetFieldDeserializers() + res["accountObjectIdColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAccountObjectIdColumn(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *AccountObjectIdAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AutomatedAction.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("accountObjectIdColumn", m.GetAccountObjectIdColumn()) + if err != nil { + return err + } + } + return nil +} +// SetAccountObjectIdColumn sets the accountObjectIdColumn property value. Name of the hunting-query result column that contains the Microsoft Entra object ID of the targeted account. +func (m *AccountObjectIdAction) SetAccountObjectIdColumn(value *string)() { + err := m.GetBackingStore().Set("accountObjectIdColumn", value) + if err != nil { + panic(err) + } +} +type AccountObjectIdActionable interface { + AutomatedActionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAccountObjectIdColumn()(*string) + SetAccountObjectIdColumn(value *string)() +} diff --git a/models/security/account_sid_action.go b/models/security/account_sid_action.go new file mode 100644 index 00000000000..0a51c024cbb --- /dev/null +++ b/models/security/account_sid_action.go @@ -0,0 +1,81 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type AccountSidAction struct { + AutomatedAction +} +// NewAccountSidAction instantiates a new AccountSidAction and sets the default values. +func NewAccountSidAction()(*AccountSidAction) { + m := &AccountSidAction{ + AutomatedAction: *NewAutomatedAction(), + } + odataTypeValue := "#microsoft.graph.security.accountSidAction" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateAccountSidActionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAccountSidActionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAccountSidAction(), nil +} +// GetAccountSidColumn gets the accountSidColumn property value. Name of the hunting-query result column that contains the SID of the targeted account. +// returns a *string when successful +func (m *AccountSidAction) GetAccountSidColumn()(*string) { + val, err := m.GetBackingStore().Get("accountSidColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AccountSidAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AutomatedAction.GetFieldDeserializers() + res["accountSidColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAccountSidColumn(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *AccountSidAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AutomatedAction.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("accountSidColumn", m.GetAccountSidColumn()) + if err != nil { + return err + } + } + return nil +} +// SetAccountSidColumn sets the accountSidColumn property value. Name of the hunting-query result column that contains the SID of the targeted account. +func (m *AccountSidAction) SetAccountSidColumn(value *string)() { + err := m.GetBackingStore().Set("accountSidColumn", value) + if err != nil { + panic(err) + } +} +type AccountSidActionable interface { + AutomatedActionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAccountSidColumn()(*string) + SetAccountSidColumn(value *string)() +} diff --git a/models/security/additional_data_options.go b/models/security/additional_data_options.go index 0a903173ab9..7dc97535083 100644 --- a/models/security/additional_data_options.go +++ b/models/security/additional_data_options.go @@ -18,12 +18,13 @@ const ( MESSAGECONVERSATIONEXPANSION_ADDITIONALDATAOPTIONS = 64 LOCATIONSWITHOUTHITS_ADDITIONALDATAOPTIONS = 128 ALLITEMSINFOLDER_ADDITIONALDATAOPTIONS = 256 + CLOUDNATIVEHTMLCONVERSION_ADDITIONALDATAOPTIONS = 512 ) func (i AdditionalDataOptions) String() string { var values []string - options := []string{"allVersions", "linkedFiles", "unknownFutureValue", "advancedIndexing", "listAttachments", "htmlTranscripts", "messageConversationExpansion", "locationsWithoutHits", "allItemsInFolder"} - for p := 0; p < 9; p++ { + options := []string{"allVersions", "linkedFiles", "unknownFutureValue", "advancedIndexing", "listAttachments", "htmlTranscripts", "messageConversationExpansion", "locationsWithoutHits", "allItemsInFolder", "cloudNativeHtmlConversion"} + for p := 0; p < 10; p++ { mantis := AdditionalDataOptions(int(math.Pow(2, float64(p)))) if i&mantis == mantis { values = append(values, options[p]) @@ -54,6 +55,8 @@ func ParseAdditionalDataOptions(v string) (any, error) { result |= LOCATIONSWITHOUTHITS_ADDITIONALDATAOPTIONS case "allItemsInFolder": result |= ALLITEMSINFOLDER_ADDITIONALDATAOPTIONS + case "cloudNativeHtmlConversion": + result |= CLOUDNATIVEHTMLCONVERSION_ADDITIONALDATAOPTIONS default: return nil, nil } diff --git a/models/security/alert.go b/models/security/alert.go index 4e3bcb607de..b63b573de29 100644 --- a/models/security/alert.go +++ b/models/security/alert.go @@ -22,6 +22,24 @@ func NewAlert()(*Alert) { // CreateAlertFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful func CreateAlertFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.security.manualAlert": + return NewManualAlert(), nil + } + } + } + } return NewAlert(), nil } // GetActorDisplayName gets the actorDisplayName property value. The adversary or activity group that is associated with this alert. diff --git a/models/security/alert_custom_details.go b/models/security/alert_custom_details.go new file mode 100644 index 00000000000..2ca47228349 --- /dev/null +++ b/models/security/alert_custom_details.go @@ -0,0 +1,44 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type AlertCustomDetails struct { + Dictionary +} +// NewAlertCustomDetails instantiates a new AlertCustomDetails and sets the default values. +func NewAlertCustomDetails()(*AlertCustomDetails) { + m := &AlertCustomDetails{ + Dictionary: *NewDictionary(), + } + odataTypeValue := "#microsoft.graph.security.alertCustomDetails" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateAlertCustomDetailsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAlertCustomDetailsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAlertCustomDetails(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AlertCustomDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Dictionary.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *AlertCustomDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Dictionary.Serialize(writer) + if err != nil { + return err + } + return nil +} +type AlertCustomDetailsable interface { + Dictionaryable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/alert_submission_audit_record.go b/models/security/alert_submission_audit_record.go new file mode 100644 index 00000000000..1dd9033ceb2 --- /dev/null +++ b/models/security/alert_submission_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// AlertSubmissionAuditRecord audit data for Alert Submission events. +type AlertSubmissionAuditRecord struct { + AuditData +} +// NewAlertSubmissionAuditRecord instantiates a new AlertSubmissionAuditRecord and sets the default values. +func NewAlertSubmissionAuditRecord()(*AlertSubmissionAuditRecord) { + m := &AlertSubmissionAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.alertSubmissionAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateAlertSubmissionAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAlertSubmissionAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAlertSubmissionAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AlertSubmissionAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *AlertSubmissionAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type AlertSubmissionAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/alert_submission_result_detail_audit_record.go b/models/security/alert_submission_result_detail_audit_record.go new file mode 100644 index 00000000000..a5977ca6c72 --- /dev/null +++ b/models/security/alert_submission_result_detail_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// AlertSubmissionResultDetailAuditRecord audit data for Alert Submission Result Detail events. +type AlertSubmissionResultDetailAuditRecord struct { + AuditData +} +// NewAlertSubmissionResultDetailAuditRecord instantiates a new AlertSubmissionResultDetailAuditRecord and sets the default values. +func NewAlertSubmissionResultDetailAuditRecord()(*AlertSubmissionResultDetailAuditRecord) { + m := &AlertSubmissionResultDetailAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.alertSubmissionResultDetailAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateAlertSubmissionResultDetailAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAlertSubmissionResultDetailAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAlertSubmissionResultDetailAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AlertSubmissionResultDetailAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *AlertSubmissionResultDetailAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type AlertSubmissionResultDetailAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/alert_template.go b/models/security/alert_template.go index 1483039c732..be2d901491a 100644 --- a/models/security/alert_template.go +++ b/models/security/alert_template.go @@ -43,7 +43,7 @@ func (m *AlertTemplate) GetAdditionalData()(map[string]any) { func (m *AlertTemplate) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetCategory gets the category property value. Category assigned to the alert triggered by the custom detection rule. +// GetCategory gets the category property value. Indicates the category assigned to the alert triggered by the custom detection rule. Deprecated. Use tactics instead. This property will be removed from this resource on 2026-10-01. // returns a *string when successful func (m *AlertTemplate) GetCategory()(*string) { val, err := m.GetBackingStore().Get("category") @@ -55,6 +55,18 @@ func (m *AlertTemplate) GetCategory()(*string) { } return nil } +// GetCustomDetails gets the customDetails property value. Custom key-value detail pairs to include in the alert. Each value identifies the detection query column that supplies the corresponding custom detail. +// returns a AlertCustomDetailsable when successful +func (m *AlertTemplate) GetCustomDetails()(AlertCustomDetailsable) { + val, err := m.GetBackingStore().Get("customDetails") + if err != nil { + panic(err) + } + if val != nil { + return val.(AlertCustomDetailsable) + } + return nil +} // GetDescription gets the description property value. Description of the alert triggered by the custom detection rule. // returns a *string when successful func (m *AlertTemplate) GetDescription()(*string) { @@ -67,6 +79,18 @@ func (m *AlertTemplate) GetDescription()(*string) { } return nil } +// GetEntityMappings gets the entityMappings property value. The entityMappings property +// returns a EntityMappingConfigurationable when successful +func (m *AlertTemplate) GetEntityMappings()(EntityMappingConfigurationable) { + val, err := m.GetBackingStore().Get("entityMappings") + if err != nil { + panic(err) + } + if val != nil { + return val.(EntityMappingConfigurationable) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *AlertTemplate) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { @@ -81,6 +105,16 @@ func (m *AlertTemplate) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } + res["customDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAlertCustomDetailsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCustomDetails(val.(AlertCustomDetailsable)) + } + return nil + } res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -91,6 +125,16 @@ func (m *AlertTemplate) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } + res["entityMappings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateEntityMappingConfigurationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetEntityMappings(val.(EntityMappingConfigurationable)) + } + return nil + } res["impactedAssets"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateImpactedAssetFromDiscriminatorValue) if err != nil { @@ -153,6 +197,22 @@ func (m *AlertTemplate) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } + res["tactics"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateMitreTacticFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]MitreTacticable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(MitreTacticable) + } + } + m.SetTactics(res) + } + return nil + } res["title"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -165,7 +225,7 @@ func (m *AlertTemplate) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return res } -// GetImpactedAssets gets the impactedAssets property value. Which asset or assets were impacted based on the alert triggered by the custom detection rule. +// GetImpactedAssets gets the impactedAssets property value. Indicates the impacted assets for the alert triggered by the custom detection rule. Deprecated. Use entityMappings instead. This property will be removed from this resource on 2026-10-01. // returns a []ImpactedAssetable when successful func (m *AlertTemplate) GetImpactedAssets()([]ImpactedAssetable) { val, err := m.GetBackingStore().Get("impactedAssets") @@ -177,7 +237,7 @@ func (m *AlertTemplate) GetImpactedAssets()([]ImpactedAssetable) { } return nil } -// GetMitreTechniques gets the mitreTechniques property value. MITRE technique assigned to the alert triggered by the custom detection rule. +// GetMitreTechniques gets the mitreTechniques property value. Indicates the MITRE techniques assigned to the alert triggered by the custom detection rule. Deprecated. Use tactics instead. This property will be removed from this resource on 2026-10-01. // returns a []string when successful func (m *AlertTemplate) GetMitreTechniques()([]string) { val, err := m.GetBackingStore().Get("mitreTechniques") @@ -225,6 +285,18 @@ func (m *AlertTemplate) GetSeverity()(*AlertSeverity) { } return nil } +// GetTactics gets the tactics property value. The MITRE ATT&CK tactics framing for this alert. +// returns a []MitreTacticable when successful +func (m *AlertTemplate) GetTactics()([]MitreTacticable) { + val, err := m.GetBackingStore().Get("tactics") + if err != nil { + panic(err) + } + if val != nil { + return val.([]MitreTacticable) + } + return nil +} // GetTitle gets the title property value. Name of the alert triggered by the custom detection rule. // returns a *string when successful func (m *AlertTemplate) GetTitle()(*string) { @@ -245,12 +317,24 @@ func (m *AlertTemplate) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return err } } + { + err := writer.WriteObjectValue("customDetails", m.GetCustomDetails()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("description", m.GetDescription()) if err != nil { return err } } + { + err := writer.WriteObjectValue("entityMappings", m.GetEntityMappings()) + if err != nil { + return err + } + } if m.GetImpactedAssets() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetImpactedAssets())) for i, v := range m.GetImpactedAssets() { @@ -288,6 +372,18 @@ func (m *AlertTemplate) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return err } } + if m.GetTactics() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTactics())) + for i, v := range m.GetTactics() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("tactics", cast) + if err != nil { + return err + } + } { err := writer.WriteStringValue("title", m.GetTitle()) if err != nil { @@ -313,13 +409,20 @@ func (m *AlertTemplate) SetAdditionalData(value map[string]any)() { func (m *AlertTemplate) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetCategory sets the category property value. Category assigned to the alert triggered by the custom detection rule. +// SetCategory sets the category property value. Indicates the category assigned to the alert triggered by the custom detection rule. Deprecated. Use tactics instead. This property will be removed from this resource on 2026-10-01. func (m *AlertTemplate) SetCategory(value *string)() { err := m.GetBackingStore().Set("category", value) if err != nil { panic(err) } } +// SetCustomDetails sets the customDetails property value. Custom key-value detail pairs to include in the alert. Each value identifies the detection query column that supplies the corresponding custom detail. +func (m *AlertTemplate) SetCustomDetails(value AlertCustomDetailsable)() { + err := m.GetBackingStore().Set("customDetails", value) + if err != nil { + panic(err) + } +} // SetDescription sets the description property value. Description of the alert triggered by the custom detection rule. func (m *AlertTemplate) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) @@ -327,14 +430,21 @@ func (m *AlertTemplate) SetDescription(value *string)() { panic(err) } } -// SetImpactedAssets sets the impactedAssets property value. Which asset or assets were impacted based on the alert triggered by the custom detection rule. +// SetEntityMappings sets the entityMappings property value. The entityMappings property +func (m *AlertTemplate) SetEntityMappings(value EntityMappingConfigurationable)() { + err := m.GetBackingStore().Set("entityMappings", value) + if err != nil { + panic(err) + } +} +// SetImpactedAssets sets the impactedAssets property value. Indicates the impacted assets for the alert triggered by the custom detection rule. Deprecated. Use entityMappings instead. This property will be removed from this resource on 2026-10-01. func (m *AlertTemplate) SetImpactedAssets(value []ImpactedAssetable)() { err := m.GetBackingStore().Set("impactedAssets", value) if err != nil { panic(err) } } -// SetMitreTechniques sets the mitreTechniques property value. MITRE technique assigned to the alert triggered by the custom detection rule. +// SetMitreTechniques sets the mitreTechniques property value. Indicates the MITRE techniques assigned to the alert triggered by the custom detection rule. Deprecated. Use tactics instead. This property will be removed from this resource on 2026-10-01. func (m *AlertTemplate) SetMitreTechniques(value []string)() { err := m.GetBackingStore().Set("mitreTechniques", value) if err != nil { @@ -362,6 +472,13 @@ func (m *AlertTemplate) SetSeverity(value *AlertSeverity)() { panic(err) } } +// SetTactics sets the tactics property value. The MITRE ATT&CK tactics framing for this alert. +func (m *AlertTemplate) SetTactics(value []MitreTacticable)() { + err := m.GetBackingStore().Set("tactics", value) + if err != nil { + panic(err) + } +} // SetTitle sets the title property value. Name of the alert triggered by the custom detection rule. func (m *AlertTemplate) SetTitle(value *string)() { err := m.GetBackingStore().Set("title", value) @@ -375,20 +492,26 @@ type AlertTemplateable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCategory()(*string) + GetCustomDetails()(AlertCustomDetailsable) GetDescription()(*string) + GetEntityMappings()(EntityMappingConfigurationable) GetImpactedAssets()([]ImpactedAssetable) GetMitreTechniques()([]string) GetOdataType()(*string) GetRecommendedActions()(*string) GetSeverity()(*AlertSeverity) + GetTactics()([]MitreTacticable) GetTitle()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCategory(value *string)() + SetCustomDetails(value AlertCustomDetailsable)() SetDescription(value *string)() + SetEntityMappings(value EntityMappingConfigurationable)() SetImpactedAssets(value []ImpactedAssetable)() SetMitreTechniques(value []string)() SetOdataType(value *string)() SetRecommendedActions(value *string)() SetSeverity(value *AlertSeverity)() + SetTactics(value []MitreTacticable)() SetTitle(value *string)() } diff --git a/models/security/amazon_resource_entity_mapping.go b/models/security/amazon_resource_entity_mapping.go new file mode 100644 index 00000000000..0c4ac1e9a51 --- /dev/null +++ b/models/security/amazon_resource_entity_mapping.go @@ -0,0 +1,81 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type AmazonResourceEntityMapping struct { + EntityMapping +} +// NewAmazonResourceEntityMapping instantiates a new AmazonResourceEntityMapping and sets the default values. +func NewAmazonResourceEntityMapping()(*AmazonResourceEntityMapping) { + m := &AmazonResourceEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.amazonResourceEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateAmazonResourceEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAmazonResourceEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAmazonResourceEntityMapping(), nil +} +// GetAmazonResourceIdColumn gets the amazonResourceIdColumn property value. Name of the detection query column that maps to the Amazon resource ID of the alert entity. +// returns a *string when successful +func (m *AmazonResourceEntityMapping) GetAmazonResourceIdColumn()(*string) { + val, err := m.GetBackingStore().Get("amazonResourceIdColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AmazonResourceEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["amazonResourceIdColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAmazonResourceIdColumn(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *AmazonResourceEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("amazonResourceIdColumn", m.GetAmazonResourceIdColumn()) + if err != nil { + return err + } + } + return nil +} +// SetAmazonResourceIdColumn sets the amazonResourceIdColumn property value. Name of the detection query column that maps to the Amazon resource ID of the alert entity. +func (m *AmazonResourceEntityMapping) SetAmazonResourceIdColumn(value *string)() { + err := m.GetBackingStore().Set("amazonResourceIdColumn", value) + if err != nil { + panic(err) + } +} +type AmazonResourceEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAmazonResourceIdColumn()(*string) + SetAmazonResourceIdColumn(value *string)() +} diff --git a/models/security/audit_data.go b/models/security/audit_data.go index ffba33554b9..0be1c06a0ba 100644 --- a/models/security/audit_data.go +++ b/models/security/audit_data.go @@ -84,6 +84,12 @@ func CreateAuditDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewAirInvestigationData(), nil case "#microsoft.graph.security.airManualInvestigationData": return NewAirManualInvestigationData(), nil + case "#microsoft.graph.security.aISpanOutputsAuditRecord": + return NewAISpanOutputsAuditRecord(), nil + case "#microsoft.graph.security.alertSubmissionAuditRecord": + return NewAlertSubmissionAuditRecord(), nil + case "#microsoft.graph.security.alertSubmissionResultDetailAuditRecord": + return NewAlertSubmissionResultDetailAuditRecord(), nil case "#microsoft.graph.security.attackSimAdminAuditRecord": return NewAttackSimAdminAuditRecord(), nil case "#microsoft.graph.security.attackSimAuditRecord": @@ -104,6 +110,8 @@ func CreateAuditDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewAzureActiveDirectoryAuditRecord(), nil case "#microsoft.graph.security.azureActiveDirectoryStsLogonAuditRecord": return NewAzureActiveDirectoryStsLogonAuditRecord(), nil + case "#microsoft.graph.security.azureAISearchAuditRecord": + return NewAzureAISearchAuditRecord(), nil case "#microsoft.graph.security.campaignAuditRecord": return NewCampaignAuditRecord(), nil case "#microsoft.graph.security.ccraiPolicyViolationRecord": @@ -168,8 +176,12 @@ func CreateAuditDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewComplianceExchangeOcrAuditRecord(), nil case "#microsoft.graph.security.complianceManagerActionRecord": return NewComplianceManagerActionRecord(), nil + case "#microsoft.graph.security.compliancePolicyGradingSharePointAuditRecord": + return NewCompliancePolicyGradingSharePointAuditRecord(), nil case "#microsoft.graph.security.complianceSettingsChangeAuditRecord": return NewComplianceSettingsChangeAuditRecord(), nil + case "#microsoft.graph.security.complianceSitGradingSharePointAuditRecord": + return NewComplianceSitGradingSharePointAuditRecord(), nil case "#microsoft.graph.security.complianceSupervisionExchangeAuditRecord": return NewComplianceSupervisionExchangeAuditRecord(), nil case "#microsoft.graph.security.connectedAIAppInteractionAuditRecord": @@ -190,6 +202,8 @@ func CreateAuditDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewCopilotPluginSettingAuditRecord(), nil case "#microsoft.graph.security.copilotPromptBookSettingAuditRecord": return NewCopilotPromptBookSettingAuditRecord(), nil + case "#microsoft.graph.security.copilotSessionSharingAuditRecord": + return NewCopilotSessionSharingAuditRecord(), nil case "#microsoft.graph.security.copilotSettingAuditRecord": return NewCopilotSettingAuditRecord(), nil case "#microsoft.graph.security.copilotWorkspaceSettingAuditRecord": @@ -224,6 +238,8 @@ func CreateAuditDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewDefenderCaseManagementAuditRecord(), nil case "#microsoft.graph.security.defenderPreviewFeaturesRecord": return NewDefenderPreviewFeaturesRecord(), nil + case "#microsoft.graph.security.defenderSecurityForAIConfigurationAuditRecord": + return NewDefenderSecurityForAIConfigurationAuditRecord(), nil case "#microsoft.graph.security.deployFeatureActivityRecord": return NewDeployFeatureActivityRecord(), nil case "#microsoft.graph.security.deviceDiscoverySettingsAuthenticatedScansRecord": @@ -240,10 +256,20 @@ func CreateAuditDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewDlpImportResultAuditRecord(), nil case "#microsoft.graph.security.dlpSensitiveInformationTypeRulePackageCmdletRecord": return NewDlpSensitiveInformationTypeRulePackageCmdletRecord(), nil + case "#microsoft.graph.security.dragonCopilotAccessRecord": + return NewDragonCopilotAccessRecord(), nil + case "#microsoft.graph.security.dragonCopilotAdminRecord": + return NewDragonCopilotAdminRecord(), nil + case "#microsoft.graph.security.dragonCopilotClinicalDataRecord": + return NewDragonCopilotClinicalDataRecord(), nil + case "#microsoft.graph.security.dragonCopilotSessionRecord": + return NewDragonCopilotSessionRecord(), nil case "#microsoft.graph.security.dynamics365BusinessCentralAuditRecord": return NewDynamics365BusinessCentralAuditRecord(), nil case "#microsoft.graph.security.ehrConnectorAuditBaseRecord": return NewEhrConnectorAuditBaseRecord(), nil + case "#microsoft.graph.security.eopSubmissionFeedEntityAuditRecord": + return NewEopSubmissionFeedEntityAuditRecord(), nil case "#microsoft.graph.security.exchangeAdminAuditRecord": return NewExchangeAdminAuditRecord(), nil case "#microsoft.graph.security.exchangeAggregatedMailboxAuditRecord": @@ -256,6 +282,8 @@ func CreateAuditDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewExchangeMailboxAuditRecord(), nil case "#microsoft.graph.security.fabricAuditRecord": return NewFabricAuditRecord(), nil + case "#microsoft.graph.security.fabricPolicyRecord": + return NewFabricPolicyRecord(), nil case "#microsoft.graph.security.healthcareSignalRecord": return NewHealthcareSignalRecord(), nil case "#microsoft.graph.security.hostedRpaAuditRecord": @@ -316,6 +344,8 @@ func CreateAuditDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewMdaAuditRecord(), nil case "#microsoft.graph.security.mdaDataSecuritySignalRecord": return NewMdaDataSecuritySignalRecord(), nil + case "#microsoft.graph.security.mDASHAuditRecord": + return NewMDASHAuditRecord(), nil case "#microsoft.graph.security.mdatpAuditRecord": return NewMdatpAuditRecord(), nil case "#microsoft.graph.security.mdcEventsRecord": @@ -374,6 +404,8 @@ func CreateAuditDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewMicrosoftTeamsSensitivityLabelActionAuditRecord(), nil case "#microsoft.graph.security.microsoftTeamsShiftsAuditRecord": return NewMicrosoftTeamsShiftsAuditRecord(), nil + case "#microsoft.graph.security.microsoftTeamsUserConcernAuditRecord": + return NewMicrosoftTeamsUserConcernAuditRecord(), nil case "#microsoft.graph.security.mipAutoLabelExchangeItemAuditRecord": return NewMipAutoLabelExchangeItemAuditRecord(), nil case "#microsoft.graph.security.mipAutoLabelProgressFeedbackAuditRecord": @@ -396,6 +428,8 @@ func CreateAuditDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewMipLabelAuditRecord(), nil case "#microsoft.graph.security.mosAgentInfoRecord": return NewMosAgentInfoRecord(), nil + case "#microsoft.graph.security.mosAgentInfoRecordV2": + return NewMosAgentInfoRecordV2(), nil case "#microsoft.graph.security.ms365dCustomDetectionAuditRecord": return NewMs365dCustomDetectionAuditRecord(), nil case "#microsoft.graph.security.ms365dIncidentAuditRecord": @@ -412,6 +446,8 @@ func CreateAuditDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewMsdeResponseActionsAuditRecord(), nil case "#microsoft.graph.security.msdeRolesSettingsAuditRecord": return NewMsdeRolesSettingsAuditRecord(), nil + case "#microsoft.graph.security.mspVectorSearchContentMetadataAuditRecord": + return NewMspVectorSearchContentMetadataAuditRecord(), nil case "#microsoft.graph.security.msticNationStateNotificationRecord": return NewMsticNationStateNotificationRecord(), nil case "#microsoft.graph.security.multiStageDispositionAuditRecord": @@ -446,6 +482,8 @@ func CreateAuditDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewP4aiAssessmentLocationResultRecord(), nil case "#microsoft.graph.security.p4aiAssessmentRecord": return NewP4aiAssessmentRecord(), nil + case "#microsoft.graph.security.p4AIRiskScoreRecord": + return NewP4AIRiskScoreRecord(), nil case "#microsoft.graph.security.peopleAdminSettingsAuditRecord": return NewPeopleAdminSettingsAuditRecord(), nil case "#microsoft.graph.security.physicalBadgingSignalAuditRecord": @@ -586,6 +624,10 @@ func CreateAuditDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewSecurityComplianceRBACAuditRecord(), nil case "#microsoft.graph.security.securityComplianceUserChangeAuditRecord": return NewSecurityComplianceUserChangeAuditRecord(), nil + case "#microsoft.graph.security.securityCopilotIdentityManagementAuditRecord": + return NewSecurityCopilotIdentityManagementAuditRecord(), nil + case "#microsoft.graph.security.securityDevelopmentLifecycleAILogAuditRecord": + return NewSecurityDevelopmentLifecycleAILogAuditRecord(), nil case "#microsoft.graph.security.sensitiveInfoRemediationAgentDataRecord": return NewSensitiveInfoRemediationAgentDataRecord(), nil case "#microsoft.graph.security.sensitivityLabelActionAuditRecord": @@ -642,6 +684,18 @@ func CreateAuditDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewSkypeForBusinessUsersBlockedAuditRecord(), nil case "#microsoft.graph.security.sonarDetonationContentMetadata": return NewSonarDetonationContentMetadata(), nil + case "#microsoft.graph.security.sonarDetonationEntityAuditRecord": + return NewSonarDetonationEntityAuditRecord(), nil + case "#microsoft.graph.security.sonarFileDetonationEntityAuditRecord": + return NewSonarFileDetonationEntityAuditRecord(), nil + case "#microsoft.graph.security.sonarSubmissionEntityAuditRecord": + return NewSonarSubmissionEntityAuditRecord(), nil + case "#microsoft.graph.security.sonarUrlDetonationEntityAuditRecord": + return NewSonarUrlDetonationEntityAuditRecord(), nil + case "#microsoft.graph.security.sparkCoreCustomLivePoolRecord": + return NewSparkCoreCustomLivePoolRecord(), nil + case "#microsoft.graph.security.submissionEntityAuditRecord": + return NewSubmissionEntityAuditRecord(), nil case "#microsoft.graph.security.supervisoryReviewDayXInsightsAuditRecord": return NewSupervisoryReviewDayXInsightsAuditRecord(), nil case "#microsoft.graph.security.syntheticProbeAuditRecord": @@ -716,6 +770,8 @@ func CreateAuditDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f return NewVivaEngageSegmentAuditRecord(), nil case "#microsoft.graph.security.vivaGlintAdvancedConfigurationAuditRecord": return NewVivaGlintAdvancedConfigurationAuditRecord(), nil + case "#microsoft.graph.security.vivaGlintAgenticCampaignAuditRecord": + return NewVivaGlintAgenticCampaignAuditRecord(), nil case "#microsoft.graph.security.vivaGlintFeedbackProgramAuditRecord": return NewVivaGlintFeedbackProgramAuditRecord(), nil case "#microsoft.graph.security.vivaGlintOrganizationalDataAuditRecord": @@ -788,10 +844,32 @@ func (m *AuditData) GetAdditionalData()(map[string]any) { func (m *AuditData) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } +// GetDynamicProperties gets the dynamicProperties property value. The dynamicProperties property +// returns a AuditRecordTypeDictionaryable when successful +func (m *AuditData) GetDynamicProperties()(AuditRecordTypeDictionaryable) { + val, err := m.GetBackingStore().Get("dynamicProperties") + if err != nil { + panic(err) + } + if val != nil { + return val.(AuditRecordTypeDictionaryable) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *AuditData) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["dynamicProperties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAuditRecordTypeDictionaryFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetDynamicProperties(val.(AuditRecordTypeDictionaryable)) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -818,6 +896,12 @@ func (m *AuditData) GetOdataType()(*string) { } // Serialize serializes information the current object func (m *AuditData) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("dynamicProperties", m.GetDynamicProperties()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -843,6 +927,13 @@ func (m *AuditData) SetAdditionalData(value map[string]any)() { func (m *AuditData) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } +// SetDynamicProperties sets the dynamicProperties property value. The dynamicProperties property +func (m *AuditData) SetDynamicProperties(value AuditRecordTypeDictionaryable)() { + err := m.GetBackingStore().Set("dynamicProperties", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *AuditData) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -855,7 +946,9 @@ type AuditDataable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDynamicProperties()(AuditRecordTypeDictionaryable) GetOdataType()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDynamicProperties(value AuditRecordTypeDictionaryable)() SetOdataType(value *string)() } diff --git a/models/security/audit_log_record_type.go b/models/security/audit_log_record_type.go index 686b8bf50dc..d7f44bc63da 100644 --- a/models/security/audit_log_record_type.go +++ b/models/security/audit_log_record_type.go @@ -449,13 +449,39 @@ const ( TEAMSEVALDATAHUBPERMISSIONCHANGE_AUDITLOGRECORDTYPE TEAMSEVALDATAHUBADMINOPERATION_AUDITLOGRECORDTYPE VIVAGLINTORGANIZATIONALDATA_AUDITLOGRECORDTYPE - REPORTSUBMISSION_AUDITLOGRECORDTYPE - REPORTSUBMISSIONRESULTDETAIL_AUDITLOGRECORDTYPE + ALERTSUBMISSION_AUDITLOGRECORDTYPE + ALERTSUBMISSIONRESULTDETAIL_AUDITLOGRECORDTYPE + COMPLIANCESITGRADINGSHAREPOINT_AUDITLOGRECORDTYPE + COMPLIANCEPOLICYGRADINGSHAREPOINT_AUDITLOGRECORDTYPE + AZUREAISEARCHAUDIT_AUDITLOGRECORDTYPE + P4AIRISKSCORERECORD_AUDITLOGRECORDTYPE + DRAGONCOPILOTADMIN_AUDITLOGRECORDTYPE + AISPANOUTPUTS_AUDITLOGRECORDTYPE + EOPSUBMISSIONFEEDENTITY_AUDITLOGRECORDTYPE + SONARFILEDETONATIONENTITY_AUDITLOGRECORDTYPE + SONARSUBMISSIONENTITY_AUDITLOGRECORDTYPE + SONARURLDETONATIONENTITY_AUDITLOGRECORDTYPE + SUBMISSIONENTITY_AUDITLOGRECORDTYPE + SONARDETONATIONENTITY_AUDITLOGRECORDTYPE + MICROSOFTTEAMSUSERCONCERN_AUDITLOGRECORDTYPE + VIVAGLINTAGENTICCAMPAIGN_AUDITLOGRECORDTYPE + MSPVECTORSEARCHCONTENTMETADATA_AUDITLOGRECORDTYPE + FABRICPOLICY_AUDITLOGRECORDTYPE + SECURITYCOPILOTAGENTIDENTITYMANAGEMENT_AUDITLOGRECORDTYPE + COPILOTSESSIONSHARING_AUDITLOGRECORDTYPE + DRAGONCOPILOTACCESS_AUDITLOGRECORDTYPE + DRAGONCOPILOTCLINICALDATA_AUDITLOGRECORDTYPE + DRAGONCOPILOTSESSION_AUDITLOGRECORDTYPE + MOSAGENTINFORECORDV2_AUDITLOGRECORDTYPE + SECURITYDEVELOPMENTLIFECYCLEAILOG_AUDITLOGRECORDTYPE + MDASH_AUDITLOGRECORDTYPE + DEFENDERSECURITYFORAICONFIGURATION_AUDITLOGRECORDTYPE + SPARKCORECUSTOMLIVEPOOL_AUDITLOGRECORDTYPE UNKNOWNFUTUREVALUE_AUDITLOGRECORDTYPE ) func (i AuditLogRecordType) String() string { - return []string{"ExchangeAdmin", "ExchangeItem", "ExchangeItemGroup", "SharePoint", "SyntheticProbe", "SharePointFileOperation", "OneDrive", "AzureActiveDirectory", "AzureActiveDirectoryAccountLogon", "DataCenterSecurityCmdlet", "ComplianceDLPSharePoint", "Sway", "ComplianceDLPExchange", "SharePointSharingOperation", "AzureActiveDirectoryStsLogon", "SkypeForBusinessPSTNUsage", "SkypeForBusinessUsersBlocked", "SecurityComplianceCenterEOPCmdlet", "ExchangeAggregatedOperation", "PowerBIAudit", "CRM", "Yammer", "SkypeForBusinessCmdlets", "Discovery", "MicrosoftTeams", "ThreatIntelligence", "MailSubmission", "MicrosoftFlow", "AeD", "MicrosoftStream", "ComplianceDLPSharePointClassification", "ThreatFinder", "Project", "SharePointListOperation", "SharePointCommentOperation", "DataGovernance", "Kaizala", "SecurityComplianceAlerts", "ThreatIntelligenceUrl", "SecurityComplianceInsights", "MIPLabel", "WorkplaceAnalytics", "PowerAppsApp", "PowerAppsPlan", "ThreatIntelligenceAtpContent", "LabelContentExplorer", "TeamsHealthcare", "ExchangeItemAggregated", "HygieneEvent", "DataInsightsRestApiAudit", "InformationBarrierPolicyApplication", "SharePointListItemOperation", "SharePointContentTypeOperation", "SharePointFieldOperation", "MicrosoftTeamsAdmin", "HRSignal", "MicrosoftTeamsDevice", "MicrosoftTeamsAnalytics", "InformationWorkerProtection", "Campaign", "DLPEndpoint", "AirInvestigation", "Quarantine", "MicrosoftForms", "ApplicationAudit", "ComplianceSupervisionExchange", "CustomerKeyServiceEncryption", "OfficeNative", "MipAutoLabelSharePointItem", "MipAutoLabelSharePointPolicyLocation", "MicrosoftTeamsShifts", "SecureScore", "MipAutoLabelExchangeItem", "CortanaBriefing", "Search", "WDATPAlerts", "PowerPlatformAdminDlp", "PowerPlatformAdminEnvironment", "MDATPAudit", "SensitivityLabelPolicyMatch", "SensitivityLabelAction", "SensitivityLabeledFileAction", "AttackSim", "AirManualInvestigation", "SecurityComplianceRBAC", "UserTraining", "AirAdminActionInvestigation", "MSTIC", "PhysicalBadgingSignal", "TeamsEasyApprovals", "AipDiscover", "AipSensitivityLabelAction", "AipProtectionAction", "AipFileDeleted", "AipHeartBeat", "MCASAlerts", "OnPremisesFileShareScannerDlp", "OnPremisesSharePointScannerDlp", "ExchangeSearch", "SharePointSearch", "PrivacyDataMinimization", "LabelAnalyticsAggregate", "MyAnalyticsSettings", "SecurityComplianceUserChange", "ComplianceDLPExchangeClassification", "ComplianceDLPEndpoint", "MipExactDataMatch", "MSDEResponseActions", "MSDEGeneralSettings", "MSDEIndicatorsSettings", "MS365DCustomDetection", "MSDERolesSettings", "MAPGAlerts", "MAPGPolicy", "MAPGRemediation", "PrivacyRemediationAction", "PrivacyDigestEmail", "MipAutoLabelSimulationProgress", "MipAutoLabelSimulationCompletion", "MipAutoLabelProgressFeedback", "DlpSensitiveInformationType", "MipAutoLabelSimulationStatistics", "LargeContentMetadata", "Microsoft365Group", "CDPMlInferencingResult", "FilteringMailMetadata", "CDPClassificationMailItem", "CDPClassificationDocument", "OfficeScriptsRunAction", "FilteringPostMailDeliveryAction", "CDPUnifiedFeedback", "TenantAllowBlockList", "ConsumptionResource", "HealthcareSignal", "DlpImportResult", "CDPCompliancePolicyExecution", "MultiStageDisposition", "PrivacyDataMatch", "FilteringDocMetadata", "FilteringEmailFeatures", "PowerBIDlp", "FilteringUrlInfo", "FilteringAttachmentInfo", "CoreReportingSettings", "ComplianceConnector", "PowerPlatformLockboxResourceAccessRequest", "PowerPlatformLockboxResourceCommand", "CDPPredictiveCodingLabel", "CDPCompliancePolicyUserFeedback", "WebpageActivityEndpoint", "OMEPortal", "CMImprovementActionChange", "FilteringUrlClick", "MipLabelAnalyticsAuditRecord", "FilteringEntityEvent", "FilteringRuleHits", "FilteringMailSubmission", "LabelExplorer", "MicrosoftManagedServicePlatform", "PowerPlatformServiceActivity", "ScorePlatformGenericAuditRecord", "FilteringTimeTravelDocMetadata", "Alert", "AlertStatus", "AlertIncident", "IncidentStatus", "Case", "CaseInvestigation", "RecordsManagement", "PrivacyRemediation", "DataShareOperation", "CdpDlpSensitive", "EHRConnector", "FilteringMailGradingResult", "PublicFolder", "PrivacyTenantAuditHistoryRecord", "AipScannerDiscoverEvent", "EduDataLakeDownloadOperation", "M365ComplianceConnector", "MicrosoftGraphDataConnectOperation", "MicrosoftPurview", "FilteringEmailContentFeatures", "PowerPagesSite", "PowerAppsResource", "PlannerPlan", "PlannerCopyPlan", "PlannerTask", "PlannerRoster", "PlannerPlanList", "PlannerTaskList", "PlannerTenantSettings", "ProjectForTheWebProject", "ProjectForTheWebTask", "ProjectForTheWebRoadmap", "ProjectForTheWebRoadmapItem", "ProjectForTheWebProjectSettings", "ProjectForTheWebRoadmapSettings", "QuarantineMetadata", "MicrosoftTodoAudit", "TimeTravelFilteringDocMetadata", "TeamsQuarantineMetadata", "SharePointAppPermissionOperation", "MicrosoftTeamsSensitivityLabelAction", "FilteringTeamsMetadata", "FilteringTeamsUrlInfo", "FilteringTeamsPostDeliveryAction", "MDCAssessments", "MDCRegulatoryComplianceStandards", "MDCRegulatoryComplianceControls", "MDCRegulatoryComplianceAssessments", "MDCSecurityConnectors", "MDADataSecuritySignal", "VivaGoals", "FilteringRuntimeInfo", "AttackSimAdmin", "MicrosoftGraphDataConnectConsent", "FilteringAtpDetonationInfo", "PrivacyPortal", "ManagedTenants", "UnifiedSimulationMatchedItem", "UnifiedSimulationSummary", "UpdateQuarantineMetadata", "MS365DSuppressionRule", "PurviewDataMapOperation", "FilteringUrlPostClickAction", "IrmUserDefinedDetectionSignal", "TeamsUpdates", "PlannerRosterSensitivityLabel", "MS365DIncident", "FilteringDelistingMetadata", "ComplianceDLPSharePointClassificationExtended", "MicrosoftDefenderForIdentityAudit", "SupervisoryReviewDayXInsight", "DefenderExpertsforXDRAdmin", "CDPEdgeBlockedMessage", "HostedRpa", "CdpContentExplorerAggregateRecord", "CDPHygieneAttachmentInfo", "CDPHygieneSummary", "CDPPostMailDeliveryAction", "CDPEmailFeatures", "CDPHygieneUrlInfo", "CDPUrlClick", "CDPPackageManagerHygieneEvent", "FilteringDocScan", "TimeTravelFilteringDocScan", "MAPGOnboard", "VfamCreatePolicy", "VfamUpdatePolicy", "VfamDeletePolicy", "M365DAAD", "CdpColdCrawlStatus", "PowerPlatformAdministratorActivity", "Windows365CustomerLockbox", "CdpResourceScopeChangeEvent", "ComplianceCCExchangeExecutionResult", "CdpOcrCostEstimatorRecord", "CopilotInteraction", "CdpOcrBillingRecord", "ComplianceDLPApplications", "UAMOperation", "VivaLearning", "VivaLearningAdmin", "PurviewPolicyOperation", "PurviewMetadataPolicyOperation", "PeopleAdminSettings", "CdpComplianceDLPExchangeClassification", "CdpComplianceDLPSharePointClassification", "FilteringBulkSenderInsightData", "FilteringBulkThresholdInsightData", "PrivacyOpenAccess", "OWAAuth", "ComplianceDLPApplicationsClassification", "SharePointESignature", "Dynamics365BusinessCentral", "MeshWorlds", "VivaPulseResponse", "VivaPulseOrganizer", "VivaPulseAdmin", "VivaPulseReport", "AIAppInteraction", "ComplianceDLMExchange", "ComplianceDLMSharePoint", "ProjectForTheWebAssignedToMeSettings", "CPSOperation", "ComplianceDLPExchangeDiscovery", "PurviewMCRecommendation", "ComplianceDLPEndpointDiscovery", "InsiderRiskScopedUserInsights", "MicrosoftTeamsRetentionLabelAction", "AadRiskDetection", "AuditSearch", "AuditRetentionPolicy", "AuditConfig", "Microsoft365BackupBackupPolicy", "Microsoft365BackupRestoreTask", "Microsoft365BackupRestoreItem", "Microsoft365BackupBackupItem", "URBACAssignment", "URBACRole", "URBACEnableState", "IRMSecurityAlert", "PurviewInsiderRiskCases", "PurviewInsiderRiskAlerts", "InsiderRiskScopedUsers", "CdpConsumptionResource", "CreateCopilotPlugin", "UpdateCopilotPlugin", "DeleteCopilotPlugin", "EnableCopilotPlugin", "DisableCopilotPlugin", "CreateCopilotWorkspace", "UpdateCopilotWorkspace", "DeleteCopilotWorkspace", "EnableCopilotWorkspace", "DisableCopilotWorkspace", "CreateCopilotPromptBook", "UpdateCopilotPromptBook", "DeleteCopilotPromptBook", "EnableCopilotPromptBook", "DisableCopilotPromptBook", "UpdateCopilotSettings", "P4AIAssessmentRecord", "P4AIAssessmentLocationResultRecord", "ConnectedAIAppInteraction", "PrivaPrivacyConsentOperation", "PrivaPrivacyAssessmentOperation", "DataCatalogAccessRequests", "ComplianceSettingsChange", "DataSecurityInvestigation", "TeamCopilotInteraction", "IRMActivityAuditTrail", "SharePointContentSecurityPolicy", "CloudUpdateProfileConfig", "CloudUpdateTenantConfig", "CloudUpdateDeviceConfig", "DefenderPreviewFeatures", "DeviceDiscoverySettingsExclusion", "DeviceDiscoverySettingsAuthenticatedScans", "CriticalAssetManagementClassification", "DeviceDiscoverySettings", "USXWorkspaceOnboarding", "VivaGlintAdvancedConfiguration", "VivaGlintPulseProgram", "VivaGlintPulseProgramRespondentRate", "VivaGlintQuestion", "VivaGlintRole", "VivaGlintRubicon", "VivaGlintSupportAccess", "VivaGlintSystem", "VivaGlintUser", "VivaGlintUserGroup", "VivaGlintFeedbackProgram", "FabricAudit", "TrainableClassifier", "WebContentFiltering", "NoisyAlertPolicy", "OnDemandSharePointClassification", "AIInteractionsExport", "Microsoft365CopilotScheduledPrompt", "PlacesDirectory", "MDAAudit", "OpticalCharacterRecognition", "M365SearchSections", "OfficeClientRestrictedModeAction", "CrossTenantAccessPolicy", "OutlookCopilotAutomation", "VivaEngageNetworkAssociation", "AppAdminActivity", "AppSettingsAdminActivity", "UniversalPrintPrintJob", "SentinelNotebookOnLake", "SentinelJob", "SentinelGraph", "SentinelKQLOnLake", "SentinelPackage", "VivaAmplifyOutlookSensitivityLabel", "CopilotActions", "AIInteractionsSubscription", "AIInteractionsChangeNotification", "FilteringMailMetadataExtended", "SentinelLakeOnboarding", "SentinelLakeDataOnboarding", "OfficeRestrictedModeAction", "CopilotForSecurityTrigger", "CopilotAgentManagement", "P4AIAssessmentFabricScannerRecord", "PlannerGoal", "PlannerGoalList", "ThreatIntelligenceObject", "ThreatIntelligenceExport", "SubmissionAgenticGradingResult", "AgentAdminActivity", "DeployFeatureActivity", "AgentSettingsAdminActivity", "OrganizationalDataInM365", "PlannerChatMessage", "PlannerChatMessageList", "SentinelAITool", "M365ODSPAssetMetadata", "AIExecuteTool", "AIInvokeAgent", "AIInferenceCall", "CdpClassifierHealthRecord", "SensitiveInfoRemediationAgentData", "ComplianceDLPEnforcement", "A365AIExecuteTool", "A365AIInvokeAgent", "A365AIInferenceCall", "VivaEngageSegment", "RTIOperationsAgent", "ContentStoreMetadata", "CCRAIPolicyViolation", "PlannerPlanSensitivityLabel", "MosAgentInfoRecord", "A365AIRunSummary", "UnifiedCatalogConceptAction", "DefenderCaseManagement", "CopilotForSecurityLogging", "VivaEngageEvents", "CallActivityEvent", "SonarDetonationContentMetadata", "UniversalPrintManagement", "YammerUserHiding", "Microsoft365BackupGranularBrowseTask", "PurviewPostureAgent", "MSDECustomCollection", "SCPUsageEvent", "SCPConfigurationEvent", "MDCConfigurationEvent", "MDCUsageEvent", "A365SpanOutputs", "PowerPlatformTenantIsolation", "CDPDLMAIInteractionInsights", "P4AIAssessmentCategoryRecord", "SentinelLakeEncryption", "AZFWNetworkRule", "AZFWDnsQuery", "AZFWApplicationRuleAggregation", "TeamsEvalDataHubDataAccess", "TeamsEvalDataHubPermissionChange", "TeamsEvalDataHubAdminOperation", "VivaGlintOrganizationalData", "ReportSubmission", "ReportSubmissionResultDetail", "unknownFutureValue"}[i] + return []string{"ExchangeAdmin", "ExchangeItem", "ExchangeItemGroup", "SharePoint", "SyntheticProbe", "SharePointFileOperation", "OneDrive", "AzureActiveDirectory", "AzureActiveDirectoryAccountLogon", "DataCenterSecurityCmdlet", "ComplianceDLPSharePoint", "Sway", "ComplianceDLPExchange", "SharePointSharingOperation", "AzureActiveDirectoryStsLogon", "SkypeForBusinessPSTNUsage", "SkypeForBusinessUsersBlocked", "SecurityComplianceCenterEOPCmdlet", "ExchangeAggregatedOperation", "PowerBIAudit", "CRM", "Yammer", "SkypeForBusinessCmdlets", "Discovery", "MicrosoftTeams", "ThreatIntelligence", "MailSubmission", "MicrosoftFlow", "AeD", "MicrosoftStream", "ComplianceDLPSharePointClassification", "ThreatFinder", "Project", "SharePointListOperation", "SharePointCommentOperation", "DataGovernance", "Kaizala", "SecurityComplianceAlerts", "ThreatIntelligenceUrl", "SecurityComplianceInsights", "MIPLabel", "WorkplaceAnalytics", "PowerAppsApp", "PowerAppsPlan", "ThreatIntelligenceAtpContent", "LabelContentExplorer", "TeamsHealthcare", "ExchangeItemAggregated", "HygieneEvent", "DataInsightsRestApiAudit", "InformationBarrierPolicyApplication", "SharePointListItemOperation", "SharePointContentTypeOperation", "SharePointFieldOperation", "MicrosoftTeamsAdmin", "HRSignal", "MicrosoftTeamsDevice", "MicrosoftTeamsAnalytics", "InformationWorkerProtection", "Campaign", "DLPEndpoint", "AirInvestigation", "Quarantine", "MicrosoftForms", "ApplicationAudit", "ComplianceSupervisionExchange", "CustomerKeyServiceEncryption", "OfficeNative", "MipAutoLabelSharePointItem", "MipAutoLabelSharePointPolicyLocation", "MicrosoftTeamsShifts", "SecureScore", "MipAutoLabelExchangeItem", "CortanaBriefing", "Search", "WDATPAlerts", "PowerPlatformAdminDlp", "PowerPlatformAdminEnvironment", "MDATPAudit", "SensitivityLabelPolicyMatch", "SensitivityLabelAction", "SensitivityLabeledFileAction", "AttackSim", "AirManualInvestigation", "SecurityComplianceRBAC", "UserTraining", "AirAdminActionInvestigation", "MSTIC", "PhysicalBadgingSignal", "TeamsEasyApprovals", "AipDiscover", "AipSensitivityLabelAction", "AipProtectionAction", "AipFileDeleted", "AipHeartBeat", "MCASAlerts", "OnPremisesFileShareScannerDlp", "OnPremisesSharePointScannerDlp", "ExchangeSearch", "SharePointSearch", "PrivacyDataMinimization", "LabelAnalyticsAggregate", "MyAnalyticsSettings", "SecurityComplianceUserChange", "ComplianceDLPExchangeClassification", "ComplianceDLPEndpoint", "MipExactDataMatch", "MSDEResponseActions", "MSDEGeneralSettings", "MSDEIndicatorsSettings", "MS365DCustomDetection", "MSDERolesSettings", "MAPGAlerts", "MAPGPolicy", "MAPGRemediation", "PrivacyRemediationAction", "PrivacyDigestEmail", "MipAutoLabelSimulationProgress", "MipAutoLabelSimulationCompletion", "MipAutoLabelProgressFeedback", "DlpSensitiveInformationType", "MipAutoLabelSimulationStatistics", "LargeContentMetadata", "Microsoft365Group", "CDPMlInferencingResult", "FilteringMailMetadata", "CDPClassificationMailItem", "CDPClassificationDocument", "OfficeScriptsRunAction", "FilteringPostMailDeliveryAction", "CDPUnifiedFeedback", "TenantAllowBlockList", "ConsumptionResource", "HealthcareSignal", "DlpImportResult", "CDPCompliancePolicyExecution", "MultiStageDisposition", "PrivacyDataMatch", "FilteringDocMetadata", "FilteringEmailFeatures", "PowerBIDlp", "FilteringUrlInfo", "FilteringAttachmentInfo", "CoreReportingSettings", "ComplianceConnector", "PowerPlatformLockboxResourceAccessRequest", "PowerPlatformLockboxResourceCommand", "CDPPredictiveCodingLabel", "CDPCompliancePolicyUserFeedback", "WebpageActivityEndpoint", "OMEPortal", "CMImprovementActionChange", "FilteringUrlClick", "MipLabelAnalyticsAuditRecord", "FilteringEntityEvent", "FilteringRuleHits", "FilteringMailSubmission", "LabelExplorer", "MicrosoftManagedServicePlatform", "PowerPlatformServiceActivity", "ScorePlatformGenericAuditRecord", "FilteringTimeTravelDocMetadata", "Alert", "AlertStatus", "AlertIncident", "IncidentStatus", "Case", "CaseInvestigation", "RecordsManagement", "PrivacyRemediation", "DataShareOperation", "CdpDlpSensitive", "EHRConnector", "FilteringMailGradingResult", "PublicFolder", "PrivacyTenantAuditHistoryRecord", "AipScannerDiscoverEvent", "EduDataLakeDownloadOperation", "M365ComplianceConnector", "MicrosoftGraphDataConnectOperation", "MicrosoftPurview", "FilteringEmailContentFeatures", "PowerPagesSite", "PowerAppsResource", "PlannerPlan", "PlannerCopyPlan", "PlannerTask", "PlannerRoster", "PlannerPlanList", "PlannerTaskList", "PlannerTenantSettings", "ProjectForTheWebProject", "ProjectForTheWebTask", "ProjectForTheWebRoadmap", "ProjectForTheWebRoadmapItem", "ProjectForTheWebProjectSettings", "ProjectForTheWebRoadmapSettings", "QuarantineMetadata", "MicrosoftTodoAudit", "TimeTravelFilteringDocMetadata", "TeamsQuarantineMetadata", "SharePointAppPermissionOperation", "MicrosoftTeamsSensitivityLabelAction", "FilteringTeamsMetadata", "FilteringTeamsUrlInfo", "FilteringTeamsPostDeliveryAction", "MDCAssessments", "MDCRegulatoryComplianceStandards", "MDCRegulatoryComplianceControls", "MDCRegulatoryComplianceAssessments", "MDCSecurityConnectors", "MDADataSecuritySignal", "VivaGoals", "FilteringRuntimeInfo", "AttackSimAdmin", "MicrosoftGraphDataConnectConsent", "FilteringAtpDetonationInfo", "PrivacyPortal", "ManagedTenants", "UnifiedSimulationMatchedItem", "UnifiedSimulationSummary", "UpdateQuarantineMetadata", "MS365DSuppressionRule", "PurviewDataMapOperation", "FilteringUrlPostClickAction", "IrmUserDefinedDetectionSignal", "TeamsUpdates", "PlannerRosterSensitivityLabel", "MS365DIncident", "FilteringDelistingMetadata", "ComplianceDLPSharePointClassificationExtended", "MicrosoftDefenderForIdentityAudit", "SupervisoryReviewDayXInsight", "DefenderExpertsforXDRAdmin", "CDPEdgeBlockedMessage", "HostedRpa", "CdpContentExplorerAggregateRecord", "CDPHygieneAttachmentInfo", "CDPHygieneSummary", "CDPPostMailDeliveryAction", "CDPEmailFeatures", "CDPHygieneUrlInfo", "CDPUrlClick", "CDPPackageManagerHygieneEvent", "FilteringDocScan", "TimeTravelFilteringDocScan", "MAPGOnboard", "VfamCreatePolicy", "VfamUpdatePolicy", "VfamDeletePolicy", "M365DAAD", "CdpColdCrawlStatus", "PowerPlatformAdministratorActivity", "Windows365CustomerLockbox", "CdpResourceScopeChangeEvent", "ComplianceCCExchangeExecutionResult", "CdpOcrCostEstimatorRecord", "CopilotInteraction", "CdpOcrBillingRecord", "ComplianceDLPApplications", "UAMOperation", "VivaLearning", "VivaLearningAdmin", "PurviewPolicyOperation", "PurviewMetadataPolicyOperation", "PeopleAdminSettings", "CdpComplianceDLPExchangeClassification", "CdpComplianceDLPSharePointClassification", "FilteringBulkSenderInsightData", "FilteringBulkThresholdInsightData", "PrivacyOpenAccess", "OWAAuth", "ComplianceDLPApplicationsClassification", "SharePointESignature", "Dynamics365BusinessCentral", "MeshWorlds", "VivaPulseResponse", "VivaPulseOrganizer", "VivaPulseAdmin", "VivaPulseReport", "AIAppInteraction", "ComplianceDLMExchange", "ComplianceDLMSharePoint", "ProjectForTheWebAssignedToMeSettings", "CPSOperation", "ComplianceDLPExchangeDiscovery", "PurviewMCRecommendation", "ComplianceDLPEndpointDiscovery", "InsiderRiskScopedUserInsights", "MicrosoftTeamsRetentionLabelAction", "AadRiskDetection", "AuditSearch", "AuditRetentionPolicy", "AuditConfig", "Microsoft365BackupBackupPolicy", "Microsoft365BackupRestoreTask", "Microsoft365BackupRestoreItem", "Microsoft365BackupBackupItem", "URBACAssignment", "URBACRole", "URBACEnableState", "IRMSecurityAlert", "PurviewInsiderRiskCases", "PurviewInsiderRiskAlerts", "InsiderRiskScopedUsers", "CdpConsumptionResource", "CreateCopilotPlugin", "UpdateCopilotPlugin", "DeleteCopilotPlugin", "EnableCopilotPlugin", "DisableCopilotPlugin", "CreateCopilotWorkspace", "UpdateCopilotWorkspace", "DeleteCopilotWorkspace", "EnableCopilotWorkspace", "DisableCopilotWorkspace", "CreateCopilotPromptBook", "UpdateCopilotPromptBook", "DeleteCopilotPromptBook", "EnableCopilotPromptBook", "DisableCopilotPromptBook", "UpdateCopilotSettings", "P4AIAssessmentRecord", "P4AIAssessmentLocationResultRecord", "ConnectedAIAppInteraction", "PrivaPrivacyConsentOperation", "PrivaPrivacyAssessmentOperation", "DataCatalogAccessRequests", "ComplianceSettingsChange", "DataSecurityInvestigation", "TeamCopilotInteraction", "IRMActivityAuditTrail", "SharePointContentSecurityPolicy", "CloudUpdateProfileConfig", "CloudUpdateTenantConfig", "CloudUpdateDeviceConfig", "DefenderPreviewFeatures", "DeviceDiscoverySettingsExclusion", "DeviceDiscoverySettingsAuthenticatedScans", "CriticalAssetManagementClassification", "DeviceDiscoverySettings", "USXWorkspaceOnboarding", "VivaGlintAdvancedConfiguration", "VivaGlintPulseProgram", "VivaGlintPulseProgramRespondentRate", "VivaGlintQuestion", "VivaGlintRole", "VivaGlintRubicon", "VivaGlintSupportAccess", "VivaGlintSystem", "VivaGlintUser", "VivaGlintUserGroup", "VivaGlintFeedbackProgram", "FabricAudit", "TrainableClassifier", "WebContentFiltering", "NoisyAlertPolicy", "OnDemandSharePointClassification", "AIInteractionsExport", "Microsoft365CopilotScheduledPrompt", "PlacesDirectory", "MDAAudit", "OpticalCharacterRecognition", "M365SearchSections", "OfficeClientRestrictedModeAction", "CrossTenantAccessPolicy", "OutlookCopilotAutomation", "VivaEngageNetworkAssociation", "AppAdminActivity", "AppSettingsAdminActivity", "UniversalPrintPrintJob", "SentinelNotebookOnLake", "SentinelJob", "SentinelGraph", "SentinelKQLOnLake", "SentinelPackage", "VivaAmplifyOutlookSensitivityLabel", "CopilotActions", "AIInteractionsSubscription", "AIInteractionsChangeNotification", "FilteringMailMetadataExtended", "SentinelLakeOnboarding", "SentinelLakeDataOnboarding", "OfficeRestrictedModeAction", "CopilotForSecurityTrigger", "CopilotAgentManagement", "P4AIAssessmentFabricScannerRecord", "PlannerGoal", "PlannerGoalList", "ThreatIntelligenceObject", "ThreatIntelligenceExport", "SubmissionAgenticGradingResult", "AgentAdminActivity", "DeployFeatureActivity", "AgentSettingsAdminActivity", "OrganizationalDataInM365", "PlannerChatMessage", "PlannerChatMessageList", "SentinelAITool", "M365ODSPAssetMetadata", "AIExecuteTool", "AIInvokeAgent", "AIInferenceCall", "CdpClassifierHealthRecord", "SensitiveInfoRemediationAgentData", "ComplianceDLPEnforcement", "A365AIExecuteTool", "A365AIInvokeAgent", "A365AIInferenceCall", "VivaEngageSegment", "RTIOperationsAgent", "ContentStoreMetadata", "CCRAIPolicyViolation", "PlannerPlanSensitivityLabel", "MosAgentInfoRecord", "A365AIRunSummary", "UnifiedCatalogConceptAction", "DefenderCaseManagement", "CopilotForSecurityLogging", "VivaEngageEvents", "CallActivityEvent", "SonarDetonationContentMetadata", "UniversalPrintManagement", "YammerUserHiding", "Microsoft365BackupGranularBrowseTask", "PurviewPostureAgent", "MSDECustomCollection", "SCPUsageEvent", "SCPConfigurationEvent", "MDCConfigurationEvent", "MDCUsageEvent", "A365SpanOutputs", "PowerPlatformTenantIsolation", "CDPDLMAIInteractionInsights", "P4AIAssessmentCategoryRecord", "SentinelLakeEncryption", "AZFWNetworkRule", "AZFWDnsQuery", "AZFWApplicationRuleAggregation", "TeamsEvalDataHubDataAccess", "TeamsEvalDataHubPermissionChange", "TeamsEvalDataHubAdminOperation", "VivaGlintOrganizationalData", "AlertSubmission", "AlertSubmissionResultDetail", "ComplianceSitGradingSharePoint", "CompliancePolicyGradingSharePoint", "AzureAISearchAudit", "P4AIRiskScoreRecord", "DragonCopilotAdmin", "AISpanOutputs", "EopSubmissionFeedEntity", "SonarFileDetonationEntity", "SonarSubmissionEntity", "SonarUrlDetonationEntity", "SubmissionEntity", "SonarDetonationEntity", "MicrosoftTeamsUserConcern", "VivaGlintAgenticCampaign", "MSPVectorSearchContentMetadata", "FabricPolicy", "SecurityCopilotAgentIdentityManagement", "CopilotSessionSharing", "DragonCopilotAccess", "DragonCopilotClinicalData", "DragonCopilotSession", "MosAgentInfoRecordV2", "SecurityDevelopmentLifecycleAILog", "MDASH", "DefenderSecurityForAIConfiguration", "SparkCoreCustomLivePool", "unknownFutureValue"}[i] } func ParseAuditLogRecordType(v string) (any, error) { result := EXCHANGEADMIN_AUDITLOGRECORDTYPE @@ -1346,10 +1372,62 @@ func ParseAuditLogRecordType(v string) (any, error) { result = TEAMSEVALDATAHUBADMINOPERATION_AUDITLOGRECORDTYPE case "VivaGlintOrganizationalData": result = VIVAGLINTORGANIZATIONALDATA_AUDITLOGRECORDTYPE - case "ReportSubmission": - result = REPORTSUBMISSION_AUDITLOGRECORDTYPE - case "ReportSubmissionResultDetail": - result = REPORTSUBMISSIONRESULTDETAIL_AUDITLOGRECORDTYPE + case "AlertSubmission": + result = ALERTSUBMISSION_AUDITLOGRECORDTYPE + case "AlertSubmissionResultDetail": + result = ALERTSUBMISSIONRESULTDETAIL_AUDITLOGRECORDTYPE + case "ComplianceSitGradingSharePoint": + result = COMPLIANCESITGRADINGSHAREPOINT_AUDITLOGRECORDTYPE + case "CompliancePolicyGradingSharePoint": + result = COMPLIANCEPOLICYGRADINGSHAREPOINT_AUDITLOGRECORDTYPE + case "AzureAISearchAudit": + result = AZUREAISEARCHAUDIT_AUDITLOGRECORDTYPE + case "P4AIRiskScoreRecord": + result = P4AIRISKSCORERECORD_AUDITLOGRECORDTYPE + case "DragonCopilotAdmin": + result = DRAGONCOPILOTADMIN_AUDITLOGRECORDTYPE + case "AISpanOutputs": + result = AISPANOUTPUTS_AUDITLOGRECORDTYPE + case "EopSubmissionFeedEntity": + result = EOPSUBMISSIONFEEDENTITY_AUDITLOGRECORDTYPE + case "SonarFileDetonationEntity": + result = SONARFILEDETONATIONENTITY_AUDITLOGRECORDTYPE + case "SonarSubmissionEntity": + result = SONARSUBMISSIONENTITY_AUDITLOGRECORDTYPE + case "SonarUrlDetonationEntity": + result = SONARURLDETONATIONENTITY_AUDITLOGRECORDTYPE + case "SubmissionEntity": + result = SUBMISSIONENTITY_AUDITLOGRECORDTYPE + case "SonarDetonationEntity": + result = SONARDETONATIONENTITY_AUDITLOGRECORDTYPE + case "MicrosoftTeamsUserConcern": + result = MICROSOFTTEAMSUSERCONCERN_AUDITLOGRECORDTYPE + case "VivaGlintAgenticCampaign": + result = VIVAGLINTAGENTICCAMPAIGN_AUDITLOGRECORDTYPE + case "MSPVectorSearchContentMetadata": + result = MSPVECTORSEARCHCONTENTMETADATA_AUDITLOGRECORDTYPE + case "FabricPolicy": + result = FABRICPOLICY_AUDITLOGRECORDTYPE + case "SecurityCopilotAgentIdentityManagement": + result = SECURITYCOPILOTAGENTIDENTITYMANAGEMENT_AUDITLOGRECORDTYPE + case "CopilotSessionSharing": + result = COPILOTSESSIONSHARING_AUDITLOGRECORDTYPE + case "DragonCopilotAccess": + result = DRAGONCOPILOTACCESS_AUDITLOGRECORDTYPE + case "DragonCopilotClinicalData": + result = DRAGONCOPILOTCLINICALDATA_AUDITLOGRECORDTYPE + case "DragonCopilotSession": + result = DRAGONCOPILOTSESSION_AUDITLOGRECORDTYPE + case "MosAgentInfoRecordV2": + result = MOSAGENTINFORECORDV2_AUDITLOGRECORDTYPE + case "SecurityDevelopmentLifecycleAILog": + result = SECURITYDEVELOPMENTLIFECYCLEAILOG_AUDITLOGRECORDTYPE + case "MDASH": + result = MDASH_AUDITLOGRECORDTYPE + case "DefenderSecurityForAIConfiguration": + result = DEFENDERSECURITYFORAICONFIGURATION_AUDITLOGRECORDTYPE + case "SparkCoreCustomLivePool": + result = SPARKCORECUSTOMLIVEPOOL_AUDITLOGRECORDTYPE case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_AUDITLOGRECORDTYPE default: diff --git a/models/security/audit_record_type_dictionary.go b/models/security/audit_record_type_dictionary.go new file mode 100644 index 00000000000..7c4665fa84e --- /dev/null +++ b/models/security/audit_record_type_dictionary.go @@ -0,0 +1,117 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// AuditRecordTypeDictionary a dictionary of name-value pairs for dynamic audit event properties. +type AuditRecordTypeDictionary struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAuditRecordTypeDictionary instantiates a new AuditRecordTypeDictionary and sets the default values. +func NewAuditRecordTypeDictionary()(*AuditRecordTypeDictionary) { + m := &AuditRecordTypeDictionary{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAuditRecordTypeDictionaryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAuditRecordTypeDictionaryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAuditRecordTypeDictionary(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *AuditRecordTypeDictionary) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *AuditRecordTypeDictionary) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AuditRecordTypeDictionary) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *AuditRecordTypeDictionary) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *AuditRecordTypeDictionary) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AuditRecordTypeDictionary) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *AuditRecordTypeDictionary) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AuditRecordTypeDictionary) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type AuditRecordTypeDictionaryable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} diff --git a/models/security/automated_action.go b/models/security/automated_action.go new file mode 100644 index 00000000000..25386457a32 --- /dev/null +++ b/models/security/automated_action.go @@ -0,0 +1,146 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type AutomatedAction struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAutomatedAction instantiates a new AutomatedAction and sets the default values. +func NewAutomatedAction()(*AutomatedAction) { + m := &AutomatedAction{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAutomatedActionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAutomatedActionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.security.accountObjectIdAction": + return NewAccountObjectIdAction(), nil + case "#microsoft.graph.security.accountSidAction": + return NewAccountSidAction(), nil + case "#microsoft.graph.security.deviceAction": + return NewDeviceAction(), nil + case "#microsoft.graph.security.emailAction": + return NewEmailAction(), nil + case "#microsoft.graph.security.fileAction": + return NewFileAction(), nil + case "#microsoft.graph.security.isolateDeviceAction": + return NewIsolateDeviceAction(), nil + case "#microsoft.graph.security.stopAndQuarantineFileAction": + return NewStopAndQuarantineFileAction(), nil + } + } + } + } + return NewAutomatedAction(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *AutomatedAction) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *AutomatedAction) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AutomatedAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *AutomatedAction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *AutomatedAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AutomatedAction) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *AutomatedAction) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AutomatedAction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type AutomatedActionable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} diff --git a/models/security/automated_action_set.go b/models/security/automated_action_set.go new file mode 100644 index 00000000000..a32b357d34b --- /dev/null +++ b/models/security/automated_action_set.go @@ -0,0 +1,900 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type AutomatedActionSet struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAutomatedActionSet instantiates a new AutomatedActionSet and sets the default values. +func NewAutomatedActionSet()(*AutomatedActionSet) { + m := &AutomatedActionSet{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAutomatedActionSetFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAutomatedActionSetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAutomatedActionSet(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *AutomatedActionSet) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetAllowFiles gets the allowFiles property value. File actions that allow files identified by file hash columns in the hunting-query results. +// returns a []FileActionable when successful +func (m *AutomatedActionSet) GetAllowFiles()([]FileActionable) { + val, err := m.GetBackingStore().Get("allowFiles") + if err != nil { + panic(err) + } + if val != nil { + return val.([]FileActionable) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *AutomatedActionSet) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetBlockFiles gets the blockFiles property value. File actions that block files identified by file hash columns in the hunting-query results. +// returns a []FileActionable when successful +func (m *AutomatedActionSet) GetBlockFiles()([]FileActionable) { + val, err := m.GetBackingStore().Get("blockFiles") + if err != nil { + panic(err) + } + if val != nil { + return val.([]FileActionable) + } + return nil +} +// GetCollectInvestigationPackages gets the collectInvestigationPackages property value. Device actions that collect investigation packages from devices identified in the hunting-query results. +// returns a []DeviceActionable when successful +func (m *AutomatedActionSet) GetCollectInvestigationPackages()([]DeviceActionable) { + val, err := m.GetBackingStore().Get("collectInvestigationPackages") + if err != nil { + panic(err) + } + if val != nil { + return val.([]DeviceActionable) + } + return nil +} +// GetDisableUsers gets the disableUsers property value. Account actions that disable users identified by account SID columns in the hunting-query results. +// returns a []AccountSidActionable when successful +func (m *AutomatedActionSet) GetDisableUsers()([]AccountSidActionable) { + val, err := m.GetBackingStore().Get("disableUsers") + if err != nil { + panic(err) + } + if val != nil { + return val.([]AccountSidActionable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AutomatedActionSet) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["allowFiles"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateFileActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]FileActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(FileActionable) + } + } + m.SetAllowFiles(res) + } + return nil + } + res["blockFiles"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateFileActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]FileActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(FileActionable) + } + } + m.SetBlockFiles(res) + } + return nil + } + res["collectInvestigationPackages"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateDeviceActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]DeviceActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(DeviceActionable) + } + } + m.SetCollectInvestigationPackages(res) + } + return nil + } + res["disableUsers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateAccountSidActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]AccountSidActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(AccountSidActionable) + } + } + m.SetDisableUsers(res) + } + return nil + } + res["forceUserPasswordResets"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateAccountSidActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]AccountSidActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(AccountSidActionable) + } + } + m.SetForceUserPasswordResets(res) + } + return nil + } + res["hardDeleteEmails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateEmailActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]EmailActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(EmailActionable) + } + } + m.SetHardDeleteEmails(res) + } + return nil + } + res["initiateInvestigations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateDeviceActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]DeviceActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(DeviceActionable) + } + } + m.SetInitiateInvestigations(res) + } + return nil + } + res["isolateDevices"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateIsolateDeviceActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]IsolateDeviceActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(IsolateDeviceActionable) + } + } + m.SetIsolateDevices(res) + } + return nil + } + res["markUsersAsCompromised"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateAccountObjectIdActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]AccountObjectIdActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(AccountObjectIdActionable) + } + } + m.SetMarkUsersAsCompromised(res) + } + return nil + } + res["moveEmailsToDeletedItems"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateEmailActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]EmailActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(EmailActionable) + } + } + m.SetMoveEmailsToDeletedItems(res) + } + return nil + } + res["moveEmailsToInbox"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateEmailActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]EmailActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(EmailActionable) + } + } + m.SetMoveEmailsToInbox(res) + } + return nil + } + res["moveEmailsToJunk"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateEmailActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]EmailActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(EmailActionable) + } + } + m.SetMoveEmailsToJunk(res) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["restrictAppExecutions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateDeviceActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]DeviceActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(DeviceActionable) + } + } + m.SetRestrictAppExecutions(res) + } + return nil + } + res["runAntivirusScans"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateDeviceActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]DeviceActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(DeviceActionable) + } + } + m.SetRunAntivirusScans(res) + } + return nil + } + res["softDeleteEmails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateEmailActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]EmailActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(EmailActionable) + } + } + m.SetSoftDeleteEmails(res) + } + return nil + } + res["stopAndQuarantineFiles"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateStopAndQuarantineFileActionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]StopAndQuarantineFileActionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(StopAndQuarantineFileActionable) + } + } + m.SetStopAndQuarantineFiles(res) + } + return nil + } + return res +} +// GetForceUserPasswordResets gets the forceUserPasswordResets property value. Account actions that force password resets for users identified by account SID columns in the hunting-query results. +// returns a []AccountSidActionable when successful +func (m *AutomatedActionSet) GetForceUserPasswordResets()([]AccountSidActionable) { + val, err := m.GetBackingStore().Get("forceUserPasswordResets") + if err != nil { + panic(err) + } + if val != nil { + return val.([]AccountSidActionable) + } + return nil +} +// GetHardDeleteEmails gets the hardDeleteEmails property value. Email actions that permanently delete messages identified in the hunting-query results. +// returns a []EmailActionable when successful +func (m *AutomatedActionSet) GetHardDeleteEmails()([]EmailActionable) { + val, err := m.GetBackingStore().Get("hardDeleteEmails") + if err != nil { + panic(err) + } + if val != nil { + return val.([]EmailActionable) + } + return nil +} +// GetInitiateInvestigations gets the initiateInvestigations property value. Device actions that initiate investigations on devices identified in the hunting-query results. +// returns a []DeviceActionable when successful +func (m *AutomatedActionSet) GetInitiateInvestigations()([]DeviceActionable) { + val, err := m.GetBackingStore().Get("initiateInvestigations") + if err != nil { + panic(err) + } + if val != nil { + return val.([]DeviceActionable) + } + return nil +} +// GetIsolateDevices gets the isolateDevices property value. Device actions that isolate devices identified in the hunting-query results. +// returns a []IsolateDeviceActionable when successful +func (m *AutomatedActionSet) GetIsolateDevices()([]IsolateDeviceActionable) { + val, err := m.GetBackingStore().Get("isolateDevices") + if err != nil { + panic(err) + } + if val != nil { + return val.([]IsolateDeviceActionable) + } + return nil +} +// GetMarkUsersAsCompromised gets the markUsersAsCompromised property value. Account actions that mark users as compromised when they're identified by Microsoft Entra object ID columns in the hunting-query results. +// returns a []AccountObjectIdActionable when successful +func (m *AutomatedActionSet) GetMarkUsersAsCompromised()([]AccountObjectIdActionable) { + val, err := m.GetBackingStore().Get("markUsersAsCompromised") + if err != nil { + panic(err) + } + if val != nil { + return val.([]AccountObjectIdActionable) + } + return nil +} +// GetMoveEmailsToDeletedItems gets the moveEmailsToDeletedItems property value. Email actions that move messages identified in the hunting-query results to Deleted Items. +// returns a []EmailActionable when successful +func (m *AutomatedActionSet) GetMoveEmailsToDeletedItems()([]EmailActionable) { + val, err := m.GetBackingStore().Get("moveEmailsToDeletedItems") + if err != nil { + panic(err) + } + if val != nil { + return val.([]EmailActionable) + } + return nil +} +// GetMoveEmailsToInbox gets the moveEmailsToInbox property value. Email actions that move messages identified in the hunting-query results to the Inbox. +// returns a []EmailActionable when successful +func (m *AutomatedActionSet) GetMoveEmailsToInbox()([]EmailActionable) { + val, err := m.GetBackingStore().Get("moveEmailsToInbox") + if err != nil { + panic(err) + } + if val != nil { + return val.([]EmailActionable) + } + return nil +} +// GetMoveEmailsToJunk gets the moveEmailsToJunk property value. Email actions that move messages identified in the hunting-query results to Junk Email. +// returns a []EmailActionable when successful +func (m *AutomatedActionSet) GetMoveEmailsToJunk()([]EmailActionable) { + val, err := m.GetBackingStore().Get("moveEmailsToJunk") + if err != nil { + panic(err) + } + if val != nil { + return val.([]EmailActionable) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *AutomatedActionSet) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRestrictAppExecutions gets the restrictAppExecutions property value. Device actions that restrict app execution on devices identified in the hunting-query results. +// returns a []DeviceActionable when successful +func (m *AutomatedActionSet) GetRestrictAppExecutions()([]DeviceActionable) { + val, err := m.GetBackingStore().Get("restrictAppExecutions") + if err != nil { + panic(err) + } + if val != nil { + return val.([]DeviceActionable) + } + return nil +} +// GetRunAntivirusScans gets the runAntivirusScans property value. Device actions that run antivirus scans on devices identified in the hunting-query results. +// returns a []DeviceActionable when successful +func (m *AutomatedActionSet) GetRunAntivirusScans()([]DeviceActionable) { + val, err := m.GetBackingStore().Get("runAntivirusScans") + if err != nil { + panic(err) + } + if val != nil { + return val.([]DeviceActionable) + } + return nil +} +// GetSoftDeleteEmails gets the softDeleteEmails property value. Email actions that soft-delete messages identified in the hunting-query results. +// returns a []EmailActionable when successful +func (m *AutomatedActionSet) GetSoftDeleteEmails()([]EmailActionable) { + val, err := m.GetBackingStore().Get("softDeleteEmails") + if err != nil { + panic(err) + } + if val != nil { + return val.([]EmailActionable) + } + return nil +} +// GetStopAndQuarantineFiles gets the stopAndQuarantineFiles property value. File actions that stop running files and quarantine them on devices identified in the hunting-query results. +// returns a []StopAndQuarantineFileActionable when successful +func (m *AutomatedActionSet) GetStopAndQuarantineFiles()([]StopAndQuarantineFileActionable) { + val, err := m.GetBackingStore().Get("stopAndQuarantineFiles") + if err != nil { + panic(err) + } + if val != nil { + return val.([]StopAndQuarantineFileActionable) + } + return nil +} +// Serialize serializes information the current object +func (m *AutomatedActionSet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAllowFiles() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAllowFiles())) + for i, v := range m.GetAllowFiles() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("allowFiles", cast) + if err != nil { + return err + } + } + if m.GetBlockFiles() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetBlockFiles())) + for i, v := range m.GetBlockFiles() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("blockFiles", cast) + if err != nil { + return err + } + } + if m.GetCollectInvestigationPackages() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCollectInvestigationPackages())) + for i, v := range m.GetCollectInvestigationPackages() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("collectInvestigationPackages", cast) + if err != nil { + return err + } + } + if m.GetDisableUsers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDisableUsers())) + for i, v := range m.GetDisableUsers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("disableUsers", cast) + if err != nil { + return err + } + } + if m.GetForceUserPasswordResets() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetForceUserPasswordResets())) + for i, v := range m.GetForceUserPasswordResets() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("forceUserPasswordResets", cast) + if err != nil { + return err + } + } + if m.GetHardDeleteEmails() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetHardDeleteEmails())) + for i, v := range m.GetHardDeleteEmails() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("hardDeleteEmails", cast) + if err != nil { + return err + } + } + if m.GetInitiateInvestigations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetInitiateInvestigations())) + for i, v := range m.GetInitiateInvestigations() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("initiateInvestigations", cast) + if err != nil { + return err + } + } + if m.GetIsolateDevices() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetIsolateDevices())) + for i, v := range m.GetIsolateDevices() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("isolateDevices", cast) + if err != nil { + return err + } + } + if m.GetMarkUsersAsCompromised() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMarkUsersAsCompromised())) + for i, v := range m.GetMarkUsersAsCompromised() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("markUsersAsCompromised", cast) + if err != nil { + return err + } + } + if m.GetMoveEmailsToDeletedItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMoveEmailsToDeletedItems())) + for i, v := range m.GetMoveEmailsToDeletedItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("moveEmailsToDeletedItems", cast) + if err != nil { + return err + } + } + if m.GetMoveEmailsToInbox() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMoveEmailsToInbox())) + for i, v := range m.GetMoveEmailsToInbox() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("moveEmailsToInbox", cast) + if err != nil { + return err + } + } + if m.GetMoveEmailsToJunk() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMoveEmailsToJunk())) + for i, v := range m.GetMoveEmailsToJunk() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("moveEmailsToJunk", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetRestrictAppExecutions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRestrictAppExecutions())) + for i, v := range m.GetRestrictAppExecutions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("restrictAppExecutions", cast) + if err != nil { + return err + } + } + if m.GetRunAntivirusScans() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRunAntivirusScans())) + for i, v := range m.GetRunAntivirusScans() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("runAntivirusScans", cast) + if err != nil { + return err + } + } + if m.GetSoftDeleteEmails() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSoftDeleteEmails())) + for i, v := range m.GetSoftDeleteEmails() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("softDeleteEmails", cast) + if err != nil { + return err + } + } + if m.GetStopAndQuarantineFiles() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetStopAndQuarantineFiles())) + for i, v := range m.GetStopAndQuarantineFiles() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("stopAndQuarantineFiles", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *AutomatedActionSet) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAllowFiles sets the allowFiles property value. File actions that allow files identified by file hash columns in the hunting-query results. +func (m *AutomatedActionSet) SetAllowFiles(value []FileActionable)() { + err := m.GetBackingStore().Set("allowFiles", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *AutomatedActionSet) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetBlockFiles sets the blockFiles property value. File actions that block files identified by file hash columns in the hunting-query results. +func (m *AutomatedActionSet) SetBlockFiles(value []FileActionable)() { + err := m.GetBackingStore().Set("blockFiles", value) + if err != nil { + panic(err) + } +} +// SetCollectInvestigationPackages sets the collectInvestigationPackages property value. Device actions that collect investigation packages from devices identified in the hunting-query results. +func (m *AutomatedActionSet) SetCollectInvestigationPackages(value []DeviceActionable)() { + err := m.GetBackingStore().Set("collectInvestigationPackages", value) + if err != nil { + panic(err) + } +} +// SetDisableUsers sets the disableUsers property value. Account actions that disable users identified by account SID columns in the hunting-query results. +func (m *AutomatedActionSet) SetDisableUsers(value []AccountSidActionable)() { + err := m.GetBackingStore().Set("disableUsers", value) + if err != nil { + panic(err) + } +} +// SetForceUserPasswordResets sets the forceUserPasswordResets property value. Account actions that force password resets for users identified by account SID columns in the hunting-query results. +func (m *AutomatedActionSet) SetForceUserPasswordResets(value []AccountSidActionable)() { + err := m.GetBackingStore().Set("forceUserPasswordResets", value) + if err != nil { + panic(err) + } +} +// SetHardDeleteEmails sets the hardDeleteEmails property value. Email actions that permanently delete messages identified in the hunting-query results. +func (m *AutomatedActionSet) SetHardDeleteEmails(value []EmailActionable)() { + err := m.GetBackingStore().Set("hardDeleteEmails", value) + if err != nil { + panic(err) + } +} +// SetInitiateInvestigations sets the initiateInvestigations property value. Device actions that initiate investigations on devices identified in the hunting-query results. +func (m *AutomatedActionSet) SetInitiateInvestigations(value []DeviceActionable)() { + err := m.GetBackingStore().Set("initiateInvestigations", value) + if err != nil { + panic(err) + } +} +// SetIsolateDevices sets the isolateDevices property value. Device actions that isolate devices identified in the hunting-query results. +func (m *AutomatedActionSet) SetIsolateDevices(value []IsolateDeviceActionable)() { + err := m.GetBackingStore().Set("isolateDevices", value) + if err != nil { + panic(err) + } +} +// SetMarkUsersAsCompromised sets the markUsersAsCompromised property value. Account actions that mark users as compromised when they're identified by Microsoft Entra object ID columns in the hunting-query results. +func (m *AutomatedActionSet) SetMarkUsersAsCompromised(value []AccountObjectIdActionable)() { + err := m.GetBackingStore().Set("markUsersAsCompromised", value) + if err != nil { + panic(err) + } +} +// SetMoveEmailsToDeletedItems sets the moveEmailsToDeletedItems property value. Email actions that move messages identified in the hunting-query results to Deleted Items. +func (m *AutomatedActionSet) SetMoveEmailsToDeletedItems(value []EmailActionable)() { + err := m.GetBackingStore().Set("moveEmailsToDeletedItems", value) + if err != nil { + panic(err) + } +} +// SetMoveEmailsToInbox sets the moveEmailsToInbox property value. Email actions that move messages identified in the hunting-query results to the Inbox. +func (m *AutomatedActionSet) SetMoveEmailsToInbox(value []EmailActionable)() { + err := m.GetBackingStore().Set("moveEmailsToInbox", value) + if err != nil { + panic(err) + } +} +// SetMoveEmailsToJunk sets the moveEmailsToJunk property value. Email actions that move messages identified in the hunting-query results to Junk Email. +func (m *AutomatedActionSet) SetMoveEmailsToJunk(value []EmailActionable)() { + err := m.GetBackingStore().Set("moveEmailsToJunk", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AutomatedActionSet) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetRestrictAppExecutions sets the restrictAppExecutions property value. Device actions that restrict app execution on devices identified in the hunting-query results. +func (m *AutomatedActionSet) SetRestrictAppExecutions(value []DeviceActionable)() { + err := m.GetBackingStore().Set("restrictAppExecutions", value) + if err != nil { + panic(err) + } +} +// SetRunAntivirusScans sets the runAntivirusScans property value. Device actions that run antivirus scans on devices identified in the hunting-query results. +func (m *AutomatedActionSet) SetRunAntivirusScans(value []DeviceActionable)() { + err := m.GetBackingStore().Set("runAntivirusScans", value) + if err != nil { + panic(err) + } +} +// SetSoftDeleteEmails sets the softDeleteEmails property value. Email actions that soft-delete messages identified in the hunting-query results. +func (m *AutomatedActionSet) SetSoftDeleteEmails(value []EmailActionable)() { + err := m.GetBackingStore().Set("softDeleteEmails", value) + if err != nil { + panic(err) + } +} +// SetStopAndQuarantineFiles sets the stopAndQuarantineFiles property value. File actions that stop running files and quarantine them on devices identified in the hunting-query results. +func (m *AutomatedActionSet) SetStopAndQuarantineFiles(value []StopAndQuarantineFileActionable)() { + err := m.GetBackingStore().Set("stopAndQuarantineFiles", value) + if err != nil { + panic(err) + } +} +type AutomatedActionSetable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAllowFiles()([]FileActionable) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBlockFiles()([]FileActionable) + GetCollectInvestigationPackages()([]DeviceActionable) + GetDisableUsers()([]AccountSidActionable) + GetForceUserPasswordResets()([]AccountSidActionable) + GetHardDeleteEmails()([]EmailActionable) + GetInitiateInvestigations()([]DeviceActionable) + GetIsolateDevices()([]IsolateDeviceActionable) + GetMarkUsersAsCompromised()([]AccountObjectIdActionable) + GetMoveEmailsToDeletedItems()([]EmailActionable) + GetMoveEmailsToInbox()([]EmailActionable) + GetMoveEmailsToJunk()([]EmailActionable) + GetOdataType()(*string) + GetRestrictAppExecutions()([]DeviceActionable) + GetRunAntivirusScans()([]DeviceActionable) + GetSoftDeleteEmails()([]EmailActionable) + GetStopAndQuarantineFiles()([]StopAndQuarantineFileActionable) + SetAllowFiles(value []FileActionable)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBlockFiles(value []FileActionable)() + SetCollectInvestigationPackages(value []DeviceActionable)() + SetDisableUsers(value []AccountSidActionable)() + SetForceUserPasswordResets(value []AccountSidActionable)() + SetHardDeleteEmails(value []EmailActionable)() + SetInitiateInvestigations(value []DeviceActionable)() + SetIsolateDevices(value []IsolateDeviceActionable)() + SetMarkUsersAsCompromised(value []AccountObjectIdActionable)() + SetMoveEmailsToDeletedItems(value []EmailActionable)() + SetMoveEmailsToInbox(value []EmailActionable)() + SetMoveEmailsToJunk(value []EmailActionable)() + SetOdataType(value *string)() + SetRestrictAppExecutions(value []DeviceActionable)() + SetRunAntivirusScans(value []DeviceActionable)() + SetSoftDeleteEmails(value []EmailActionable)() + SetStopAndQuarantineFiles(value []StopAndQuarantineFileActionable)() +} diff --git a/models/security/azure_a_i_search_audit_record.go b/models/security/azure_a_i_search_audit_record.go new file mode 100644 index 00000000000..49e1f514cd1 --- /dev/null +++ b/models/security/azure_a_i_search_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// AzureAISearchAuditRecord audit data for Azure AI Search Audit events. +type AzureAISearchAuditRecord struct { + AuditData +} +// NewAzureAISearchAuditRecord instantiates a new AzureAISearchAuditRecord and sets the default values. +func NewAzureAISearchAuditRecord()(*AzureAISearchAuditRecord) { + m := &AzureAISearchAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.azureAISearchAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateAzureAISearchAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAzureAISearchAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAzureAISearchAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AzureAISearchAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *AzureAISearchAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type AzureAISearchAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/azure_resource_entity_mapping.go b/models/security/azure_resource_entity_mapping.go new file mode 100644 index 00000000000..f0cee355403 --- /dev/null +++ b/models/security/azure_resource_entity_mapping.go @@ -0,0 +1,81 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type AzureResourceEntityMapping struct { + EntityMapping +} +// NewAzureResourceEntityMapping instantiates a new AzureResourceEntityMapping and sets the default values. +func NewAzureResourceEntityMapping()(*AzureResourceEntityMapping) { + m := &AzureResourceEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.azureResourceEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateAzureResourceEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAzureResourceEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAzureResourceEntityMapping(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AzureResourceEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["resourceIdColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceIdColumn(val) + } + return nil + } + return res +} +// GetResourceIdColumn gets the resourceIdColumn property value. Name of the detection query column that maps to the resource ID of the alert entity. +// returns a *string when successful +func (m *AzureResourceEntityMapping) GetResourceIdColumn()(*string) { + val, err := m.GetBackingStore().Get("resourceIdColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *AzureResourceEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("resourceIdColumn", m.GetResourceIdColumn()) + if err != nil { + return err + } + } + return nil +} +// SetResourceIdColumn sets the resourceIdColumn property value. Name of the detection query column that maps to the resource ID of the alert entity. +func (m *AzureResourceEntityMapping) SetResourceIdColumn(value *string)() { + err := m.GetBackingStore().Set("resourceIdColumn", value) + if err != nil { + panic(err) + } +} +type AzureResourceEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetResourceIdColumn()(*string) + SetResourceIdColumn(value *string)() +} diff --git a/models/security/cloud_application_entity_mapping.go b/models/security/cloud_application_entity_mapping.go new file mode 100644 index 00000000000..bff4663ad3e --- /dev/null +++ b/models/security/cloud_application_entity_mapping.go @@ -0,0 +1,118 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type CloudApplicationEntityMapping struct { + EntityMapping +} +// NewCloudApplicationEntityMapping instantiates a new CloudApplicationEntityMapping and sets the default values. +func NewCloudApplicationEntityMapping()(*CloudApplicationEntityMapping) { + m := &CloudApplicationEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.cloudApplicationEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCloudApplicationEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCloudApplicationEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudApplicationEntityMapping(), nil +} +// GetAppIdColumn gets the appIdColumn property value. Name of the detection query column that maps to the application ID of the alert entity. +// returns a *string when successful +func (m *CloudApplicationEntityMapping) GetAppIdColumn()(*string) { + val, err := m.GetBackingStore().Get("appIdColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CloudApplicationEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["appIdColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAppIdColumn(val) + } + return nil + } + res["nameColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNameColumn(val) + } + return nil + } + return res +} +// GetNameColumn gets the nameColumn property value. Name of the detection query column that maps to the name of the alert entity. +// returns a *string when successful +func (m *CloudApplicationEntityMapping) GetNameColumn()(*string) { + val, err := m.GetBackingStore().Get("nameColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *CloudApplicationEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("appIdColumn", m.GetAppIdColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("nameColumn", m.GetNameColumn()) + if err != nil { + return err + } + } + return nil +} +// SetAppIdColumn sets the appIdColumn property value. Name of the detection query column that maps to the application ID of the alert entity. +func (m *CloudApplicationEntityMapping) SetAppIdColumn(value *string)() { + err := m.GetBackingStore().Set("appIdColumn", value) + if err != nil { + panic(err) + } +} +// SetNameColumn sets the nameColumn property value. Name of the detection query column that maps to the name of the alert entity. +func (m *CloudApplicationEntityMapping) SetNameColumn(value *string)() { + err := m.GetBackingStore().Set("nameColumn", value) + if err != nil { + panic(err) + } +} +type CloudApplicationEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAppIdColumn()(*string) + GetNameColumn()(*string) + SetAppIdColumn(value *string)() + SetNameColumn(value *string)() +} diff --git a/models/security/compliance_policy_grading_share_point_audit_record.go b/models/security/compliance_policy_grading_share_point_audit_record.go new file mode 100644 index 00000000000..4e37a58a875 --- /dev/null +++ b/models/security/compliance_policy_grading_share_point_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// CompliancePolicyGradingSharePointAuditRecord audit data for Compliance Policy Grading SharePoint events. +type CompliancePolicyGradingSharePointAuditRecord struct { + AuditData +} +// NewCompliancePolicyGradingSharePointAuditRecord instantiates a new CompliancePolicyGradingSharePointAuditRecord and sets the default values. +func NewCompliancePolicyGradingSharePointAuditRecord()(*CompliancePolicyGradingSharePointAuditRecord) { + m := &CompliancePolicyGradingSharePointAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.compliancePolicyGradingSharePointAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCompliancePolicyGradingSharePointAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCompliancePolicyGradingSharePointAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCompliancePolicyGradingSharePointAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CompliancePolicyGradingSharePointAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *CompliancePolicyGradingSharePointAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type CompliancePolicyGradingSharePointAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/compliance_sit_grading_share_point_audit_record.go b/models/security/compliance_sit_grading_share_point_audit_record.go new file mode 100644 index 00000000000..8c8ecdd6aa1 --- /dev/null +++ b/models/security/compliance_sit_grading_share_point_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// ComplianceSitGradingSharePointAuditRecord audit data for Compliance SIT Grading SharePoint events. +type ComplianceSitGradingSharePointAuditRecord struct { + AuditData +} +// NewComplianceSitGradingSharePointAuditRecord instantiates a new ComplianceSitGradingSharePointAuditRecord and sets the default values. +func NewComplianceSitGradingSharePointAuditRecord()(*ComplianceSitGradingSharePointAuditRecord) { + m := &ComplianceSitGradingSharePointAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.complianceSitGradingSharePointAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateComplianceSitGradingSharePointAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateComplianceSitGradingSharePointAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewComplianceSitGradingSharePointAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ComplianceSitGradingSharePointAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *ComplianceSitGradingSharePointAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type ComplianceSitGradingSharePointAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/copilot_session_sharing_audit_record.go b/models/security/copilot_session_sharing_audit_record.go new file mode 100644 index 00000000000..e366f2303cc --- /dev/null +++ b/models/security/copilot_session_sharing_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// CopilotSessionSharingAuditRecord audit data for Copilot Session Sharing events. +type CopilotSessionSharingAuditRecord struct { + AuditData +} +// NewCopilotSessionSharingAuditRecord instantiates a new CopilotSessionSharingAuditRecord and sets the default values. +func NewCopilotSessionSharingAuditRecord()(*CopilotSessionSharingAuditRecord) { + m := &CopilotSessionSharingAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.copilotSessionSharingAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCopilotSessionSharingAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCopilotSessionSharingAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCopilotSessionSharingAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CopilotSessionSharingAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *CopilotSessionSharingAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type CopilotSessionSharingAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/defender_security_for_a_i_configuration_audit_record.go b/models/security/defender_security_for_a_i_configuration_audit_record.go new file mode 100644 index 00000000000..01df91bc50e --- /dev/null +++ b/models/security/defender_security_for_a_i_configuration_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// DefenderSecurityForAIConfigurationAuditRecord audit data for Defender Security for AI Configuration events. +type DefenderSecurityForAIConfigurationAuditRecord struct { + AuditData +} +// NewDefenderSecurityForAIConfigurationAuditRecord instantiates a new DefenderSecurityForAIConfigurationAuditRecord and sets the default values. +func NewDefenderSecurityForAIConfigurationAuditRecord()(*DefenderSecurityForAIConfigurationAuditRecord) { + m := &DefenderSecurityForAIConfigurationAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.defenderSecurityForAIConfigurationAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateDefenderSecurityForAIConfigurationAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDefenderSecurityForAIConfigurationAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDefenderSecurityForAIConfigurationAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DefenderSecurityForAIConfigurationAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *DefenderSecurityForAIConfigurationAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type DefenderSecurityForAIConfigurationAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/detection_action.go b/models/security/detection_action.go index e00c94476e1..ed31d1e3495 100644 --- a/models/security/detection_action.go +++ b/models/security/detection_action.go @@ -50,6 +50,18 @@ func (m *DetectionAction) GetAlertTemplate()(AlertTemplateable) { } return nil } +// GetAutomatedActions gets the automatedActions property value. The set of automated actions to run against entities that match the detection. Replaces the deprecated responseActions property. +// returns a AutomatedActionSetable when successful +func (m *DetectionAction) GetAutomatedActions()(AutomatedActionSetable) { + val, err := m.GetBackingStore().Get("automatedActions") + if err != nil { + panic(err) + } + if val != nil { + return val.(AutomatedActionSetable) + } + return nil +} // GetBackingStore gets the BackingStore property value. Stores model information. // returns a BackingStore when successful func (m *DetectionAction) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { @@ -69,6 +81,16 @@ func (m *DetectionAction) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return nil } + res["automatedActions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAutomatedActionSetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAutomatedActions(val.(AutomatedActionSetable)) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -119,7 +141,7 @@ func (m *DetectionAction) GetOdataType()(*string) { } return nil } -// GetOrganizationalScope gets the organizationalScope property value. Groups to which the custom detection rule applies. +// GetOrganizationalScope gets the organizationalScope property value. The set of groups (for example, device groups) to which the parent custom detection rule applies. // returns a OrganizationalScopeable when successful func (m *DetectionAction) GetOrganizationalScope()(OrganizationalScopeable) { val, err := m.GetBackingStore().Get("organizationalScope") @@ -131,7 +153,7 @@ func (m *DetectionAction) GetOrganizationalScope()(OrganizationalScopeable) { } return nil } -// GetResponseActions gets the responseActions property value. Actions taken on impacted assets as set in the custom detection rule. +// GetResponseActions gets the responseActions property value. Actions taken on impacted assets as set in the custom detection rule. Deprecated. Use automatedActions instead. This property will be removed from this resource on 2026-10-01. // returns a []ResponseActionable when successful func (m *DetectionAction) GetResponseActions()([]ResponseActionable) { val, err := m.GetBackingStore().Get("responseActions") @@ -151,6 +173,12 @@ func (m *DetectionAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return err } } + { + err := writer.WriteObjectValue("automatedActions", m.GetAutomatedActions()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -197,6 +225,13 @@ func (m *DetectionAction) SetAlertTemplate(value AlertTemplateable)() { panic(err) } } +// SetAutomatedActions sets the automatedActions property value. The set of automated actions to run against entities that match the detection. Replaces the deprecated responseActions property. +func (m *DetectionAction) SetAutomatedActions(value AutomatedActionSetable)() { + err := m.GetBackingStore().Set("automatedActions", value) + if err != nil { + panic(err) + } +} // SetBackingStore sets the BackingStore property value. Stores model information. func (m *DetectionAction) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value @@ -208,14 +243,14 @@ func (m *DetectionAction) SetOdataType(value *string)() { panic(err) } } -// SetOrganizationalScope sets the organizationalScope property value. Groups to which the custom detection rule applies. +// SetOrganizationalScope sets the organizationalScope property value. The set of groups (for example, device groups) to which the parent custom detection rule applies. func (m *DetectionAction) SetOrganizationalScope(value OrganizationalScopeable)() { err := m.GetBackingStore().Set("organizationalScope", value) if err != nil { panic(err) } } -// SetResponseActions sets the responseActions property value. Actions taken on impacted assets as set in the custom detection rule. +// SetResponseActions sets the responseActions property value. Actions taken on impacted assets as set in the custom detection rule. Deprecated. Use automatedActions instead. This property will be removed from this resource on 2026-10-01. func (m *DetectionAction) SetResponseActions(value []ResponseActionable)() { err := m.GetBackingStore().Set("responseActions", value) if err != nil { @@ -227,11 +262,13 @@ type DetectionActionable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAlertTemplate()(AlertTemplateable) + GetAutomatedActions()(AutomatedActionSetable) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetOrganizationalScope()(OrganizationalScopeable) GetResponseActions()([]ResponseActionable) SetAlertTemplate(value AlertTemplateable)() + SetAutomatedActions(value AutomatedActionSetable)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetOrganizationalScope(value OrganizationalScopeable)() diff --git a/models/security/detection_rule.go b/models/security/detection_rule.go index cb35c7f6885..991402b9140 100644 --- a/models/security/detection_rule.go +++ b/models/security/detection_rule.go @@ -4,19 +4,19 @@ package security import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" ) type DetectionRule struct { - ProtectionRule + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity } // NewDetectionRule instantiates a new DetectionRule and sets the default values. func NewDetectionRule()(*DetectionRule) { m := &DetectionRule{ - ProtectionRule: *NewProtectionRule(), + Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), } - odataTypeValue := "#microsoft.graph.security.detectionRule" - m.SetOdataType(&odataTypeValue) return m } // CreateDetectionRuleFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value @@ -24,7 +24,43 @@ func NewDetectionRule()(*DetectionRule) { func CreateDetectionRuleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewDetectionRule(), nil } -// GetDetectionAction gets the detectionAction property value. Complex type representing the actions taken when a detection is made by this rule. +// GetCreatedBy gets the createdBy property value. Name of the user or application that created the rule. Read-only. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains). +// returns a *string when successful +func (m *DetectionRule) GetCreatedBy()(*string) { + val, err := m.GetBackingStore().Get("createdBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetCreatedDateTime gets the createdDateTime property value. Timestamp of rule creation. Read-only. Supports $filter (eq, ne, not, le, ge, lt, gt) and $orderby. +// returns a *Time when successful +func (m *DetectionRule) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetDescription gets the description property value. A user-supplied description of the detection rule. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains). +// returns a *string when successful +func (m *DetectionRule) GetDescription()(*string) { + val, err := m.GetBackingStore().Get("description") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDetectionAction gets the detectionAction property value. The detectionAction property // returns a DetectionActionable when successful func (m *DetectionRule) GetDetectionAction()(DetectionActionable) { val, err := m.GetBackingStore().Get("detectionAction") @@ -36,7 +72,7 @@ func (m *DetectionRule) GetDetectionAction()(DetectionActionable) { } return nil } -// GetDetectorId gets the detectorId property value. The ID of the detector that triggered the alert. Also see the 'detectorId' field in microsoft.graph.security.alert. +// GetDetectorId gets the detectorId property value. Internal detector identifier. Deprecated. This property will be removed from this resource on 2026-10-01. // returns a *string when successful func (m *DetectionRule) GetDetectorId()(*string) { val, err := m.GetBackingStore().Get("detectorId") @@ -48,10 +84,52 @@ func (m *DetectionRule) GetDetectorId()(*string) { } return nil } +// GetDisplayName gets the displayName property value. The display name of the rule. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains) and $orderby. +// returns a *string when successful +func (m *DetectionRule) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *DetectionRule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.ProtectionRule.GetFieldDeserializers() + res := m.Entity.GetFieldDeserializers() + res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedBy(val) + } + return nil + } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } res["detectionAction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateDetectionActionFromDiscriminatorValue) if err != nil { @@ -72,6 +150,46 @@ func (m *DetectionRule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["isEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsEnabled(val) + } + return nil + } + res["lastModifiedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLastModifiedBy(val) + } + return nil + } + res["lastModifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastModifiedDateTime(val) + } + return nil + } res["lastRunDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateRunDetailsFromDiscriminatorValue) if err != nil { @@ -102,9 +220,55 @@ func (m *DetectionRule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseDetectionRuleStatus) + if err != nil { + return err + } + if val != nil { + m.SetStatus(val.(*DetectionRuleStatus)) + } + return nil + } return res } -// GetLastRunDetails gets the lastRunDetails property value. Complex type holding details about the last run of this rule. +// GetIsEnabled gets the isEnabled property value. Indicates whether the rule is turned on for the tenant. Supports $filter (eq, ne, not). Deprecated. Use status instead. This property will be removed from this resource on 2026-10-01. +// returns a *bool when successful +func (m *DetectionRule) GetIsEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetLastModifiedBy gets the lastModifiedBy property value. Name of the user or application that last updated the rule. Read-only. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains). +// returns a *string when successful +func (m *DetectionRule) GetLastModifiedBy()(*string) { + val, err := m.GetBackingStore().Get("lastModifiedBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Timestamp of when the rule was last updated. Read-only. Supports $filter (eq, ne, not, le, ge, lt, gt) and $orderby. +// returns a *Time when successful +func (m *DetectionRule) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastModifiedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetLastRunDetails gets the lastRunDetails property value. Runtime execution details for the most recent rule run. Supports $filter on the following nested properties:String: lastRunDetails/failureReason supports eq, ne, not, in, startsWith, endsWith, contains.DateTimeOffset: lastRunDetails/lastRunDateTime supports eq, ne, not, le, ge, lt, gt.Enum: lastRunDetails/status, lastRunDetails/errorCode each supports eq, ne, not, in.Deprecated. This property will be removed from this resource on 2026-10-01. Runtime execution details aren't exposed in the v1.0 API. // returns a RunDetailsable when successful func (m *DetectionRule) GetLastRunDetails()(RunDetailsable) { val, err := m.GetBackingStore().Get("lastRunDetails") @@ -116,7 +280,7 @@ func (m *DetectionRule) GetLastRunDetails()(RunDetailsable) { } return nil } -// GetQueryCondition gets the queryCondition property value. Complex type holding data about the advanced hunting query of this rule. +// GetQueryCondition gets the queryCondition property value. The queryCondition property // returns a QueryConditionable when successful func (m *DetectionRule) GetQueryCondition()(QueryConditionable) { val, err := m.GetBackingStore().Get("queryCondition") @@ -128,7 +292,7 @@ func (m *DetectionRule) GetQueryCondition()(QueryConditionable) { } return nil } -// GetSchedule gets the schedule property value. Complex type holding data about the triggering schedule of this rule. +// GetSchedule gets the schedule property value. The schedule property // returns a RuleScheduleable when successful func (m *DetectionRule) GetSchedule()(RuleScheduleable) { val, err := m.GetBackingStore().Get("schedule") @@ -140,12 +304,42 @@ func (m *DetectionRule) GetSchedule()(RuleScheduleable) { } return nil } +// GetStatus gets the status property value. The status property +// returns a *DetectionRuleStatus when successful +func (m *DetectionRule) GetStatus()(*DetectionRuleStatus) { + val, err := m.GetBackingStore().Get("status") + if err != nil { + panic(err) + } + if val != nil { + return val.(*DetectionRuleStatus) + } + return nil +} // Serialize serializes information the current object func (m *DetectionRule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.ProtectionRule.Serialize(writer) + err := m.Entity.Serialize(writer) if err != nil { return err } + { + err = writer.WriteStringValue("createdBy", m.GetCreatedBy()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("detectionAction", m.GetDetectionAction()) if err != nil { @@ -158,6 +352,30 @@ func (m *DetectionRule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return err } } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isEnabled", m.GetIsEnabled()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("lastModifiedBy", m.GetLastModifiedBy()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("lastModifiedDateTime", m.GetLastModifiedDateTime()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("lastRunDetails", m.GetLastRunDetails()) if err != nil { @@ -176,54 +394,133 @@ func (m *DetectionRule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return err } } + if m.GetStatus() != nil { + cast := (*m.GetStatus()).String() + err = writer.WriteStringValue("status", &cast) + if err != nil { + return err + } + } return nil } -// SetDetectionAction sets the detectionAction property value. Complex type representing the actions taken when a detection is made by this rule. +// SetCreatedBy sets the createdBy property value. Name of the user or application that created the rule. Read-only. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains). +func (m *DetectionRule) SetCreatedBy(value *string)() { + err := m.GetBackingStore().Set("createdBy", value) + if err != nil { + panic(err) + } +} +// SetCreatedDateTime sets the createdDateTime property value. Timestamp of rule creation. Read-only. Supports $filter (eq, ne, not, le, ge, lt, gt) and $orderby. +func (m *DetectionRule) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetDescription sets the description property value. A user-supplied description of the detection rule. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains). +func (m *DetectionRule) SetDescription(value *string)() { + err := m.GetBackingStore().Set("description", value) + if err != nil { + panic(err) + } +} +// SetDetectionAction sets the detectionAction property value. The detectionAction property func (m *DetectionRule) SetDetectionAction(value DetectionActionable)() { err := m.GetBackingStore().Set("detectionAction", value) if err != nil { panic(err) } } -// SetDetectorId sets the detectorId property value. The ID of the detector that triggered the alert. Also see the 'detectorId' field in microsoft.graph.security.alert. +// SetDetectorId sets the detectorId property value. Internal detector identifier. Deprecated. This property will be removed from this resource on 2026-10-01. func (m *DetectionRule) SetDetectorId(value *string)() { err := m.GetBackingStore().Set("detectorId", value) if err != nil { panic(err) } } -// SetLastRunDetails sets the lastRunDetails property value. Complex type holding details about the last run of this rule. +// SetDisplayName sets the displayName property value. The display name of the rule. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains) and $orderby. +func (m *DetectionRule) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetIsEnabled sets the isEnabled property value. Indicates whether the rule is turned on for the tenant. Supports $filter (eq, ne, not). Deprecated. Use status instead. This property will be removed from this resource on 2026-10-01. +func (m *DetectionRule) SetIsEnabled(value *bool)() { + err := m.GetBackingStore().Set("isEnabled", value) + if err != nil { + panic(err) + } +} +// SetLastModifiedBy sets the lastModifiedBy property value. Name of the user or application that last updated the rule. Read-only. Supports $filter (eq, ne, not, in, startsWith, endsWith, contains). +func (m *DetectionRule) SetLastModifiedBy(value *string)() { + err := m.GetBackingStore().Set("lastModifiedBy", value) + if err != nil { + panic(err) + } +} +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Timestamp of when the rule was last updated. Read-only. Supports $filter (eq, ne, not, le, ge, lt, gt) and $orderby. +func (m *DetectionRule) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastModifiedDateTime", value) + if err != nil { + panic(err) + } +} +// SetLastRunDetails sets the lastRunDetails property value. Runtime execution details for the most recent rule run. Supports $filter on the following nested properties:String: lastRunDetails/failureReason supports eq, ne, not, in, startsWith, endsWith, contains.DateTimeOffset: lastRunDetails/lastRunDateTime supports eq, ne, not, le, ge, lt, gt.Enum: lastRunDetails/status, lastRunDetails/errorCode each supports eq, ne, not, in.Deprecated. This property will be removed from this resource on 2026-10-01. Runtime execution details aren't exposed in the v1.0 API. func (m *DetectionRule) SetLastRunDetails(value RunDetailsable)() { err := m.GetBackingStore().Set("lastRunDetails", value) if err != nil { panic(err) } } -// SetQueryCondition sets the queryCondition property value. Complex type holding data about the advanced hunting query of this rule. +// SetQueryCondition sets the queryCondition property value. The queryCondition property func (m *DetectionRule) SetQueryCondition(value QueryConditionable)() { err := m.GetBackingStore().Set("queryCondition", value) if err != nil { panic(err) } } -// SetSchedule sets the schedule property value. Complex type holding data about the triggering schedule of this rule. +// SetSchedule sets the schedule property value. The schedule property func (m *DetectionRule) SetSchedule(value RuleScheduleable)() { err := m.GetBackingStore().Set("schedule", value) if err != nil { panic(err) } } +// SetStatus sets the status property value. The status property +func (m *DetectionRule) SetStatus(value *DetectionRuleStatus)() { + err := m.GetBackingStore().Set("status", value) + if err != nil { + panic(err) + } +} type DetectionRuleable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - ProtectionRuleable + GetCreatedBy()(*string) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetDescription()(*string) GetDetectionAction()(DetectionActionable) GetDetectorId()(*string) + GetDisplayName()(*string) + GetIsEnabled()(*bool) + GetLastModifiedBy()(*string) + GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLastRunDetails()(RunDetailsable) GetQueryCondition()(QueryConditionable) GetSchedule()(RuleScheduleable) + GetStatus()(*DetectionRuleStatus) + SetCreatedBy(value *string)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetDescription(value *string)() SetDetectionAction(value DetectionActionable)() SetDetectorId(value *string)() + SetDisplayName(value *string)() + SetIsEnabled(value *bool)() + SetLastModifiedBy(value *string)() + SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLastRunDetails(value RunDetailsable)() SetQueryCondition(value QueryConditionable)() SetSchedule(value RuleScheduleable)() + SetStatus(value *DetectionRuleStatus)() } diff --git a/models/security/detection_rule_status.go b/models/security/detection_rule_status.go new file mode 100644 index 00000000000..37a973d383e --- /dev/null +++ b/models/security/detection_rule_status.go @@ -0,0 +1,42 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security +type DetectionRuleStatus int + +const ( + ENABLED_DETECTIONRULESTATUS DetectionRuleStatus = iota + DISABLED_DETECTIONRULESTATUS + AUTODISABLED_DETECTIONRULESTATUS + UNKNOWNFUTUREVALUE_DETECTIONRULESTATUS +) + +func (i DetectionRuleStatus) String() string { + return []string{"enabled", "disabled", "autoDisabled", "unknownFutureValue"}[i] +} +func ParseDetectionRuleStatus(v string) (any, error) { + result := ENABLED_DETECTIONRULESTATUS + switch v { + case "enabled": + result = ENABLED_DETECTIONRULESTATUS + case "disabled": + result = DISABLED_DETECTIONRULESTATUS + case "autoDisabled": + result = AUTODISABLED_DETECTIONRULESTATUS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_DETECTIONRULESTATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeDetectionRuleStatus(values []DetectionRuleStatus) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i DetectionRuleStatus) isMultiValue() bool { + return false +} diff --git a/models/security/device_action.go b/models/security/device_action.go new file mode 100644 index 00000000000..c60b9c2120a --- /dev/null +++ b/models/security/device_action.go @@ -0,0 +1,99 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type DeviceAction struct { + AutomatedAction +} +// NewDeviceAction instantiates a new DeviceAction and sets the default values. +func NewDeviceAction()(*DeviceAction) { + m := &DeviceAction{ + AutomatedAction: *NewAutomatedAction(), + } + odataTypeValue := "#microsoft.graph.security.deviceAction" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateDeviceActionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDeviceActionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.security.isolateDeviceAction": + return NewIsolateDeviceAction(), nil + } + } + } + } + return NewDeviceAction(), nil +} +// GetDeviceIdColumn gets the deviceIdColumn property value. Name of the hunting-query result column that contains the device ID for the targeted device. +// returns a *string when successful +func (m *DeviceAction) GetDeviceIdColumn()(*string) { + val, err := m.GetBackingStore().Get("deviceIdColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DeviceAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AutomatedAction.GetFieldDeserializers() + res["deviceIdColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDeviceIdColumn(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *DeviceAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AutomatedAction.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("deviceIdColumn", m.GetDeviceIdColumn()) + if err != nil { + return err + } + } + return nil +} +// SetDeviceIdColumn sets the deviceIdColumn property value. Name of the hunting-query result column that contains the device ID for the targeted device. +func (m *DeviceAction) SetDeviceIdColumn(value *string)() { + err := m.GetBackingStore().Set("deviceIdColumn", value) + if err != nil { + panic(err) + } +} +type DeviceActionable interface { + AutomatedActionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDeviceIdColumn()(*string) + SetDeviceIdColumn(value *string)() +} diff --git a/models/security/dictionary.go b/models/security/dictionary.go index 1bd97abeb3c..796e40f5394 100644 --- a/models/security/dictionary.go +++ b/models/security/dictionary.go @@ -23,6 +23,24 @@ func NewDictionary()(*Dictionary) { // CreateDictionaryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful func CreateDictionaryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.security.alertCustomDetails": + return NewAlertCustomDetails(), nil + } + } + } + } return NewDictionary(), nil } // GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/models/security/dns_entity_mapping.go b/models/security/dns_entity_mapping.go new file mode 100644 index 00000000000..666d033f900 --- /dev/null +++ b/models/security/dns_entity_mapping.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type DnsEntityMapping struct { + EntityMapping +} +// NewDnsEntityMapping instantiates a new DnsEntityMapping and sets the default values. +func NewDnsEntityMapping()(*DnsEntityMapping) { + m := &DnsEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.dnsEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateDnsEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDnsEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDnsEntityMapping(), nil +} +// GetDomainNameColumn gets the domainNameColumn property value. Name of the detection query column that maps to the domain name of the alert entity. +// returns a *string when successful +func (m *DnsEntityMapping) GetDomainNameColumn()(*string) { + val, err := m.GetBackingStore().Get("domainNameColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DnsEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["domainNameColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDomainNameColumn(val) + } + return nil + } + res["hostIpAddressColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetHostIpAddressColumn(val) + } + return nil + } + res["serverIpColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetServerIpColumn(val) + } + return nil + } + return res +} +// GetHostIpAddressColumn gets the hostIpAddressColumn property value. Name of the detection query column that maps to the host IP address of the alert entity. +// returns a *string when successful +func (m *DnsEntityMapping) GetHostIpAddressColumn()(*string) { + val, err := m.GetBackingStore().Get("hostIpAddressColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetServerIpColumn gets the serverIpColumn property value. Name of the detection query column that maps to the server IP address of the alert entity. +// returns a *string when successful +func (m *DnsEntityMapping) GetServerIpColumn()(*string) { + val, err := m.GetBackingStore().Get("serverIpColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *DnsEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("domainNameColumn", m.GetDomainNameColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("hostIpAddressColumn", m.GetHostIpAddressColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("serverIpColumn", m.GetServerIpColumn()) + if err != nil { + return err + } + } + return nil +} +// SetDomainNameColumn sets the domainNameColumn property value. Name of the detection query column that maps to the domain name of the alert entity. +func (m *DnsEntityMapping) SetDomainNameColumn(value *string)() { + err := m.GetBackingStore().Set("domainNameColumn", value) + if err != nil { + panic(err) + } +} +// SetHostIpAddressColumn sets the hostIpAddressColumn property value. Name of the detection query column that maps to the host IP address of the alert entity. +func (m *DnsEntityMapping) SetHostIpAddressColumn(value *string)() { + err := m.GetBackingStore().Set("hostIpAddressColumn", value) + if err != nil { + panic(err) + } +} +// SetServerIpColumn sets the serverIpColumn property value. Name of the detection query column that maps to the server IP address of the alert entity. +func (m *DnsEntityMapping) SetServerIpColumn(value *string)() { + err := m.GetBackingStore().Set("serverIpColumn", value) + if err != nil { + panic(err) + } +} +type DnsEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDomainNameColumn()(*string) + GetHostIpAddressColumn()(*string) + GetServerIpColumn()(*string) + SetDomainNameColumn(value *string)() + SetHostIpAddressColumn(value *string)() + SetServerIpColumn(value *string)() +} diff --git a/models/security/dragon_copilot_access_record.go b/models/security/dragon_copilot_access_record.go new file mode 100644 index 00000000000..8b321bc061e --- /dev/null +++ b/models/security/dragon_copilot_access_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// DragonCopilotAccessRecord audit data for Dragon Copilot Access events. +type DragonCopilotAccessRecord struct { + AuditData +} +// NewDragonCopilotAccessRecord instantiates a new DragonCopilotAccessRecord and sets the default values. +func NewDragonCopilotAccessRecord()(*DragonCopilotAccessRecord) { + m := &DragonCopilotAccessRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.dragonCopilotAccessRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateDragonCopilotAccessRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDragonCopilotAccessRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDragonCopilotAccessRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DragonCopilotAccessRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *DragonCopilotAccessRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type DragonCopilotAccessRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/dragon_copilot_admin_record.go b/models/security/dragon_copilot_admin_record.go new file mode 100644 index 00000000000..8f2f28652d6 --- /dev/null +++ b/models/security/dragon_copilot_admin_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// DragonCopilotAdminRecord audit data for Dragon Copilot Admin events. +type DragonCopilotAdminRecord struct { + AuditData +} +// NewDragonCopilotAdminRecord instantiates a new DragonCopilotAdminRecord and sets the default values. +func NewDragonCopilotAdminRecord()(*DragonCopilotAdminRecord) { + m := &DragonCopilotAdminRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.dragonCopilotAdminRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateDragonCopilotAdminRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDragonCopilotAdminRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDragonCopilotAdminRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DragonCopilotAdminRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *DragonCopilotAdminRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type DragonCopilotAdminRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/dragon_copilot_clinical_data_record.go b/models/security/dragon_copilot_clinical_data_record.go new file mode 100644 index 00000000000..547db27509b --- /dev/null +++ b/models/security/dragon_copilot_clinical_data_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// DragonCopilotClinicalDataRecord audit data for Dragon Copilot Clinical Data events. +type DragonCopilotClinicalDataRecord struct { + AuditData +} +// NewDragonCopilotClinicalDataRecord instantiates a new DragonCopilotClinicalDataRecord and sets the default values. +func NewDragonCopilotClinicalDataRecord()(*DragonCopilotClinicalDataRecord) { + m := &DragonCopilotClinicalDataRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.dragonCopilotClinicalDataRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateDragonCopilotClinicalDataRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDragonCopilotClinicalDataRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDragonCopilotClinicalDataRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DragonCopilotClinicalDataRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *DragonCopilotClinicalDataRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type DragonCopilotClinicalDataRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/dragon_copilot_session_record.go b/models/security/dragon_copilot_session_record.go new file mode 100644 index 00000000000..a937e660a18 --- /dev/null +++ b/models/security/dragon_copilot_session_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// DragonCopilotSessionRecord audit data for Dragon Copilot Session events. +type DragonCopilotSessionRecord struct { + AuditData +} +// NewDragonCopilotSessionRecord instantiates a new DragonCopilotSessionRecord and sets the default values. +func NewDragonCopilotSessionRecord()(*DragonCopilotSessionRecord) { + m := &DragonCopilotSessionRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.dragonCopilotSessionRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateDragonCopilotSessionRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDragonCopilotSessionRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDragonCopilotSessionRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DragonCopilotSessionRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *DragonCopilotSessionRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type DragonCopilotSessionRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/ediscovery_add_to_review_set_operation.go b/models/security/ediscovery_add_to_review_set_operation.go index d8a5b6cfb96..5976f553d86 100644 --- a/models/security/ediscovery_add_to_review_set_operation.go +++ b/models/security/ediscovery_add_to_review_set_operation.go @@ -22,7 +22,7 @@ func NewEdiscoveryAddToReviewSetOperation()(*EdiscoveryAddToReviewSetOperation) func CreateEdiscoveryAddToReviewSetOperationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewEdiscoveryAddToReviewSetOperation(), nil } -// GetAdditionalDataOptions gets the additionalDataOptions property value. The options to add items to the review set. The possible values are: allVersions, linkedFiles, unknownFutureValue, advancedIndexing, listAttachments, htmlTranscripts, messageConversationExpansion, locationsWithoutHits, allItemsInFolder. Use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: advancedIndexing, listAttachments, htmlTranscripts, messageConversationExpansion, locationsWithoutHits, allItemsInFolder. +// GetAdditionalDataOptions gets the additionalDataOptions property value. The options to add items to the review set. The possible values are: allVersions, linkedFiles, unknownFutureValue, advancedIndexing, listAttachments, htmlTranscripts, messageConversationExpansion, locationsWithoutHits, allItemsInFolder, cloudNativeHtmlConversion. Use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: advancedIndexing, listAttachments, htmlTranscripts, messageConversationExpansion, locationsWithoutHits, allItemsInFolder, cloudNativeHtmlConversion. // returns a *AdditionalDataOptions when successful func (m *EdiscoveryAddToReviewSetOperation) GetAdditionalDataOptions()(*AdditionalDataOptions) { val, err := m.GetBackingStore().Get("additionalDataOptions") @@ -248,7 +248,7 @@ func (m *EdiscoveryAddToReviewSetOperation) Serialize(writer i878a80d2330e89d268 } return nil } -// SetAdditionalDataOptions sets the additionalDataOptions property value. The options to add items to the review set. The possible values are: allVersions, linkedFiles, unknownFutureValue, advancedIndexing, listAttachments, htmlTranscripts, messageConversationExpansion, locationsWithoutHits, allItemsInFolder. Use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: advancedIndexing, listAttachments, htmlTranscripts, messageConversationExpansion, locationsWithoutHits, allItemsInFolder. +// SetAdditionalDataOptions sets the additionalDataOptions property value. The options to add items to the review set. The possible values are: allVersions, linkedFiles, unknownFutureValue, advancedIndexing, listAttachments, htmlTranscripts, messageConversationExpansion, locationsWithoutHits, allItemsInFolder, cloudNativeHtmlConversion. Use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: advancedIndexing, listAttachments, htmlTranscripts, messageConversationExpansion, locationsWithoutHits, allItemsInFolder, cloudNativeHtmlConversion. func (m *EdiscoveryAddToReviewSetOperation) SetAdditionalDataOptions(value *AdditionalDataOptions)() { err := m.GetBackingStore().Set("additionalDataOptions", value) if err != nil { diff --git a/models/security/email_action.go b/models/security/email_action.go new file mode 100644 index 00000000000..f2f9cd8accc --- /dev/null +++ b/models/security/email_action.go @@ -0,0 +1,118 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type EmailAction struct { + AutomatedAction +} +// NewEmailAction instantiates a new EmailAction and sets the default values. +func NewEmailAction()(*EmailAction) { + m := &EmailAction{ + AutomatedAction: *NewAutomatedAction(), + } + odataTypeValue := "#microsoft.graph.security.emailAction" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateEmailActionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateEmailActionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEmailAction(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *EmailAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AutomatedAction.GetFieldDeserializers() + res["networkMessageIdColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNetworkMessageIdColumn(val) + } + return nil + } + res["recipientColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRecipientColumn(val) + } + return nil + } + return res +} +// GetNetworkMessageIdColumn gets the networkMessageIdColumn property value. Name of the hunting-query result column that contains the network message ID of the targeted email message. +// returns a *string when successful +func (m *EmailAction) GetNetworkMessageIdColumn()(*string) { + val, err := m.GetBackingStore().Get("networkMessageIdColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRecipientColumn gets the recipientColumn property value. Name of the hunting-query result column that contains the recipient of the targeted email message. +// returns a *string when successful +func (m *EmailAction) GetRecipientColumn()(*string) { + val, err := m.GetBackingStore().Get("recipientColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *EmailAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AutomatedAction.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("networkMessageIdColumn", m.GetNetworkMessageIdColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("recipientColumn", m.GetRecipientColumn()) + if err != nil { + return err + } + } + return nil +} +// SetNetworkMessageIdColumn sets the networkMessageIdColumn property value. Name of the hunting-query result column that contains the network message ID of the targeted email message. +func (m *EmailAction) SetNetworkMessageIdColumn(value *string)() { + err := m.GetBackingStore().Set("networkMessageIdColumn", value) + if err != nil { + panic(err) + } +} +// SetRecipientColumn sets the recipientColumn property value. Name of the hunting-query result column that contains the recipient of the targeted email message. +func (m *EmailAction) SetRecipientColumn(value *string)() { + err := m.GetBackingStore().Set("recipientColumn", value) + if err != nil { + panic(err) + } +} +type EmailActionable interface { + AutomatedActionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetNetworkMessageIdColumn()(*string) + GetRecipientColumn()(*string) + SetNetworkMessageIdColumn(value *string)() + SetRecipientColumn(value *string)() +} diff --git a/models/security/entity_definition_input.go b/models/security/entity_definition_input.go new file mode 100644 index 00000000000..a87d286b359 --- /dev/null +++ b/models/security/entity_definition_input.go @@ -0,0 +1,266 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type EntityDefinitionInput struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewEntityDefinitionInput instantiates a new EntityDefinitionInput and sets the default values. +func NewEntityDefinitionInput()(*EntityDefinitionInput) { + m := &EntityDefinitionInput{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateEntityDefinitionInputFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateEntityDefinitionInputFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEntityDefinitionInput(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *EntityDefinitionInput) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *EntityDefinitionInput) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetEntityIdentifier gets the entityIdentifier property value. The type of identifier used for the entity. The supported identifiers depend on the entityType. See supported entity identifiers. Key. +// returns a *string when successful +func (m *EntityDefinitionInput) GetEntityIdentifier()(*string) { + val, err := m.GetBackingStore().Get("entityIdentifier") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetEntityType gets the entityType property value. The entityType property +// returns a *ManualAlertEntityType when successful +func (m *EntityDefinitionInput) GetEntityType()(*ManualAlertEntityType) { + val, err := m.GetBackingStore().Get("entityType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ManualAlertEntityType) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *EntityDefinitionInput) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["entityIdentifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEntityIdentifier(val) + } + return nil + } + res["entityType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseManualAlertEntityType) + if err != nil { + return err + } + if val != nil { + m.SetEntityType(val.(*ManualAlertEntityType)) + } + return nil + } + res["identifierValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetIdentifierValue(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["role"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseEntityDefinitionInputRole) + if err != nil { + return err + } + if val != nil { + m.SetRole(val.(*EntityDefinitionInputRole)) + } + return nil + } + return res +} +// GetIdentifierValue gets the identifierValue property value. The actual identifier value for the entity (for example, john@contoso.com for a user, or 192.168.1.1 for an IP address). Maximum 1000 characters. +// returns a *string when successful +func (m *EntityDefinitionInput) GetIdentifierValue()(*string) { + val, err := m.GetBackingStore().Get("identifierValue") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *EntityDefinitionInput) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRole gets the role property value. The role property +// returns a *EntityDefinitionInputRole when successful +func (m *EntityDefinitionInput) GetRole()(*EntityDefinitionInputRole) { + val, err := m.GetBackingStore().Get("role") + if err != nil { + panic(err) + } + if val != nil { + return val.(*EntityDefinitionInputRole) + } + return nil +} +// Serialize serializes information the current object +func (m *EntityDefinitionInput) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("entityIdentifier", m.GetEntityIdentifier()) + if err != nil { + return err + } + } + if m.GetEntityType() != nil { + cast := (*m.GetEntityType()).String() + err := writer.WriteStringValue("entityType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("identifierValue", m.GetIdentifierValue()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetRole() != nil { + cast := (*m.GetRole()).String() + err := writer.WriteStringValue("role", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *EntityDefinitionInput) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *EntityDefinitionInput) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetEntityIdentifier sets the entityIdentifier property value. The type of identifier used for the entity. The supported identifiers depend on the entityType. See supported entity identifiers. Key. +func (m *EntityDefinitionInput) SetEntityIdentifier(value *string)() { + err := m.GetBackingStore().Set("entityIdentifier", value) + if err != nil { + panic(err) + } +} +// SetEntityType sets the entityType property value. The entityType property +func (m *EntityDefinitionInput) SetEntityType(value *ManualAlertEntityType)() { + err := m.GetBackingStore().Set("entityType", value) + if err != nil { + panic(err) + } +} +// SetIdentifierValue sets the identifierValue property value. The actual identifier value for the entity (for example, john@contoso.com for a user, or 192.168.1.1 for an IP address). Maximum 1000 characters. +func (m *EntityDefinitionInput) SetIdentifierValue(value *string)() { + err := m.GetBackingStore().Set("identifierValue", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EntityDefinitionInput) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetRole sets the role property value. The role property +func (m *EntityDefinitionInput) SetRole(value *EntityDefinitionInputRole)() { + err := m.GetBackingStore().Set("role", value) + if err != nil { + panic(err) + } +} +type EntityDefinitionInputable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetEntityIdentifier()(*string) + GetEntityType()(*ManualAlertEntityType) + GetIdentifierValue()(*string) + GetOdataType()(*string) + GetRole()(*EntityDefinitionInputRole) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetEntityIdentifier(value *string)() + SetEntityType(value *ManualAlertEntityType)() + SetIdentifierValue(value *string)() + SetOdataType(value *string)() + SetRole(value *EntityDefinitionInputRole)() +} diff --git a/models/security/entity_definition_input_role.go b/models/security/entity_definition_input_role.go new file mode 100644 index 00000000000..6ced84dbb2e --- /dev/null +++ b/models/security/entity_definition_input_role.go @@ -0,0 +1,39 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security +type EntityDefinitionInputRole int + +const ( + IMPACTED_ENTITYDEFINITIONINPUTROLE EntityDefinitionInputRole = iota + RELATED_ENTITYDEFINITIONINPUTROLE + UNKNOWNFUTUREVALUE_ENTITYDEFINITIONINPUTROLE +) + +func (i EntityDefinitionInputRole) String() string { + return []string{"impacted", "related", "unknownFutureValue"}[i] +} +func ParseEntityDefinitionInputRole(v string) (any, error) { + result := IMPACTED_ENTITYDEFINITIONINPUTROLE + switch v { + case "impacted": + result = IMPACTED_ENTITYDEFINITIONINPUTROLE + case "related": + result = RELATED_ENTITYDEFINITIONINPUTROLE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_ENTITYDEFINITIONINPUTROLE + default: + return nil, nil + } + return &result, nil +} +func SerializeEntityDefinitionInputRole(values []EntityDefinitionInputRole) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i EntityDefinitionInputRole) isMultiValue() bool { + return false +} diff --git a/models/security/entity_mapping.go b/models/security/entity_mapping.go new file mode 100644 index 00000000000..37f0ac43f8f --- /dev/null +++ b/models/security/entity_mapping.go @@ -0,0 +1,166 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type EntityMapping struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewEntityMapping instantiates a new EntityMapping and sets the default values. +func NewEntityMapping()(*EntityMapping) { + m := &EntityMapping{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.security.accountEntityMapping": + return NewAccountEntityMapping(), nil + case "#microsoft.graph.security.amazonResourceEntityMapping": + return NewAmazonResourceEntityMapping(), nil + case "#microsoft.graph.security.azureResourceEntityMapping": + return NewAzureResourceEntityMapping(), nil + case "#microsoft.graph.security.cloudApplicationEntityMapping": + return NewCloudApplicationEntityMapping(), nil + case "#microsoft.graph.security.dnsEntityMapping": + return NewDnsEntityMapping(), nil + case "#microsoft.graph.security.fileEntityMapping": + return NewFileEntityMapping(), nil + case "#microsoft.graph.security.googleCloudResourceEntityMapping": + return NewGoogleCloudResourceEntityMapping(), nil + case "#microsoft.graph.security.hostEntityMapping": + return NewHostEntityMapping(), nil + case "#microsoft.graph.security.ipEntityMapping": + return NewIpEntityMapping(), nil + case "#microsoft.graph.security.mailboxEntityMapping": + return NewMailboxEntityMapping(), nil + case "#microsoft.graph.security.mailClusterEntityMapping": + return NewMailClusterEntityMapping(), nil + case "#microsoft.graph.security.mailMessageEntityMapping": + return NewMailMessageEntityMapping(), nil + case "#microsoft.graph.security.oAuthApplicationEntityMapping": + return NewOAuthApplicationEntityMapping(), nil + case "#microsoft.graph.security.processEntityMapping": + return NewProcessEntityMapping(), nil + case "#microsoft.graph.security.registryValueEntityMapping": + return NewRegistryValueEntityMapping(), nil + case "#microsoft.graph.security.securityGroupEntityMapping": + return NewSecurityGroupEntityMapping(), nil + case "#microsoft.graph.security.urlEntityMapping": + return NewUrlEntityMapping(), nil + } + } + } + } + return NewEntityMapping(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *EntityMapping) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *EntityMapping) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *EntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *EntityMapping) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *EntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *EntityMapping) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *EntityMapping) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EntityMapping) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type EntityMappingable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() +} diff --git a/models/security/entity_mapping_configuration.go b/models/security/entity_mapping_configuration.go new file mode 100644 index 00000000000..d8a974bf21f --- /dev/null +++ b/models/security/entity_mapping_configuration.go @@ -0,0 +1,949 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type EntityMappingConfiguration struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewEntityMappingConfiguration instantiates a new EntityMappingConfiguration and sets the default values. +func NewEntityMappingConfiguration()(*EntityMappingConfiguration) { + m := &EntityMappingConfiguration{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateEntityMappingConfigurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateEntityMappingConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEntityMappingConfiguration(), nil +} +// GetAccounts gets the accounts property value. Mappings from detection query columns to account entities attached to the alert. +// returns a []AccountEntityMappingable when successful +func (m *EntityMappingConfiguration) GetAccounts()([]AccountEntityMappingable) { + val, err := m.GetBackingStore().Get("accounts") + if err != nil { + panic(err) + } + if val != nil { + return val.([]AccountEntityMappingable) + } + return nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *EntityMappingConfiguration) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetAmazonResources gets the amazonResources property value. Mappings from detection query columns to Amazon Web Services resource entities attached to the alert. +// returns a []AmazonResourceEntityMappingable when successful +func (m *EntityMappingConfiguration) GetAmazonResources()([]AmazonResourceEntityMappingable) { + val, err := m.GetBackingStore().Get("amazonResources") + if err != nil { + panic(err) + } + if val != nil { + return val.([]AmazonResourceEntityMappingable) + } + return nil +} +// GetAzureResources gets the azureResources property value. Mappings from detection query columns to Azure resource entities attached to the alert. +// returns a []AzureResourceEntityMappingable when successful +func (m *EntityMappingConfiguration) GetAzureResources()([]AzureResourceEntityMappingable) { + val, err := m.GetBackingStore().Get("azureResources") + if err != nil { + panic(err) + } + if val != nil { + return val.([]AzureResourceEntityMappingable) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *EntityMappingConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetCloudApplications gets the cloudApplications property value. Mappings from detection query columns to cloud application entities attached to the alert. +// returns a []CloudApplicationEntityMappingable when successful +func (m *EntityMappingConfiguration) GetCloudApplications()([]CloudApplicationEntityMappingable) { + val, err := m.GetBackingStore().Get("cloudApplications") + if err != nil { + panic(err) + } + if val != nil { + return val.([]CloudApplicationEntityMappingable) + } + return nil +} +// GetDns gets the dns property value. Mappings from detection query columns to DNS entities attached to the alert. +// returns a []DnsEntityMappingable when successful +func (m *EntityMappingConfiguration) GetDns()([]DnsEntityMappingable) { + val, err := m.GetBackingStore().Get("dns") + if err != nil { + panic(err) + } + if val != nil { + return val.([]DnsEntityMappingable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *EntityMappingConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["accounts"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateAccountEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]AccountEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(AccountEntityMappingable) + } + } + m.SetAccounts(res) + } + return nil + } + res["amazonResources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateAmazonResourceEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]AmazonResourceEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(AmazonResourceEntityMappingable) + } + } + m.SetAmazonResources(res) + } + return nil + } + res["azureResources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateAzureResourceEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]AzureResourceEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(AzureResourceEntityMappingable) + } + } + m.SetAzureResources(res) + } + return nil + } + res["cloudApplications"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateCloudApplicationEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]CloudApplicationEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(CloudApplicationEntityMappingable) + } + } + m.SetCloudApplications(res) + } + return nil + } + res["dns"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateDnsEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]DnsEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(DnsEntityMappingable) + } + } + m.SetDns(res) + } + return nil + } + res["files"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateFileEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]FileEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(FileEntityMappingable) + } + } + m.SetFiles(res) + } + return nil + } + res["googleCloudResources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateGoogleCloudResourceEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]GoogleCloudResourceEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(GoogleCloudResourceEntityMappingable) + } + } + m.SetGoogleCloudResources(res) + } + return nil + } + res["hosts"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateHostEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]HostEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(HostEntityMappingable) + } + } + m.SetHosts(res) + } + return nil + } + res["ips"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateIpEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]IpEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(IpEntityMappingable) + } + } + m.SetIps(res) + } + return nil + } + res["mailboxes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateMailboxEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]MailboxEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(MailboxEntityMappingable) + } + } + m.SetMailboxes(res) + } + return nil + } + res["mailClusters"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateMailClusterEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]MailClusterEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(MailClusterEntityMappingable) + } + } + m.SetMailClusters(res) + } + return nil + } + res["mailMessages"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateMailMessageEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]MailMessageEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(MailMessageEntityMappingable) + } + } + m.SetMailMessages(res) + } + return nil + } + res["oAuthApplications"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateOAuthApplicationEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]OAuthApplicationEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(OAuthApplicationEntityMappingable) + } + } + m.SetOAuthApplications(res) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["processes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateProcessEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ProcessEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ProcessEntityMappingable) + } + } + m.SetProcesses(res) + } + return nil + } + res["registryValues"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateRegistryValueEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]RegistryValueEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(RegistryValueEntityMappingable) + } + } + m.SetRegistryValues(res) + } + return nil + } + res["securityGroups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateSecurityGroupEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]SecurityGroupEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(SecurityGroupEntityMappingable) + } + } + m.SetSecurityGroups(res) + } + return nil + } + res["urls"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateUrlEntityMappingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]UrlEntityMappingable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(UrlEntityMappingable) + } + } + m.SetUrls(res) + } + return nil + } + return res +} +// GetFiles gets the files property value. Mappings from detection query columns to file entities attached to the alert. +// returns a []FileEntityMappingable when successful +func (m *EntityMappingConfiguration) GetFiles()([]FileEntityMappingable) { + val, err := m.GetBackingStore().Get("files") + if err != nil { + panic(err) + } + if val != nil { + return val.([]FileEntityMappingable) + } + return nil +} +// GetGoogleCloudResources gets the googleCloudResources property value. Mappings from detection query columns to Google Cloud resource entities attached to the alert. +// returns a []GoogleCloudResourceEntityMappingable when successful +func (m *EntityMappingConfiguration) GetGoogleCloudResources()([]GoogleCloudResourceEntityMappingable) { + val, err := m.GetBackingStore().Get("googleCloudResources") + if err != nil { + panic(err) + } + if val != nil { + return val.([]GoogleCloudResourceEntityMappingable) + } + return nil +} +// GetHosts gets the hosts property value. Mappings from detection query columns to host entities attached to the alert. +// returns a []HostEntityMappingable when successful +func (m *EntityMappingConfiguration) GetHosts()([]HostEntityMappingable) { + val, err := m.GetBackingStore().Get("hosts") + if err != nil { + panic(err) + } + if val != nil { + return val.([]HostEntityMappingable) + } + return nil +} +// GetIps gets the ips property value. Mappings from detection query columns to IP address entities attached to the alert. +// returns a []IpEntityMappingable when successful +func (m *EntityMappingConfiguration) GetIps()([]IpEntityMappingable) { + val, err := m.GetBackingStore().Get("ips") + if err != nil { + panic(err) + } + if val != nil { + return val.([]IpEntityMappingable) + } + return nil +} +// GetMailboxes gets the mailboxes property value. Mappings from detection query columns to mailbox entities attached to the alert. +// returns a []MailboxEntityMappingable when successful +func (m *EntityMappingConfiguration) GetMailboxes()([]MailboxEntityMappingable) { + val, err := m.GetBackingStore().Get("mailboxes") + if err != nil { + panic(err) + } + if val != nil { + return val.([]MailboxEntityMappingable) + } + return nil +} +// GetMailClusters gets the mailClusters property value. Mappings from detection query columns to mail cluster entities attached to the alert. +// returns a []MailClusterEntityMappingable when successful +func (m *EntityMappingConfiguration) GetMailClusters()([]MailClusterEntityMappingable) { + val, err := m.GetBackingStore().Get("mailClusters") + if err != nil { + panic(err) + } + if val != nil { + return val.([]MailClusterEntityMappingable) + } + return nil +} +// GetMailMessages gets the mailMessages property value. Mappings from detection query columns to mail message entities attached to the alert. +// returns a []MailMessageEntityMappingable when successful +func (m *EntityMappingConfiguration) GetMailMessages()([]MailMessageEntityMappingable) { + val, err := m.GetBackingStore().Get("mailMessages") + if err != nil { + panic(err) + } + if val != nil { + return val.([]MailMessageEntityMappingable) + } + return nil +} +// GetOAuthApplications gets the oAuthApplications property value. Mappings from detection query columns to OAuth application entities attached to the alert. +// returns a []OAuthApplicationEntityMappingable when successful +func (m *EntityMappingConfiguration) GetOAuthApplications()([]OAuthApplicationEntityMappingable) { + val, err := m.GetBackingStore().Get("oAuthApplications") + if err != nil { + panic(err) + } + if val != nil { + return val.([]OAuthApplicationEntityMappingable) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *EntityMappingConfiguration) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetProcesses gets the processes property value. Mappings from detection query columns to process entities attached to the alert. +// returns a []ProcessEntityMappingable when successful +func (m *EntityMappingConfiguration) GetProcesses()([]ProcessEntityMappingable) { + val, err := m.GetBackingStore().Get("processes") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ProcessEntityMappingable) + } + return nil +} +// GetRegistryValues gets the registryValues property value. Mappings from detection query columns to registry value entities attached to the alert. +// returns a []RegistryValueEntityMappingable when successful +func (m *EntityMappingConfiguration) GetRegistryValues()([]RegistryValueEntityMappingable) { + val, err := m.GetBackingStore().Get("registryValues") + if err != nil { + panic(err) + } + if val != nil { + return val.([]RegistryValueEntityMappingable) + } + return nil +} +// GetSecurityGroups gets the securityGroups property value. Mappings from detection query columns to security group entities attached to the alert. +// returns a []SecurityGroupEntityMappingable when successful +func (m *EntityMappingConfiguration) GetSecurityGroups()([]SecurityGroupEntityMappingable) { + val, err := m.GetBackingStore().Get("securityGroups") + if err != nil { + panic(err) + } + if val != nil { + return val.([]SecurityGroupEntityMappingable) + } + return nil +} +// GetUrls gets the urls property value. Mappings from detection query columns to URL entities attached to the alert. +// returns a []UrlEntityMappingable when successful +func (m *EntityMappingConfiguration) GetUrls()([]UrlEntityMappingable) { + val, err := m.GetBackingStore().Get("urls") + if err != nil { + panic(err) + } + if val != nil { + return val.([]UrlEntityMappingable) + } + return nil +} +// Serialize serializes information the current object +func (m *EntityMappingConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAccounts() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAccounts())) + for i, v := range m.GetAccounts() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("accounts", cast) + if err != nil { + return err + } + } + if m.GetAmazonResources() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAmazonResources())) + for i, v := range m.GetAmazonResources() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("amazonResources", cast) + if err != nil { + return err + } + } + if m.GetAzureResources() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAzureResources())) + for i, v := range m.GetAzureResources() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("azureResources", cast) + if err != nil { + return err + } + } + if m.GetCloudApplications() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCloudApplications())) + for i, v := range m.GetCloudApplications() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("cloudApplications", cast) + if err != nil { + return err + } + } + if m.GetDns() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDns())) + for i, v := range m.GetDns() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("dns", cast) + if err != nil { + return err + } + } + if m.GetFiles() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetFiles())) + for i, v := range m.GetFiles() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("files", cast) + if err != nil { + return err + } + } + if m.GetGoogleCloudResources() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGoogleCloudResources())) + for i, v := range m.GetGoogleCloudResources() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("googleCloudResources", cast) + if err != nil { + return err + } + } + if m.GetHosts() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetHosts())) + for i, v := range m.GetHosts() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("hosts", cast) + if err != nil { + return err + } + } + if m.GetIps() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetIps())) + for i, v := range m.GetIps() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("ips", cast) + if err != nil { + return err + } + } + if m.GetMailboxes() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMailboxes())) + for i, v := range m.GetMailboxes() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("mailboxes", cast) + if err != nil { + return err + } + } + if m.GetMailClusters() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMailClusters())) + for i, v := range m.GetMailClusters() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("mailClusters", cast) + if err != nil { + return err + } + } + if m.GetMailMessages() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMailMessages())) + for i, v := range m.GetMailMessages() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("mailMessages", cast) + if err != nil { + return err + } + } + if m.GetOAuthApplications() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetOAuthApplications())) + for i, v := range m.GetOAuthApplications() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("oAuthApplications", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetProcesses() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetProcesses())) + for i, v := range m.GetProcesses() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("processes", cast) + if err != nil { + return err + } + } + if m.GetRegistryValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRegistryValues())) + for i, v := range m.GetRegistryValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("registryValues", cast) + if err != nil { + return err + } + } + if m.GetSecurityGroups() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSecurityGroups())) + for i, v := range m.GetSecurityGroups() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("securityGroups", cast) + if err != nil { + return err + } + } + if m.GetUrls() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetUrls())) + for i, v := range m.GetUrls() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("urls", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAccounts sets the accounts property value. Mappings from detection query columns to account entities attached to the alert. +func (m *EntityMappingConfiguration) SetAccounts(value []AccountEntityMappingable)() { + err := m.GetBackingStore().Set("accounts", value) + if err != nil { + panic(err) + } +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *EntityMappingConfiguration) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAmazonResources sets the amazonResources property value. Mappings from detection query columns to Amazon Web Services resource entities attached to the alert. +func (m *EntityMappingConfiguration) SetAmazonResources(value []AmazonResourceEntityMappingable)() { + err := m.GetBackingStore().Set("amazonResources", value) + if err != nil { + panic(err) + } +} +// SetAzureResources sets the azureResources property value. Mappings from detection query columns to Azure resource entities attached to the alert. +func (m *EntityMappingConfiguration) SetAzureResources(value []AzureResourceEntityMappingable)() { + err := m.GetBackingStore().Set("azureResources", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *EntityMappingConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetCloudApplications sets the cloudApplications property value. Mappings from detection query columns to cloud application entities attached to the alert. +func (m *EntityMappingConfiguration) SetCloudApplications(value []CloudApplicationEntityMappingable)() { + err := m.GetBackingStore().Set("cloudApplications", value) + if err != nil { + panic(err) + } +} +// SetDns sets the dns property value. Mappings from detection query columns to DNS entities attached to the alert. +func (m *EntityMappingConfiguration) SetDns(value []DnsEntityMappingable)() { + err := m.GetBackingStore().Set("dns", value) + if err != nil { + panic(err) + } +} +// SetFiles sets the files property value. Mappings from detection query columns to file entities attached to the alert. +func (m *EntityMappingConfiguration) SetFiles(value []FileEntityMappingable)() { + err := m.GetBackingStore().Set("files", value) + if err != nil { + panic(err) + } +} +// SetGoogleCloudResources sets the googleCloudResources property value. Mappings from detection query columns to Google Cloud resource entities attached to the alert. +func (m *EntityMappingConfiguration) SetGoogleCloudResources(value []GoogleCloudResourceEntityMappingable)() { + err := m.GetBackingStore().Set("googleCloudResources", value) + if err != nil { + panic(err) + } +} +// SetHosts sets the hosts property value. Mappings from detection query columns to host entities attached to the alert. +func (m *EntityMappingConfiguration) SetHosts(value []HostEntityMappingable)() { + err := m.GetBackingStore().Set("hosts", value) + if err != nil { + panic(err) + } +} +// SetIps sets the ips property value. Mappings from detection query columns to IP address entities attached to the alert. +func (m *EntityMappingConfiguration) SetIps(value []IpEntityMappingable)() { + err := m.GetBackingStore().Set("ips", value) + if err != nil { + panic(err) + } +} +// SetMailboxes sets the mailboxes property value. Mappings from detection query columns to mailbox entities attached to the alert. +func (m *EntityMappingConfiguration) SetMailboxes(value []MailboxEntityMappingable)() { + err := m.GetBackingStore().Set("mailboxes", value) + if err != nil { + panic(err) + } +} +// SetMailClusters sets the mailClusters property value. Mappings from detection query columns to mail cluster entities attached to the alert. +func (m *EntityMappingConfiguration) SetMailClusters(value []MailClusterEntityMappingable)() { + err := m.GetBackingStore().Set("mailClusters", value) + if err != nil { + panic(err) + } +} +// SetMailMessages sets the mailMessages property value. Mappings from detection query columns to mail message entities attached to the alert. +func (m *EntityMappingConfiguration) SetMailMessages(value []MailMessageEntityMappingable)() { + err := m.GetBackingStore().Set("mailMessages", value) + if err != nil { + panic(err) + } +} +// SetOAuthApplications sets the oAuthApplications property value. Mappings from detection query columns to OAuth application entities attached to the alert. +func (m *EntityMappingConfiguration) SetOAuthApplications(value []OAuthApplicationEntityMappingable)() { + err := m.GetBackingStore().Set("oAuthApplications", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EntityMappingConfiguration) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetProcesses sets the processes property value. Mappings from detection query columns to process entities attached to the alert. +func (m *EntityMappingConfiguration) SetProcesses(value []ProcessEntityMappingable)() { + err := m.GetBackingStore().Set("processes", value) + if err != nil { + panic(err) + } +} +// SetRegistryValues sets the registryValues property value. Mappings from detection query columns to registry value entities attached to the alert. +func (m *EntityMappingConfiguration) SetRegistryValues(value []RegistryValueEntityMappingable)() { + err := m.GetBackingStore().Set("registryValues", value) + if err != nil { + panic(err) + } +} +// SetSecurityGroups sets the securityGroups property value. Mappings from detection query columns to security group entities attached to the alert. +func (m *EntityMappingConfiguration) SetSecurityGroups(value []SecurityGroupEntityMappingable)() { + err := m.GetBackingStore().Set("securityGroups", value) + if err != nil { + panic(err) + } +} +// SetUrls sets the urls property value. Mappings from detection query columns to URL entities attached to the alert. +func (m *EntityMappingConfiguration) SetUrls(value []UrlEntityMappingable)() { + err := m.GetBackingStore().Set("urls", value) + if err != nil { + panic(err) + } +} +type EntityMappingConfigurationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAccounts()([]AccountEntityMappingable) + GetAmazonResources()([]AmazonResourceEntityMappingable) + GetAzureResources()([]AzureResourceEntityMappingable) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetCloudApplications()([]CloudApplicationEntityMappingable) + GetDns()([]DnsEntityMappingable) + GetFiles()([]FileEntityMappingable) + GetGoogleCloudResources()([]GoogleCloudResourceEntityMappingable) + GetHosts()([]HostEntityMappingable) + GetIps()([]IpEntityMappingable) + GetMailboxes()([]MailboxEntityMappingable) + GetMailClusters()([]MailClusterEntityMappingable) + GetMailMessages()([]MailMessageEntityMappingable) + GetOAuthApplications()([]OAuthApplicationEntityMappingable) + GetOdataType()(*string) + GetProcesses()([]ProcessEntityMappingable) + GetRegistryValues()([]RegistryValueEntityMappingable) + GetSecurityGroups()([]SecurityGroupEntityMappingable) + GetUrls()([]UrlEntityMappingable) + SetAccounts(value []AccountEntityMappingable)() + SetAmazonResources(value []AmazonResourceEntityMappingable)() + SetAzureResources(value []AzureResourceEntityMappingable)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetCloudApplications(value []CloudApplicationEntityMappingable)() + SetDns(value []DnsEntityMappingable)() + SetFiles(value []FileEntityMappingable)() + SetGoogleCloudResources(value []GoogleCloudResourceEntityMappingable)() + SetHosts(value []HostEntityMappingable)() + SetIps(value []IpEntityMappingable)() + SetMailboxes(value []MailboxEntityMappingable)() + SetMailClusters(value []MailClusterEntityMappingable)() + SetMailMessages(value []MailMessageEntityMappingable)() + SetOAuthApplications(value []OAuthApplicationEntityMappingable)() + SetOdataType(value *string)() + SetProcesses(value []ProcessEntityMappingable)() + SetRegistryValues(value []RegistryValueEntityMappingable)() + SetSecurityGroups(value []SecurityGroupEntityMappingable)() + SetUrls(value []UrlEntityMappingable)() +} diff --git a/models/security/eop_submission_feed_entity_audit_record.go b/models/security/eop_submission_feed_entity_audit_record.go new file mode 100644 index 00000000000..ce2f26c93ef --- /dev/null +++ b/models/security/eop_submission_feed_entity_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// EopSubmissionFeedEntityAuditRecord audit data for EOP Submission Feed Entity events. +type EopSubmissionFeedEntityAuditRecord struct { + AuditData +} +// NewEopSubmissionFeedEntityAuditRecord instantiates a new EopSubmissionFeedEntityAuditRecord and sets the default values. +func NewEopSubmissionFeedEntityAuditRecord()(*EopSubmissionFeedEntityAuditRecord) { + m := &EopSubmissionFeedEntityAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.eopSubmissionFeedEntityAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateEopSubmissionFeedEntityAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateEopSubmissionFeedEntityAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEopSubmissionFeedEntityAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *EopSubmissionFeedEntityAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *EopSubmissionFeedEntityAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type EopSubmissionFeedEntityAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/fabric_policy_record.go b/models/security/fabric_policy_record.go new file mode 100644 index 00000000000..a32076e2976 --- /dev/null +++ b/models/security/fabric_policy_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// FabricPolicyRecord audit data for Fabric Policy events. +type FabricPolicyRecord struct { + AuditData +} +// NewFabricPolicyRecord instantiates a new FabricPolicyRecord and sets the default values. +func NewFabricPolicyRecord()(*FabricPolicyRecord) { + m := &FabricPolicyRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.fabricPolicyRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateFabricPolicyRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateFabricPolicyRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewFabricPolicyRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *FabricPolicyRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *FabricPolicyRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type FabricPolicyRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/file_action.go b/models/security/file_action.go new file mode 100644 index 00000000000..17023d99e87 --- /dev/null +++ b/models/security/file_action.go @@ -0,0 +1,161 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type FileAction struct { + AutomatedAction +} +// NewFileAction instantiates a new FileAction and sets the default values. +func NewFileAction()(*FileAction) { + m := &FileAction{ + AutomatedAction: *NewAutomatedAction(), + } + odataTypeValue := "#microsoft.graph.security.fileAction" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateFileActionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateFileActionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewFileAction(), nil +} +// GetDeviceGroupNames gets the deviceGroupNames property value. Names of the device groups where the file action applies. +// returns a []string when successful +func (m *FileAction) GetDeviceGroupNames()([]string) { + val, err := m.GetBackingStore().Get("deviceGroupNames") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *FileAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AutomatedAction.GetFieldDeserializers() + res["deviceGroupNames"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetDeviceGroupNames(res) + } + return nil + } + res["sha1Column"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha1Column(val) + } + return nil + } + res["sha256Column"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha256Column(val) + } + return nil + } + return res +} +// GetSha1Column gets the sha1Column property value. Name of the hunting-query result column that contains the SHA-1 hash of the targeted file. +// returns a *string when successful +func (m *FileAction) GetSha1Column()(*string) { + val, err := m.GetBackingStore().Get("sha1Column") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSha256Column gets the sha256Column property value. Name of the hunting-query result column that contains the SHA-256 hash of the targeted file. +// returns a *string when successful +func (m *FileAction) GetSha256Column()(*string) { + val, err := m.GetBackingStore().Get("sha256Column") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *FileAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AutomatedAction.Serialize(writer) + if err != nil { + return err + } + if m.GetDeviceGroupNames() != nil { + err = writer.WriteCollectionOfStringValues("deviceGroupNames", m.GetDeviceGroupNames()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("sha1Column", m.GetSha1Column()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("sha256Column", m.GetSha256Column()) + if err != nil { + return err + } + } + return nil +} +// SetDeviceGroupNames sets the deviceGroupNames property value. Names of the device groups where the file action applies. +func (m *FileAction) SetDeviceGroupNames(value []string)() { + err := m.GetBackingStore().Set("deviceGroupNames", value) + if err != nil { + panic(err) + } +} +// SetSha1Column sets the sha1Column property value. Name of the hunting-query result column that contains the SHA-1 hash of the targeted file. +func (m *FileAction) SetSha1Column(value *string)() { + err := m.GetBackingStore().Set("sha1Column", value) + if err != nil { + panic(err) + } +} +// SetSha256Column sets the sha256Column property value. Name of the hunting-query result column that contains the SHA-256 hash of the targeted file. +func (m *FileAction) SetSha256Column(value *string)() { + err := m.GetBackingStore().Set("sha256Column", value) + if err != nil { + panic(err) + } +} +type FileActionable interface { + AutomatedActionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDeviceGroupNames()([]string) + GetSha1Column()(*string) + GetSha256Column()(*string) + SetDeviceGroupNames(value []string)() + SetSha1Column(value *string)() + SetSha256Column(value *string)() +} diff --git a/models/security/file_entity_mapping.go b/models/security/file_entity_mapping.go new file mode 100644 index 00000000000..c64f521c809 --- /dev/null +++ b/models/security/file_entity_mapping.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type FileEntityMapping struct { + EntityMapping +} +// NewFileEntityMapping instantiates a new FileEntityMapping and sets the default values. +func NewFileEntityMapping()(*FileEntityMapping) { + m := &FileEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.fileEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateFileEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateFileEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewFileEntityMapping(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *FileEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["nameColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNameColumn(val) + } + return nil + } + res["sha1Column"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha1Column(val) + } + return nil + } + res["sha256Column"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha256Column(val) + } + return nil + } + return res +} +// GetNameColumn gets the nameColumn property value. Name of the detection query column that maps to the name of the alert entity. +// returns a *string when successful +func (m *FileEntityMapping) GetNameColumn()(*string) { + val, err := m.GetBackingStore().Get("nameColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSha1Column gets the sha1Column property value. Name of the detection query column that maps to the SHA-1 hash of the alert entity. +// returns a *string when successful +func (m *FileEntityMapping) GetSha1Column()(*string) { + val, err := m.GetBackingStore().Get("sha1Column") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSha256Column gets the sha256Column property value. Name of the detection query column that maps to the SHA-256 hash of the alert entity. +// returns a *string when successful +func (m *FileEntityMapping) GetSha256Column()(*string) { + val, err := m.GetBackingStore().Get("sha256Column") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *FileEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("nameColumn", m.GetNameColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("sha1Column", m.GetSha1Column()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("sha256Column", m.GetSha256Column()) + if err != nil { + return err + } + } + return nil +} +// SetNameColumn sets the nameColumn property value. Name of the detection query column that maps to the name of the alert entity. +func (m *FileEntityMapping) SetNameColumn(value *string)() { + err := m.GetBackingStore().Set("nameColumn", value) + if err != nil { + panic(err) + } +} +// SetSha1Column sets the sha1Column property value. Name of the detection query column that maps to the SHA-1 hash of the alert entity. +func (m *FileEntityMapping) SetSha1Column(value *string)() { + err := m.GetBackingStore().Set("sha1Column", value) + if err != nil { + panic(err) + } +} +// SetSha256Column sets the sha256Column property value. Name of the detection query column that maps to the SHA-256 hash of the alert entity. +func (m *FileEntityMapping) SetSha256Column(value *string)() { + err := m.GetBackingStore().Set("sha256Column", value) + if err != nil { + panic(err) + } +} +type FileEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetNameColumn()(*string) + GetSha1Column()(*string) + GetSha256Column()(*string) + SetNameColumn(value *string)() + SetSha1Column(value *string)() + SetSha256Column(value *string)() +} diff --git a/models/security/google_cloud_resource_entity_mapping.go b/models/security/google_cloud_resource_entity_mapping.go new file mode 100644 index 00000000000..28c60d3cc7c --- /dev/null +++ b/models/security/google_cloud_resource_entity_mapping.go @@ -0,0 +1,81 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type GoogleCloudResourceEntityMapping struct { + EntityMapping +} +// NewGoogleCloudResourceEntityMapping instantiates a new GoogleCloudResourceEntityMapping and sets the default values. +func NewGoogleCloudResourceEntityMapping()(*GoogleCloudResourceEntityMapping) { + m := &GoogleCloudResourceEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.googleCloudResourceEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateGoogleCloudResourceEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateGoogleCloudResourceEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewGoogleCloudResourceEntityMapping(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *GoogleCloudResourceEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["fullResourceNameColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFullResourceNameColumn(val) + } + return nil + } + return res +} +// GetFullResourceNameColumn gets the fullResourceNameColumn property value. Name of the detection query column that maps to the full resource name of the alert entity. +// returns a *string when successful +func (m *GoogleCloudResourceEntityMapping) GetFullResourceNameColumn()(*string) { + val, err := m.GetBackingStore().Get("fullResourceNameColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *GoogleCloudResourceEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("fullResourceNameColumn", m.GetFullResourceNameColumn()) + if err != nil { + return err + } + } + return nil +} +// SetFullResourceNameColumn sets the fullResourceNameColumn property value. Name of the detection query column that maps to the full resource name of the alert entity. +func (m *GoogleCloudResourceEntityMapping) SetFullResourceNameColumn(value *string)() { + err := m.GetBackingStore().Set("fullResourceNameColumn", value) + if err != nil { + panic(err) + } +} +type GoogleCloudResourceEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetFullResourceNameColumn()(*string) + SetFullResourceNameColumn(value *string)() +} diff --git a/models/security/host_entity_mapping.go b/models/security/host_entity_mapping.go new file mode 100644 index 00000000000..3e7b0e8bc32 --- /dev/null +++ b/models/security/host_entity_mapping.go @@ -0,0 +1,229 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type HostEntityMapping struct { + EntityMapping +} +// NewHostEntityMapping instantiates a new HostEntityMapping and sets the default values. +func NewHostEntityMapping()(*HostEntityMapping) { + m := &HostEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.hostEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateHostEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateHostEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewHostEntityMapping(), nil +} +// GetDeviceIdColumn gets the deviceIdColumn property value. Name of the detection query column that maps to the device ID of the alert entity. +// returns a *string when successful +func (m *HostEntityMapping) GetDeviceIdColumn()(*string) { + val, err := m.GetBackingStore().Get("deviceIdColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDnsDomainColumn gets the dnsDomainColumn property value. Name of the detection query column that maps to the DNS domain of the alert entity. +// returns a *string when successful +func (m *HostEntityMapping) GetDnsDomainColumn()(*string) { + val, err := m.GetBackingStore().Get("dnsDomainColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *HostEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["deviceIdColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDeviceIdColumn(val) + } + return nil + } + res["dnsDomainColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDnsDomainColumn(val) + } + return nil + } + res["nameColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNameColumn(val) + } + return nil + } + res["netBiosNameColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNetBiosNameColumn(val) + } + return nil + } + res["ntDomainColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNtDomainColumn(val) + } + return nil + } + return res +} +// GetNameColumn gets the nameColumn property value. Name of the detection query column that maps to the name of the alert entity. +// returns a *string when successful +func (m *HostEntityMapping) GetNameColumn()(*string) { + val, err := m.GetBackingStore().Get("nameColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetNetBiosNameColumn gets the netBiosNameColumn property value. Name of the detection query column that maps to the NetBIOS name of the alert entity. +// returns a *string when successful +func (m *HostEntityMapping) GetNetBiosNameColumn()(*string) { + val, err := m.GetBackingStore().Get("netBiosNameColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetNtDomainColumn gets the ntDomainColumn property value. Name of the detection query column that maps to the NT domain of the alert entity. +// returns a *string when successful +func (m *HostEntityMapping) GetNtDomainColumn()(*string) { + val, err := m.GetBackingStore().Get("ntDomainColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *HostEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("deviceIdColumn", m.GetDeviceIdColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("dnsDomainColumn", m.GetDnsDomainColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("nameColumn", m.GetNameColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("netBiosNameColumn", m.GetNetBiosNameColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("ntDomainColumn", m.GetNtDomainColumn()) + if err != nil { + return err + } + } + return nil +} +// SetDeviceIdColumn sets the deviceIdColumn property value. Name of the detection query column that maps to the device ID of the alert entity. +func (m *HostEntityMapping) SetDeviceIdColumn(value *string)() { + err := m.GetBackingStore().Set("deviceIdColumn", value) + if err != nil { + panic(err) + } +} +// SetDnsDomainColumn sets the dnsDomainColumn property value. Name of the detection query column that maps to the DNS domain of the alert entity. +func (m *HostEntityMapping) SetDnsDomainColumn(value *string)() { + err := m.GetBackingStore().Set("dnsDomainColumn", value) + if err != nil { + panic(err) + } +} +// SetNameColumn sets the nameColumn property value. Name of the detection query column that maps to the name of the alert entity. +func (m *HostEntityMapping) SetNameColumn(value *string)() { + err := m.GetBackingStore().Set("nameColumn", value) + if err != nil { + panic(err) + } +} +// SetNetBiosNameColumn sets the netBiosNameColumn property value. Name of the detection query column that maps to the NetBIOS name of the alert entity. +func (m *HostEntityMapping) SetNetBiosNameColumn(value *string)() { + err := m.GetBackingStore().Set("netBiosNameColumn", value) + if err != nil { + panic(err) + } +} +// SetNtDomainColumn sets the ntDomainColumn property value. Name of the detection query column that maps to the NT domain of the alert entity. +func (m *HostEntityMapping) SetNtDomainColumn(value *string)() { + err := m.GetBackingStore().Set("ntDomainColumn", value) + if err != nil { + panic(err) + } +} +type HostEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDeviceIdColumn()(*string) + GetDnsDomainColumn()(*string) + GetNameColumn()(*string) + GetNetBiosNameColumn()(*string) + GetNtDomainColumn()(*string) + SetDeviceIdColumn(value *string)() + SetDnsDomainColumn(value *string)() + SetNameColumn(value *string)() + SetNetBiosNameColumn(value *string)() + SetNtDomainColumn(value *string)() +} diff --git a/models/security/hunting_schema_built_in_function.go b/models/security/hunting_schema_built_in_function.go new file mode 100644 index 00000000000..967c4d7cfd6 --- /dev/null +++ b/models/security/hunting_schema_built_in_function.go @@ -0,0 +1,356 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type HuntingSchemaBuiltInFunction struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewHuntingSchemaBuiltInFunction instantiates a new HuntingSchemaBuiltInFunction and sets the default values. +func NewHuntingSchemaBuiltInFunction()(*HuntingSchemaBuiltInFunction) { + m := &HuntingSchemaBuiltInFunction{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateHuntingSchemaBuiltInFunctionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateHuntingSchemaBuiltInFunctionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewHuntingSchemaBuiltInFunction(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *HuntingSchemaBuiltInFunction) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *HuntingSchemaBuiltInFunction) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetDocumentation gets the documentation property value. Description of the function and its usage. +// returns a *string when successful +func (m *HuntingSchemaBuiltInFunction) GetDocumentation()(*string) { + val, err := m.GetBackingStore().Get("documentation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *HuntingSchemaBuiltInFunction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["documentation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDocumentation(val) + } + return nil + } + res["huntingFunctionId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetHuntingFunctionId(val) + } + return nil + } + res["inputParameters"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateHuntingSchemaFunctionParameterFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]HuntingSchemaFunctionParameterable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(HuntingSchemaFunctionParameterable) + } + } + m.SetInputParameters(res) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["outputColumns"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateHuntingSchemaTableColumnFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]HuntingSchemaTableColumnable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(HuntingSchemaTableColumnable) + } + } + m.SetOutputColumns(res) + } + return nil + } + res["path"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPath(val) + } + return nil + } + return res +} +// GetHuntingFunctionId gets the huntingFunctionId property value. Unique identifier for the function. Required. +// returns a *int64 when successful +func (m *HuntingSchemaBuiltInFunction) GetHuntingFunctionId()(*int64) { + val, err := m.GetBackingStore().Get("huntingFunctionId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetInputParameters gets the inputParameters property value. Collection of input parameters accepted by the function. +// returns a []HuntingSchemaFunctionParameterable when successful +func (m *HuntingSchemaBuiltInFunction) GetInputParameters()([]HuntingSchemaFunctionParameterable) { + val, err := m.GetBackingStore().Get("inputParameters") + if err != nil { + panic(err) + } + if val != nil { + return val.([]HuntingSchemaFunctionParameterable) + } + return nil +} +// GetName gets the name property value. Name of the function. Required. +// returns a *string when successful +func (m *HuntingSchemaBuiltInFunction) GetName()(*string) { + val, err := m.GetBackingStore().Get("name") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *HuntingSchemaBuiltInFunction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOutputColumns gets the outputColumns property value. Collection of columns returned by the function. +// returns a []HuntingSchemaTableColumnable when successful +func (m *HuntingSchemaBuiltInFunction) GetOutputColumns()([]HuntingSchemaTableColumnable) { + val, err := m.GetBackingStore().Get("outputColumns") + if err != nil { + panic(err) + } + if val != nil { + return val.([]HuntingSchemaTableColumnable) + } + return nil +} +// GetPath gets the path property value. Folder path of the function. +// returns a *string when successful +func (m *HuntingSchemaBuiltInFunction) GetPath()(*string) { + val, err := m.GetBackingStore().Get("path") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *HuntingSchemaBuiltInFunction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("documentation", m.GetDocumentation()) + if err != nil { + return err + } + } + if m.GetInputParameters() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetInputParameters())) + for i, v := range m.GetInputParameters() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("inputParameters", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetOutputColumns() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetOutputColumns())) + for i, v := range m.GetOutputColumns() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("outputColumns", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("path", m.GetPath()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *HuntingSchemaBuiltInFunction) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *HuntingSchemaBuiltInFunction) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetDocumentation sets the documentation property value. Description of the function and its usage. +func (m *HuntingSchemaBuiltInFunction) SetDocumentation(value *string)() { + err := m.GetBackingStore().Set("documentation", value) + if err != nil { + panic(err) + } +} +// SetHuntingFunctionId sets the huntingFunctionId property value. Unique identifier for the function. Required. +func (m *HuntingSchemaBuiltInFunction) SetHuntingFunctionId(value *int64)() { + err := m.GetBackingStore().Set("huntingFunctionId", value) + if err != nil { + panic(err) + } +} +// SetInputParameters sets the inputParameters property value. Collection of input parameters accepted by the function. +func (m *HuntingSchemaBuiltInFunction) SetInputParameters(value []HuntingSchemaFunctionParameterable)() { + err := m.GetBackingStore().Set("inputParameters", value) + if err != nil { + panic(err) + } +} +// SetName sets the name property value. Name of the function. Required. +func (m *HuntingSchemaBuiltInFunction) SetName(value *string)() { + err := m.GetBackingStore().Set("name", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *HuntingSchemaBuiltInFunction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetOutputColumns sets the outputColumns property value. Collection of columns returned by the function. +func (m *HuntingSchemaBuiltInFunction) SetOutputColumns(value []HuntingSchemaTableColumnable)() { + err := m.GetBackingStore().Set("outputColumns", value) + if err != nil { + panic(err) + } +} +// SetPath sets the path property value. Folder path of the function. +func (m *HuntingSchemaBuiltInFunction) SetPath(value *string)() { + err := m.GetBackingStore().Set("path", value) + if err != nil { + panic(err) + } +} +type HuntingSchemaBuiltInFunctionable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDocumentation()(*string) + GetHuntingFunctionId()(*int64) + GetInputParameters()([]HuntingSchemaFunctionParameterable) + GetName()(*string) + GetOdataType()(*string) + GetOutputColumns()([]HuntingSchemaTableColumnable) + GetPath()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDocumentation(value *string)() + SetHuntingFunctionId(value *int64)() + SetInputParameters(value []HuntingSchemaFunctionParameterable)() + SetName(value *string)() + SetOdataType(value *string)() + SetOutputColumns(value []HuntingSchemaTableColumnable)() + SetPath(value *string)() +} diff --git a/models/security/hunting_schema_function_parameter.go b/models/security/hunting_schema_function_parameter.go new file mode 100644 index 00000000000..65741aaa26f --- /dev/null +++ b/models/security/hunting_schema_function_parameter.go @@ -0,0 +1,227 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type HuntingSchemaFunctionParameter struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewHuntingSchemaFunctionParameter instantiates a new HuntingSchemaFunctionParameter and sets the default values. +func NewHuntingSchemaFunctionParameter()(*HuntingSchemaFunctionParameter) { + m := &HuntingSchemaFunctionParameter{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateHuntingSchemaFunctionParameterFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateHuntingSchemaFunctionParameterFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewHuntingSchemaFunctionParameter(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *HuntingSchemaFunctionParameter) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *HuntingSchemaFunctionParameter) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetCslType gets the cslType property value. Data type of the parameter in Kusto Query Language (KQL) CSL format. Required. +// returns a *string when successful +func (m *HuntingSchemaFunctionParameter) GetCslType()(*string) { + val, err := m.GetBackingStore().Get("cslType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDefaultValue gets the defaultValue property value. Default value used when the caller doesn't provide a value for this parameter. +// returns a *string when successful +func (m *HuntingSchemaFunctionParameter) GetDefaultValue()(*string) { + val, err := m.GetBackingStore().Get("defaultValue") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *HuntingSchemaFunctionParameter) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["cslType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCslType(val) + } + return nil + } + res["defaultValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDefaultValue(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the parameter. Required. +// returns a *string when successful +func (m *HuntingSchemaFunctionParameter) GetName()(*string) { + val, err := m.GetBackingStore().Get("name") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *HuntingSchemaFunctionParameter) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *HuntingSchemaFunctionParameter) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("cslType", m.GetCslType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("defaultValue", m.GetDefaultValue()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *HuntingSchemaFunctionParameter) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *HuntingSchemaFunctionParameter) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetCslType sets the cslType property value. Data type of the parameter in Kusto Query Language (KQL) CSL format. Required. +func (m *HuntingSchemaFunctionParameter) SetCslType(value *string)() { + err := m.GetBackingStore().Set("cslType", value) + if err != nil { + panic(err) + } +} +// SetDefaultValue sets the defaultValue property value. Default value used when the caller doesn't provide a value for this parameter. +func (m *HuntingSchemaFunctionParameter) SetDefaultValue(value *string)() { + err := m.GetBackingStore().Set("defaultValue", value) + if err != nil { + panic(err) + } +} +// SetName sets the name property value. Name of the parameter. Required. +func (m *HuntingSchemaFunctionParameter) SetName(value *string)() { + err := m.GetBackingStore().Set("name", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *HuntingSchemaFunctionParameter) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type HuntingSchemaFunctionParameterable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetCslType()(*string) + GetDefaultValue()(*string) + GetName()(*string) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetCslType(value *string)() + SetDefaultValue(value *string)() + SetName(value *string)() + SetOdataType(value *string)() +} diff --git a/models/security/hunting_schema_functions.go b/models/security/hunting_schema_functions.go new file mode 100644 index 00000000000..76c1252b146 --- /dev/null +++ b/models/security/hunting_schema_functions.go @@ -0,0 +1,214 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type HuntingSchemaFunctions struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewHuntingSchemaFunctions instantiates a new HuntingSchemaFunctions and sets the default values. +func NewHuntingSchemaFunctions()(*HuntingSchemaFunctions) { + m := &HuntingSchemaFunctions{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateHuntingSchemaFunctionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateHuntingSchemaFunctionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewHuntingSchemaFunctions(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *HuntingSchemaFunctions) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *HuntingSchemaFunctions) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetBuiltInFunctions gets the builtInFunctions property value. Prebuilt functions included with Microsoft Defender XDR advanced hunting. +// returns a []HuntingSchemaBuiltInFunctionable when successful +func (m *HuntingSchemaFunctions) GetBuiltInFunctions()([]HuntingSchemaBuiltInFunctionable) { + val, err := m.GetBackingStore().Get("builtInFunctions") + if err != nil { + panic(err) + } + if val != nil { + return val.([]HuntingSchemaBuiltInFunctionable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *HuntingSchemaFunctions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["builtInFunctions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateHuntingSchemaBuiltInFunctionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]HuntingSchemaBuiltInFunctionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(HuntingSchemaBuiltInFunctionable) + } + } + m.SetBuiltInFunctions(res) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["savedFunctions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateHuntingSchemaSavedFunctionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]HuntingSchemaSavedFunctionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(HuntingSchemaSavedFunctionable) + } + } + m.SetSavedFunctions(res) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *HuntingSchemaFunctions) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSavedFunctions gets the savedFunctions property value. Custom functions created by users, including shared functions accessible to all tenant users and personal functions visible only to their creator. +// returns a []HuntingSchemaSavedFunctionable when successful +func (m *HuntingSchemaFunctions) GetSavedFunctions()([]HuntingSchemaSavedFunctionable) { + val, err := m.GetBackingStore().Get("savedFunctions") + if err != nil { + panic(err) + } + if val != nil { + return val.([]HuntingSchemaSavedFunctionable) + } + return nil +} +// Serialize serializes information the current object +func (m *HuntingSchemaFunctions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetBuiltInFunctions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetBuiltInFunctions())) + for i, v := range m.GetBuiltInFunctions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("builtInFunctions", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetSavedFunctions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSavedFunctions())) + for i, v := range m.GetSavedFunctions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("savedFunctions", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *HuntingSchemaFunctions) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *HuntingSchemaFunctions) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetBuiltInFunctions sets the builtInFunctions property value. Prebuilt functions included with Microsoft Defender XDR advanced hunting. +func (m *HuntingSchemaFunctions) SetBuiltInFunctions(value []HuntingSchemaBuiltInFunctionable)() { + err := m.GetBackingStore().Set("builtInFunctions", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *HuntingSchemaFunctions) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetSavedFunctions sets the savedFunctions property value. Custom functions created by users, including shared functions accessible to all tenant users and personal functions visible only to their creator. +func (m *HuntingSchemaFunctions) SetSavedFunctions(value []HuntingSchemaSavedFunctionable)() { + err := m.GetBackingStore().Set("savedFunctions", value) + if err != nil { + panic(err) + } +} +type HuntingSchemaFunctionsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBuiltInFunctions()([]HuntingSchemaBuiltInFunctionable) + GetOdataType()(*string) + GetSavedFunctions()([]HuntingSchemaSavedFunctionable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBuiltInFunctions(value []HuntingSchemaBuiltInFunctionable)() + SetOdataType(value *string)() + SetSavedFunctions(value []HuntingSchemaSavedFunctionable)() +} diff --git a/models/security/hunting_schema_result.go b/models/security/hunting_schema_result.go new file mode 100644 index 00000000000..67082c73507 --- /dev/null +++ b/models/security/hunting_schema_result.go @@ -0,0 +1,202 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type HuntingSchemaResult struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewHuntingSchemaResult instantiates a new HuntingSchemaResult and sets the default values. +func NewHuntingSchemaResult()(*HuntingSchemaResult) { + m := &HuntingSchemaResult{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateHuntingSchemaResultFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateHuntingSchemaResultFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewHuntingSchemaResult(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *HuntingSchemaResult) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *HuntingSchemaResult) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *HuntingSchemaResult) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["functions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateHuntingSchemaFunctionsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetFunctions(val.(HuntingSchemaFunctionsable)) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["tables"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateHuntingSchemaTableFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]HuntingSchemaTableable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(HuntingSchemaTableable) + } + } + m.SetTables(res) + } + return nil + } + return res +} +// GetFunctions gets the functions property value. Object containing the built-in functions and saved functions available to the user. +// returns a HuntingSchemaFunctionsable when successful +func (m *HuntingSchemaResult) GetFunctions()(HuntingSchemaFunctionsable) { + val, err := m.GetBackingStore().Get("functions") + if err != nil { + panic(err) + } + if val != nil { + return val.(HuntingSchemaFunctionsable) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *HuntingSchemaResult) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTables gets the tables property value. Collection of advanced hunting tables the user is authorized to query. +// returns a []HuntingSchemaTableable when successful +func (m *HuntingSchemaResult) GetTables()([]HuntingSchemaTableable) { + val, err := m.GetBackingStore().Get("tables") + if err != nil { + panic(err) + } + if val != nil { + return val.([]HuntingSchemaTableable) + } + return nil +} +// Serialize serializes information the current object +func (m *HuntingSchemaResult) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("functions", m.GetFunctions()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetTables() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTables())) + for i, v := range m.GetTables() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("tables", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *HuntingSchemaResult) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *HuntingSchemaResult) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetFunctions sets the functions property value. Object containing the built-in functions and saved functions available to the user. +func (m *HuntingSchemaResult) SetFunctions(value HuntingSchemaFunctionsable)() { + err := m.GetBackingStore().Set("functions", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *HuntingSchemaResult) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetTables sets the tables property value. Collection of advanced hunting tables the user is authorized to query. +func (m *HuntingSchemaResult) SetTables(value []HuntingSchemaTableable)() { + err := m.GetBackingStore().Set("tables", value) + if err != nil { + panic(err) + } +} +type HuntingSchemaResultable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetFunctions()(HuntingSchemaFunctionsable) + GetOdataType()(*string) + GetTables()([]HuntingSchemaTableable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetFunctions(value HuntingSchemaFunctionsable)() + SetOdataType(value *string)() + SetTables(value []HuntingSchemaTableable)() +} diff --git a/models/security/hunting_schema_saved_function.go b/models/security/hunting_schema_saved_function.go new file mode 100644 index 00000000000..2a36220d211 --- /dev/null +++ b/models/security/hunting_schema_saved_function.go @@ -0,0 +1,468 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type HuntingSchemaSavedFunction struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewHuntingSchemaSavedFunction instantiates a new HuntingSchemaSavedFunction and sets the default values. +func NewHuntingSchemaSavedFunction()(*HuntingSchemaSavedFunction) { + m := &HuntingSchemaSavedFunction{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateHuntingSchemaSavedFunctionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateHuntingSchemaSavedFunctionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewHuntingSchemaSavedFunction(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *HuntingSchemaSavedFunction) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *HuntingSchemaSavedFunction) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetCreatedBy gets the createdBy property value. Identity of the user who created the function. +// returns a *string when successful +func (m *HuntingSchemaSavedFunction) GetCreatedBy()(*string) { + val, err := m.GetBackingStore().Get("createdBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDescription gets the description property value. Description of the function purpose and usage. +// returns a *string when successful +func (m *HuntingSchemaSavedFunction) GetDescription()(*string) { + val, err := m.GetBackingStore().Get("description") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *HuntingSchemaSavedFunction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedBy(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["huntingFunctionId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetHuntingFunctionId(val) + } + return nil + } + res["inputParameters"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateHuntingSchemaFunctionParameterFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]HuntingSchemaFunctionParameterable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(HuntingSchemaFunctionParameterable) + } + } + m.SetInputParameters(res) + } + return nil + } + res["lastModifiedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLastModifiedBy(val) + } + return nil + } + res["lastModifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastModifiedDateTime(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["outputColumns"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateHuntingSchemaTableColumnFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]HuntingSchemaTableColumnable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(HuntingSchemaTableColumnable) + } + } + m.SetOutputColumns(res) + } + return nil + } + res["path"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPath(val) + } + return nil + } + return res +} +// GetHuntingFunctionId gets the huntingFunctionId property value. Unique identifier for the function. Required. +// returns a *int64 when successful +func (m *HuntingSchemaSavedFunction) GetHuntingFunctionId()(*int64) { + val, err := m.GetBackingStore().Get("huntingFunctionId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetInputParameters gets the inputParameters property value. Collection of input parameters accepted by the function. +// returns a []HuntingSchemaFunctionParameterable when successful +func (m *HuntingSchemaSavedFunction) GetInputParameters()([]HuntingSchemaFunctionParameterable) { + val, err := m.GetBackingStore().Get("inputParameters") + if err != nil { + panic(err) + } + if val != nil { + return val.([]HuntingSchemaFunctionParameterable) + } + return nil +} +// GetLastModifiedBy gets the lastModifiedBy property value. Identity of the user who last modified the function. +// returns a *string when successful +func (m *HuntingSchemaSavedFunction) GetLastModifiedBy()(*string) { + val, err := m.GetBackingStore().Get("lastModifiedBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Date and time when the function was last modified. +// returns a *Time when successful +func (m *HuntingSchemaSavedFunction) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastModifiedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetName gets the name property value. Name of the function. Required. +// returns a *string when successful +func (m *HuntingSchemaSavedFunction) GetName()(*string) { + val, err := m.GetBackingStore().Get("name") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *HuntingSchemaSavedFunction) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOutputColumns gets the outputColumns property value. Collection of columns returned by the function. +// returns a []HuntingSchemaTableColumnable when successful +func (m *HuntingSchemaSavedFunction) GetOutputColumns()([]HuntingSchemaTableColumnable) { + val, err := m.GetBackingStore().Get("outputColumns") + if err != nil { + panic(err) + } + if val != nil { + return val.([]HuntingSchemaTableColumnable) + } + return nil +} +// GetPath gets the path property value. Folder path where the function is saved. +// returns a *string when successful +func (m *HuntingSchemaSavedFunction) GetPath()(*string) { + val, err := m.GetBackingStore().Get("path") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *HuntingSchemaSavedFunction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("createdBy", m.GetCreatedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + if m.GetInputParameters() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetInputParameters())) + for i, v := range m.GetInputParameters() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("inputParameters", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("lastModifiedBy", m.GetLastModifiedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("lastModifiedDateTime", m.GetLastModifiedDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetOutputColumns() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetOutputColumns())) + for i, v := range m.GetOutputColumns() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("outputColumns", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("path", m.GetPath()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *HuntingSchemaSavedFunction) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *HuntingSchemaSavedFunction) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetCreatedBy sets the createdBy property value. Identity of the user who created the function. +func (m *HuntingSchemaSavedFunction) SetCreatedBy(value *string)() { + err := m.GetBackingStore().Set("createdBy", value) + if err != nil { + panic(err) + } +} +// SetDescription sets the description property value. Description of the function purpose and usage. +func (m *HuntingSchemaSavedFunction) SetDescription(value *string)() { + err := m.GetBackingStore().Set("description", value) + if err != nil { + panic(err) + } +} +// SetHuntingFunctionId sets the huntingFunctionId property value. Unique identifier for the function. Required. +func (m *HuntingSchemaSavedFunction) SetHuntingFunctionId(value *int64)() { + err := m.GetBackingStore().Set("huntingFunctionId", value) + if err != nil { + panic(err) + } +} +// SetInputParameters sets the inputParameters property value. Collection of input parameters accepted by the function. +func (m *HuntingSchemaSavedFunction) SetInputParameters(value []HuntingSchemaFunctionParameterable)() { + err := m.GetBackingStore().Set("inputParameters", value) + if err != nil { + panic(err) + } +} +// SetLastModifiedBy sets the lastModifiedBy property value. Identity of the user who last modified the function. +func (m *HuntingSchemaSavedFunction) SetLastModifiedBy(value *string)() { + err := m.GetBackingStore().Set("lastModifiedBy", value) + if err != nil { + panic(err) + } +} +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Date and time when the function was last modified. +func (m *HuntingSchemaSavedFunction) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastModifiedDateTime", value) + if err != nil { + panic(err) + } +} +// SetName sets the name property value. Name of the function. Required. +func (m *HuntingSchemaSavedFunction) SetName(value *string)() { + err := m.GetBackingStore().Set("name", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *HuntingSchemaSavedFunction) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetOutputColumns sets the outputColumns property value. Collection of columns returned by the function. +func (m *HuntingSchemaSavedFunction) SetOutputColumns(value []HuntingSchemaTableColumnable)() { + err := m.GetBackingStore().Set("outputColumns", value) + if err != nil { + panic(err) + } +} +// SetPath sets the path property value. Folder path where the function is saved. +func (m *HuntingSchemaSavedFunction) SetPath(value *string)() { + err := m.GetBackingStore().Set("path", value) + if err != nil { + panic(err) + } +} +type HuntingSchemaSavedFunctionable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetCreatedBy()(*string) + GetDescription()(*string) + GetHuntingFunctionId()(*int64) + GetInputParameters()([]HuntingSchemaFunctionParameterable) + GetLastModifiedBy()(*string) + GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetName()(*string) + GetOdataType()(*string) + GetOutputColumns()([]HuntingSchemaTableColumnable) + GetPath()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetCreatedBy(value *string)() + SetDescription(value *string)() + SetHuntingFunctionId(value *int64)() + SetInputParameters(value []HuntingSchemaFunctionParameterable)() + SetLastModifiedBy(value *string)() + SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetName(value *string)() + SetOdataType(value *string)() + SetOutputColumns(value []HuntingSchemaTableColumnable)() + SetPath(value *string)() +} diff --git a/models/security/hunting_schema_table.go b/models/security/hunting_schema_table.go new file mode 100644 index 00000000000..6dbc554603e --- /dev/null +++ b/models/security/hunting_schema_table.go @@ -0,0 +1,239 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type HuntingSchemaTable struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewHuntingSchemaTable instantiates a new HuntingSchemaTable and sets the default values. +func NewHuntingSchemaTable()(*HuntingSchemaTable) { + m := &HuntingSchemaTable{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateHuntingSchemaTableFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateHuntingSchemaTableFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewHuntingSchemaTable(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *HuntingSchemaTable) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *HuntingSchemaTable) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetColumns gets the columns property value. Collection of columns in the table with their data types. +// returns a []HuntingSchemaTableColumnable when successful +func (m *HuntingSchemaTable) GetColumns()([]HuntingSchemaTableColumnable) { + val, err := m.GetBackingStore().Get("columns") + if err != nil { + panic(err) + } + if val != nil { + return val.([]HuntingSchemaTableColumnable) + } + return nil +} +// GetDescription gets the description property value. Description of what data the table contains. +// returns a *string when successful +func (m *HuntingSchemaTable) GetDescription()(*string) { + val, err := m.GetBackingStore().Get("description") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *HuntingSchemaTable) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["columns"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateHuntingSchemaTableColumnFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]HuntingSchemaTableColumnable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(HuntingSchemaTableColumnable) + } + } + m.SetColumns(res) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the table. Required. +// returns a *string when successful +func (m *HuntingSchemaTable) GetName()(*string) { + val, err := m.GetBackingStore().Get("name") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *HuntingSchemaTable) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *HuntingSchemaTable) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetColumns() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetColumns())) + for i, v := range m.GetColumns() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("columns", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *HuntingSchemaTable) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *HuntingSchemaTable) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetColumns sets the columns property value. Collection of columns in the table with their data types. +func (m *HuntingSchemaTable) SetColumns(value []HuntingSchemaTableColumnable)() { + err := m.GetBackingStore().Set("columns", value) + if err != nil { + panic(err) + } +} +// SetDescription sets the description property value. Description of what data the table contains. +func (m *HuntingSchemaTable) SetDescription(value *string)() { + err := m.GetBackingStore().Set("description", value) + if err != nil { + panic(err) + } +} +// SetName sets the name property value. Name of the table. Required. +func (m *HuntingSchemaTable) SetName(value *string)() { + err := m.GetBackingStore().Set("name", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *HuntingSchemaTable) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type HuntingSchemaTableable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetColumns()([]HuntingSchemaTableColumnable) + GetDescription()(*string) + GetName()(*string) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetColumns(value []HuntingSchemaTableColumnable)() + SetDescription(value *string)() + SetName(value *string)() + SetOdataType(value *string)() +} diff --git a/models/security/hunting_schema_table_column.go b/models/security/hunting_schema_table_column.go new file mode 100644 index 00000000000..424c9e15159 --- /dev/null +++ b/models/security/hunting_schema_table_column.go @@ -0,0 +1,227 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type HuntingSchemaTableColumn struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewHuntingSchemaTableColumn instantiates a new HuntingSchemaTableColumn and sets the default values. +func NewHuntingSchemaTableColumn()(*HuntingSchemaTableColumn) { + m := &HuntingSchemaTableColumn{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateHuntingSchemaTableColumnFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateHuntingSchemaTableColumnFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewHuntingSchemaTableColumn(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *HuntingSchemaTableColumn) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *HuntingSchemaTableColumn) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetDataType gets the dataType property value. Data type of the column (for example, DateTime, String). Required. +// returns a *string when successful +func (m *HuntingSchemaTableColumn) GetDataType()(*string) { + val, err := m.GetBackingStore().Get("dataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDescription gets the description property value. Description of the column. +// returns a *string when successful +func (m *HuntingSchemaTableColumn) GetDescription()(*string) { + val, err := m.GetBackingStore().Get("description") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *HuntingSchemaTableColumn) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["dataType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDataType(val) + } + return nil + } + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetName gets the name property value. Name of the column. Required. +// returns a *string when successful +func (m *HuntingSchemaTableColumn) GetName()(*string) { + val, err := m.GetBackingStore().Get("name") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *HuntingSchemaTableColumn) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *HuntingSchemaTableColumn) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("dataType", m.GetDataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *HuntingSchemaTableColumn) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *HuntingSchemaTableColumn) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetDataType sets the dataType property value. Data type of the column (for example, DateTime, String). Required. +func (m *HuntingSchemaTableColumn) SetDataType(value *string)() { + err := m.GetBackingStore().Set("dataType", value) + if err != nil { + panic(err) + } +} +// SetDescription sets the description property value. Description of the column. +func (m *HuntingSchemaTableColumn) SetDescription(value *string)() { + err := m.GetBackingStore().Set("description", value) + if err != nil { + panic(err) + } +} +// SetName sets the name property value. Name of the column. Required. +func (m *HuntingSchemaTableColumn) SetName(value *string)() { + err := m.GetBackingStore().Set("name", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *HuntingSchemaTableColumn) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type HuntingSchemaTableColumnable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDataType()(*string) + GetDescription()(*string) + GetName()(*string) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDataType(value *string)() + SetDescription(value *string)() + SetName(value *string)() + SetOdataType(value *string)() +} diff --git a/models/security/identity_container.go b/models/security/identity_container.go index 2c1fd2935d5..b6b767b49fd 100644 --- a/models/security/identity_container.go +++ b/models/security/identity_container.go @@ -177,7 +177,7 @@ func (m *IdentityContainer) GetSensorCandidates()([]SensorCandidateable) { } return nil } -// GetSensorMigration gets the sensorMigration property value. The sensorMigration property +// GetSensorMigration gets the sensorMigration property value. Represents Microsoft Defender for Identity sensors that can be migrated to the unified security portal. // returns a []SensorMigrationable when successful func (m *IdentityContainer) GetSensorMigration()([]SensorMigrationable) { val, err := m.GetBackingStore().Get("sensorMigration") @@ -321,7 +321,7 @@ func (m *IdentityContainer) SetSensorCandidates(value []SensorCandidateable)() { panic(err) } } -// SetSensorMigration sets the sensorMigration property value. The sensorMigration property +// SetSensorMigration sets the sensorMigration property value. Represents Microsoft Defender for Identity sensors that can be migrated to the unified security portal. func (m *IdentityContainer) SetSensorMigration(value []SensorMigrationable)() { err := m.GetBackingStore().Set("sensorMigration", value) if err != nil { diff --git a/models/security/ip_entity_mapping.go b/models/security/ip_entity_mapping.go new file mode 100644 index 00000000000..7602259f6f0 --- /dev/null +++ b/models/security/ip_entity_mapping.go @@ -0,0 +1,118 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type IpEntityMapping struct { + EntityMapping +} +// NewIpEntityMapping instantiates a new IpEntityMapping and sets the default values. +func NewIpEntityMapping()(*IpEntityMapping) { + m := &IpEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.ipEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateIpEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateIpEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewIpEntityMapping(), nil +} +// GetAddressColumn gets the addressColumn property value. Name of the detection query column that maps to the IP address of the alert entity. +// returns a *string when successful +func (m *IpEntityMapping) GetAddressColumn()(*string) { + val, err := m.GetBackingStore().Get("addressColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *IpEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["addressColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAddressColumn(val) + } + return nil + } + res["scopeColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetScopeColumn(val) + } + return nil + } + return res +} +// GetScopeColumn gets the scopeColumn property value. Name of the detection query column that maps to the scope of the alert entity. +// returns a *string when successful +func (m *IpEntityMapping) GetScopeColumn()(*string) { + val, err := m.GetBackingStore().Get("scopeColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *IpEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("addressColumn", m.GetAddressColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("scopeColumn", m.GetScopeColumn()) + if err != nil { + return err + } + } + return nil +} +// SetAddressColumn sets the addressColumn property value. Name of the detection query column that maps to the IP address of the alert entity. +func (m *IpEntityMapping) SetAddressColumn(value *string)() { + err := m.GetBackingStore().Set("addressColumn", value) + if err != nil { + panic(err) + } +} +// SetScopeColumn sets the scopeColumn property value. Name of the detection query column that maps to the scope of the alert entity. +func (m *IpEntityMapping) SetScopeColumn(value *string)() { + err := m.GetBackingStore().Set("scopeColumn", value) + if err != nil { + panic(err) + } +} +type IpEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAddressColumn()(*string) + GetScopeColumn()(*string) + SetAddressColumn(value *string)() + SetScopeColumn(value *string)() +} diff --git a/models/security/isolate_device_action.go b/models/security/isolate_device_action.go new file mode 100644 index 00000000000..b3403d9bde0 --- /dev/null +++ b/models/security/isolate_device_action.go @@ -0,0 +1,80 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type IsolateDeviceAction struct { + DeviceAction +} +// NewIsolateDeviceAction instantiates a new IsolateDeviceAction and sets the default values. +func NewIsolateDeviceAction()(*IsolateDeviceAction) { + m := &IsolateDeviceAction{ + DeviceAction: *NewDeviceAction(), + } + return m +} +// CreateIsolateDeviceActionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateIsolateDeviceActionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewIsolateDeviceAction(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *IsolateDeviceAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.DeviceAction.GetFieldDeserializers() + res["isolationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseIsolationType) + if err != nil { + return err + } + if val != nil { + m.SetIsolationType(val.(*IsolationType)) + } + return nil + } + return res +} +// GetIsolationType gets the isolationType property value. The isolationType property +// returns a *IsolationType when successful +func (m *IsolateDeviceAction) GetIsolationType()(*IsolationType) { + val, err := m.GetBackingStore().Get("isolationType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*IsolationType) + } + return nil +} +// Serialize serializes information the current object +func (m *IsolateDeviceAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.DeviceAction.Serialize(writer) + if err != nil { + return err + } + if m.GetIsolationType() != nil { + cast := (*m.GetIsolationType()).String() + err = writer.WriteStringValue("isolationType", &cast) + if err != nil { + return err + } + } + return nil +} +// SetIsolationType sets the isolationType property value. The isolationType property +func (m *IsolateDeviceAction) SetIsolationType(value *IsolationType)() { + err := m.GetBackingStore().Set("isolationType", value) + if err != nil { + panic(err) + } +} +type IsolateDeviceActionable interface { + DeviceActionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetIsolationType()(*IsolationType) + SetIsolationType(value *IsolationType)() +} diff --git a/models/security/m_d_a_s_h_audit_record.go b/models/security/m_d_a_s_h_audit_record.go new file mode 100644 index 00000000000..1903e3412d7 --- /dev/null +++ b/models/security/m_d_a_s_h_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// MDASHAuditRecord audit data for MDASH events. +type MDASHAuditRecord struct { + AuditData +} +// NewMDASHAuditRecord instantiates a new MDASHAuditRecord and sets the default values. +func NewMDASHAuditRecord()(*MDASHAuditRecord) { + m := &MDASHAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.mDASHAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateMDASHAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMDASHAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMDASHAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MDASHAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *MDASHAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type MDASHAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/mail_cluster_entity_mapping.go b/models/security/mail_cluster_entity_mapping.go new file mode 100644 index 00000000000..83a4eb372e7 --- /dev/null +++ b/models/security/mail_cluster_entity_mapping.go @@ -0,0 +1,118 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type MailClusterEntityMapping struct { + EntityMapping +} +// NewMailClusterEntityMapping instantiates a new MailClusterEntityMapping and sets the default values. +func NewMailClusterEntityMapping()(*MailClusterEntityMapping) { + m := &MailClusterEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.mailClusterEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateMailClusterEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMailClusterEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMailClusterEntityMapping(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MailClusterEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["queryColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetQueryColumn(val) + } + return nil + } + res["sourceColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSourceColumn(val) + } + return nil + } + return res +} +// GetQueryColumn gets the queryColumn property value. Name of the detection query column that maps to the query of the alert entity. +// returns a *string when successful +func (m *MailClusterEntityMapping) GetQueryColumn()(*string) { + val, err := m.GetBackingStore().Get("queryColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSourceColumn gets the sourceColumn property value. Name of the detection query column that maps to the source of the alert entity. +// returns a *string when successful +func (m *MailClusterEntityMapping) GetSourceColumn()(*string) { + val, err := m.GetBackingStore().Get("sourceColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *MailClusterEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("queryColumn", m.GetQueryColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("sourceColumn", m.GetSourceColumn()) + if err != nil { + return err + } + } + return nil +} +// SetQueryColumn sets the queryColumn property value. Name of the detection query column that maps to the query of the alert entity. +func (m *MailClusterEntityMapping) SetQueryColumn(value *string)() { + err := m.GetBackingStore().Set("queryColumn", value) + if err != nil { + panic(err) + } +} +// SetSourceColumn sets the sourceColumn property value. Name of the detection query column that maps to the source of the alert entity. +func (m *MailClusterEntityMapping) SetSourceColumn(value *string)() { + err := m.GetBackingStore().Set("sourceColumn", value) + if err != nil { + panic(err) + } +} +type MailClusterEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetQueryColumn()(*string) + GetSourceColumn()(*string) + SetQueryColumn(value *string)() + SetSourceColumn(value *string)() +} diff --git a/models/security/mail_message_entity_mapping.go b/models/security/mail_message_entity_mapping.go new file mode 100644 index 00000000000..d119225d337 --- /dev/null +++ b/models/security/mail_message_entity_mapping.go @@ -0,0 +1,192 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type MailMessageEntityMapping struct { + EntityMapping +} +// NewMailMessageEntityMapping instantiates a new MailMessageEntityMapping and sets the default values. +func NewMailMessageEntityMapping()(*MailMessageEntityMapping) { + m := &MailMessageEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.mailMessageEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateMailMessageEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMailMessageEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMailMessageEntityMapping(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MailMessageEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["networkMessageIdColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNetworkMessageIdColumn(val) + } + return nil + } + res["recipientColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRecipientColumn(val) + } + return nil + } + res["senderColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSenderColumn(val) + } + return nil + } + res["subjectColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSubjectColumn(val) + } + return nil + } + return res +} +// GetNetworkMessageIdColumn gets the networkMessageIdColumn property value. Name of the detection query column that maps to the network message ID of the alert entity. +// returns a *string when successful +func (m *MailMessageEntityMapping) GetNetworkMessageIdColumn()(*string) { + val, err := m.GetBackingStore().Get("networkMessageIdColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRecipientColumn gets the recipientColumn property value. Name of the detection query column that maps to the recipient of the alert entity. +// returns a *string when successful +func (m *MailMessageEntityMapping) GetRecipientColumn()(*string) { + val, err := m.GetBackingStore().Get("recipientColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSenderColumn gets the senderColumn property value. Name of the detection query column that maps to the sender of the alert entity. +// returns a *string when successful +func (m *MailMessageEntityMapping) GetSenderColumn()(*string) { + val, err := m.GetBackingStore().Get("senderColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSubjectColumn gets the subjectColumn property value. Name of the detection query column that maps to the subject of the alert entity. +// returns a *string when successful +func (m *MailMessageEntityMapping) GetSubjectColumn()(*string) { + val, err := m.GetBackingStore().Get("subjectColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *MailMessageEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("networkMessageIdColumn", m.GetNetworkMessageIdColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("recipientColumn", m.GetRecipientColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("senderColumn", m.GetSenderColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("subjectColumn", m.GetSubjectColumn()) + if err != nil { + return err + } + } + return nil +} +// SetNetworkMessageIdColumn sets the networkMessageIdColumn property value. Name of the detection query column that maps to the network message ID of the alert entity. +func (m *MailMessageEntityMapping) SetNetworkMessageIdColumn(value *string)() { + err := m.GetBackingStore().Set("networkMessageIdColumn", value) + if err != nil { + panic(err) + } +} +// SetRecipientColumn sets the recipientColumn property value. Name of the detection query column that maps to the recipient of the alert entity. +func (m *MailMessageEntityMapping) SetRecipientColumn(value *string)() { + err := m.GetBackingStore().Set("recipientColumn", value) + if err != nil { + panic(err) + } +} +// SetSenderColumn sets the senderColumn property value. Name of the detection query column that maps to the sender of the alert entity. +func (m *MailMessageEntityMapping) SetSenderColumn(value *string)() { + err := m.GetBackingStore().Set("senderColumn", value) + if err != nil { + panic(err) + } +} +// SetSubjectColumn sets the subjectColumn property value. Name of the detection query column that maps to the subject of the alert entity. +func (m *MailMessageEntityMapping) SetSubjectColumn(value *string)() { + err := m.GetBackingStore().Set("subjectColumn", value) + if err != nil { + panic(err) + } +} +type MailMessageEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetNetworkMessageIdColumn()(*string) + GetRecipientColumn()(*string) + GetSenderColumn()(*string) + GetSubjectColumn()(*string) + SetNetworkMessageIdColumn(value *string)() + SetRecipientColumn(value *string)() + SetSenderColumn(value *string)() + SetSubjectColumn(value *string)() +} diff --git a/models/security/mailbox_entity_mapping.go b/models/security/mailbox_entity_mapping.go new file mode 100644 index 00000000000..a1c040f09e0 --- /dev/null +++ b/models/security/mailbox_entity_mapping.go @@ -0,0 +1,81 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type MailboxEntityMapping struct { + EntityMapping +} +// NewMailboxEntityMapping instantiates a new MailboxEntityMapping and sets the default values. +func NewMailboxEntityMapping()(*MailboxEntityMapping) { + m := &MailboxEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.mailboxEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateMailboxEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMailboxEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMailboxEntityMapping(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MailboxEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["primaryAddressColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPrimaryAddressColumn(val) + } + return nil + } + return res +} +// GetPrimaryAddressColumn gets the primaryAddressColumn property value. Name of the detection query column that maps to the primary email address of the alert entity. +// returns a *string when successful +func (m *MailboxEntityMapping) GetPrimaryAddressColumn()(*string) { + val, err := m.GetBackingStore().Get("primaryAddressColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *MailboxEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("primaryAddressColumn", m.GetPrimaryAddressColumn()) + if err != nil { + return err + } + } + return nil +} +// SetPrimaryAddressColumn sets the primaryAddressColumn property value. Name of the detection query column that maps to the primary email address of the alert entity. +func (m *MailboxEntityMapping) SetPrimaryAddressColumn(value *string)() { + err := m.GetBackingStore().Set("primaryAddressColumn", value) + if err != nil { + panic(err) + } +} +type MailboxEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPrimaryAddressColumn()(*string) + SetPrimaryAddressColumn(value *string)() +} diff --git a/models/security/manual_alert.go b/models/security/manual_alert.go new file mode 100644 index 00000000000..9a755eed930 --- /dev/null +++ b/models/security/manual_alert.go @@ -0,0 +1,202 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ManualAlert struct { + Alert +} +// NewManualAlert instantiates a new ManualAlert and sets the default values. +func NewManualAlert()(*ManualAlert) { + m := &ManualAlert{ + Alert: *NewAlert(), + } + return m +} +// CreateManualAlertFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateManualAlertFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewManualAlert(), nil +} +// GetEntityDefinitions gets the entityDefinitions property value. The entities associated with the alert. Each item specifies a security entity (such as a user, device, or IP address), its identifier, and its role in the alert context. +// returns a []EntityDefinitionInputable when successful +func (m *ManualAlert) GetEntityDefinitions()([]EntityDefinitionInputable) { + val, err := m.GetBackingStore().Get("entityDefinitions") + if err != nil { + panic(err) + } + if val != nil { + return val.([]EntityDefinitionInputable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ManualAlert) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Alert.GetFieldDeserializers() + res["entityDefinitions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateEntityDefinitionInputFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]EntityDefinitionInputable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(EntityDefinitionInputable) + } + } + m.SetEntityDefinitions(res) + } + return nil + } + res["isExcludedFromCorrelation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsExcludedFromCorrelation(val) + } + return nil + } + res["linkToIncident"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetLinkToIncident(val) + } + return nil + } + res["sentinelWorkspace"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSentinelWorkspace(val) + } + return nil + } + return res +} +// GetIsExcludedFromCorrelation gets the isExcludedFromCorrelation property value. When true, excludes the alert from automatic correlation. Default is false. +// returns a *bool when successful +func (m *ManualAlert) GetIsExcludedFromCorrelation()(*bool) { + val, err := m.GetBackingStore().Get("isExcludedFromCorrelation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetLinkToIncident gets the linkToIncident property value. ID of an existing incident to link to. If not provided, a new incident is created automatically. +// returns a *int64 when successful +func (m *ManualAlert) GetLinkToIncident()(*int64) { + val, err := m.GetBackingStore().Get("linkToIncident") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetSentinelWorkspace gets the sentinelWorkspace property value. Sentinel workspace identifier for workspace routing. +// returns a *string when successful +func (m *ManualAlert) GetSentinelWorkspace()(*string) { + val, err := m.GetBackingStore().Get("sentinelWorkspace") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ManualAlert) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Alert.Serialize(writer) + if err != nil { + return err + } + if m.GetEntityDefinitions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetEntityDefinitions())) + for i, v := range m.GetEntityDefinitions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("entityDefinitions", cast) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isExcludedFromCorrelation", m.GetIsExcludedFromCorrelation()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("linkToIncident", m.GetLinkToIncident()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("sentinelWorkspace", m.GetSentinelWorkspace()) + if err != nil { + return err + } + } + return nil +} +// SetEntityDefinitions sets the entityDefinitions property value. The entities associated with the alert. Each item specifies a security entity (such as a user, device, or IP address), its identifier, and its role in the alert context. +func (m *ManualAlert) SetEntityDefinitions(value []EntityDefinitionInputable)() { + err := m.GetBackingStore().Set("entityDefinitions", value) + if err != nil { + panic(err) + } +} +// SetIsExcludedFromCorrelation sets the isExcludedFromCorrelation property value. When true, excludes the alert from automatic correlation. Default is false. +func (m *ManualAlert) SetIsExcludedFromCorrelation(value *bool)() { + err := m.GetBackingStore().Set("isExcludedFromCorrelation", value) + if err != nil { + panic(err) + } +} +// SetLinkToIncident sets the linkToIncident property value. ID of an existing incident to link to. If not provided, a new incident is created automatically. +func (m *ManualAlert) SetLinkToIncident(value *int64)() { + err := m.GetBackingStore().Set("linkToIncident", value) + if err != nil { + panic(err) + } +} +// SetSentinelWorkspace sets the sentinelWorkspace property value. Sentinel workspace identifier for workspace routing. +func (m *ManualAlert) SetSentinelWorkspace(value *string)() { + err := m.GetBackingStore().Set("sentinelWorkspace", value) + if err != nil { + panic(err) + } +} +type ManualAlertable interface { + Alertable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetEntityDefinitions()([]EntityDefinitionInputable) + GetIsExcludedFromCorrelation()(*bool) + GetLinkToIncident()(*int64) + GetSentinelWorkspace()(*string) + SetEntityDefinitions(value []EntityDefinitionInputable)() + SetIsExcludedFromCorrelation(value *bool)() + SetLinkToIncident(value *int64)() + SetSentinelWorkspace(value *string)() +} diff --git a/models/security/manual_alert_entity_type.go b/models/security/manual_alert_entity_type.go new file mode 100644 index 00000000000..15731763688 --- /dev/null +++ b/models/security/manual_alert_entity_type.go @@ -0,0 +1,84 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security +type ManualAlertEntityType int + +const ( + USER_MANUALALERTENTITYTYPE ManualAlertEntityType = iota + DEVICE_MANUALALERTENTITYTYPE + FILE_MANUALALERTENTITYTYPE + IP_MANUALALERTENTITYTYPE + URL_MANUALALERTENTITYTYPE + CLOUDAPPLICATION_MANUALALERTENTITYTYPE + MAILBOX_MANUALALERTENTITYTYPE + SECURITYGROUP_MANUALALERTENTITYTYPE + AZURERESOURCE_MANUALALERTENTITYTYPE + AMAZONRESOURCE_MANUALALERTENTITYTYPE + GOOGLECLOUDRESOURCE_MANUALALERTENTITYTYPE + OAUTHAPPLICATION_MANUALALERTENTITYTYPE + EMAILMESSAGE_MANUALALERTENTITYTYPE + EMAILCLUSTER_MANUALALERTENTITYTYPE + PROCESS_MANUALALERTENTITYTYPE + REGISTRYKEY_MANUALALERTENTITYTYPE + REGISTRYVALUE_MANUALALERTENTITYTYPE + UNKNOWNFUTUREVALUE_MANUALALERTENTITYTYPE +) + +func (i ManualAlertEntityType) String() string { + return []string{"user", "device", "file", "ip", "url", "cloudApplication", "mailbox", "securityGroup", "azureResource", "amazonResource", "googleCloudResource", "oAuthApplication", "emailMessage", "emailCluster", "process", "registryKey", "registryValue", "unknownFutureValue"}[i] +} +func ParseManualAlertEntityType(v string) (any, error) { + result := USER_MANUALALERTENTITYTYPE + switch v { + case "user": + result = USER_MANUALALERTENTITYTYPE + case "device": + result = DEVICE_MANUALALERTENTITYTYPE + case "file": + result = FILE_MANUALALERTENTITYTYPE + case "ip": + result = IP_MANUALALERTENTITYTYPE + case "url": + result = URL_MANUALALERTENTITYTYPE + case "cloudApplication": + result = CLOUDAPPLICATION_MANUALALERTENTITYTYPE + case "mailbox": + result = MAILBOX_MANUALALERTENTITYTYPE + case "securityGroup": + result = SECURITYGROUP_MANUALALERTENTITYTYPE + case "azureResource": + result = AZURERESOURCE_MANUALALERTENTITYTYPE + case "amazonResource": + result = AMAZONRESOURCE_MANUALALERTENTITYTYPE + case "googleCloudResource": + result = GOOGLECLOUDRESOURCE_MANUALALERTENTITYTYPE + case "oAuthApplication": + result = OAUTHAPPLICATION_MANUALALERTENTITYTYPE + case "emailMessage": + result = EMAILMESSAGE_MANUALALERTENTITYTYPE + case "emailCluster": + result = EMAILCLUSTER_MANUALALERTENTITYTYPE + case "process": + result = PROCESS_MANUALALERTENTITYTYPE + case "registryKey": + result = REGISTRYKEY_MANUALALERTENTITYTYPE + case "registryValue": + result = REGISTRYVALUE_MANUALALERTENTITYTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_MANUALALERTENTITYTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeManualAlertEntityType(values []ManualAlertEntityType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ManualAlertEntityType) isMultiValue() bool { + return false +} diff --git a/models/security/microsoft_teams_user_concern_audit_record.go b/models/security/microsoft_teams_user_concern_audit_record.go new file mode 100644 index 00000000000..ee3317307ef --- /dev/null +++ b/models/security/microsoft_teams_user_concern_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// MicrosoftTeamsUserConcernAuditRecord audit data for Microsoft Teams User Concern events. +type MicrosoftTeamsUserConcernAuditRecord struct { + AuditData +} +// NewMicrosoftTeamsUserConcernAuditRecord instantiates a new MicrosoftTeamsUserConcernAuditRecord and sets the default values. +func NewMicrosoftTeamsUserConcernAuditRecord()(*MicrosoftTeamsUserConcernAuditRecord) { + m := &MicrosoftTeamsUserConcernAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.microsoftTeamsUserConcernAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateMicrosoftTeamsUserConcernAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMicrosoftTeamsUserConcernAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMicrosoftTeamsUserConcernAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MicrosoftTeamsUserConcernAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *MicrosoftTeamsUserConcernAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type MicrosoftTeamsUserConcernAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/migrate_sensors_result.go b/models/security/migrate_sensors_result.go index 5a2194cbd13..c62326c7ae5 100644 --- a/models/security/migrate_sensors_result.go +++ b/models/security/migrate_sensors_result.go @@ -43,7 +43,7 @@ func (m *MigrateSensorsResult) GetAdditionalData()(map[string]any) { func (m *MigrateSensorsResult) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetFailedMigrationSensorIds gets the failedMigrationSensorIds property value. The failedMigrationSensorIds property +// GetFailedMigrationSensorIds gets the failedMigrationSensorIds property value. The collection of sensor IDs that failed to migrate. // returns a []string when successful func (m *MigrateSensorsResult) GetFailedMigrationSensorIds()([]string) { val, err := m.GetBackingStore().Get("failedMigrationSensorIds") @@ -115,7 +115,7 @@ func (m *MigrateSensorsResult) GetOdataType()(*string) { } return nil } -// GetSuccessfulMigrationSensorIds gets the successfulMigrationSensorIds property value. The successfulMigrationSensorIds property +// GetSuccessfulMigrationSensorIds gets the successfulMigrationSensorIds property value. The collection of sensor IDs that were successfully migrated. // returns a []string when successful func (m *MigrateSensorsResult) GetSuccessfulMigrationSensorIds()([]string) { val, err := m.GetBackingStore().Get("successfulMigrationSensorIds") @@ -166,7 +166,7 @@ func (m *MigrateSensorsResult) SetAdditionalData(value map[string]any)() { func (m *MigrateSensorsResult) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetFailedMigrationSensorIds sets the failedMigrationSensorIds property value. The failedMigrationSensorIds property +// SetFailedMigrationSensorIds sets the failedMigrationSensorIds property value. The collection of sensor IDs that failed to migrate. func (m *MigrateSensorsResult) SetFailedMigrationSensorIds(value []string)() { err := m.GetBackingStore().Set("failedMigrationSensorIds", value) if err != nil { @@ -180,7 +180,7 @@ func (m *MigrateSensorsResult) SetOdataType(value *string)() { panic(err) } } -// SetSuccessfulMigrationSensorIds sets the successfulMigrationSensorIds property value. The successfulMigrationSensorIds property +// SetSuccessfulMigrationSensorIds sets the successfulMigrationSensorIds property value. The collection of sensor IDs that were successfully migrated. func (m *MigrateSensorsResult) SetSuccessfulMigrationSensorIds(value []string)() { err := m.GetBackingStore().Set("successfulMigrationSensorIds", value) if err != nil { diff --git a/models/security/mitre_tactic.go b/models/security/mitre_tactic.go new file mode 100644 index 00000000000..bb3b446ade5 --- /dev/null +++ b/models/security/mitre_tactic.go @@ -0,0 +1,202 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type MitreTactic struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewMitreTactic instantiates a new MitreTactic and sets the default values. +func NewMitreTactic()(*MitreTactic) { + m := &MitreTactic{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateMitreTacticFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMitreTacticFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMitreTactic(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *MitreTactic) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *MitreTactic) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MitreTactic) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["tactic"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTactic(val) + } + return nil + } + res["techniques"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateMitreTechniqueFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]MitreTechniqueable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(MitreTechniqueable) + } + } + m.SetTechniques(res) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *MitreTactic) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTactic gets the tactic property value. The MITRE tactic identifier, for example, Exploit. +// returns a *string when successful +func (m *MitreTactic) GetTactic()(*string) { + val, err := m.GetBackingStore().Get("tactic") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTechniques gets the techniques property value. The techniques observed within this tactic. +// returns a []MitreTechniqueable when successful +func (m *MitreTactic) GetTechniques()([]MitreTechniqueable) { + val, err := m.GetBackingStore().Get("techniques") + if err != nil { + panic(err) + } + if val != nil { + return val.([]MitreTechniqueable) + } + return nil +} +// Serialize serializes information the current object +func (m *MitreTactic) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("tactic", m.GetTactic()) + if err != nil { + return err + } + } + if m.GetTechniques() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTechniques())) + for i, v := range m.GetTechniques() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("techniques", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *MitreTactic) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *MitreTactic) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MitreTactic) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetTactic sets the tactic property value. The MITRE tactic identifier, for example, Exploit. +func (m *MitreTactic) SetTactic(value *string)() { + err := m.GetBackingStore().Set("tactic", value) + if err != nil { + panic(err) + } +} +// SetTechniques sets the techniques property value. The techniques observed within this tactic. +func (m *MitreTactic) SetTechniques(value []MitreTechniqueable)() { + err := m.GetBackingStore().Set("techniques", value) + if err != nil { + panic(err) + } +} +type MitreTacticable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetTactic()(*string) + GetTechniques()([]MitreTechniqueable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetTactic(value *string)() + SetTechniques(value []MitreTechniqueable)() +} diff --git a/models/security/mitre_technique.go b/models/security/mitre_technique.go new file mode 100644 index 00000000000..0641ea0cd0b --- /dev/null +++ b/models/security/mitre_technique.go @@ -0,0 +1,196 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type MitreTechnique struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewMitreTechnique instantiates a new MitreTechnique and sets the default values. +func NewMitreTechnique()(*MitreTechnique) { + m := &MitreTechnique{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateMitreTechniqueFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMitreTechniqueFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMitreTechnique(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *MitreTechnique) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *MitreTechnique) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MitreTechnique) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["subTechniques"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetSubTechniques(res) + } + return nil + } + res["technique"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTechnique(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *MitreTechnique) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSubTechniques gets the subTechniques property value. The MITRE ATT&CK subtechnique identifiers that are associated with this technique, for example, T1059.001. +// returns a []string when successful +func (m *MitreTechnique) GetSubTechniques()([]string) { + val, err := m.GetBackingStore().Get("subTechniques") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetTechnique gets the technique property value. The MITRE ATT&CK technique identifier, for example, T1059. +// returns a *string when successful +func (m *MitreTechnique) GetTechnique()(*string) { + val, err := m.GetBackingStore().Get("technique") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *MitreTechnique) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetSubTechniques() != nil { + err := writer.WriteCollectionOfStringValues("subTechniques", m.GetSubTechniques()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("technique", m.GetTechnique()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *MitreTechnique) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *MitreTechnique) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MitreTechnique) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetSubTechniques sets the subTechniques property value. The MITRE ATT&CK subtechnique identifiers that are associated with this technique, for example, T1059.001. +func (m *MitreTechnique) SetSubTechniques(value []string)() { + err := m.GetBackingStore().Set("subTechniques", value) + if err != nil { + panic(err) + } +} +// SetTechnique sets the technique property value. The MITRE ATT&CK technique identifier, for example, T1059. +func (m *MitreTechnique) SetTechnique(value *string)() { + err := m.GetBackingStore().Set("technique", value) + if err != nil { + panic(err) + } +} +type MitreTechniqueable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetSubTechniques()([]string) + GetTechnique()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetSubTechniques(value []string)() + SetTechnique(value *string)() +} diff --git a/models/security/mos_agent_info_record_v2.go b/models/security/mos_agent_info_record_v2.go new file mode 100644 index 00000000000..918fdee5595 --- /dev/null +++ b/models/security/mos_agent_info_record_v2.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// MosAgentInfoRecordV2 audit data for MOS Agent Info V2 events. +type MosAgentInfoRecordV2 struct { + AuditData +} +// NewMosAgentInfoRecordV2 instantiates a new MosAgentInfoRecordV2 and sets the default values. +func NewMosAgentInfoRecordV2()(*MosAgentInfoRecordV2) { + m := &MosAgentInfoRecordV2{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.mosAgentInfoRecordV2" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateMosAgentInfoRecordV2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMosAgentInfoRecordV2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMosAgentInfoRecordV2(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MosAgentInfoRecordV2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *MosAgentInfoRecordV2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type MosAgentInfoRecordV2able interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/msp_vector_search_content_metadata_audit_record.go b/models/security/msp_vector_search_content_metadata_audit_record.go new file mode 100644 index 00000000000..8dbfa71f6a7 --- /dev/null +++ b/models/security/msp_vector_search_content_metadata_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// MspVectorSearchContentMetadataAuditRecord audit data for MSP Vector Search Content Metadata events. +type MspVectorSearchContentMetadataAuditRecord struct { + AuditData +} +// NewMspVectorSearchContentMetadataAuditRecord instantiates a new MspVectorSearchContentMetadataAuditRecord and sets the default values. +func NewMspVectorSearchContentMetadataAuditRecord()(*MspVectorSearchContentMetadataAuditRecord) { + m := &MspVectorSearchContentMetadataAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.mspVectorSearchContentMetadataAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateMspVectorSearchContentMetadataAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMspVectorSearchContentMetadataAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMspVectorSearchContentMetadataAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MspVectorSearchContentMetadataAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *MspVectorSearchContentMetadataAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type MspVectorSearchContentMetadataAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/o_auth_application_entity_mapping.go b/models/security/o_auth_application_entity_mapping.go new file mode 100644 index 00000000000..671a87c2edc --- /dev/null +++ b/models/security/o_auth_application_entity_mapping.go @@ -0,0 +1,81 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type OAuthApplicationEntityMapping struct { + EntityMapping +} +// NewOAuthApplicationEntityMapping instantiates a new OAuthApplicationEntityMapping and sets the default values. +func NewOAuthApplicationEntityMapping()(*OAuthApplicationEntityMapping) { + m := &OAuthApplicationEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.oAuthApplicationEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateOAuthApplicationEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateOAuthApplicationEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewOAuthApplicationEntityMapping(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *OAuthApplicationEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["oAuthAppIdColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOAuthAppIdColumn(val) + } + return nil + } + return res +} +// GetOAuthAppIdColumn gets the oAuthAppIdColumn property value. Name of the detection query column that maps to the OAuth application ID of the alert entity. +// returns a *string when successful +func (m *OAuthApplicationEntityMapping) GetOAuthAppIdColumn()(*string) { + val, err := m.GetBackingStore().Get("oAuthAppIdColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *OAuthApplicationEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("oAuthAppIdColumn", m.GetOAuthAppIdColumn()) + if err != nil { + return err + } + } + return nil +} +// SetOAuthAppIdColumn sets the oAuthAppIdColumn property value. Name of the detection query column that maps to the OAuth application ID of the alert entity. +func (m *OAuthApplicationEntityMapping) SetOAuthAppIdColumn(value *string)() { + err := m.GetBackingStore().Set("oAuthAppIdColumn", value) + if err != nil { + panic(err) + } +} +type OAuthApplicationEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetOAuthAppIdColumn()(*string) + SetOAuthAppIdColumn(value *string)() +} diff --git a/models/security/organizational_scope.go b/models/security/organizational_scope.go index 25f3274d4d9..7785572b6a3 100644 --- a/models/security/organizational_scope.go +++ b/models/security/organizational_scope.go @@ -43,10 +43,38 @@ func (m *OrganizationalScope) GetAdditionalData()(map[string]any) { func (m *OrganizationalScope) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } +// GetDeviceGroups gets the deviceGroups property value. List of device groups to which the custom detection rule applies. +// returns a []string when successful +func (m *OrganizationalScope) GetDeviceGroups()([]string) { + val, err := m.GetBackingStore().Get("deviceGroups") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *OrganizationalScope) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["deviceGroups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetDeviceGroups(res) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -97,7 +125,7 @@ func (m *OrganizationalScope) GetOdataType()(*string) { } return nil } -// GetScopeNames gets the scopeNames property value. List of groups to which the custom detection rule applies. +// GetScopeNames gets the scopeNames property value. List of groups to which the custom detection rule applies. Deprecated. Use deviceGroups instead. This property will be removed from this resource on October 1, 2026. // returns a []string when successful func (m *OrganizationalScope) GetScopeNames()([]string) { val, err := m.GetBackingStore().Get("scopeNames") @@ -123,6 +151,12 @@ func (m *OrganizationalScope) GetScopeType()(*ScopeType) { } // Serialize serializes information the current object func (m *OrganizationalScope) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetDeviceGroups() != nil { + err := writer.WriteCollectionOfStringValues("deviceGroups", m.GetDeviceGroups()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -161,6 +195,13 @@ func (m *OrganizationalScope) SetAdditionalData(value map[string]any)() { func (m *OrganizationalScope) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } +// SetDeviceGroups sets the deviceGroups property value. List of device groups to which the custom detection rule applies. +func (m *OrganizationalScope) SetDeviceGroups(value []string)() { + err := m.GetBackingStore().Set("deviceGroups", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *OrganizationalScope) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -168,7 +209,7 @@ func (m *OrganizationalScope) SetOdataType(value *string)() { panic(err) } } -// SetScopeNames sets the scopeNames property value. List of groups to which the custom detection rule applies. +// SetScopeNames sets the scopeNames property value. List of groups to which the custom detection rule applies. Deprecated. Use deviceGroups instead. This property will be removed from this resource on October 1, 2026. func (m *OrganizationalScope) SetScopeNames(value []string)() { err := m.GetBackingStore().Set("scopeNames", value) if err != nil { @@ -187,10 +228,12 @@ type OrganizationalScopeable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDeviceGroups()([]string) GetOdataType()(*string) GetScopeNames()([]string) GetScopeType()(*ScopeType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDeviceGroups(value []string)() SetOdataType(value *string)() SetScopeNames(value []string)() SetScopeType(value *ScopeType)() diff --git a/models/security/p4_a_i_risk_score_record.go b/models/security/p4_a_i_risk_score_record.go new file mode 100644 index 00000000000..8b8eb615452 --- /dev/null +++ b/models/security/p4_a_i_risk_score_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// P4AIRiskScoreRecord audit data for P4 AI Risk Score events. +type P4AIRiskScoreRecord struct { + AuditData +} +// NewP4AIRiskScoreRecord instantiates a new P4AIRiskScoreRecord and sets the default values. +func NewP4AIRiskScoreRecord()(*P4AIRiskScoreRecord) { + m := &P4AIRiskScoreRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.p4AIRiskScoreRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateP4AIRiskScoreRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateP4AIRiskScoreRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewP4AIRiskScoreRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *P4AIRiskScoreRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *P4AIRiskScoreRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type P4AIRiskScoreRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/process_entity_mapping.go b/models/security/process_entity_mapping.go new file mode 100644 index 00000000000..3879514a372 --- /dev/null +++ b/models/security/process_entity_mapping.go @@ -0,0 +1,118 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ProcessEntityMapping struct { + EntityMapping +} +// NewProcessEntityMapping instantiates a new ProcessEntityMapping and sets the default values. +func NewProcessEntityMapping()(*ProcessEntityMapping) { + m := &ProcessEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.processEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateProcessEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateProcessEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewProcessEntityMapping(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ProcessEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["sha1Column"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha1Column(val) + } + return nil + } + res["sha256Column"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha256Column(val) + } + return nil + } + return res +} +// GetSha1Column gets the sha1Column property value. Name of the detection query column that maps to the SHA-1 hash of the alert entity. +// returns a *string when successful +func (m *ProcessEntityMapping) GetSha1Column()(*string) { + val, err := m.GetBackingStore().Get("sha1Column") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSha256Column gets the sha256Column property value. Name of the detection query column that maps to the SHA-256 hash of the alert entity. +// returns a *string when successful +func (m *ProcessEntityMapping) GetSha256Column()(*string) { + val, err := m.GetBackingStore().Get("sha256Column") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ProcessEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("sha1Column", m.GetSha1Column()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("sha256Column", m.GetSha256Column()) + if err != nil { + return err + } + } + return nil +} +// SetSha1Column sets the sha1Column property value. Name of the detection query column that maps to the SHA-1 hash of the alert entity. +func (m *ProcessEntityMapping) SetSha1Column(value *string)() { + err := m.GetBackingStore().Set("sha1Column", value) + if err != nil { + panic(err) + } +} +// SetSha256Column sets the sha256Column property value. Name of the detection query column that maps to the SHA-256 hash of the alert entity. +func (m *ProcessEntityMapping) SetSha256Column(value *string)() { + err := m.GetBackingStore().Set("sha256Column", value) + if err != nil { + panic(err) + } +} +type ProcessEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetSha1Column()(*string) + GetSha256Column()(*string) + SetSha1Column(value *string)() + SetSha256Column(value *string)() +} diff --git a/models/security/protection_rule.go b/models/security/protection_rule.go deleted file mode 100644 index 1cb90910891..00000000000 --- a/models/security/protection_rule.go +++ /dev/null @@ -1,284 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package security - -import ( - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" -) - -type ProtectionRule struct { - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entity -} -// NewProtectionRule instantiates a new ProtectionRule and sets the default values. -func NewProtectionRule()(*ProtectionRule) { - m := &ProtectionRule{ - Entity: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewEntity(), - } - return m -} -// CreateProtectionRuleFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateProtectionRuleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - if parseNode != nil { - mappingValueNode, err := parseNode.GetChildNode("@odata.type") - if err != nil { - return nil, err - } - if mappingValueNode != nil { - mappingValue, err := mappingValueNode.GetStringValue() - if err != nil { - return nil, err - } - if mappingValue != nil { - switch *mappingValue { - case "#microsoft.graph.security.detectionRule": - return NewDetectionRule(), nil - } - } - } - } - return NewProtectionRule(), nil -} -// GetCreatedBy gets the createdBy property value. Name of the user or application that created the rule. -// returns a *string when successful -func (m *ProtectionRule) GetCreatedBy()(*string) { - val, err := m.GetBackingStore().Get("createdBy") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetCreatedDateTime gets the createdDateTime property value. Timestamp of rule creation. -// returns a *Time when successful -func (m *ProtectionRule) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("createdDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} -// GetDisplayName gets the displayName property value. Name of the rule. -// returns a *string when successful -func (m *ProtectionRule) GetDisplayName()(*string) { - val, err := m.GetBackingStore().Get("displayName") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ProtectionRule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.Entity.GetFieldDeserializers() - res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCreatedBy(val) - } - return nil - } - res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetCreatedDateTime(val) - } - return nil - } - res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDisplayName(val) - } - return nil - } - res["isEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetIsEnabled(val) - } - return nil - } - res["lastModifiedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetLastModifiedBy(val) - } - return nil - } - res["lastModifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetLastModifiedDateTime(val) - } - return nil - } - return res -} -// GetIsEnabled gets the isEnabled property value. Whether rule is turned on for the tenant. -// returns a *bool when successful -func (m *ProtectionRule) GetIsEnabled()(*bool) { - val, err := m.GetBackingStore().Get("isEnabled") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// GetLastModifiedBy gets the lastModifiedBy property value. Name of the user or application who last updated the rule. -// returns a *string when successful -func (m *ProtectionRule) GetLastModifiedBy()(*string) { - val, err := m.GetBackingStore().Get("lastModifiedBy") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Timestamp of when the rule was last updated. -// returns a *Time when successful -func (m *ProtectionRule) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("lastModifiedDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} -// Serialize serializes information the current object -func (m *ProtectionRule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.Entity.Serialize(writer) - if err != nil { - return err - } - { - err = writer.WriteStringValue("createdBy", m.GetCreatedBy()) - if err != nil { - return err - } - } - { - err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("displayName", m.GetDisplayName()) - if err != nil { - return err - } - } - { - err = writer.WriteBoolValue("isEnabled", m.GetIsEnabled()) - if err != nil { - return err - } - } - { - err = writer.WriteStringValue("lastModifiedBy", m.GetLastModifiedBy()) - if err != nil { - return err - } - } - { - err = writer.WriteTimeValue("lastModifiedDateTime", m.GetLastModifiedDateTime()) - if err != nil { - return err - } - } - return nil -} -// SetCreatedBy sets the createdBy property value. Name of the user or application that created the rule. -func (m *ProtectionRule) SetCreatedBy(value *string)() { - err := m.GetBackingStore().Set("createdBy", value) - if err != nil { - panic(err) - } -} -// SetCreatedDateTime sets the createdDateTime property value. Timestamp of rule creation. -func (m *ProtectionRule) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("createdDateTime", value) - if err != nil { - panic(err) - } -} -// SetDisplayName sets the displayName property value. Name of the rule. -func (m *ProtectionRule) SetDisplayName(value *string)() { - err := m.GetBackingStore().Set("displayName", value) - if err != nil { - panic(err) - } -} -// SetIsEnabled sets the isEnabled property value. Whether rule is turned on for the tenant. -func (m *ProtectionRule) SetIsEnabled(value *bool)() { - err := m.GetBackingStore().Set("isEnabled", value) - if err != nil { - panic(err) - } -} -// SetLastModifiedBy sets the lastModifiedBy property value. Name of the user or application who last updated the rule. -func (m *ProtectionRule) SetLastModifiedBy(value *string)() { - err := m.GetBackingStore().Set("lastModifiedBy", value) - if err != nil { - panic(err) - } -} -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Timestamp of when the rule was last updated. -func (m *ProtectionRule) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("lastModifiedDateTime", value) - if err != nil { - panic(err) - } -} -type ProtectionRuleable interface { - ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetCreatedBy()(*string) - GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetDisplayName()(*string) - GetIsEnabled()(*bool) - GetLastModifiedBy()(*string) - GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - SetCreatedBy(value *string)() - SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetDisplayName(value *string)() - SetIsEnabled(value *bool)() - SetLastModifiedBy(value *string)() - SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() -} diff --git a/models/security/query_condition.go b/models/security/query_condition.go index f3ca80fbfe4..fa4cb10d684 100644 --- a/models/security/query_condition.go +++ b/models/security/query_condition.go @@ -80,7 +80,7 @@ func (m *QueryCondition) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return res } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Timestamp of when the query in the custom detection rule was last updated. +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Timestamp of when the query in the custom detection rule was last updated. Deprecated. This property will be removed from this resource on 2026-10-01. // returns a *Time when successful func (m *QueryCondition) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") @@ -155,7 +155,7 @@ func (m *QueryCondition) SetAdditionalData(value map[string]any)() { func (m *QueryCondition) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Timestamp of when the query in the custom detection rule was last updated. +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Timestamp of when the query in the custom detection rule was last updated. Deprecated. This property will be removed from this resource on 2026-10-01. func (m *QueryCondition) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { diff --git a/models/security/registry_value_entity_mapping.go b/models/security/registry_value_entity_mapping.go new file mode 100644 index 00000000000..8f991e7ec41 --- /dev/null +++ b/models/security/registry_value_entity_mapping.go @@ -0,0 +1,118 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type RegistryValueEntityMapping struct { + EntityMapping +} +// NewRegistryValueEntityMapping instantiates a new RegistryValueEntityMapping and sets the default values. +func NewRegistryValueEntityMapping()(*RegistryValueEntityMapping) { + m := &RegistryValueEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.registryValueEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateRegistryValueEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateRegistryValueEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewRegistryValueEntityMapping(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *RegistryValueEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["keyColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetKeyColumn(val) + } + return nil + } + res["valueNameColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetValueNameColumn(val) + } + return nil + } + return res +} +// GetKeyColumn gets the keyColumn property value. Name of the detection query column that maps to the registry key of the alert entity. +// returns a *string when successful +func (m *RegistryValueEntityMapping) GetKeyColumn()(*string) { + val, err := m.GetBackingStore().Get("keyColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetValueNameColumn gets the valueNameColumn property value. Name of the detection query column that maps to the value name of the alert entity. +// returns a *string when successful +func (m *RegistryValueEntityMapping) GetValueNameColumn()(*string) { + val, err := m.GetBackingStore().Get("valueNameColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *RegistryValueEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("keyColumn", m.GetKeyColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("valueNameColumn", m.GetValueNameColumn()) + if err != nil { + return err + } + } + return nil +} +// SetKeyColumn sets the keyColumn property value. Name of the detection query column that maps to the registry key of the alert entity. +func (m *RegistryValueEntityMapping) SetKeyColumn(value *string)() { + err := m.GetBackingStore().Set("keyColumn", value) + if err != nil { + panic(err) + } +} +// SetValueNameColumn sets the valueNameColumn property value. Name of the detection query column that maps to the value name of the alert entity. +func (m *RegistryValueEntityMapping) SetValueNameColumn(value *string)() { + err := m.GetBackingStore().Set("valueNameColumn", value) + if err != nil { + panic(err) + } +} +type RegistryValueEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetKeyColumn()(*string) + GetValueNameColumn()(*string) + SetKeyColumn(value *string)() + SetValueNameColumn(value *string)() +} diff --git a/models/security/rule_schedule.go b/models/security/rule_schedule.go index d699677a98f..d207bc15ad6 100644 --- a/models/security/rule_schedule.go +++ b/models/security/rule_schedule.go @@ -48,6 +48,16 @@ func (m *RuleSchedule) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d4118542 // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *RuleSchedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetISODurationValue() + if err != nil { + return err + } + if val != nil { + m.SetFrequency(val) + } + return nil + } res["nextRunDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -80,7 +90,19 @@ func (m *RuleSchedule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return res } -// GetNextRunDateTime gets the nextRunDateTime property value. Timestamp of the custom detection rule's next scheduled run. +// GetFrequency gets the frequency property value. The recurring time interval at which the rule runs (ISO 8601 duration, for example P1D for daily, PT1H for hourly). +// returns a *ISODuration when successful +func (m *RuleSchedule) GetFrequency()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) { + val, err := m.GetBackingStore().Get("frequency") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) + } + return nil +} +// GetNextRunDateTime gets the nextRunDateTime property value. Timestamp of the custom detection rule's next scheduled run. Deprecated. This property will be removed from this resource on 2026-10-01. // returns a *Time when successful func (m *RuleSchedule) GetNextRunDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("nextRunDateTime") @@ -104,7 +126,7 @@ func (m *RuleSchedule) GetOdataType()(*string) { } return nil } -// GetPeriod gets the period property value. How often the detection rule is set to run. The allowed values are: 0, 1H, 3H, 12H, or 24H. '0' signifies the rule is run continuously. +// GetPeriod gets the period property value. How often the detection rule is set to run. The allowed values are: 0, 1H, 3H, 12H, or 24H. 0 signifies the rule is run continuously. Deprecated. Use frequency instead. This property will be removed from this resource on 2026-10-01. // returns a *string when successful func (m *RuleSchedule) GetPeriod()(*string) { val, err := m.GetBackingStore().Get("period") @@ -118,6 +140,12 @@ func (m *RuleSchedule) GetPeriod()(*string) { } // Serialize serializes information the current object func (m *RuleSchedule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteISODurationValue("frequency", m.GetFrequency()) + if err != nil { + return err + } + } { err := writer.WriteTimeValue("nextRunDateTime", m.GetNextRunDateTime()) if err != nil { @@ -155,7 +183,14 @@ func (m *RuleSchedule) SetAdditionalData(value map[string]any)() { func (m *RuleSchedule) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetNextRunDateTime sets the nextRunDateTime property value. Timestamp of the custom detection rule's next scheduled run. +// SetFrequency sets the frequency property value. The recurring time interval at which the rule runs (ISO 8601 duration, for example P1D for daily, PT1H for hourly). +func (m *RuleSchedule) SetFrequency(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() { + err := m.GetBackingStore().Set("frequency", value) + if err != nil { + panic(err) + } +} +// SetNextRunDateTime sets the nextRunDateTime property value. Timestamp of the custom detection rule's next scheduled run. Deprecated. This property will be removed from this resource on 2026-10-01. func (m *RuleSchedule) SetNextRunDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("nextRunDateTime", value) if err != nil { @@ -169,7 +204,7 @@ func (m *RuleSchedule) SetOdataType(value *string)() { panic(err) } } -// SetPeriod sets the period property value. How often the detection rule is set to run. The allowed values are: 0, 1H, 3H, 12H, or 24H. '0' signifies the rule is run continuously. +// SetPeriod sets the period property value. How often the detection rule is set to run. The allowed values are: 0, 1H, 3H, 12H, or 24H. 0 signifies the rule is run continuously. Deprecated. Use frequency instead. This property will be removed from this resource on 2026-10-01. func (m *RuleSchedule) SetPeriod(value *string)() { err := m.GetBackingStore().Set("period", value) if err != nil { @@ -181,10 +216,12 @@ type RuleScheduleable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetFrequency()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) GetNextRunDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOdataType()(*string) GetPeriod()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetFrequency(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() SetNextRunDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOdataType(value *string)() SetPeriod(value *string)() diff --git a/models/security/rules_root.go b/models/security/rules_root.go index c2c5ef1fbe1..6b41447c63d 100644 --- a/models/security/rules_root.go +++ b/models/security/rules_root.go @@ -23,7 +23,7 @@ func NewRulesRoot()(*RulesRoot) { func CreateRulesRootFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewRulesRoot(), nil } -// GetDetectionRules gets the detectionRules property value. The detectionRules property +// GetDetectionRules gets the detectionRules property value. The custom detection rules configured for the tenant. // returns a []DetectionRuleable when successful func (m *RulesRoot) GetDetectionRules()([]DetectionRuleable) { val, err := m.GetBackingStore().Get("detectionRules") @@ -77,7 +77,7 @@ func (m *RulesRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 } return nil } -// SetDetectionRules sets the detectionRules property value. The detectionRules property +// SetDetectionRules sets the detectionRules property value. The custom detection rules configured for the tenant. func (m *RulesRoot) SetDetectionRules(value []DetectionRuleable)() { err := m.GetBackingStore().Set("detectionRules", value) if err != nil { diff --git a/models/security/security_copilot_identity_management_audit_record.go b/models/security/security_copilot_identity_management_audit_record.go new file mode 100644 index 00000000000..6f4dbba9fe4 --- /dev/null +++ b/models/security/security_copilot_identity_management_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// SecurityCopilotIdentityManagementAuditRecord audit data for Security Copilot Identity Management events. +type SecurityCopilotIdentityManagementAuditRecord struct { + AuditData +} +// NewSecurityCopilotIdentityManagementAuditRecord instantiates a new SecurityCopilotIdentityManagementAuditRecord and sets the default values. +func NewSecurityCopilotIdentityManagementAuditRecord()(*SecurityCopilotIdentityManagementAuditRecord) { + m := &SecurityCopilotIdentityManagementAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.securityCopilotIdentityManagementAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateSecurityCopilotIdentityManagementAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateSecurityCopilotIdentityManagementAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewSecurityCopilotIdentityManagementAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *SecurityCopilotIdentityManagementAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *SecurityCopilotIdentityManagementAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type SecurityCopilotIdentityManagementAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/security_development_lifecycle_a_i_log_audit_record.go b/models/security/security_development_lifecycle_a_i_log_audit_record.go new file mode 100644 index 00000000000..27b3b8ff917 --- /dev/null +++ b/models/security/security_development_lifecycle_a_i_log_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// SecurityDevelopmentLifecycleAILogAuditRecord audit data for Security Development Lifecycle AI Log events. +type SecurityDevelopmentLifecycleAILogAuditRecord struct { + AuditData +} +// NewSecurityDevelopmentLifecycleAILogAuditRecord instantiates a new SecurityDevelopmentLifecycleAILogAuditRecord and sets the default values. +func NewSecurityDevelopmentLifecycleAILogAuditRecord()(*SecurityDevelopmentLifecycleAILogAuditRecord) { + m := &SecurityDevelopmentLifecycleAILogAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.securityDevelopmentLifecycleAILogAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateSecurityDevelopmentLifecycleAILogAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateSecurityDevelopmentLifecycleAILogAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewSecurityDevelopmentLifecycleAILogAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *SecurityDevelopmentLifecycleAILogAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *SecurityDevelopmentLifecycleAILogAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type SecurityDevelopmentLifecycleAILogAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/security_group_entity_mapping.go b/models/security/security_group_entity_mapping.go new file mode 100644 index 00000000000..c0e7208946b --- /dev/null +++ b/models/security/security_group_entity_mapping.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type SecurityGroupEntityMapping struct { + EntityMapping +} +// NewSecurityGroupEntityMapping instantiates a new SecurityGroupEntityMapping and sets the default values. +func NewSecurityGroupEntityMapping()(*SecurityGroupEntityMapping) { + m := &SecurityGroupEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.securityGroupEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateSecurityGroupEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateSecurityGroupEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewSecurityGroupEntityMapping(), nil +} +// GetDistinguishedNameColumn gets the distinguishedNameColumn property value. Name of the detection query column that maps to the distinguished name of the alert entity. +// returns a *string when successful +func (m *SecurityGroupEntityMapping) GetDistinguishedNameColumn()(*string) { + val, err := m.GetBackingStore().Get("distinguishedNameColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *SecurityGroupEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["distinguishedNameColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDistinguishedNameColumn(val) + } + return nil + } + res["objectIdColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetObjectIdColumn(val) + } + return nil + } + res["sidColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSidColumn(val) + } + return nil + } + return res +} +// GetObjectIdColumn gets the objectIdColumn property value. Name of the detection query column that maps to the object ID of the alert entity. +// returns a *string when successful +func (m *SecurityGroupEntityMapping) GetObjectIdColumn()(*string) { + val, err := m.GetBackingStore().Get("objectIdColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSidColumn gets the sidColumn property value. Name of the detection query column that maps to the security identifier (SID) of the alert entity. +// returns a *string when successful +func (m *SecurityGroupEntityMapping) GetSidColumn()(*string) { + val, err := m.GetBackingStore().Get("sidColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *SecurityGroupEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("distinguishedNameColumn", m.GetDistinguishedNameColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("objectIdColumn", m.GetObjectIdColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("sidColumn", m.GetSidColumn()) + if err != nil { + return err + } + } + return nil +} +// SetDistinguishedNameColumn sets the distinguishedNameColumn property value. Name of the detection query column that maps to the distinguished name of the alert entity. +func (m *SecurityGroupEntityMapping) SetDistinguishedNameColumn(value *string)() { + err := m.GetBackingStore().Set("distinguishedNameColumn", value) + if err != nil { + panic(err) + } +} +// SetObjectIdColumn sets the objectIdColumn property value. Name of the detection query column that maps to the object ID of the alert entity. +func (m *SecurityGroupEntityMapping) SetObjectIdColumn(value *string)() { + err := m.GetBackingStore().Set("objectIdColumn", value) + if err != nil { + panic(err) + } +} +// SetSidColumn sets the sidColumn property value. Name of the detection query column that maps to the security identifier (SID) of the alert entity. +func (m *SecurityGroupEntityMapping) SetSidColumn(value *string)() { + err := m.GetBackingStore().Set("sidColumn", value) + if err != nil { + panic(err) + } +} +type SecurityGroupEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDistinguishedNameColumn()(*string) + GetObjectIdColumn()(*string) + GetSidColumn()(*string) + SetDistinguishedNameColumn(value *string)() + SetObjectIdColumn(value *string)() + SetSidColumn(value *string)() +} diff --git a/models/security/sensor_migration.go b/models/security/sensor_migration.go index 16ffef06b7c..b790a1c1b3f 100644 --- a/models/security/sensor_migration.go +++ b/models/security/sensor_migration.go @@ -24,7 +24,7 @@ func NewSensorMigration()(*SensorMigration) { func CreateSensorMigrationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewSensorMigration(), nil } -// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// GetCreatedDateTime gets the createdDateTime property value. The date and time the sensor was created. // returns a *Time when successful func (m *SensorMigration) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") @@ -36,7 +36,7 @@ func (m *SensorMigration) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a } return nil } -// GetDisplayName gets the displayName property value. The displayName property +// GetDisplayName gets the displayName property value. The display name of the sensor. // returns a *string when successful func (m *SensorMigration) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -48,7 +48,7 @@ func (m *SensorMigration) GetDisplayName()(*string) { } return nil } -// GetDomainName gets the domainName property value. The domainName property +// GetDomainName gets the domainName property value. The fully qualified domain name (FQDN) of the domain controller where the sensor is installed. // returns a *string when successful func (m *SensorMigration) GetDomainName()(*string) { val, err := m.GetBackingStore().Get("domainName") @@ -194,7 +194,7 @@ func (m *SensorMigration) GetServiceStatus()(*ServiceStatus) { } return nil } -// GetVersion gets the version property value. The version property +// GetVersion gets the version property value. The version number of the sensor software. // returns a *string when successful func (m *SensorMigration) GetVersion()(*string) { val, err := m.GetBackingStore().Get("version") @@ -266,21 +266,21 @@ func (m *SensorMigration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 } return nil } -// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +// SetCreatedDateTime sets the createdDateTime property value. The date and time the sensor was created. func (m *SensorMigration) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. The displayName property +// SetDisplayName sets the displayName property value. The display name of the sensor. func (m *SensorMigration) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetDomainName sets the domainName property value. The domainName property +// SetDomainName sets the domainName property value. The fully qualified domain name (FQDN) of the domain controller where the sensor is installed. func (m *SensorMigration) SetDomainName(value *string)() { err := m.GetBackingStore().Set("domainName", value) if err != nil { @@ -315,7 +315,7 @@ func (m *SensorMigration) SetServiceStatus(value *ServiceStatus)() { panic(err) } } -// SetVersion sets the version property value. The version property +// SetVersion sets the version property value. The version number of the sensor software. func (m *SensorMigration) SetVersion(value *string)() { err := m.GetBackingStore().Set("version", value) if err != nil { diff --git a/models/security/service_source.go b/models/security/service_source.go index 362b0ecddf3..f584c64af40 100644 --- a/models/security/service_source.go +++ b/models/security/service_source.go @@ -19,10 +19,11 @@ const ( MICROSOFTSENTINEL_SERVICESOURCE MICROSOFTINSIDERRISKMANAGEMENT_SERVICESOURCE MICROSOFTTHREATINTELLIGENCE_SERVICESOURCE + MICROSOFTSECURITYFORAI_SERVICESOURCE ) func (i ServiceSource) String() string { - return []string{"unknown", "microsoftDefenderForEndpoint", "microsoftDefenderForIdentity", "microsoftDefenderForCloudApps", "microsoftDefenderForOffice365", "microsoft365Defender", "azureAdIdentityProtection", "microsoftAppGovernance", "dataLossPrevention", "unknownFutureValue", "microsoftDefenderForCloud", "microsoftSentinel", "microsoftInsiderRiskManagement", "microsoftThreatIntelligence"}[i] + return []string{"unknown", "microsoftDefenderForEndpoint", "microsoftDefenderForIdentity", "microsoftDefenderForCloudApps", "microsoftDefenderForOffice365", "microsoft365Defender", "azureAdIdentityProtection", "microsoftAppGovernance", "dataLossPrevention", "unknownFutureValue", "microsoftDefenderForCloud", "microsoftSentinel", "microsoftInsiderRiskManagement", "microsoftThreatIntelligence", "microsoftSecurityForAI"}[i] } func ParseServiceSource(v string) (any, error) { result := UNKNOWN_SERVICESOURCE @@ -55,6 +56,8 @@ func ParseServiceSource(v string) (any, error) { result = MICROSOFTINSIDERRISKMANAGEMENT_SERVICESOURCE case "microsoftThreatIntelligence": result = MICROSOFTTHREATINTELLIGENCE_SERVICESOURCE + case "microsoftSecurityForAI": + result = MICROSOFTSECURITYFORAI_SERVICESOURCE default: return nil, nil } diff --git a/models/security/sonar_detonation_entity_audit_record.go b/models/security/sonar_detonation_entity_audit_record.go new file mode 100644 index 00000000000..3513f152d3f --- /dev/null +++ b/models/security/sonar_detonation_entity_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// SonarDetonationEntityAuditRecord audit data for Sonar Detonation Entity events. +type SonarDetonationEntityAuditRecord struct { + AuditData +} +// NewSonarDetonationEntityAuditRecord instantiates a new SonarDetonationEntityAuditRecord and sets the default values. +func NewSonarDetonationEntityAuditRecord()(*SonarDetonationEntityAuditRecord) { + m := &SonarDetonationEntityAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.sonarDetonationEntityAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateSonarDetonationEntityAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateSonarDetonationEntityAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewSonarDetonationEntityAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *SonarDetonationEntityAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *SonarDetonationEntityAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type SonarDetonationEntityAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/sonar_file_detonation_entity_audit_record.go b/models/security/sonar_file_detonation_entity_audit_record.go new file mode 100644 index 00000000000..c318fbc5200 --- /dev/null +++ b/models/security/sonar_file_detonation_entity_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// SonarFileDetonationEntityAuditRecord audit data for Sonar File Detonation Entity events. +type SonarFileDetonationEntityAuditRecord struct { + AuditData +} +// NewSonarFileDetonationEntityAuditRecord instantiates a new SonarFileDetonationEntityAuditRecord and sets the default values. +func NewSonarFileDetonationEntityAuditRecord()(*SonarFileDetonationEntityAuditRecord) { + m := &SonarFileDetonationEntityAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.sonarFileDetonationEntityAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateSonarFileDetonationEntityAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateSonarFileDetonationEntityAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewSonarFileDetonationEntityAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *SonarFileDetonationEntityAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *SonarFileDetonationEntityAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type SonarFileDetonationEntityAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/sonar_submission_entity_audit_record.go b/models/security/sonar_submission_entity_audit_record.go new file mode 100644 index 00000000000..15379906cc8 --- /dev/null +++ b/models/security/sonar_submission_entity_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// SonarSubmissionEntityAuditRecord audit data for Sonar Submission Entity events. +type SonarSubmissionEntityAuditRecord struct { + AuditData +} +// NewSonarSubmissionEntityAuditRecord instantiates a new SonarSubmissionEntityAuditRecord and sets the default values. +func NewSonarSubmissionEntityAuditRecord()(*SonarSubmissionEntityAuditRecord) { + m := &SonarSubmissionEntityAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.sonarSubmissionEntityAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateSonarSubmissionEntityAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateSonarSubmissionEntityAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewSonarSubmissionEntityAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *SonarSubmissionEntityAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *SonarSubmissionEntityAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type SonarSubmissionEntityAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/sonar_url_detonation_entity_audit_record.go b/models/security/sonar_url_detonation_entity_audit_record.go new file mode 100644 index 00000000000..bad12291ca3 --- /dev/null +++ b/models/security/sonar_url_detonation_entity_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// SonarUrlDetonationEntityAuditRecord audit data for Sonar URL Detonation Entity events. +type SonarUrlDetonationEntityAuditRecord struct { + AuditData +} +// NewSonarUrlDetonationEntityAuditRecord instantiates a new SonarUrlDetonationEntityAuditRecord and sets the default values. +func NewSonarUrlDetonationEntityAuditRecord()(*SonarUrlDetonationEntityAuditRecord) { + m := &SonarUrlDetonationEntityAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.sonarUrlDetonationEntityAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateSonarUrlDetonationEntityAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateSonarUrlDetonationEntityAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewSonarUrlDetonationEntityAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *SonarUrlDetonationEntityAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *SonarUrlDetonationEntityAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type SonarUrlDetonationEntityAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/spark_core_custom_live_pool_record.go b/models/security/spark_core_custom_live_pool_record.go new file mode 100644 index 00000000000..9b7fa6036d3 --- /dev/null +++ b/models/security/spark_core_custom_live_pool_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// SparkCoreCustomLivePoolRecord audit data for Spark Core Custom Live Pool events. +type SparkCoreCustomLivePoolRecord struct { + AuditData +} +// NewSparkCoreCustomLivePoolRecord instantiates a new SparkCoreCustomLivePoolRecord and sets the default values. +func NewSparkCoreCustomLivePoolRecord()(*SparkCoreCustomLivePoolRecord) { + m := &SparkCoreCustomLivePoolRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.sparkCoreCustomLivePoolRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateSparkCoreCustomLivePoolRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateSparkCoreCustomLivePoolRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewSparkCoreCustomLivePoolRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *SparkCoreCustomLivePoolRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *SparkCoreCustomLivePoolRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type SparkCoreCustomLivePoolRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/stop_and_quarantine_file_action.go b/models/security/stop_and_quarantine_file_action.go new file mode 100644 index 00000000000..fd612bc1434 --- /dev/null +++ b/models/security/stop_and_quarantine_file_action.go @@ -0,0 +1,118 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type StopAndQuarantineFileAction struct { + AutomatedAction +} +// NewStopAndQuarantineFileAction instantiates a new StopAndQuarantineFileAction and sets the default values. +func NewStopAndQuarantineFileAction()(*StopAndQuarantineFileAction) { + m := &StopAndQuarantineFileAction{ + AutomatedAction: *NewAutomatedAction(), + } + odataTypeValue := "#microsoft.graph.security.stopAndQuarantineFileAction" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateStopAndQuarantineFileActionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateStopAndQuarantineFileActionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewStopAndQuarantineFileAction(), nil +} +// GetDeviceIdColumn gets the deviceIdColumn property value. Name of the hunting-query result column that contains the device ID for the device where the file was observed. +// returns a *string when successful +func (m *StopAndQuarantineFileAction) GetDeviceIdColumn()(*string) { + val, err := m.GetBackingStore().Get("deviceIdColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *StopAndQuarantineFileAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AutomatedAction.GetFieldDeserializers() + res["deviceIdColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDeviceIdColumn(val) + } + return nil + } + res["sha1Column"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSha1Column(val) + } + return nil + } + return res +} +// GetSha1Column gets the sha1Column property value. Name of the hunting-query result column that contains the SHA-1 hash of the file to stop and quarantine. +// returns a *string when successful +func (m *StopAndQuarantineFileAction) GetSha1Column()(*string) { + val, err := m.GetBackingStore().Get("sha1Column") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *StopAndQuarantineFileAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AutomatedAction.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("deviceIdColumn", m.GetDeviceIdColumn()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("sha1Column", m.GetSha1Column()) + if err != nil { + return err + } + } + return nil +} +// SetDeviceIdColumn sets the deviceIdColumn property value. Name of the hunting-query result column that contains the device ID for the device where the file was observed. +func (m *StopAndQuarantineFileAction) SetDeviceIdColumn(value *string)() { + err := m.GetBackingStore().Set("deviceIdColumn", value) + if err != nil { + panic(err) + } +} +// SetSha1Column sets the sha1Column property value. Name of the hunting-query result column that contains the SHA-1 hash of the file to stop and quarantine. +func (m *StopAndQuarantineFileAction) SetSha1Column(value *string)() { + err := m.GetBackingStore().Set("sha1Column", value) + if err != nil { + panic(err) + } +} +type StopAndQuarantineFileActionable interface { + AutomatedActionable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDeviceIdColumn()(*string) + GetSha1Column()(*string) + SetDeviceIdColumn(value *string)() + SetSha1Column(value *string)() +} diff --git a/models/security/submission_entity_audit_record.go b/models/security/submission_entity_audit_record.go new file mode 100644 index 00000000000..b38d7750e4c --- /dev/null +++ b/models/security/submission_entity_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// SubmissionEntityAuditRecord audit data for Submission Entity events. +type SubmissionEntityAuditRecord struct { + AuditData +} +// NewSubmissionEntityAuditRecord instantiates a new SubmissionEntityAuditRecord and sets the default values. +func NewSubmissionEntityAuditRecord()(*SubmissionEntityAuditRecord) { + m := &SubmissionEntityAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.submissionEntityAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateSubmissionEntityAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateSubmissionEntityAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewSubmissionEntityAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *SubmissionEntityAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *SubmissionEntityAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type SubmissionEntityAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/security/url_entity_mapping.go b/models/security/url_entity_mapping.go new file mode 100644 index 00000000000..2872f69ea09 --- /dev/null +++ b/models/security/url_entity_mapping.go @@ -0,0 +1,81 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type UrlEntityMapping struct { + EntityMapping +} +// NewUrlEntityMapping instantiates a new UrlEntityMapping and sets the default values. +func NewUrlEntityMapping()(*UrlEntityMapping) { + m := &UrlEntityMapping{ + EntityMapping: *NewEntityMapping(), + } + odataTypeValue := "#microsoft.graph.security.urlEntityMapping" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateUrlEntityMappingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateUrlEntityMappingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewUrlEntityMapping(), nil +} +// GetAddressColumn gets the addressColumn property value. Name of the detection query column that maps to the URL address of the alert entity. +// returns a *string when successful +func (m *UrlEntityMapping) GetAddressColumn()(*string) { + val, err := m.GetBackingStore().Get("addressColumn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *UrlEntityMapping) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.EntityMapping.GetFieldDeserializers() + res["addressColumn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAddressColumn(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *UrlEntityMapping) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.EntityMapping.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("addressColumn", m.GetAddressColumn()) + if err != nil { + return err + } + } + return nil +} +// SetAddressColumn sets the addressColumn property value. Name of the detection query column that maps to the URL address of the alert entity. +func (m *UrlEntityMapping) SetAddressColumn(value *string)() { + err := m.GetBackingStore().Set("addressColumn", value) + if err != nil { + panic(err) + } +} +type UrlEntityMappingable interface { + EntityMappingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAddressColumn()(*string) + SetAddressColumn(value *string)() +} diff --git a/models/security/user_account.go b/models/security/user_account.go index 351654aa9cb..eca1665117b 100644 --- a/models/security/user_account.go +++ b/models/security/user_account.go @@ -184,6 +184,16 @@ func (m *UserAccount) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return nil } + res["tenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTenantId(val) + } + return nil + } res["userPrincipalName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -230,6 +240,18 @@ func (m *UserAccount) GetResourceAccessEvents()([]ResourceAccessEventable) { } return nil } +// GetTenantId gets the tenantId property value. The Microsoft Entra tenant ID of the user account. +// returns a *string when successful +func (m *UserAccount) GetTenantId()(*string) { + val, err := m.GetBackingStore().Get("tenantId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetUserPrincipalName gets the userPrincipalName property value. The user principal name of the account in Microsoft Entra ID. // returns a *string when successful func (m *UserAccount) GetUserPrincipalName()(*string) { @@ -304,6 +326,12 @@ func (m *UserAccount) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + { + err := writer.WriteStringValue("tenantId", m.GetTenantId()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("userPrincipalName", m.GetUserPrincipalName()) if err != nil { @@ -384,6 +412,13 @@ func (m *UserAccount) SetResourceAccessEvents(value []ResourceAccessEventable)() panic(err) } } +// SetTenantId sets the tenantId property value. The Microsoft Entra tenant ID of the user account. +func (m *UserAccount) SetTenantId(value *string)() { + err := m.GetBackingStore().Set("tenantId", value) + if err != nil { + panic(err) + } +} // SetUserPrincipalName sets the userPrincipalName property value. The user principal name of the account in Microsoft Entra ID. func (m *UserAccount) SetUserPrincipalName(value *string)() { err := m.GetBackingStore().Set("userPrincipalName", value) @@ -410,6 +445,7 @@ type UserAccountable interface { GetDomainName()(*string) GetOdataType()(*string) GetResourceAccessEvents()([]ResourceAccessEventable) + GetTenantId()(*string) GetUserPrincipalName()(*string) GetUserSid()(*string) SetAccountName(value *string)() @@ -420,6 +456,7 @@ type UserAccountable interface { SetDomainName(value *string)() SetOdataType(value *string)() SetResourceAccessEvents(value []ResourceAccessEventable)() + SetTenantId(value *string)() SetUserPrincipalName(value *string)() SetUserSid(value *string)() } diff --git a/models/security/viva_glint_agentic_campaign_audit_record.go b/models/security/viva_glint_agentic_campaign_audit_record.go new file mode 100644 index 00000000000..37ec4a4f381 --- /dev/null +++ b/models/security/viva_glint_agentic_campaign_audit_record.go @@ -0,0 +1,45 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// VivaGlintAgenticCampaignAuditRecord audit data for Viva Glint Agentic Campaign events. +type VivaGlintAgenticCampaignAuditRecord struct { + AuditData +} +// NewVivaGlintAgenticCampaignAuditRecord instantiates a new VivaGlintAgenticCampaignAuditRecord and sets the default values. +func NewVivaGlintAgenticCampaignAuditRecord()(*VivaGlintAgenticCampaignAuditRecord) { + m := &VivaGlintAgenticCampaignAuditRecord{ + AuditData: *NewAuditData(), + } + odataTypeValue := "#microsoft.graph.security.vivaGlintAgenticCampaignAuditRecord" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateVivaGlintAgenticCampaignAuditRecordFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateVivaGlintAgenticCampaignAuditRecordFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVivaGlintAgenticCampaignAuditRecord(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *VivaGlintAgenticCampaignAuditRecord) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AuditData.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *VivaGlintAgenticCampaignAuditRecord) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AuditData.Serialize(writer) + if err != nil { + return err + } + return nil +} +type VivaGlintAgenticCampaignAuditRecordable interface { + AuditDataable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/service_announcement.go b/models/service_announcement.go index ec43f958c3b..f7f6d663e21 100644 --- a/models/service_announcement.go +++ b/models/service_announcement.go @@ -76,7 +76,7 @@ func (m *ServiceAnnouncement) GetFieldDeserializers()(map[string]func(i878a80d23 } return res } -// GetHealthOverviews gets the healthOverviews property value. A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly. +// GetHealthOverviews gets the healthOverviews property value. A collection of service health information for tenant. This property is a contained navigation property, it is nullable and read-only. // returns a []ServiceHealthable when successful func (m *ServiceAnnouncement) GetHealthOverviews()([]ServiceHealthable) { val, err := m.GetBackingStore().Get("healthOverviews") @@ -88,7 +88,7 @@ func (m *ServiceAnnouncement) GetHealthOverviews()([]ServiceHealthable) { } return nil } -// GetIssues gets the issues property value. A collection of service issues for tenant. This property is a contained navigation property, it is nullable and readonly. +// GetIssues gets the issues property value. A collection of service issues for tenant. This property is a contained navigation property, it is nullable and read-only. // returns a []ServiceHealthIssueable when successful func (m *ServiceAnnouncement) GetIssues()([]ServiceHealthIssueable) { val, err := m.GetBackingStore().Get("issues") @@ -100,7 +100,7 @@ func (m *ServiceAnnouncement) GetIssues()([]ServiceHealthIssueable) { } return nil } -// GetMessages gets the messages property value. A collection of service messages for tenant. This property is a contained navigation property, it is nullable and readonly. +// GetMessages gets the messages property value. A collection of service messages for tenant. This property is a contained navigation property, it is nullable and read-only. // returns a []ServiceUpdateMessageable when successful func (m *ServiceAnnouncement) GetMessages()([]ServiceUpdateMessageable) { val, err := m.GetBackingStore().Get("messages") @@ -156,21 +156,21 @@ func (m *ServiceAnnouncement) Serialize(writer i878a80d2330e89d26896388a3f487eef } return nil } -// SetHealthOverviews sets the healthOverviews property value. A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly. +// SetHealthOverviews sets the healthOverviews property value. A collection of service health information for tenant. This property is a contained navigation property, it is nullable and read-only. func (m *ServiceAnnouncement) SetHealthOverviews(value []ServiceHealthable)() { err := m.GetBackingStore().Set("healthOverviews", value) if err != nil { panic(err) } } -// SetIssues sets the issues property value. A collection of service issues for tenant. This property is a contained navigation property, it is nullable and readonly. +// SetIssues sets the issues property value. A collection of service issues for tenant. This property is a contained navigation property, it is nullable and read-only. func (m *ServiceAnnouncement) SetIssues(value []ServiceHealthIssueable)() { err := m.GetBackingStore().Set("issues", value) if err != nil { panic(err) } } -// SetMessages sets the messages property value. A collection of service messages for tenant. This property is a contained navigation property, it is nullable and readonly. +// SetMessages sets the messages property value. A collection of service messages for tenant. This property is a contained navigation property, it is nullable and read-only. func (m *ServiceAnnouncement) SetMessages(value []ServiceUpdateMessageable)() { err := m.GetBackingStore().Set("messages", value) if err != nil { diff --git a/models/service_now_connection_status.go b/models/service_now_connection_status.go index 00d07287acd..b456fb43eee 100644 --- a/models/service_now_connection_status.go +++ b/models/service_now_connection_status.go @@ -10,7 +10,7 @@ const ( DISABLED_SERVICENOWCONNECTIONSTATUS ServiceNowConnectionStatus = iota // Tenant has enabled the connection ENABLED_SERVICENOWCONNECTIONSTATUS - // Evolvable enumeration sentinel value. Do not use. + // Future authentication method to be added here. UNKNOWNFUTUREVALUE_SERVICENOWCONNECTIONSTATUS ) diff --git a/models/service_provider_constraints.go b/models/service_provider_constraints.go new file mode 100644 index 00000000000..f4ee22a2d48 --- /dev/null +++ b/models/service_provider_constraints.go @@ -0,0 +1,99 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ServiceProviderConstraints struct { + PolicyDeletableItem +} +// NewServiceProviderConstraints instantiates a new ServiceProviderConstraints and sets the default values. +func NewServiceProviderConstraints()(*ServiceProviderConstraints) { + m := &ServiceProviderConstraints{ + PolicyDeletableItem: *NewPolicyDeletableItem(), + } + odataTypeValue := "#microsoft.graph.serviceProviderConstraints" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateServiceProviderConstraintsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateServiceProviderConstraintsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.delegatedAdminServiceProviderConstraints": + return NewDelegatedAdminServiceProviderConstraints(), nil + } + } + } + } + return NewServiceProviderConstraints(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ServiceProviderConstraints) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.PolicyDeletableItem.GetFieldDeserializers() + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + return res +} +// GetId gets the id property value. The id property +// returns a *string when successful +func (m *ServiceProviderConstraints) GetId()(*string) { + val, err := m.GetBackingStore().Get("id") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ServiceProviderConstraints) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.PolicyDeletableItem.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("id", m.GetId()) + if err != nil { + return err + } + } + return nil +} +// SetId sets the id property value. The id property +func (m *ServiceProviderConstraints) SetId(value *string)() { + err := m.GetBackingStore().Set("id", value) + if err != nil { + panic(err) + } +} +type ServiceProviderConstraintsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + PolicyDeletableItemable + GetId()(*string) + SetId(value *string)() +} diff --git a/models/share_point_protection_policy.go b/models/share_point_protection_policy.go index eead9e91be8..cef95a8ae01 100644 --- a/models/share_point_protection_policy.go +++ b/models/share_point_protection_policy.go @@ -110,7 +110,7 @@ func (m *SharePointProtectionPolicy) GetFieldDeserializers()(map[string]func(i87 } return res } -// GetSiteExclusionUnits gets the siteExclusionUnits property value. The siteExclusionUnits property +// GetSiteExclusionUnits gets the siteExclusionUnits property value. The site exclusion units associated with the SharePoint protection policy. // returns a []SiteExclusionUnitable when successful func (m *SharePointProtectionPolicy) GetSiteExclusionUnits()([]SiteExclusionUnitable) { val, err := m.GetBackingStore().Get("siteExclusionUnits") @@ -122,7 +122,7 @@ func (m *SharePointProtectionPolicy) GetSiteExclusionUnits()([]SiteExclusionUnit } return nil } -// GetSiteExclusionUnitsBulkAdditionJobs gets the siteExclusionUnitsBulkAdditionJobs property value. The siteExclusionUnitsBulkAdditionJobs property +// GetSiteExclusionUnitsBulkAdditionJobs gets the siteExclusionUnitsBulkAdditionJobs property value. The list of bulk addition jobs for site exclusion units associated with the SharePoint protection policy. // returns a []SiteExclusionUnitsBulkAdditionJobable when successful func (m *SharePointProtectionPolicy) GetSiteExclusionUnitsBulkAdditionJobs()([]SiteExclusionUnitsBulkAdditionJobable) { val, err := m.GetBackingStore().Get("siteExclusionUnitsBulkAdditionJobs") @@ -238,14 +238,14 @@ func (m *SharePointProtectionPolicy) Serialize(writer i878a80d2330e89d26896388a3 } return nil } -// SetSiteExclusionUnits sets the siteExclusionUnits property value. The siteExclusionUnits property +// SetSiteExclusionUnits sets the siteExclusionUnits property value. The site exclusion units associated with the SharePoint protection policy. func (m *SharePointProtectionPolicy) SetSiteExclusionUnits(value []SiteExclusionUnitable)() { err := m.GetBackingStore().Set("siteExclusionUnits", value) if err != nil { panic(err) } } -// SetSiteExclusionUnitsBulkAdditionJobs sets the siteExclusionUnitsBulkAdditionJobs property value. The siteExclusionUnitsBulkAdditionJobs property +// SetSiteExclusionUnitsBulkAdditionJobs sets the siteExclusionUnitsBulkAdditionJobs property value. The list of bulk addition jobs for site exclusion units associated with the SharePoint protection policy. func (m *SharePointProtectionPolicy) SetSiteExclusionUnitsBulkAdditionJobs(value []SiteExclusionUnitsBulkAdditionJobable)() { err := m.GetBackingStore().Set("siteExclusionUnitsBulkAdditionJobs", value) if err != nil { diff --git a/models/share_point_report_settings.go b/models/share_point_report_settings.go new file mode 100644 index 00000000000..37b70acbefa --- /dev/null +++ b/models/share_point_report_settings.go @@ -0,0 +1,91 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type SharePointReportSettings struct { + Entity +} +// NewSharePointReportSettings instantiates a new SharePointReportSettings and sets the default values. +func NewSharePointReportSettings()(*SharePointReportSettings) { + m := &SharePointReportSettings{ + Entity: *NewEntity(), + } + return m +} +// CreateSharePointReportSettingsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateSharePointReportSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewSharePointReportSettings(), nil +} +// GetApiUsageReportMetrics gets the apiUsageReportMetrics property value. The collection of API usage report metrics and the status of their enablement. +// returns a []ApiUsageReportEnablementStatusable when successful +func (m *SharePointReportSettings) GetApiUsageReportMetrics()([]ApiUsageReportEnablementStatusable) { + val, err := m.GetBackingStore().Get("apiUsageReportMetrics") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ApiUsageReportEnablementStatusable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *SharePointReportSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["apiUsageReportMetrics"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateApiUsageReportEnablementStatusFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ApiUsageReportEnablementStatusable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ApiUsageReportEnablementStatusable) + } + } + m.SetApiUsageReportMetrics(res) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *SharePointReportSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + if m.GetApiUsageReportMetrics() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetApiUsageReportMetrics())) + for i, v := range m.GetApiUsageReportMetrics() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("apiUsageReportMetrics", cast) + if err != nil { + return err + } + } + return nil +} +// SetApiUsageReportMetrics sets the apiUsageReportMetrics property value. The collection of API usage report metrics and the status of their enablement. +func (m *SharePointReportSettings) SetApiUsageReportMetrics(value []ApiUsageReportEnablementStatusable)() { + err := m.GetBackingStore().Set("apiUsageReportMetrics", value) + if err != nil { + panic(err) + } +} +type SharePointReportSettingsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApiUsageReportMetrics()([]ApiUsageReportEnablementStatusable) + SetApiUsageReportMetrics(value []ApiUsageReportEnablementStatusable)() +} diff --git a/models/shared_insight.go b/models/shared_insight.go index 7d411ee7b30..0e5a9b16e7b 100644 --- a/models/shared_insight.go +++ b/models/shared_insight.go @@ -94,7 +94,7 @@ func (m *SharedInsight) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return res } -// GetLastShared gets the lastShared property value. Details about the shared item. Read only. +// GetLastShared gets the lastShared property value. Details about the shared item. Read-only. // returns a SharingDetailable when successful func (m *SharedInsight) GetLastShared()(SharingDetailable) { val, err := m.GetBackingStore().Get("lastShared") @@ -204,7 +204,7 @@ func (m *SharedInsight) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 } return nil } -// SetLastShared sets the lastShared property value. Details about the shared item. Read only. +// SetLastShared sets the lastShared property value. Details about the shared item. Read-only. func (m *SharedInsight) SetLastShared(value SharingDetailable)() { err := m.GetBackingStore().Set("lastShared", value) if err != nil { diff --git a/models/single_user.go b/models/single_user.go index 76f0b963006..b184ac29ff2 100644 --- a/models/single_user.go +++ b/models/single_user.go @@ -24,7 +24,7 @@ func NewSingleUser()(*SingleUser) { func CreateSingleUserFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewSingleUser(), nil } -// GetDescription gets the description property value. The name of the user in Microsoft Entra ID. Read only. +// GetDescription gets the description property value. The name of the user in Microsoft Entra ID. Read-only. // returns a *string when successful func (m *SingleUser) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") @@ -94,7 +94,7 @@ func (m *SingleUser) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c } return nil } -// SetDescription sets the description property value. The name of the user in Microsoft Entra ID. Read only. +// SetDescription sets the description property value. The name of the user in Microsoft Entra ID. Read-only. func (m *SingleUser) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { diff --git a/models/site_exclusion_unit.go b/models/site_exclusion_unit.go index 4b4c5339e4f..54d2dcd0139 100644 --- a/models/site_exclusion_unit.go +++ b/models/site_exclusion_unit.go @@ -60,7 +60,7 @@ func (m *SiteExclusionUnit) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetSiteId gets the siteId property value. The siteId property +// GetSiteId gets the siteId property value. The unique identifier of the SharePoint site. // returns a *string when successful func (m *SiteExclusionUnit) GetSiteId()(*string) { val, err := m.GetBackingStore().Get("siteId") @@ -72,7 +72,7 @@ func (m *SiteExclusionUnit) GetSiteId()(*string) { } return nil } -// GetSiteName gets the siteName property value. The siteName property +// GetSiteName gets the siteName property value. The display name of the SharePoint site. // returns a *string when successful func (m *SiteExclusionUnit) GetSiteName()(*string) { val, err := m.GetBackingStore().Get("siteName") @@ -84,7 +84,7 @@ func (m *SiteExclusionUnit) GetSiteName()(*string) { } return nil } -// GetSiteWebUrl gets the siteWebUrl property value. The siteWebUrl property +// GetSiteWebUrl gets the siteWebUrl property value. The URL of the SharePoint site. // returns a *string when successful func (m *SiteExclusionUnit) GetSiteWebUrl()(*string) { val, err := m.GetBackingStore().Get("siteWebUrl") @@ -110,21 +110,21 @@ func (m *SiteExclusionUnit) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetSiteId sets the siteId property value. The siteId property +// SetSiteId sets the siteId property value. The unique identifier of the SharePoint site. func (m *SiteExclusionUnit) SetSiteId(value *string)() { err := m.GetBackingStore().Set("siteId", value) if err != nil { panic(err) } } -// SetSiteName sets the siteName property value. The siteName property +// SetSiteName sets the siteName property value. The display name of the SharePoint site. func (m *SiteExclusionUnit) SetSiteName(value *string)() { err := m.GetBackingStore().Set("siteName", value) if err != nil { panic(err) } } -// SetSiteWebUrl sets the siteWebUrl property value. The siteWebUrl property +// SetSiteWebUrl sets the siteWebUrl property value. The URL of the SharePoint site. func (m *SiteExclusionUnit) SetSiteWebUrl(value *string)() { err := m.GetBackingStore().Set("siteWebUrl", value) if err != nil { diff --git a/models/site_exclusion_units_bulk_addition_job.go b/models/site_exclusion_units_bulk_addition_job.go index 9088a0d9f0b..5136751dffc 100644 --- a/models/site_exclusion_units_bulk_addition_job.go +++ b/models/site_exclusion_units_bulk_addition_job.go @@ -46,7 +46,7 @@ func (m *SiteExclusionUnitsBulkAdditionJob) GetFieldDeserializers()(map[string]f } return res } -// GetSiteWebUrls gets the siteWebUrls property value. The siteWebUrls property +// GetSiteWebUrls gets the siteWebUrls property value. The URLs of SharePoint sites to be added as exclusion units to the protection policy. // returns a []string when successful func (m *SiteExclusionUnitsBulkAdditionJob) GetSiteWebUrls()([]string) { val, err := m.GetBackingStore().Get("siteWebUrls") @@ -72,7 +72,7 @@ func (m *SiteExclusionUnitsBulkAdditionJob) Serialize(writer i878a80d2330e89d268 } return nil } -// SetSiteWebUrls sets the siteWebUrls property value. The siteWebUrls property +// SetSiteWebUrls sets the siteWebUrls property value. The URLs of SharePoint sites to be added as exclusion units to the protection policy. func (m *SiteExclusionUnitsBulkAdditionJob) SetSiteWebUrls(value []string)() { err := m.GetBackingStore().Set("siteWebUrls", value) if err != nil { diff --git a/models/snapshot_job_status.go b/models/snapshot_job_status.go index 179a12481a4..7eb0bb67602 100644 --- a/models/snapshot_job_status.go +++ b/models/snapshot_job_status.go @@ -9,13 +9,13 @@ const ( RUNNING_SNAPSHOTJOBSTATUS SUCCEEDED_SNAPSHOTJOBSTATUS FAILED_SNAPSHOTJOBSTATUS + PARTIALLYSUCCESSFUL_SNAPSHOTJOBSTATUS // A marker value for members added after the release of this API. UNKNOWNFUTUREVALUE_SNAPSHOTJOBSTATUS - PARTIALLYSUCCESSFUL_SNAPSHOTJOBSTATUS ) func (i SnapshotJobStatus) String() string { - return []string{"notStarted", "running", "succeeded", "failed", "unknownFutureValue", "partiallySuccessful"}[i] + return []string{"notStarted", "running", "succeeded", "failed", "partiallySuccessful", "unknownFutureValue"}[i] } func ParseSnapshotJobStatus(v string) (any, error) { result := NOTSTARTED_SNAPSHOTJOBSTATUS @@ -28,10 +28,10 @@ func ParseSnapshotJobStatus(v string) (any, error) { result = SUCCEEDED_SNAPSHOTJOBSTATUS case "failed": result = FAILED_SNAPSHOTJOBSTATUS - case "unknownFutureValue": - result = UNKNOWNFUTUREVALUE_SNAPSHOTJOBSTATUS case "partiallySuccessful": result = PARTIALLYSUCCESSFUL_SNAPSHOTJOBSTATUS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_SNAPSHOTJOBSTATUS default: return nil, nil } diff --git a/models/subscription.go b/models/subscription.go index 437d163b6cf..e04ec891ff6 100644 --- a/models/subscription.go +++ b/models/subscription.go @@ -261,6 +261,36 @@ func (m *Subscription) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return nil } + res["vapidPublicKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetVapidPublicKey(val) + } + return nil + } + res["webPushEncryptionP256dhPublicKey"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetWebPushEncryptionP256dhPublicKey(val) + } + return nil + } + res["webPushEncryptionSecret"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetWebPushEncryptionSecret(val) + } + return nil + } return res } // GetIncludeResourceData gets the includeResourceData property value. Optional. When set to true, change notifications include resource data (such as content of a chat message). @@ -359,6 +389,42 @@ func (m *Subscription) GetResource()(*string) { } return nil } +// GetVapidPublicKey gets the vapidPublicKey property value. The vapidPublicKey property +// returns a *string when successful +func (m *Subscription) GetVapidPublicKey()(*string) { + val, err := m.GetBackingStore().Get("vapidPublicKey") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetWebPushEncryptionP256dhPublicKey gets the webPushEncryptionP256dhPublicKey property value. The webPushEncryptionP256dhPublicKey property +// returns a *string when successful +func (m *Subscription) GetWebPushEncryptionP256dhPublicKey()(*string) { + val, err := m.GetBackingStore().Get("webPushEncryptionP256dhPublicKey") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetWebPushEncryptionSecret gets the webPushEncryptionSecret property value. The webPushEncryptionSecret property +// returns a *string when successful +func (m *Subscription) GetWebPushEncryptionSecret()(*string) { + val, err := m.GetBackingStore().Get("webPushEncryptionSecret") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // Serialize serializes information the current object func (m *Subscription) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -455,6 +521,24 @@ func (m *Subscription) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return err } } + { + err = writer.WriteStringValue("vapidPublicKey", m.GetVapidPublicKey()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("webPushEncryptionP256dhPublicKey", m.GetWebPushEncryptionP256dhPublicKey()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("webPushEncryptionSecret", m.GetWebPushEncryptionSecret()) + if err != nil { + return err + } + } return nil } // SetApplicationId sets the applicationId property value. Optional. Identifier of the application used to create the subscription. Read-only. @@ -562,6 +646,27 @@ func (m *Subscription) SetResource(value *string)() { panic(err) } } +// SetVapidPublicKey sets the vapidPublicKey property value. The vapidPublicKey property +func (m *Subscription) SetVapidPublicKey(value *string)() { + err := m.GetBackingStore().Set("vapidPublicKey", value) + if err != nil { + panic(err) + } +} +// SetWebPushEncryptionP256dhPublicKey sets the webPushEncryptionP256dhPublicKey property value. The webPushEncryptionP256dhPublicKey property +func (m *Subscription) SetWebPushEncryptionP256dhPublicKey(value *string)() { + err := m.GetBackingStore().Set("webPushEncryptionP256dhPublicKey", value) + if err != nil { + panic(err) + } +} +// SetWebPushEncryptionSecret sets the webPushEncryptionSecret property value. The webPushEncryptionSecret property +func (m *Subscription) SetWebPushEncryptionSecret(value *string)() { + err := m.GetBackingStore().Set("webPushEncryptionSecret", value) + if err != nil { + panic(err) + } +} type Subscriptionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable @@ -580,6 +685,9 @@ type Subscriptionable interface { GetNotificationUrl()(*string) GetNotificationUrlAppId()(*string) GetResource()(*string) + GetVapidPublicKey()(*string) + GetWebPushEncryptionP256dhPublicKey()(*string) + GetWebPushEncryptionSecret()(*string) SetApplicationId(value *string)() SetChangeType(value *string)() SetClientState(value *string)() @@ -595,4 +703,7 @@ type Subscriptionable interface { SetNotificationUrl(value *string)() SetNotificationUrlAppId(value *string)() SetResource(value *string)() + SetVapidPublicKey(value *string)() + SetWebPushEncryptionP256dhPublicKey(value *string)() + SetWebPushEncryptionSecret(value *string)() } diff --git a/models/summarized_sign_in.go b/models/summarized_sign_in.go index 5ec9fb4c869..02e036cb2fd 100644 --- a/models/summarized_sign_in.go +++ b/models/summarized_sign_in.go @@ -215,6 +215,16 @@ func (m *SummarizedSignIn) GetFieldDeserializers()(map[string]func(i878a80d2330e } return nil } + res["tokenIssuerType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseTokenIssuerType) + if err != nil { + return err + } + if val != nil { + m.SetTokenIssuerType(val.(*TokenIssuerType)) + } + return nil + } res["userPrincipalName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -347,6 +357,18 @@ func (m *SummarizedSignIn) GetTenantId()(*string) { } return nil } +// GetTokenIssuerType gets the tokenIssuerType property value. The tokenIssuerType property +// returns a *TokenIssuerType when successful +func (m *SummarizedSignIn) GetTokenIssuerType()(*TokenIssuerType) { + val, err := m.GetBackingStore().Get("tokenIssuerType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*TokenIssuerType) + } + return nil +} // GetUserPrincipalName gets the userPrincipalName property value. User principal name of the user that initiated the sign-in. This value is always in lowercase. For guest users whose values in the user object typically contain #EXT# before the domain part, this property stores the value in both lowercase and the 'true' format. For example, while the user object stores AdeleVance_fabrikam.com#EXT#@contoso.com, the sign-in logs store adelevance@fabrikam.com. Supports $filter (eq). // returns a *string when successful func (m *SummarizedSignIn) GetUserPrincipalName()(*string) { @@ -450,6 +472,13 @@ func (m *SummarizedSignIn) Serialize(writer i878a80d2330e89d26896388a3f487eef27b return err } } + if m.GetTokenIssuerType() != nil { + cast := (*m.GetTokenIssuerType()).String() + err = writer.WriteStringValue("tokenIssuerType", &cast) + if err != nil { + return err + } + } { err = writer.WriteStringValue("userPrincipalName", m.GetUserPrincipalName()) if err != nil { @@ -556,6 +585,13 @@ func (m *SummarizedSignIn) SetTenantId(value *string)() { panic(err) } } +// SetTokenIssuerType sets the tokenIssuerType property value. The tokenIssuerType property +func (m *SummarizedSignIn) SetTokenIssuerType(value *TokenIssuerType)() { + err := m.GetBackingStore().Set("tokenIssuerType", value) + if err != nil { + panic(err) + } +} // SetUserPrincipalName sets the userPrincipalName property value. User principal name of the user that initiated the sign-in. This value is always in lowercase. For guest users whose values in the user object typically contain #EXT# before the domain part, this property stores the value in both lowercase and the 'true' format. For example, while the user object stores AdeleVance_fabrikam.com#EXT#@contoso.com, the sign-in logs store adelevance@fabrikam.com. Supports $filter (eq). func (m *SummarizedSignIn) SetUserPrincipalName(value *string)() { err := m.GetBackingStore().Set("userPrincipalName", value) @@ -580,6 +616,7 @@ type SummarizedSignInable interface { GetSignInCount()(*int64) GetStatus()(SignInStatusable) GetTenantId()(*string) + GetTokenIssuerType()(*TokenIssuerType) GetUserPrincipalName()(*string) SetAggregationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetAppDisplayName(value *string)() @@ -595,5 +632,6 @@ type SummarizedSignInable interface { SetSignInCount(value *int64)() SetStatus(value SignInStatusable)() SetTenantId(value *string)() + SetTokenIssuerType(value *TokenIssuerType)() SetUserPrincipalName(value *string)() } diff --git a/models/task_history_item.go b/models/task_history_item.go new file mode 100644 index 00000000000..bb64ab2b952 --- /dev/null +++ b/models/task_history_item.go @@ -0,0 +1,118 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type TaskHistoryItem struct { + PlannerHistoryItem +} +// NewTaskHistoryItem instantiates a new TaskHistoryItem and sets the default values. +func NewTaskHistoryItem()(*TaskHistoryItem) { + m := &TaskHistoryItem{ + PlannerHistoryItem: *NewPlannerHistoryItem(), + } + odataTypeValue := "#microsoft.graph.taskHistoryItem" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateTaskHistoryItemFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTaskHistoryItemFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTaskHistoryItem(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TaskHistoryItem) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.PlannerHistoryItem.GetFieldDeserializers() + res["newData"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerTaskDataFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNewData(val.(PlannerTaskDataable)) + } + return nil + } + res["oldData"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePlannerTaskDataFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOldData(val.(PlannerTaskDataable)) + } + return nil + } + return res +} +// GetNewData gets the newData property value. The newData property +// returns a PlannerTaskDataable when successful +func (m *TaskHistoryItem) GetNewData()(PlannerTaskDataable) { + val, err := m.GetBackingStore().Get("newData") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerTaskDataable) + } + return nil +} +// GetOldData gets the oldData property value. The oldData property +// returns a PlannerTaskDataable when successful +func (m *TaskHistoryItem) GetOldData()(PlannerTaskDataable) { + val, err := m.GetBackingStore().Get("oldData") + if err != nil { + panic(err) + } + if val != nil { + return val.(PlannerTaskDataable) + } + return nil +} +// Serialize serializes information the current object +func (m *TaskHistoryItem) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.PlannerHistoryItem.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("newData", m.GetNewData()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("oldData", m.GetOldData()) + if err != nil { + return err + } + } + return nil +} +// SetNewData sets the newData property value. The newData property +func (m *TaskHistoryItem) SetNewData(value PlannerTaskDataable)() { + err := m.GetBackingStore().Set("newData", value) + if err != nil { + panic(err) + } +} +// SetOldData sets the oldData property value. The oldData property +func (m *TaskHistoryItem) SetOldData(value PlannerTaskDataable)() { + err := m.GetBackingStore().Set("oldData", value) + if err != nil { + panic(err) + } +} +type TaskHistoryItemable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + PlannerHistoryItemable + GetNewData()(PlannerTaskDataable) + GetOldData()(PlannerTaskDataable) + SetNewData(value PlannerTaskDataable)() + SetOldData(value PlannerTaskDataable)() +} diff --git a/models/teams_tab.go b/models/teams_tab.go index a9c7aaa69d3..d3e2ecf0036 100644 --- a/models/teams_tab.go +++ b/models/teams_tab.go @@ -170,7 +170,7 @@ func (m *TeamsTab) GetTeamsAppId()(*string) { } return nil } -// GetWebUrl gets the webUrl property value. Deep link URL of the tab instance. Read only. +// GetWebUrl gets the webUrl property value. Deep link URL of the tab instance. Read-only. // returns a *string when successful func (m *TeamsTab) GetWebUrl()(*string) { val, err := m.GetBackingStore().Get("webUrl") @@ -274,7 +274,7 @@ func (m *TeamsTab) SetTeamsAppId(value *string)() { panic(err) } } -// SetWebUrl sets the webUrl property value. Deep link URL of the tab instance. Read only. +// SetWebUrl sets the webUrl property value. Deep link URL of the tab instance. Read-only. func (m *TeamsTab) SetWebUrl(value *string)() { err := m.GetBackingStore().Set("webUrl", value) if err != nil { diff --git a/models/teamwork.go b/models/teamwork.go index 2ce262163bf..26d9ce1e26f 100644 --- a/models/teamwork.go +++ b/models/teamwork.go @@ -120,6 +120,16 @@ func (m *Teamwork) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return nil } + res["messaging"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTeamworkMessagingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetMessaging(val.(TeamworkMessagingable)) + } + return nil + } res["region"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -186,6 +196,18 @@ func (m *Teamwork) GetIsTeamsEnabled()(*bool) { } return nil } +// GetMessaging gets the messaging property value. The messaging property +// returns a TeamworkMessagingable when successful +func (m *Teamwork) GetMessaging()(TeamworkMessagingable) { + val, err := m.GetBackingStore().Get("messaging") + if err != nil { + panic(err) + } + if val != nil { + return val.(TeamworkMessagingable) + } + return nil +} // GetRegion gets the region property value. Represents the region of the organization or the tenant. The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, Spain, Mexico, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. // returns a *string when successful func (m *Teamwork) GetRegion()(*string) { @@ -282,6 +304,12 @@ func (m *Teamwork) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + { + err = writer.WriteObjectValue("messaging", m.GetMessaging()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("region", m.GetRegion()) if err != nil { @@ -348,6 +376,13 @@ func (m *Teamwork) SetIsTeamsEnabled(value *bool)() { panic(err) } } +// SetMessaging sets the messaging property value. The messaging property +func (m *Teamwork) SetMessaging(value TeamworkMessagingable)() { + err := m.GetBackingStore().Set("messaging", value) + if err != nil { + panic(err) + } +} // SetRegion sets the region property value. Represents the region of the organization or the tenant. The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, Spain, Mexico, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. func (m *Teamwork) SetRegion(value *string)() { err := m.GetBackingStore().Set("region", value) @@ -383,6 +418,7 @@ type Teamworkable interface { GetDeletedTeams()([]DeletedTeamable) GetDevices()([]TeamworkDeviceable) GetIsTeamsEnabled()(*bool) + GetMessaging()(TeamworkMessagingable) GetRegion()(*string) GetTeamsAppSettings()(TeamsAppSettingsable) GetTeamTemplates()([]TeamTemplateable) @@ -391,6 +427,7 @@ type Teamworkable interface { SetDeletedTeams(value []DeletedTeamable)() SetDevices(value []TeamworkDeviceable)() SetIsTeamsEnabled(value *bool)() + SetMessaging(value TeamworkMessagingable)() SetRegion(value *string)() SetTeamsAppSettings(value TeamsAppSettingsable)() SetTeamTemplates(value []TeamTemplateable)() diff --git a/models/teamwork_custom_emoji.go b/models/teamwork_custom_emoji.go new file mode 100644 index 00000000000..3186f2a8342 --- /dev/null +++ b/models/teamwork_custom_emoji.go @@ -0,0 +1,265 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type TeamworkCustomEmoji struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTeamworkCustomEmoji instantiates a new TeamworkCustomEmoji and sets the default values. +func NewTeamworkCustomEmoji()(*TeamworkCustomEmoji) { + m := &TeamworkCustomEmoji{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTeamworkCustomEmojiFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamworkCustomEmojiFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamworkCustomEmoji(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *TeamworkCustomEmoji) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *TeamworkCustomEmoji) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetContentBytes gets the contentBytes property value. The contentBytes property +// returns a *string when successful +func (m *TeamworkCustomEmoji) GetContentBytes()(*string) { + val, err := m.GetBackingStore().Get("contentBytes") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetCreatedBy gets the createdBy property value. The createdBy property +// returns a CustomEmojiFromIdentitySetable when successful +func (m *TeamworkCustomEmoji) GetCreatedBy()(CustomEmojiFromIdentitySetable) { + val, err := m.GetBackingStore().Get("createdBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(CustomEmojiFromIdentitySetable) + } + return nil +} +// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// returns a *Time when successful +func (m *TeamworkCustomEmoji) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetDisplayName gets the displayName property value. The displayName property +// returns a *string when successful +func (m *TeamworkCustomEmoji) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamworkCustomEmoji) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["contentBytes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetContentBytes(val) + } + return nil + } + res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCustomEmojiFromIdentitySetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCreatedBy(val.(CustomEmojiFromIdentitySetable)) + } + return nil + } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *TeamworkCustomEmoji) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamworkCustomEmoji) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("contentBytes", m.GetContentBytes()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("createdBy", m.GetCreatedBy()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TeamworkCustomEmoji) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TeamworkCustomEmoji) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetContentBytes sets the contentBytes property value. The contentBytes property +func (m *TeamworkCustomEmoji) SetContentBytes(value *string)() { + err := m.GetBackingStore().Set("contentBytes", value) + if err != nil { + panic(err) + } +} +// SetCreatedBy sets the createdBy property value. The createdBy property +func (m *TeamworkCustomEmoji) SetCreatedBy(value CustomEmojiFromIdentitySetable)() { + err := m.GetBackingStore().Set("createdBy", value) + if err != nil { + panic(err) + } +} +// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +func (m *TeamworkCustomEmoji) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. The displayName property +func (m *TeamworkCustomEmoji) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TeamworkCustomEmoji) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type TeamworkCustomEmojiable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetContentBytes()(*string) + GetCreatedBy()(CustomEmojiFromIdentitySetable) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetDisplayName()(*string) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetContentBytes(value *string)() + SetCreatedBy(value CustomEmojiFromIdentitySetable)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetDisplayName(value *string)() + SetOdataType(value *string)() +} diff --git a/models/teamwork_custom_emoji_collection_response.go b/models/teamwork_custom_emoji_collection_response.go new file mode 100644 index 00000000000..bd5a9151912 --- /dev/null +++ b/models/teamwork_custom_emoji_collection_response.go @@ -0,0 +1,91 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type TeamworkCustomEmojiCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewTeamworkCustomEmojiCollectionResponse instantiates a new TeamworkCustomEmojiCollectionResponse and sets the default values. +func NewTeamworkCustomEmojiCollectionResponse()(*TeamworkCustomEmojiCollectionResponse) { + m := &TeamworkCustomEmojiCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateTeamworkCustomEmojiCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamworkCustomEmojiCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamworkCustomEmojiCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamworkCustomEmojiCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateTeamworkCustomEmojiFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]TeamworkCustomEmojiable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(TeamworkCustomEmojiable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []TeamworkCustomEmojiable when successful +func (m *TeamworkCustomEmojiCollectionResponse) GetValue()([]TeamworkCustomEmojiable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]TeamworkCustomEmojiable) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamworkCustomEmojiCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *TeamworkCustomEmojiCollectionResponse) SetValue(value []TeamworkCustomEmojiable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type TeamworkCustomEmojiCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]TeamworkCustomEmojiable) + SetValue(value []TeamworkCustomEmojiable)() +} diff --git a/models/teamwork_messaging.go b/models/teamwork_messaging.go new file mode 100644 index 00000000000..c9d49168419 --- /dev/null +++ b/models/teamwork_messaging.go @@ -0,0 +1,91 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type TeamworkMessaging struct { + Entity +} +// NewTeamworkMessaging instantiates a new TeamworkMessaging and sets the default values. +func NewTeamworkMessaging()(*TeamworkMessaging) { + m := &TeamworkMessaging{ + Entity: *NewEntity(), + } + return m +} +// CreateTeamworkMessagingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamworkMessagingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamworkMessaging(), nil +} +// GetCustomEmojis gets the customEmojis property value. The customEmojis property +// returns a []TeamworkCustomEmojiable when successful +func (m *TeamworkMessaging) GetCustomEmojis()([]TeamworkCustomEmojiable) { + val, err := m.GetBackingStore().Get("customEmojis") + if err != nil { + panic(err) + } + if val != nil { + return val.([]TeamworkCustomEmojiable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamworkMessaging) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["customEmojis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateTeamworkCustomEmojiFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]TeamworkCustomEmojiable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(TeamworkCustomEmojiable) + } + } + m.SetCustomEmojis(res) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *TeamworkMessaging) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + if m.GetCustomEmojis() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCustomEmojis())) + for i, v := range m.GetCustomEmojis() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("customEmojis", cast) + if err != nil { + return err + } + } + return nil +} +// SetCustomEmojis sets the customEmojis property value. The customEmojis property +func (m *TeamworkMessaging) SetCustomEmojis(value []TeamworkCustomEmojiable)() { + err := m.GetBackingStore().Set("customEmojis", value) + if err != nil { + panic(err) + } +} +type TeamworkMessagingable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCustomEmojis()([]TeamworkCustomEmojiable) + SetCustomEmojis(value []TeamworkCustomEmojiable)() +} diff --git a/models/tenantgovernanceservices/delegated_administration_role_assignment.go b/models/tenantgovernanceservices/delegated_administration_role_assignment.go index b6da231411a..e9df2449203 100644 --- a/models/tenantgovernanceservices/delegated_administration_role_assignment.go +++ b/models/tenantgovernanceservices/delegated_administration_role_assignment.go @@ -58,6 +58,16 @@ func (m *DelegatedAdministrationRoleAssignment) GetFieldDeserializers()(map[stri } return nil } + res["groupDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetGroupDisplayName(val) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -98,6 +108,18 @@ func (m *DelegatedAdministrationRoleAssignment) GetGroup()(ie233ee762e29b4ba6970 } return nil } +// GetGroupDisplayName gets the groupDisplayName property value. The display name of the security group referenced by the group navigation property. Server-populated and read-only; returns null if the referenced group has been deleted. +// returns a *string when successful +func (m *DelegatedAdministrationRoleAssignment) GetGroupDisplayName()(*string) { + val, err := m.GetBackingStore().Get("groupDisplayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetOdataType gets the @odata.type property value. The OdataType property // returns a *string when successful func (m *DelegatedAdministrationRoleAssignment) GetOdataType()(*string) { @@ -130,6 +152,12 @@ func (m *DelegatedAdministrationRoleAssignment) Serialize(writer i878a80d2330e89 return err } } + { + err := writer.WriteStringValue("groupDisplayName", m.GetGroupDisplayName()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -174,6 +202,13 @@ func (m *DelegatedAdministrationRoleAssignment) SetGroup(value ie233ee762e29b4ba panic(err) } } +// SetGroupDisplayName sets the groupDisplayName property value. The display name of the security group referenced by the group navigation property. Server-populated and read-only; returns null if the referenced group has been deleted. +func (m *DelegatedAdministrationRoleAssignment) SetGroupDisplayName(value *string)() { + err := m.GetBackingStore().Set("groupDisplayName", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *DelegatedAdministrationRoleAssignment) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -194,10 +229,12 @@ type DelegatedAdministrationRoleAssignmentable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetGroup()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable) + GetGroupDisplayName()(*string) GetOdataType()(*string) GetRoleTemplates()([]RoleTemplateable) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetGroup(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable)() + SetGroupDisplayName(value *string)() SetOdataType(value *string)() SetRoleTemplates(value []RoleTemplateable)() } diff --git a/models/tenantgovernanceservices/delegated_administration_role_assignment_snapshot.go b/models/tenantgovernanceservices/delegated_administration_role_assignment_snapshot.go index 2f1b956d6fd..243273a51b6 100644 --- a/models/tenantgovernanceservices/delegated_administration_role_assignment_snapshot.go +++ b/models/tenantgovernanceservices/delegated_administration_role_assignment_snapshot.go @@ -47,6 +47,16 @@ func (m *DelegatedAdministrationRoleAssignmentSnapshot) GetBackingStore()(ie8677 // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *DelegatedAdministrationRoleAssignmentSnapshot) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["groupDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetGroupDisplayName(val) + } + return nil + } res["groupId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -85,6 +95,18 @@ func (m *DelegatedAdministrationRoleAssignmentSnapshot) GetFieldDeserializers()( } return res } +// GetGroupDisplayName gets the groupDisplayName property value. The display name of the security group identified by groupId at the time the snapshot was created. Read-only. +// returns a *string when successful +func (m *DelegatedAdministrationRoleAssignmentSnapshot) GetGroupDisplayName()(*string) { + val, err := m.GetBackingStore().Get("groupDisplayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetGroupId gets the groupId property value. The object ID of the role-assignable security group in the governing tenant that will be assigned the specified roles. // returns a *string when successful func (m *DelegatedAdministrationRoleAssignmentSnapshot) GetGroupId()(*string) { @@ -123,6 +145,12 @@ func (m *DelegatedAdministrationRoleAssignmentSnapshot) GetRoleTemplates()([]Rol } // Serialize serializes information the current object func (m *DelegatedAdministrationRoleAssignmentSnapshot) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("groupDisplayName", m.GetGroupDisplayName()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("groupId", m.GetGroupId()) if err != nil { @@ -166,6 +194,13 @@ func (m *DelegatedAdministrationRoleAssignmentSnapshot) SetAdditionalData(value func (m *DelegatedAdministrationRoleAssignmentSnapshot) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } +// SetGroupDisplayName sets the groupDisplayName property value. The display name of the security group identified by groupId at the time the snapshot was created. Read-only. +func (m *DelegatedAdministrationRoleAssignmentSnapshot) SetGroupDisplayName(value *string)() { + err := m.GetBackingStore().Set("groupDisplayName", value) + if err != nil { + panic(err) + } +} // SetGroupId sets the groupId property value. The object ID of the role-assignable security group in the governing tenant that will be assigned the specified roles. func (m *DelegatedAdministrationRoleAssignmentSnapshot) SetGroupId(value *string)() { err := m.GetBackingStore().Set("groupId", value) @@ -192,10 +227,12 @@ type DelegatedAdministrationRoleAssignmentSnapshotable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetGroupDisplayName()(*string) GetGroupId()(*string) GetOdataType()(*string) GetRoleTemplates()([]RoleTemplateable) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetGroupDisplayName(value *string)() SetGroupId(value *string)() SetOdataType(value *string)() SetRoleTemplates(value []RoleTemplateable)() diff --git a/models/tenantgovernanceservices/related_tenant.go b/models/tenantgovernanceservices/related_tenant.go index eb90a5e4e5d..8606b5ca756 100644 --- a/models/tenantgovernanceservices/related_tenant.go +++ b/models/tenantgovernanceservices/related_tenant.go @@ -138,6 +138,16 @@ func (m *RelatedTenant) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } + res["isMicrosoftInfrastructure"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsMicrosoftInfrastructure(val) + } + return nil + } res["multiTenantApplicationMetrics"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateMultiTenantApplicationMetricsFromDiscriminatorValue) if err != nil { @@ -150,6 +160,18 @@ func (m *RelatedTenant) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return res } +// GetIsMicrosoftInfrastructure gets the isMicrosoftInfrastructure property value. Indicates whether this tenant is a Microsoft infrastructure tenant. +// returns a *bool when successful +func (m *RelatedTenant) GetIsMicrosoftInfrastructure()(*bool) { + val, err := m.GetBackingStore().Get("isMicrosoftInfrastructure") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetMultiTenantApplicationMetrics gets the multiTenantApplicationMetrics property value. Multi-tenant application usage metrics for this related tenant. Expanded by default. // returns a MultiTenantApplicationMetricsable when successful func (m *RelatedTenant) GetMultiTenantApplicationMetrics()(MultiTenantApplicationMetricsable) { @@ -241,6 +263,13 @@ func (m *RelatedTenant) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad9 panic(err) } } +// SetIsMicrosoftInfrastructure sets the isMicrosoftInfrastructure property value. Indicates whether this tenant is a Microsoft infrastructure tenant. +func (m *RelatedTenant) SetIsMicrosoftInfrastructure(value *bool)() { + err := m.GetBackingStore().Set("isMicrosoftInfrastructure", value) + if err != nil { + panic(err) + } +} // SetMultiTenantApplicationMetrics sets the multiTenantApplicationMetrics property value. Multi-tenant application usage metrics for this related tenant. Expanded by default. func (m *RelatedTenant) SetMultiTenantApplicationMetrics(value MultiTenantApplicationMetricsable)() { err := m.GetBackingStore().Set("multiTenantApplicationMetrics", value) @@ -256,11 +285,13 @@ type RelatedTenantable interface { GetB2BSignInActivityMetrics()(B2BSignInActivityMetricsable) GetBillingMetrics()(BillingMetricsable) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetIsMicrosoftInfrastructure()(*bool) GetMultiTenantApplicationMetrics()(MultiTenantApplicationMetricsable) SetAppB2BSignInActivityMetrics(value B2BSignInActivityMetricsable)() SetB2BRegistrationMetrics(value B2bRegistrationMetricsable)() SetB2BSignInActivityMetrics(value B2BSignInActivityMetricsable)() SetBillingMetrics(value BillingMetricsable)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetIsMicrosoftInfrastructure(value *bool)() SetMultiTenantApplicationMetrics(value MultiTenantApplicationMetricsable)() } diff --git a/models/translation_preferences.go b/models/translation_preferences.go index fab035ede57..9a286213537 100644 --- a/models/translation_preferences.go +++ b/models/translation_preferences.go @@ -137,7 +137,7 @@ func (m *TranslationPreferences) GetTranslationBehavior()(*TranslationBehavior) } return nil } -// GetUntranslatedLanguages gets the untranslatedLanguages property value. The list of languages the user does not need translated. This is computed from the authoringLanguages collection in regionalAndLanguageSettings, and the languageOverrides collection in translationPreferences. The list specifies neutral culture values that include the language code without any country or region association. For example, it would specify 'fr' for the neutral French culture, but not 'fr-FR' for the French culture in France. Returned by default. Read only. +// GetUntranslatedLanguages gets the untranslatedLanguages property value. The list of languages the user does not need translated. This is computed from the authoringLanguages collection in regionalAndLanguageSettings, and the languageOverrides collection in translationPreferences. The list specifies neutral culture values that include the language code without any country or region association. For example, it would specify 'fr' for the neutral French culture, but not 'fr-FR' for the French culture in France. Returned by default. Read-only. // returns a []string when successful func (m *TranslationPreferences) GetUntranslatedLanguages()([]string) { val, err := m.GetBackingStore().Get("untranslatedLanguages") @@ -222,7 +222,7 @@ func (m *TranslationPreferences) SetTranslationBehavior(value *TranslationBehavi panic(err) } } -// SetUntranslatedLanguages sets the untranslatedLanguages property value. The list of languages the user does not need translated. This is computed from the authoringLanguages collection in regionalAndLanguageSettings, and the languageOverrides collection in translationPreferences. The list specifies neutral culture values that include the language code without any country or region association. For example, it would specify 'fr' for the neutral French culture, but not 'fr-FR' for the French culture in France. Returned by default. Read only. +// SetUntranslatedLanguages sets the untranslatedLanguages property value. The list of languages the user does not need translated. This is computed from the authoringLanguages collection in regionalAndLanguageSettings, and the languageOverrides collection in translationPreferences. The list specifies neutral culture values that include the language code without any country or region association. For example, it would specify 'fr' for the neutral French culture, but not 'fr-FR' for the French culture in France. Returned by default. Read-only. func (m *TranslationPreferences) SetUntranslatedLanguages(value []string)() { err := m.GetBackingStore().Set("untranslatedLanguages", value) if err != nil { diff --git a/models/used_insight.go b/models/used_insight.go index c2e73fc6562..ce15580c59a 100644 --- a/models/used_insight.go +++ b/models/used_insight.go @@ -68,7 +68,7 @@ func (m *UsedInsight) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return res } -// GetLastUsed gets the lastUsed property value. Information about when the item was last viewed or modified by the user. Read only. +// GetLastUsed gets the lastUsed property value. Information about when the item was last viewed or modified by the user. Read-only. // returns a UsageDetailsable when successful func (m *UsedInsight) GetLastUsed()(UsageDetailsable) { val, err := m.GetBackingStore().Get("lastUsed") @@ -136,7 +136,7 @@ func (m *UsedInsight) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 } return nil } -// SetLastUsed sets the lastUsed property value. Information about when the item was last viewed or modified by the user. Read only. +// SetLastUsed sets the lastUsed property value. Information about when the item was last viewed or modified by the user. Read-only. func (m *UsedInsight) SetLastUsed(value UsageDetailsable)() { err := m.GetBackingStore().Set("lastUsed", value) if err != nil { diff --git a/models/user.go b/models/user.go index ad80a2dd8ef..a05c228e539 100644 --- a/models/user.go +++ b/models/user.go @@ -331,7 +331,7 @@ func (m *User) GetCloudClipboard()(CloudClipboardRootable) { } return nil } -// GetCloudPcPools gets the cloudPcPools property value. The cloudPcPools property +// GetCloudPcPools gets the cloudPcPools property value. The user's Cloud PC pools. Read-only. Nullable. // returns a []CloudPcPoolable when successful func (m *User) GetCloudPcPools()([]CloudPcPoolable) { val, err := m.GetBackingStore().Get("cloudPcPools") @@ -595,6 +595,18 @@ func (m *User) GetDisplayName()(*string) { } return nil } +// GetDistributionLists gets the distributionLists property value. The personal distribution lists in the user's mailbox. Read-only. Nullable. +// returns a []DistributionListable when successful +func (m *User) GetDistributionLists()([]DistributionListable) { + val, err := m.GetBackingStore().Get("distributionLists") + if err != nil { + panic(err) + } + if val != nil { + return val.([]DistributionListable) + } + return nil +} // GetDrive gets the drive property value. The user's OneDrive. Read-only. // returns a Driveable when successful func (m *User) GetDrive()(Driveable) { @@ -1359,6 +1371,22 @@ func (m *User) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a } return nil } + res["distributionLists"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateDistributionListFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]DistributionListable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(DistributionListable) + } + } + m.SetDistributionLists(res) + } + return nil + } res["drive"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateDriveFromDiscriminatorValue) if err != nil { @@ -4447,6 +4475,18 @@ func (m *User) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c49 return err } } + if m.GetDistributionLists() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDistributionLists())) + for i, v := range m.GetDistributionLists() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("distributionLists", cast) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("drive", m.GetDrive()) if err != nil { @@ -5529,7 +5569,7 @@ func (m *User) SetCloudClipboard(value CloudClipboardRootable)() { panic(err) } } -// SetCloudPcPools sets the cloudPcPools property value. The cloudPcPools property +// SetCloudPcPools sets the cloudPcPools property value. The user's Cloud PC pools. Read-only. Nullable. func (m *User) SetCloudPcPools(value []CloudPcPoolable)() { err := m.GetBackingStore().Set("cloudPcPools", value) if err != nil { @@ -5683,6 +5723,13 @@ func (m *User) SetDisplayName(value *string)() { panic(err) } } +// SetDistributionLists sets the distributionLists property value. The personal distribution lists in the user's mailbox. Read-only. Nullable. +func (m *User) SetDistributionLists(value []DistributionListable)() { + err := m.GetBackingStore().Set("distributionLists", value) + if err != nil { + panic(err) + } +} // SetDrive sets the drive property value. The user's OneDrive. Read-only. func (m *User) SetDrive(value Driveable)() { err := m.GetBackingStore().Set("drive", value) @@ -6544,6 +6591,7 @@ type Userable interface { GetDevices()([]Deviceable) GetDirectReports()([]DirectoryObjectable) GetDisplayName()(*string) + GetDistributionLists()([]DistributionListable) GetDrive()(Driveable) GetDrives()([]Driveable) GetEmployeeExperience()(EmployeeExperienceUserable) @@ -6706,6 +6754,7 @@ type Userable interface { SetDevices(value []Deviceable)() SetDirectReports(value []DirectoryObjectable)() SetDisplayName(value *string)() + SetDistributionLists(value []DistributionListable)() SetDrive(value Driveable)() SetDrives(value []Driveable)() SetEmployeeExperience(value EmployeeExperienceUserable)() diff --git a/models/user_activity_type.go b/models/user_activity_type.go index ef96aaca7be..782ab5de53a 100644 --- a/models/user_activity_type.go +++ b/models/user_activity_type.go @@ -9,11 +9,15 @@ const ( UPLOADFILE_USERACTIVITYTYPE DOWNLOADTEXT_USERACTIVITYTYPE DOWNLOADFILE_USERACTIVITYTYPE + COPYTOCLIPBOARD_USERACTIVITYTYPE + PASTEFROMCLIPBOARD_USERACTIVITYTYPE + PRINT_USERACTIVITYTYPE + ACCESSDEBUGTOOLS_USERACTIVITYTYPE UNKNOWNFUTUREVALUE_USERACTIVITYTYPE ) func (i UserActivityType) String() string { - return []string{"uploadText", "uploadFile", "downloadText", "downloadFile", "unknownFutureValue"}[i] + return []string{"uploadText", "uploadFile", "downloadText", "downloadFile", "copyToClipboard", "pasteFromClipboard", "print", "accessDebugTools", "unknownFutureValue"}[i] } func ParseUserActivityType(v string) (any, error) { result := UPLOADTEXT_USERACTIVITYTYPE @@ -26,6 +30,14 @@ func ParseUserActivityType(v string) (any, error) { result = DOWNLOADTEXT_USERACTIVITYTYPE case "downloadFile": result = DOWNLOADFILE_USERACTIVITYTYPE + case "copyToClipboard": + result = COPYTOCLIPBOARD_USERACTIVITYTYPE + case "pasteFromClipboard": + result = PASTEFROMCLIPBOARD_USERACTIVITYTYPE + case "print": + result = PRINT_USERACTIVITYTYPE + case "accessDebugTools": + result = ACCESSDEBUGTOOLS_USERACTIVITYTYPE case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_USERACTIVITYTYPE default: diff --git a/models/user_activity_types.go b/models/user_activity_types.go index fafb55f02de..8cbf76446cc 100644 --- a/models/user_activity_types.go +++ b/models/user_activity_types.go @@ -14,13 +14,17 @@ const ( UPLOADFILE_USERACTIVITYTYPES = 4 DOWNLOADTEXT_USERACTIVITYTYPES = 8 DOWNLOADFILE_USERACTIVITYTYPES = 16 - UNKNOWNFUTUREVALUE_USERACTIVITYTYPES = 32 + COPYTOCLIPBOARD_USERACTIVITYTYPES = 32 + PASTEFROMCLIPBOARD_USERACTIVITYTYPES = 64 + PRINT_USERACTIVITYTYPES = 128 + ACCESSDEBUGTOOLS_USERACTIVITYTYPES = 256 + UNKNOWNFUTUREVALUE_USERACTIVITYTYPES = 512 ) func (i UserActivityTypes) String() string { var values []string - options := []string{"none", "uploadText", "uploadFile", "downloadText", "downloadFile", "unknownFutureValue"} - for p := 0; p < 6; p++ { + options := []string{"none", "uploadText", "uploadFile", "downloadText", "downloadFile", "copyToClipboard", "pasteFromClipboard", "print", "accessDebugTools", "unknownFutureValue"} + for p := 0; p < 10; p++ { mantis := UserActivityTypes(int(math.Pow(2, float64(p)))) if i&mantis == mantis { values = append(values, options[p]) @@ -43,6 +47,14 @@ func ParseUserActivityTypes(v string) (any, error) { result |= DOWNLOADTEXT_USERACTIVITYTYPES case "downloadFile": result |= DOWNLOADFILE_USERACTIVITYTYPES + case "copyToClipboard": + result |= COPYTOCLIPBOARD_USERACTIVITYTYPES + case "pasteFromClipboard": + result |= PASTEFROMCLIPBOARD_USERACTIVITYTYPES + case "print": + result |= PRINT_USERACTIVITYTYPES + case "accessDebugTools": + result |= ACCESSDEBUGTOOLS_USERACTIVITYTYPES case "unknownFutureValue": result |= UNKNOWNFUTUREVALUE_USERACTIVITYTYPES default: diff --git a/models/virtual_endpoint.go b/models/virtual_endpoint.go index dd2648e37de..2d33a99efd4 100644 --- a/models/virtual_endpoint.go +++ b/models/virtual_endpoint.go @@ -58,7 +58,7 @@ func (m *VirtualEndpoint) GetCloudApps()([]CloudPcCloudAppable) { } return nil } -// GetCloudPcPools gets the cloudPcPools property value. The cloudPcPools property +// GetCloudPcPools gets the cloudPcPools property value. The Cloud PC pools managed by the virtual endpoint. // returns a []CloudPcPoolable when successful func (m *VirtualEndpoint) GetCloudPcPools()([]CloudPcPoolable) { val, err := m.GetBackingStore().Get("cloudPcPools") @@ -849,7 +849,7 @@ func (m *VirtualEndpoint) SetCloudApps(value []CloudPcCloudAppable)() { panic(err) } } -// SetCloudPcPools sets the cloudPcPools property value. The cloudPcPools property +// SetCloudPcPools sets the cloudPcPools property value. The Cloud PC pools managed by the virtual endpoint. func (m *VirtualEndpoint) SetCloudPcPools(value []CloudPcPoolable)() { err := m.GetBackingStore().Set("cloudPcPools", value) if err != nil { diff --git a/models/virtual_event.go b/models/virtual_event.go index 67c50aa8bcc..c08be038d71 100644 --- a/models/virtual_event.go +++ b/models/virtual_event.go @@ -172,6 +172,16 @@ func (m *VirtualEvent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return nil } + res["isRegistrationRequired"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsRegistrationRequired(val) + } + return nil + } res["presenters"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateVirtualEventPresenterFromDiscriminatorValue) if err != nil { @@ -248,6 +258,18 @@ func (m *VirtualEvent) GetIsRegistrationEnabled()(*bool) { } return nil } +// GetIsRegistrationRequired gets the isRegistrationRequired property value. Indicates whether attendee registration is enabled for the virtual event. +// returns a *bool when successful +func (m *VirtualEvent) GetIsRegistrationRequired()(*bool) { + val, err := m.GetBackingStore().Get("isRegistrationRequired") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetPresenters gets the presenters property value. The virtual event presenters. // returns a []VirtualEventPresenterable when successful func (m *VirtualEvent) GetPresenters()([]VirtualEventPresenterable) { @@ -356,6 +378,12 @@ func (m *VirtualEvent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return err } } + { + err = writer.WriteBoolValue("isRegistrationRequired", m.GetIsRegistrationRequired()) + if err != nil { + return err + } + } if m.GetPresenters() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetPresenters())) for i, v := range m.GetPresenters() { @@ -443,6 +471,13 @@ func (m *VirtualEvent) SetIsRegistrationEnabled(value *bool)() { panic(err) } } +// SetIsRegistrationRequired sets the isRegistrationRequired property value. Indicates whether attendee registration is enabled for the virtual event. +func (m *VirtualEvent) SetIsRegistrationRequired(value *bool)() { + err := m.GetBackingStore().Set("isRegistrationRequired", value) + if err != nil { + panic(err) + } +} // SetPresenters sets the presenters property value. The virtual event presenters. func (m *VirtualEvent) SetPresenters(value []VirtualEventPresenterable)() { err := m.GetBackingStore().Set("presenters", value) @@ -487,6 +522,7 @@ type VirtualEventable interface { GetEndDateTime()(DateTimeTimeZoneable) GetExternalEventInformation()([]VirtualEventExternalInformationable) GetIsRegistrationEnabled()(*bool) + GetIsRegistrationRequired()(*bool) GetPresenters()([]VirtualEventPresenterable) GetSessions()([]VirtualEventSessionable) GetSettings()(VirtualEventSettingsable) @@ -498,6 +534,7 @@ type VirtualEventable interface { SetEndDateTime(value DateTimeTimeZoneable)() SetExternalEventInformation(value []VirtualEventExternalInformationable)() SetIsRegistrationEnabled(value *bool)() + SetIsRegistrationRequired(value *bool)() SetPresenters(value []VirtualEventPresenterable)() SetSessions(value []VirtualEventSessionable)() SetSettings(value VirtualEventSettingsable)() diff --git a/models/virtual_event_registration_configuration.go b/models/virtual_event_registration_configuration.go index 370888c5dd4..12c46d8246c 100644 --- a/models/virtual_event_registration_configuration.go +++ b/models/virtual_event_registration_configuration.go @@ -116,7 +116,7 @@ func (m *VirtualEventRegistrationConfiguration) GetFieldDeserializers()(map[stri } return res } -// GetIsManualApprovalEnabled gets the isManualApprovalEnabled property value. The isManualApprovalEnabled property +// GetIsManualApprovalEnabled gets the isManualApprovalEnabled property value. Indicates whether registrations require organizer approval before a participant is confirmed. // returns a *bool when successful func (m *VirtualEventRegistrationConfiguration) GetIsManualApprovalEnabled()(*bool) { val, err := m.GetBackingStore().Get("isManualApprovalEnabled") @@ -128,7 +128,7 @@ func (m *VirtualEventRegistrationConfiguration) GetIsManualApprovalEnabled()(*bo } return nil } -// GetIsWaitlistEnabled gets the isWaitlistEnabled property value. The isWaitlistEnabled property +// GetIsWaitlistEnabled gets the isWaitlistEnabled property value. Indicates whether more registrants are automatically placed on a waitlist when capacity is reached. // returns a *bool when successful func (m *VirtualEventRegistrationConfiguration) GetIsWaitlistEnabled()(*bool) { val, err := m.GetBackingStore().Get("isWaitlistEnabled") @@ -215,14 +215,14 @@ func (m *VirtualEventRegistrationConfiguration) SetCapacity(value *int32)() { panic(err) } } -// SetIsManualApprovalEnabled sets the isManualApprovalEnabled property value. The isManualApprovalEnabled property +// SetIsManualApprovalEnabled sets the isManualApprovalEnabled property value. Indicates whether registrations require organizer approval before a participant is confirmed. func (m *VirtualEventRegistrationConfiguration) SetIsManualApprovalEnabled(value *bool)() { err := m.GetBackingStore().Set("isManualApprovalEnabled", value) if err != nil { panic(err) } } -// SetIsWaitlistEnabled sets the isWaitlistEnabled property value. The isWaitlistEnabled property +// SetIsWaitlistEnabled sets the isWaitlistEnabled property value. Indicates whether more registrants are automatically placed on a waitlist when capacity is reached. func (m *VirtualEventRegistrationConfiguration) SetIsWaitlistEnabled(value *bool)() { err := m.GetBackingStore().Set("isWaitlistEnabled", value) if err != nil { diff --git a/models/virtual_event_session.go b/models/virtual_event_session.go index b7f16136827..c44873377fe 100644 --- a/models/virtual_event_session.go +++ b/models/virtual_event_session.go @@ -24,7 +24,7 @@ func NewVirtualEventSession()(*VirtualEventSession) { func CreateVirtualEventSessionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewVirtualEventSession(), nil } -// GetCapacity gets the capacity property value. The capacity property +// GetCapacity gets the capacity property value. Represents the expected number of attendees for town hall session. // returns a *int32 when successful func (m *VirtualEventSession) GetCapacity()(*int32) { val, err := m.GetBackingStore().Get("capacity") @@ -230,7 +230,7 @@ func (m *VirtualEventSession) Serialize(writer i878a80d2330e89d26896388a3f487eef } return nil } -// SetCapacity sets the capacity property value. The capacity property +// SetCapacity sets the capacity property value. Represents the expected number of attendees for town hall session. func (m *VirtualEventSession) SetCapacity(value *int32)() { err := m.GetBackingStore().Set("capacity", value) if err != nil { diff --git a/models/virtual_event_townhall.go b/models/virtual_event_townhall.go index 8c5d9ae8dfb..a4fcb86d55d 100644 --- a/models/virtual_event_townhall.go +++ b/models/virtual_event_townhall.go @@ -178,7 +178,7 @@ func (m *VirtualEventTownhall) GetIsInviteOnly()(*bool) { } return nil } -// GetRegistrationConfiguration gets the registrationConfiguration property value. The registrationConfiguration property +// GetRegistrationConfiguration gets the registrationConfiguration property value. Registration configuration of the town hall. // returns a VirtualEventTownhallRegistrationConfigurationable when successful func (m *VirtualEventTownhall) GetRegistrationConfiguration()(VirtualEventTownhallRegistrationConfigurationable) { val, err := m.GetBackingStore().Get("registrationConfiguration") @@ -190,7 +190,7 @@ func (m *VirtualEventTownhall) GetRegistrationConfiguration()(VirtualEventTownha } return nil } -// GetRegistrations gets the registrations property value. The registrations property +// GetRegistrations gets the registrations property value. Registration records of the town hall. // returns a []VirtualEventRegistrationable when successful func (m *VirtualEventTownhall) GetRegistrations()([]VirtualEventRegistrationable) { val, err := m.GetBackingStore().Get("registrations") @@ -306,14 +306,14 @@ func (m *VirtualEventTownhall) SetIsInviteOnly(value *bool)() { panic(err) } } -// SetRegistrationConfiguration sets the registrationConfiguration property value. The registrationConfiguration property +// SetRegistrationConfiguration sets the registrationConfiguration property value. Registration configuration of the town hall. func (m *VirtualEventTownhall) SetRegistrationConfiguration(value VirtualEventTownhallRegistrationConfigurationable)() { err := m.GetBackingStore().Set("registrationConfiguration", value) if err != nil { panic(err) } } -// SetRegistrations sets the registrations property value. The registrations property +// SetRegistrations sets the registrations property value. Registration records of the town hall. func (m *VirtualEventTownhall) SetRegistrations(value []VirtualEventRegistrationable)() { err := m.GetBackingStore().Set("registrations", value) if err != nil { diff --git a/models/win32_lob_app_in_use_action_type.go b/models/win32_lob_app_in_use_action_type.go new file mode 100644 index 00000000000..73d4962336a --- /dev/null +++ b/models/win32_lob_app_in_use_action_type.go @@ -0,0 +1,51 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +// Indicates whether app-in-use detection is enabled before app enforcement, and if enabled, the action to take when the app is detected to be in-use. +type Win32LobAppInUseActionType int + +const ( + // Default. Indicates that no in-use detection will be evaluated before an app enforcement. + NOTENABLED_WIN32LOBAPPINUSEACTIONTYPE Win32LobAppInUseActionType = iota + // Indicates that the in-use detection will occur immediately before app enforcement. Enforcement will not occur if the app is detected to be in-use, and an error status will be reported for the app. + FAIL_WIN32LOBAPPINUSEACTIONTYPE + // Indicates that in-use detection will occur immediately before app enforcement. If the app is detected to be in-use, the processes specified in the corresponding process detection rules will be terminated, and app enforcement will commence. + TERMINATEWITHOUTUSERINTERACTION_WIN32LOBAPPINUSEACTIONTYPE + // Indicates that in-use detection will occur immediately before app enforcement. If the app is detected to be in-use, the end user will be prompted according to the configured deferral and countdown settings, and the processes specified in the corresponding process detection rules will be terminated before app enforcement is commenced. If any of the processes cannot be terminated, the app will not be enforced, and an error status will be reported for the app. + TERMINATEWITHUSERINTERACTION_WIN32LOBAPPINUSEACTIONTYPE + // Evolvable enumeration sentinel value. Do not use. + UNKNOWNFUTUREVALUE_WIN32LOBAPPINUSEACTIONTYPE +) + +func (i Win32LobAppInUseActionType) String() string { + return []string{"notEnabled", "fail", "terminateWithoutUserInteraction", "terminateWithUserInteraction", "unknownFutureValue"}[i] +} +func ParseWin32LobAppInUseActionType(v string) (any, error) { + result := NOTENABLED_WIN32LOBAPPINUSEACTIONTYPE + switch v { + case "notEnabled": + result = NOTENABLED_WIN32LOBAPPINUSEACTIONTYPE + case "fail": + result = FAIL_WIN32LOBAPPINUSEACTIONTYPE + case "terminateWithoutUserInteraction": + result = TERMINATEWITHOUTUSERINTERACTION_WIN32LOBAPPINUSEACTIONTYPE + case "terminateWithUserInteraction": + result = TERMINATEWITHUSERINTERACTION_WIN32LOBAPPINUSEACTIONTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_WIN32LOBAPPINUSEACTIONTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWin32LobAppInUseActionType(values []Win32LobAppInUseActionType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i Win32LobAppInUseActionType) isMultiValue() bool { + return false +} diff --git a/models/win32_lob_app_install_experience.go b/models/win32_lob_app_install_experience.go index 0f6878e8225..33d8046e36d 100644 --- a/models/win32_lob_app_install_experience.go +++ b/models/win32_lob_app_install_experience.go @@ -70,6 +70,16 @@ func (m *Win32LobAppInstallExperience) GetFieldDeserializers()(map[string]func(i } return nil } + res["inUseBehavior"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseWin32LobAppInUseActionType) + if err != nil { + return err + } + if val != nil { + m.SetInUseBehavior(val.(*Win32LobAppInUseActionType)) + } + return nil + } res["maxRunTimeInMinutes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -102,6 +112,18 @@ func (m *Win32LobAppInstallExperience) GetFieldDeserializers()(map[string]func(i } return res } +// GetInUseBehavior gets the inUseBehavior property value. Indicates whether app-in-use detection is enabled before app enforcement, and if enabled, the action to take when the app is detected to be in-use. Null indicates the feature is not enabled. Possible values are: `notEnabled`, `fail`, `terminateWithoutUserInteraction`, `terminateWithUserInteraction`. +// returns a *Win32LobAppInUseActionType when successful +func (m *Win32LobAppInstallExperience) GetInUseBehavior()(*Win32LobAppInUseActionType) { + val, err := m.GetBackingStore().Get("inUseBehavior") + if err != nil { + panic(err) + } + if val != nil { + return val.(*Win32LobAppInUseActionType) + } + return nil +} // GetMaxRunTimeInMinutes gets the maxRunTimeInMinutes property value. The number of minutes the system will wait for install program to finish. Default value is 60 minutes. // returns a *int32 when successful func (m *Win32LobAppInstallExperience) GetMaxRunTimeInMinutes()(*int32) { @@ -147,6 +169,13 @@ func (m *Win32LobAppInstallExperience) Serialize(writer i878a80d2330e89d26896388 return err } } + if m.GetInUseBehavior() != nil { + cast := (*m.GetInUseBehavior()).String() + err := writer.WriteStringValue("inUseBehavior", &cast) + if err != nil { + return err + } + } { err := writer.WriteInt32Value("maxRunTimeInMinutes", m.GetMaxRunTimeInMinutes()) if err != nil { @@ -192,6 +221,13 @@ func (m *Win32LobAppInstallExperience) SetDeviceRestartBehavior(value *Win32LobA panic(err) } } +// SetInUseBehavior sets the inUseBehavior property value. Indicates whether app-in-use detection is enabled before app enforcement, and if enabled, the action to take when the app is detected to be in-use. Null indicates the feature is not enabled. Possible values are: `notEnabled`, `fail`, `terminateWithoutUserInteraction`, `terminateWithUserInteraction`. +func (m *Win32LobAppInstallExperience) SetInUseBehavior(value *Win32LobAppInUseActionType)() { + err := m.GetBackingStore().Set("inUseBehavior", value) + if err != nil { + panic(err) + } +} // SetMaxRunTimeInMinutes sets the maxRunTimeInMinutes property value. The number of minutes the system will wait for install program to finish. Default value is 60 minutes. func (m *Win32LobAppInstallExperience) SetMaxRunTimeInMinutes(value *int32)() { err := m.GetBackingStore().Set("maxRunTimeInMinutes", value) @@ -219,11 +255,13 @@ type Win32LobAppInstallExperienceable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDeviceRestartBehavior()(*Win32LobAppRestartBehavior) + GetInUseBehavior()(*Win32LobAppInUseActionType) GetMaxRunTimeInMinutes()(*int32) GetOdataType()(*string) GetRunAsAccount()(*RunAsAccountType) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDeviceRestartBehavior(value *Win32LobAppRestartBehavior)() + SetInUseBehavior(value *Win32LobAppInUseActionType)() SetMaxRunTimeInMinutes(value *int32)() SetOdataType(value *string)() SetRunAsAccount(value *RunAsAccountType)() diff --git a/models/win32_lob_app_process_operation_type.go b/models/win32_lob_app_process_operation_type.go new file mode 100644 index 00000000000..27ae86a07d0 --- /dev/null +++ b/models/win32_lob_app_process_operation_type.go @@ -0,0 +1,43 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models +// A list of possible operations for rules used to make determinations about whether an application is in-use based on process state. +type Win32LobAppProcessOperationType int + +const ( + // Default. Not configured. + NOTCONFIGURED_WIN32LOBAPPPROCESSOPERATIONTYPE Win32LobAppProcessOperationType = iota + // Indicates that the rule evaluates whether the specified process exists (is running) on the device. + EXISTS_WIN32LOBAPPPROCESSOPERATIONTYPE + // Evolvable enumeration sentinel value. Do not use. + UNKNOWNFUTUREVALUE_WIN32LOBAPPPROCESSOPERATIONTYPE +) + +func (i Win32LobAppProcessOperationType) String() string { + return []string{"notConfigured", "exists", "unknownFutureValue"}[i] +} +func ParseWin32LobAppProcessOperationType(v string) (any, error) { + result := NOTCONFIGURED_WIN32LOBAPPPROCESSOPERATIONTYPE + switch v { + case "notConfigured": + result = NOTCONFIGURED_WIN32LOBAPPPROCESSOPERATIONTYPE + case "exists": + result = EXISTS_WIN32LOBAPPPROCESSOPERATIONTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_WIN32LOBAPPPROCESSOPERATIONTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWin32LobAppProcessOperationType(values []Win32LobAppProcessOperationType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i Win32LobAppProcessOperationType) isMultiValue() bool { + return false +} diff --git a/models/win32_lob_app_process_rule.go b/models/win32_lob_app_process_rule.go new file mode 100644 index 00000000000..76ebb6c87cd --- /dev/null +++ b/models/win32_lob_app_process_rule.go @@ -0,0 +1,157 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Win32LobAppProcessRule a complex type to store process rule data for a Win32 LOB app. +type Win32LobAppProcessRule struct { + Win32LobAppRule +} +// NewWin32LobAppProcessRule instantiates a new Win32LobAppProcessRule and sets the default values. +func NewWin32LobAppProcessRule()(*Win32LobAppProcessRule) { + m := &Win32LobAppProcessRule{ + Win32LobAppRule: *NewWin32LobAppRule(), + } + odataTypeValue := "#microsoft.graph.win32LobAppProcessRule" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateWin32LobAppProcessRuleFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWin32LobAppProcessRuleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWin32LobAppProcessRule(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *Win32LobAppProcessRule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Win32LobAppRule.GetFieldDeserializers() + res["operationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseWin32LobAppProcessOperationType) + if err != nil { + return err + } + if val != nil { + m.SetOperationType(val.(*Win32LobAppProcessOperationType)) + } + return nil + } + res["processDisplayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetProcessDisplayName(val) + } + return nil + } + res["processName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetProcessName(val) + } + return nil + } + return res +} +// GetOperationType gets the operationType property value. A list of possible operations for rules used to make determinations about whether an application is in-use based on process state. +// returns a *Win32LobAppProcessOperationType when successful +func (m *Win32LobAppProcessRule) GetOperationType()(*Win32LobAppProcessOperationType) { + val, err := m.GetBackingStore().Get("operationType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*Win32LobAppProcessOperationType) + } + return nil +} +// GetProcessDisplayName gets the processDisplayName property value. Indicates the display name for the process in the Intune admin console. Example: `Microsoft Word`. +// returns a *string when successful +func (m *Win32LobAppProcessRule) GetProcessDisplayName()(*string) { + val, err := m.GetBackingStore().Get("processDisplayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetProcessName gets the processName property value. Indicates the process name to be searched for on a managed device when enforcing a managed app. Example: `TestApp.exe`. +// returns a *string when successful +func (m *Win32LobAppProcessRule) GetProcessName()(*string) { + val, err := m.GetBackingStore().Get("processName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *Win32LobAppProcessRule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Win32LobAppRule.Serialize(writer) + if err != nil { + return err + } + if m.GetOperationType() != nil { + cast := (*m.GetOperationType()).String() + err = writer.WriteStringValue("operationType", &cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("processDisplayName", m.GetProcessDisplayName()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("processName", m.GetProcessName()) + if err != nil { + return err + } + } + return nil +} +// SetOperationType sets the operationType property value. A list of possible operations for rules used to make determinations about whether an application is in-use based on process state. +func (m *Win32LobAppProcessRule) SetOperationType(value *Win32LobAppProcessOperationType)() { + err := m.GetBackingStore().Set("operationType", value) + if err != nil { + panic(err) + } +} +// SetProcessDisplayName sets the processDisplayName property value. Indicates the display name for the process in the Intune admin console. Example: `Microsoft Word`. +func (m *Win32LobAppProcessRule) SetProcessDisplayName(value *string)() { + err := m.GetBackingStore().Set("processDisplayName", value) + if err != nil { + panic(err) + } +} +// SetProcessName sets the processName property value. Indicates the process name to be searched for on a managed device when enforcing a managed app. Example: `TestApp.exe`. +func (m *Win32LobAppProcessRule) SetProcessName(value *string)() { + err := m.GetBackingStore().Set("processName", value) + if err != nil { + panic(err) + } +} +type Win32LobAppProcessRuleable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + Win32LobAppRuleable + GetOperationType()(*Win32LobAppProcessOperationType) + GetProcessDisplayName()(*string) + GetProcessName()(*string) + SetOperationType(value *Win32LobAppProcessOperationType)() + SetProcessDisplayName(value *string)() + SetProcessName(value *string)() +} diff --git a/models/win32_lob_app_rule.go b/models/win32_lob_app_rule.go index 786484b6806..8c3068eec1c 100644 --- a/models/win32_lob_app_rule.go +++ b/models/win32_lob_app_rule.go @@ -40,6 +40,8 @@ func CreateWin32LobAppRuleFromDiscriminatorValue(parseNode i878a80d2330e89d26896 return NewWin32LobAppFileSystemRule(), nil case "#microsoft.graph.win32LobAppPowerShellScriptRule": return NewWin32LobAppPowerShellScriptRule(), nil + case "#microsoft.graph.win32LobAppProcessRule": + return NewWin32LobAppProcessRule(), nil case "#microsoft.graph.win32LobAppProductCodeRule": return NewWin32LobAppProductCodeRule(), nil case "#microsoft.graph.win32LobAppRegistryRule": diff --git a/models/windows_quality_update_approval_status.go b/models/windows_quality_update_approval_status.go index eb399f11767..b51aff153df 100644 --- a/models/windows_quality_update_approval_status.go +++ b/models/windows_quality_update_approval_status.go @@ -12,7 +12,7 @@ const ( APPROVED_WINDOWSQUALITYUPDATEAPPROVALSTATUS // suspended for corresponding catalog item SUSPENDED_WINDOWSQUALITYUPDATEAPPROVALSTATUS - // Evolvable enumeration sentinel value. Do not use. + // Evolvable enumeration sentinel value. Do not use UNKNOWNFUTUREVALUE_WINDOWSQUALITYUPDATEAPPROVALSTATUS ) diff --git a/models/windows_update_cve_severity_level.go b/models/windows_update_cve_severity_level.go index c9495f4fe52..7b3f389b395 100644 --- a/models/windows_update_cve_severity_level.go +++ b/models/windows_update_cve_severity_level.go @@ -12,7 +12,7 @@ const ( IMPORTANT_WINDOWSUPDATECVESEVERITYLEVEL // Severity of Moderate MODERATE_WINDOWSUPDATECVESEVERITYLEVEL - // Evolvable enumeration sentinel value. Do not use. + // Reserved value of UnknownFutureValue UNKNOWNFUTUREVALUE_WINDOWSUPDATECVESEVERITYLEVEL ) diff --git a/models/windowsupdates/azure_a_d_device.go b/models/windowsupdates/azure_a_d_device.go index fe2a8eae2d7..99a03fb9132 100644 --- a/models/windowsupdates/azure_a_d_device.go +++ b/models/windowsupdates/azure_a_d_device.go @@ -24,7 +24,7 @@ func NewAzureADDevice()(*AzureADDevice) { func CreateAzureADDeviceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewAzureADDevice(), nil } -// GetEnrollment gets the enrollment property value. The enrollment property +// GetEnrollment gets the enrollment property value. Specifies the update management enrollment for the device. Read-only. Returned by default. // returns a UpdateManagementEnrollmentable when successful func (m *AzureADDevice) GetEnrollment()(UpdateManagementEnrollmentable) { val, err := m.GetBackingStore().Get("enrollment") @@ -36,7 +36,7 @@ func (m *AzureADDevice) GetEnrollment()(UpdateManagementEnrollmentable) { } return nil } -// GetErrors gets the errors property value. Specifies any errors that prevent the device from being enrolled in update management or receving deployed content. Read-only. Returned by default. +// GetErrors gets the errors property value. Specifies any errors that prevent the device from being enrolled in update management or receiving deployed content. Read-only. Returned by default. // returns a []UpdatableAssetErrorable when successful func (m *AzureADDevice) GetErrors()([]UpdatableAssetErrorable) { val, err := m.GetBackingStore().Get("errors") @@ -106,14 +106,14 @@ func (m *AzureADDevice) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 } return nil } -// SetEnrollment sets the enrollment property value. The enrollment property +// SetEnrollment sets the enrollment property value. Specifies the update management enrollment for the device. Read-only. Returned by default. func (m *AzureADDevice) SetEnrollment(value UpdateManagementEnrollmentable)() { err := m.GetBackingStore().Set("enrollment", value) if err != nil { panic(err) } } -// SetErrors sets the errors property value. Specifies any errors that prevent the device from being enrolled in update management or receving deployed content. Read-only. Returned by default. +// SetErrors sets the errors property value. Specifies any errors that prevent the device from being enrolled in update management or receiving deployed content. Read-only. Returned by default. func (m *AzureADDevice) SetErrors(value []UpdatableAssetErrorable)() { err := m.GetBackingStore().Set("errors", value) if err != nil { diff --git a/models/windowsupdates/update_category_enrollment_information.go b/models/windowsupdates/update_category_enrollment_information.go index 0cf944694bd..bb83a8cbd48 100644 --- a/models/windowsupdates/update_category_enrollment_information.go +++ b/models/windowsupdates/update_category_enrollment_information.go @@ -92,7 +92,7 @@ func (m *UpdateCategoryEnrollmentInformation) GetFieldDeserializers()(map[string } return res } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The lastModifiedDateTime property +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The date and time when the enrollmentState was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024, is 2024-01-01T00:00:00Z. Read-only. // returns a *Time when successful func (m *UpdateCategoryEnrollmentInformation) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") @@ -163,7 +163,7 @@ func (m *UpdateCategoryEnrollmentInformation) SetEnrollmentState(value *Enrollme panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The lastModifiedDateTime property +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The date and time when the enrollmentState was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024, is 2024-01-01T00:00:00Z. Read-only. func (m *UpdateCategoryEnrollmentInformation) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { diff --git a/models/windowsupdates/update_management_enrollment.go b/models/windowsupdates/update_management_enrollment.go index 6a0a070e1a6..050ad26e803 100644 --- a/models/windowsupdates/update_management_enrollment.go +++ b/models/windowsupdates/update_management_enrollment.go @@ -43,7 +43,7 @@ func (m *UpdateManagementEnrollment) GetAdditionalData()(map[string]any) { func (m *UpdateManagementEnrollment) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDriver gets the driver property value. The driver property +// GetDriver gets the driver property value. Information about the enrollment state of the device in driver update management. // returns a UpdateCategoryEnrollmentInformationable when successful func (m *UpdateManagementEnrollment) GetDriver()(UpdateCategoryEnrollmentInformationable) { val, err := m.GetBackingStore().Get("driver") @@ -55,7 +55,7 @@ func (m *UpdateManagementEnrollment) GetDriver()(UpdateCategoryEnrollmentInforma } return nil } -// GetFeature gets the feature property value. The feature property +// GetFeature gets the feature property value. Information about the enrollment state of the device in feature update management. // returns a UpdateCategoryEnrollmentInformationable when successful func (m *UpdateManagementEnrollment) GetFeature()(UpdateCategoryEnrollmentInformationable) { val, err := m.GetBackingStore().Get("feature") @@ -125,7 +125,7 @@ func (m *UpdateManagementEnrollment) GetOdataType()(*string) { } return nil } -// GetQuality gets the quality property value. The quality property +// GetQuality gets the quality property value. Information about the enrollment state of the device in quality update management. // returns a UpdateCategoryEnrollmentInformationable when successful func (m *UpdateManagementEnrollment) GetQuality()(UpdateCategoryEnrollmentInformationable) { val, err := m.GetBackingStore().Get("quality") @@ -182,14 +182,14 @@ func (m *UpdateManagementEnrollment) SetAdditionalData(value map[string]any)() { func (m *UpdateManagementEnrollment) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDriver sets the driver property value. The driver property +// SetDriver sets the driver property value. Information about the enrollment state of the device in driver update management. func (m *UpdateManagementEnrollment) SetDriver(value UpdateCategoryEnrollmentInformationable)() { err := m.GetBackingStore().Set("driver", value) if err != nil { panic(err) } } -// SetFeature sets the feature property value. The feature property +// SetFeature sets the feature property value. Information about the enrollment state of the device in feature update management. func (m *UpdateManagementEnrollment) SetFeature(value UpdateCategoryEnrollmentInformationable)() { err := m.GetBackingStore().Set("feature", value) if err != nil { @@ -203,7 +203,7 @@ func (m *UpdateManagementEnrollment) SetOdataType(value *string)() { panic(err) } } -// SetQuality sets the quality property value. The quality property +// SetQuality sets the quality property value. Information about the enrollment state of the device in quality update management. func (m *UpdateManagementEnrollment) SetQuality(value UpdateCategoryEnrollmentInformationable)() { err := m.GetBackingStore().Set("quality", value) if err != nil { diff --git a/networkaccess/c59e52120abd086fa6a27937f936d6bfeba9a4927c2095e28803ecaaed61b462.go b/networkaccess/1811d944cf90497bc01c81ae303a70b35f1d371da7f62a5604d5b3f871ab69d1.go similarity index 55% rename from networkaccess/c59e52120abd086fa6a27937f936d6bfeba9a4927c2095e28803ecaaed61b462.go rename to networkaccess/1811d944cf90497bc01c81ae303a70b35f1d371da7f62a5604d5b3f871ab69d1.go index da625d76266..aa68d377dd9 100644 --- a/networkaccess/c59e52120abd086fa6a27937f936d6bfeba9a4927c2095e28803ecaaed61b462.go +++ b/networkaccess/1811d944cf90497bc01c81ae303a70b35f1d371da7f62a5604d5b3f871ab69d1.go @@ -10,12 +10,12 @@ import ( i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) -// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder provides operations to call the deviceReport method. -type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder struct { +// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder provides operations to call the deviceReport method. +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetQueryParameters invoke function deviceReport -type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetQueryParameters struct { +// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetQueryParameters invoke function deviceReport +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetQueryParameters struct { // Usage: aiAgentId='@aiAgentId' AiAgentId *string "uriparametername:\"aiAgentId\"" // Usage: aiAgentName='@aiAgentName' @@ -26,6 +26,8 @@ type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateT CloudApplicationName *string "uriparametername:\"cloudApplicationName\"" // Include count of items Count *bool "uriparametername:\"%24count\"" + // Usage: destinationUrl='@destinationUrl' + DestinationUrl *string "uriparametername:\"destinationUrl\"" // Usage: discoveredApplicationSegmentId='@discoveredApplicationSegmentId' DiscoveredApplicationSegmentId *string "uriparametername:\"discoveredApplicationSegmentId\"" // Filter items by property values @@ -37,19 +39,19 @@ type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateT // Show only the first n items Top *int32 "uriparametername:\"%24top\"" } -// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration struct { +// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption // Request query parameters - QueryParameters *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetQueryParameters + QueryParameters *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetQueryParameters } -// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { - m := &ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.deviceReport(startDateTime={startDateTime},endDateTime={endDateTime},discoveredApplicationSegmentId='@discoveredApplicationSegmentId',applicationId='@applicationId',aiAgentId='@aiAgentId',aiAgentName='@aiAgentName',cloudApplicationName='@cloudApplicationName'){?%24count,%24filter,%24search,%24skip,%24top,aiAgentId*,aiAgentName*,applicationId*,cloudApplicationName*,discoveredApplicationSegmentId*}", pathParameters), +// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderInternal instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) { + m := &ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.deviceReport(startDateTime={startDateTime},endDateTime={endDateTime},discoveredApplicationSegmentId='@discoveredApplicationSegmentId',applicationId='@applicationId',aiAgentId='@aiAgentId',aiAgentName='@aiAgentName',cloudApplicationName='@cloudApplicationName',destinationUrl='@destinationUrl'){?%24count,%24filter,%24search,%24skip,%24top,aiAgentId*,aiAgentName*,applicationId*,cloudApplicationName*,destinationUrl*,discoveredApplicationSegmentId*}", pathParameters), } if endDateTime != nil { m.BaseRequestBuilder.PathParameters["endDateTime"] = (*endDateTime).Format(i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.RFC3339) @@ -59,17 +61,17 @@ func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDa } return m } -// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { +// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) { urlParams := make(map[string]string) urlParams["request-raw-url"] = rawUrl - return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal(urlParams, requestAdapter, nil, nil) + return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderInternal(urlParams, requestAdapter, nil, nil) } // Get invoke function deviceReport -// Deprecated: This method is obsolete. Use GetAsDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse instead. -// returns a ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable when successful +// Deprecated: This method is obsolete. Use GetAsDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse instead. +// returns a ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable, error) { +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { return nil, err @@ -77,19 +79,19 @@ func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndD errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseFromDiscriminatorValue, errorMapping) + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponseFromDiscriminatorValue, errorMapping) if err != nil { return nil, err } if res == nil { return nil, nil } - return res.(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable), nil + return res.(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponseable), nil } -// GetAsDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse invoke function deviceReport -// returns a ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable when successful +// GetAsDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse invoke function deviceReport +// returns a ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) GetAsDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable, error) { +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) GetAsDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { return nil, err @@ -97,18 +99,18 @@ func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndD errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseFromDiscriminatorValue, errorMapping) + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseFromDiscriminatorValue, errorMapping) if err != nil { return nil, err } if res == nil { return nil, nil } - return res.(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable), nil + return res.(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseable), nil } // ToGetRequestInformation invoke function deviceReport // returns a *RequestInformation when successful -func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { @@ -121,7 +123,7 @@ func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndD return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder when successful -func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { - return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +// returns a *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder when successful +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } diff --git a/networkaccess/2ed5dd67bc8c7a48a4a8506656adc2561027aa00833dce67a2184e2253fbd230.go b/networkaccess/2ed5dd67bc8c7a48a4a8506656adc2561027aa00833dce67a2184e2253fbd230.go new file mode 100644 index 00000000000..8df4d19a598 --- /dev/null +++ b/networkaccess/2ed5dd67bc8c7a48a4a8506656adc2561027aa00833dce67a2184e2253fbd230.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseable instead. +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponse struct { + ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse +} +// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponse instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponse()(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponse) { + m := &ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponse{ + ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse: *NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponse(), nil +} +// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseable instead. +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseable +} diff --git a/networkaccess/4ee38c379acb49028a35bb1955c1c820334a68fc6e77a670c8e0edaf7592d0b5.go b/networkaccess/4ee38c379acb49028a35bb1955c1c820334a68fc6e77a670c8e0edaf7592d0b5.go deleted file mode 100644 index 8eef607a9af..00000000000 --- a/networkaccess/4ee38c379acb49028a35bb1955c1c820334a68fc6e77a670c8e0edaf7592d0b5.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package networkaccess - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable instead. -type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse struct { - ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse -} -// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse()(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse) { - m := &ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse{ - ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse: *NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse(), - } - return m -} -// CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse(), nil -} -// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable instead. -type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable -} diff --git a/networkaccess/78587a8faa4a62d2d94531fe4db9777397127e0e9db8cea7cf4a663263bcba68.go b/networkaccess/78587a8faa4a62d2d94531fe4db9777397127e0e9db8cea7cf4a663263bcba68.go new file mode 100644 index 00000000000..4a7bab22c91 --- /dev/null +++ b/networkaccess/78587a8faa4a62d2d94531fe4db9777397127e0e9db8cea7cf4a663263bcba68.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseable instead. +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponse struct { + ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse +} +// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponse instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponse()(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponse) { + m := &ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponse{ + ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse: *NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponse(), nil +} +// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseable instead. +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseable +} diff --git a/networkaccess/6e2a5dd1c4b2deefe47a24afbb104eb2d8a5a62fc5cd4a8d0b07f64a5181e0ae.go b/networkaccess/c97a598b6bcefbdf44cae989f26ce0d6822d22b2e7c484bf0d73214780fed8a4.go similarity index 51% rename from networkaccess/6e2a5dd1c4b2deefe47a24afbb104eb2d8a5a62fc5cd4a8d0b07f64a5181e0ae.go rename to networkaccess/c97a598b6bcefbdf44cae989f26ce0d6822d22b2e7c484bf0d73214780fed8a4.go index 5a85861dbfd..58a0b6e72b1 100644 --- a/networkaccess/6e2a5dd1c4b2deefe47a24afbb104eb2d8a5a62fc5cd4a8d0b07f64a5181e0ae.go +++ b/networkaccess/c97a598b6bcefbdf44cae989f26ce0d6822d22b2e7c484bf0d73214780fed8a4.go @@ -9,24 +9,24 @@ import ( i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/networkaccess" ) -type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse struct { +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse()(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) { - m := &ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse{ +// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse()(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse) { + m := &ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), } return m } -// CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful -func CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse(), nil +func CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse(), nil } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateDeviceFromDiscriminatorValue) @@ -48,7 +48,7 @@ func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndD } // GetValue gets the value property value. The value property // returns a []Deviceable when successful -func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable) { +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable) { val, err := m.GetBackingStore().Get("value") if err != nil { panic(err) @@ -59,7 +59,7 @@ func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndD return nil } // Serialize serializes information the current object -func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.BaseCollectionPaginationCountResponse.Serialize(writer) if err != nil { return err @@ -79,13 +79,13 @@ func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndD return nil } // SetValue sets the value property value. The value property -func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable)() { +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable)() { err := m.GetBackingStore().Set("value", value) if err != nil { panic(err) } } -type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable interface { +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable) diff --git a/networkaccess/1b5e0e4aa04b4c8b3a0e96846cdd712aa1fe73f976d90eac03f6ce13b0a47249.go b/networkaccess/d987cc33fcc78cc7323a7e114a4acc4782e748b5886cbb71af11c2a4cfa69c2d.go similarity index 51% rename from networkaccess/1b5e0e4aa04b4c8b3a0e96846cdd712aa1fe73f976d90eac03f6ce13b0a47249.go rename to networkaccess/d987cc33fcc78cc7323a7e114a4acc4782e748b5886cbb71af11c2a4cfa69c2d.go index dc3c41256d1..eea2e4e0d0c 100644 --- a/networkaccess/1b5e0e4aa04b4c8b3a0e96846cdd712aa1fe73f976d90eac03f6ce13b0a47249.go +++ b/networkaccess/d987cc33fcc78cc7323a7e114a4acc4782e748b5886cbb71af11c2a4cfa69c2d.go @@ -9,24 +9,24 @@ import ( i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/networkaccess" ) -type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse struct { +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse struct { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse } -// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse()(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) { - m := &ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse{ +// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse()(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse) { + m := &ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse{ BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), } return m } -// CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful -func CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse(), nil +func CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse(), nil } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateUserFromDiscriminatorValue) @@ -48,7 +48,7 @@ func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDat } // GetValue gets the value property value. The value property // returns a []Userable when successful -func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable) { +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable) { val, err := m.GetBackingStore().Get("value") if err != nil { panic(err) @@ -59,7 +59,7 @@ func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDat return nil } // Serialize serializes information the current object -func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.BaseCollectionPaginationCountResponse.Serialize(writer) if err != nil { return err @@ -79,13 +79,13 @@ func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDat return nil } // SetValue sets the value property value. The value property -func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable)() { +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable)() { err := m.GetBackingStore().Set("value", value) if err != nil { panic(err) } } -type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable interface { +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseable interface { ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable) diff --git a/networkaccess/cfee8d3e3c67dd049c1c08b81e8bcffc51b6193007a3c0c35bddf2211bb4f04a.go b/networkaccess/deb9409eb92299b83d055266eca451040c87b90f9c64e55c03bab91457bd87fe.go similarity index 56% rename from networkaccess/cfee8d3e3c67dd049c1c08b81e8bcffc51b6193007a3c0c35bddf2211bb4f04a.go rename to networkaccess/deb9409eb92299b83d055266eca451040c87b90f9c64e55c03bab91457bd87fe.go index 06e8c489a97..ab4b3ad1739 100644 --- a/networkaccess/cfee8d3e3c67dd049c1c08b81e8bcffc51b6193007a3c0c35bddf2211bb4f04a.go +++ b/networkaccess/deb9409eb92299b83d055266eca451040c87b90f9c64e55c03bab91457bd87fe.go @@ -10,12 +10,12 @@ import ( i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" ) -// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder provides operations to call the userReport method. -type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder struct { +// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder provides operations to call the userReport method. +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetQueryParameters invoke function userReport -type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetQueryParameters struct { +// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetQueryParameters invoke function userReport +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetQueryParameters struct { // Usage: aiAgentId='@aiAgentId' AiAgentId *string "uriparametername:\"aiAgentId\"" // Usage: aiAgentName='@aiAgentName' @@ -26,6 +26,8 @@ type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTim CloudApplicationName *string "uriparametername:\"cloudApplicationName\"" // Include count of items Count *bool "uriparametername:\"%24count\"" + // Usage: destinationUrl='@destinationUrl' + DestinationUrl *string "uriparametername:\"destinationUrl\"" // Usage: discoveredApplicationSegmentId='@discoveredApplicationSegmentId' DiscoveredApplicationSegmentId *string "uriparametername:\"discoveredApplicationSegmentId\"" // Filter items by property values @@ -37,19 +39,19 @@ type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTim // Show only the first n items Top *int32 "uriparametername:\"%24top\"" } -// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration struct { +// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetRequestConfiguration struct { // Request headers Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption // Request query parameters - QueryParameters *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetQueryParameters + QueryParameters *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetQueryParameters } -// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { - m := &ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.userReport(startDateTime={startDateTime},endDateTime={endDateTime},discoveredApplicationSegmentId='@discoveredApplicationSegmentId',applicationId='@applicationId',aiAgentId='@aiAgentId',aiAgentName='@aiAgentName',cloudApplicationName='@cloudApplicationName'){?%24count,%24filter,%24search,%24skip,%24top,aiAgentId*,aiAgentName*,applicationId*,cloudApplicationName*,discoveredApplicationSegmentId*}", pathParameters), +// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderInternal instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) { + m := &ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.userReport(startDateTime={startDateTime},endDateTime={endDateTime},discoveredApplicationSegmentId='@discoveredApplicationSegmentId',applicationId='@applicationId',aiAgentId='@aiAgentId',aiAgentName='@aiAgentName',cloudApplicationName='@cloudApplicationName',destinationUrl='@destinationUrl'){?%24count,%24filter,%24search,%24skip,%24top,aiAgentId*,aiAgentName*,applicationId*,cloudApplicationName*,destinationUrl*,discoveredApplicationSegmentId*}", pathParameters), } if endDateTime != nil { m.BaseRequestBuilder.PathParameters["endDateTime"] = (*endDateTime).Format(i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.RFC3339) @@ -59,17 +61,17 @@ func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDate } return m } -// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { +// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) { urlParams := make(map[string]string) urlParams["request-raw-url"] = rawUrl - return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal(urlParams, requestAdapter, nil, nil) + return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderInternal(urlParams, requestAdapter, nil, nil) } // Get invoke function userReport -// Deprecated: This method is obsolete. Use GetAsUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse instead. -// returns a ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable when successful +// Deprecated: This method is obsolete. Use GetAsUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse instead. +// returns a ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable, error) { +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { return nil, err @@ -77,19 +79,19 @@ func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDat errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseFromDiscriminatorValue, errorMapping) + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponseFromDiscriminatorValue, errorMapping) if err != nil { return nil, err } if res == nil { return nil, nil } - return res.(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable), nil + return res.(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlResponseable), nil } -// GetAsUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse invoke function userReport -// returns a ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable when successful +// GetAsUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse invoke function userReport +// returns a ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) GetAsUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable, error) { +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) GetAsUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { return nil, err @@ -97,18 +99,18 @@ func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDat errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseFromDiscriminatorValue, errorMapping) + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseFromDiscriminatorValue, errorMapping) if err != nil { return nil, err } if res == nil { return nil, nil } - return res.(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable), nil + return res.(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlGetResponseable), nil } // ToGetRequestInformation invoke function userReport // returns a *RequestInformation when successful -func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { @@ -121,7 +123,7 @@ func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder when successful -func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { - return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +// returns a *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder when successful +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } diff --git a/networkaccess/e7f9fee92a4b82515fca3b1535492551f08afd07fc598e4c0d2c4402aea3a705.go b/networkaccess/e7f9fee92a4b82515fca3b1535492551f08afd07fc598e4c0d2c4402aea3a705.go deleted file mode 100644 index 3ffb0c62e78..00000000000 --- a/networkaccess/e7f9fee92a4b82515fca3b1535492551f08afd07fc598e4c0d2c4402aea3a705.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Microsoft Kiota - DO NOT EDIT. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package networkaccess - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable instead. -type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse struct { - ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse -} -// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse and sets the default values. -func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse()(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse) { - m := &ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse{ - ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse: *NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponse(), - } - return m -} -// CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponse(), nil -} -// Deprecated: This class is obsolete. Use ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable instead. -type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameGetResponseable -} diff --git a/networkaccess/reports_request_builder.go b/networkaccess/reports_request_builder.go index e07c0695b9f..bc9c0f89381 100644 --- a/networkaccess/reports_request_builder.go +++ b/networkaccess/reports_request_builder.go @@ -104,10 +104,10 @@ func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessCrossTenantAccessRepo func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentName(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilder) { return NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeaiAgentIdAiAgentIdAiAgentNameAiAgentNameRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) } -// MicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationName provides operations to call the deviceReport method. -// returns a *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder when successful -func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationName(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { - return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) +// MicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrl provides operations to call the deviceReport method. +// returns a *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder when successful +func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrl(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) } // MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime provides operations to call the entitiesSummaries method. // returns a *ReportsMicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilder when successful @@ -164,10 +164,10 @@ func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessTransactionSummariesW func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessUsageProfilingWithStartDateTimeWithEndDateTimeWithAggregatedBydiscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationId(aggregatedBy *string, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessUsageProfilingWithStartDateTimeWithEndDateTimeWithAggregatedBydiscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilder) { return NewReportsMicrosoftGraphNetworkaccessUsageProfilingWithStartDateTimeWithEndDateTimeWithAggregatedBydiscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, aggregatedBy, endDateTime, startDateTime) } -// MicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationName provides operations to call the userReport method. -// returns a *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder when successful -func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationName(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilder) { - return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) +// MicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrl provides operations to call the userReport method. +// returns a *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder when successful +func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrl(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimediscoveredApplicationSegmentIdDiscoveredApplicationSegmentIdApplicationIdApplicationIdAiAgentIdAiAgentIdAiAgentNameAiAgentNameCloudApplicationNameCloudApplicationNameDestinationUrlDestinationUrlRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) } // MicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTime provides operations to call the webCategoryReport method. // returns a *ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder when successful diff --git a/onpremisespublishingprofiles/item_agent_groups_item_agents_item_agent_groups_ref_request_builder.go b/onpremisespublishingprofiles/item_agent_groups_item_agents_item_agent_groups_ref_request_builder.go index 88201222d4e..c92491290b6 100644 --- a/onpremisespublishingprofiles/item_agent_groups_item_agents_item_agent_groups_ref_request_builder.go +++ b/onpremisespublishingprofiles/item_agent_groups_item_agents_item_agent_groups_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemAgentGroupsItemAgentsItemAgentGroupsRefRequestBuilderPostRequestConfigu // NewItemAgentGroupsItemAgentsItemAgentGroupsRefRequestBuilderInternal instantiates a new ItemAgentGroupsItemAgentsItemAgentGroupsRefRequestBuilder and sets the default values. func NewItemAgentGroupsItemAgentsItemAgentGroupsRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemAgentGroupsItemAgentsItemAgentGroupsRefRequestBuilder) { m := &ItemAgentGroupsItemAgentsItemAgentGroupsRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *ItemAgentGroupsItemAgentsItemAgentGroupsRefRequestBuilder) ToDeleteRequ // ToGetRequestInformation list of onPremisesAgentGroups that an onPremisesAgent is assigned to. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemAgentGroupsItemAgentsItemAgentGroupsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAgentGroupsItemAgentsItemAgentGroupsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *ItemAgentGroupsItemAgentsItemAgentGroupsRefRequestBuilder) ToGetRequest // ToPostRequestInformation create new navigation property ref to agentGroups for onPremisesPublishingProfiles // returns a *RequestInformation when successful func (m *ItemAgentGroupsItemAgentsItemAgentGroupsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemAgentGroupsItemAgentsItemAgentGroupsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/onpremisespublishingprofiles/item_agent_groups_item_published_resources_item_agent_groups_ref_request_builder.go b/onpremisespublishingprofiles/item_agent_groups_item_published_resources_item_agent_groups_ref_request_builder.go index ae245e68dbe..4a887e7db38 100644 --- a/onpremisespublishingprofiles/item_agent_groups_item_published_resources_item_agent_groups_ref_request_builder.go +++ b/onpremisespublishingprofiles/item_agent_groups_item_published_resources_item_agent_groups_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemAgentGroupsItemPublishedResourcesItemAgentGroupsRefRequestBuilderPostRe // NewItemAgentGroupsItemPublishedResourcesItemAgentGroupsRefRequestBuilderInternal instantiates a new ItemAgentGroupsItemPublishedResourcesItemAgentGroupsRefRequestBuilder and sets the default values. func NewItemAgentGroupsItemPublishedResourcesItemAgentGroupsRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemAgentGroupsItemPublishedResourcesItemAgentGroupsRefRequestBuilder) { m := &ItemAgentGroupsItemPublishedResourcesItemAgentGroupsRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *ItemAgentGroupsItemPublishedResourcesItemAgentGroupsRefRequestBuilder) // ToGetRequestInformation list of onPremisesAgentGroups that a publishedResource is assigned to. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemAgentGroupsItemPublishedResourcesItemAgentGroupsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAgentGroupsItemPublishedResourcesItemAgentGroupsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *ItemAgentGroupsItemPublishedResourcesItemAgentGroupsRefRequestBuilder) // ToPostRequestInformation create new navigation property ref to agentGroups for onPremisesPublishingProfiles // returns a *RequestInformation when successful func (m *ItemAgentGroupsItemPublishedResourcesItemAgentGroupsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemAgentGroupsItemPublishedResourcesItemAgentGroupsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/onpremisespublishingprofiles/item_agents_item_agent_groups_ref_request_builder.go b/onpremisespublishingprofiles/item_agents_item_agent_groups_ref_request_builder.go index aa6fe34cc52..fcca3994ec1 100644 --- a/onpremisespublishingprofiles/item_agents_item_agent_groups_ref_request_builder.go +++ b/onpremisespublishingprofiles/item_agents_item_agent_groups_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemAgentsItemAgentGroupsRefRequestBuilderPostRequestConfiguration struct { // NewItemAgentsItemAgentGroupsRefRequestBuilderInternal instantiates a new ItemAgentsItemAgentGroupsRefRequestBuilder and sets the default values. func NewItemAgentsItemAgentGroupsRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemAgentsItemAgentGroupsRefRequestBuilder) { m := &ItemAgentsItemAgentGroupsRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *ItemAgentsItemAgentGroupsRefRequestBuilder) ToDeleteRequestInformation( // ToGetRequestInformation list of onPremisesAgentGroups that an onPremisesAgent is assigned to. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemAgentsItemAgentGroupsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAgentsItemAgentGroupsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *ItemAgentsItemAgentGroupsRefRequestBuilder) ToGetRequestInformation(ctx // ToPostRequestInformation create new navigation property ref to agentGroups for onPremisesPublishingProfiles // returns a *RequestInformation when successful func (m *ItemAgentsItemAgentGroupsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemAgentsItemAgentGroupsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/onpremisespublishingprofiles/item_connector_groups_item_members_ref_request_builder.go b/onpremisespublishingprofiles/item_connector_groups_item_members_ref_request_builder.go index 61f961d4b7b..3258488e7c3 100644 --- a/onpremisespublishingprofiles/item_connector_groups_item_members_ref_request_builder.go +++ b/onpremisespublishingprofiles/item_connector_groups_item_members_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemConnectorGroupsItemMembersRefRequestBuilderPostRequestConfiguration str // NewItemConnectorGroupsItemMembersRefRequestBuilderInternal instantiates a new ItemConnectorGroupsItemMembersRefRequestBuilder and sets the default values. func NewItemConnectorGroupsItemMembersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemConnectorGroupsItemMembersRefRequestBuilder) { m := &ItemConnectorGroupsItemMembersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectorGroups/{connectorGroup%2Did}/members/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectorGroups/{connectorGroup%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *ItemConnectorGroupsItemMembersRefRequestBuilder) ToDeleteRequestInforma // ToGetRequestInformation get ref of members from onPremisesPublishingProfiles // returns a *RequestInformation when successful func (m *ItemConnectorGroupsItemMembersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemConnectorGroupsItemMembersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectorGroups/{connectorGroup%2Did}/members/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *ItemConnectorGroupsItemMembersRefRequestBuilder) ToGetRequestInformatio // ToPostRequestInformation create new navigation property ref to members for onPremisesPublishingProfiles // returns a *RequestInformation when successful func (m *ItemConnectorGroupsItemMembersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemConnectorGroupsItemMembersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectorGroups/{connectorGroup%2Did}/members/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/onpremisespublishingprofiles/item_connectors_item_member_of_ref_request_builder.go b/onpremisespublishingprofiles/item_connectors_item_member_of_ref_request_builder.go index 6ad8887ede9..1f7b42c087e 100644 --- a/onpremisespublishingprofiles/item_connectors_item_member_of_ref_request_builder.go +++ b/onpremisespublishingprofiles/item_connectors_item_member_of_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemConnectorsItemMemberOfRefRequestBuilderPostRequestConfiguration struct // NewItemConnectorsItemMemberOfRefRequestBuilderInternal instantiates a new ItemConnectorsItemMemberOfRefRequestBuilder and sets the default values. func NewItemConnectorsItemMemberOfRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemConnectorsItemMemberOfRefRequestBuilder) { m := &ItemConnectorsItemMemberOfRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectors/{connector%2Did}/memberOf/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectors/{connector%2Did}/memberOf/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *ItemConnectorsItemMemberOfRefRequestBuilder) ToDeleteRequestInformation // ToGetRequestInformation the connectorGroup that the connector is a member of. Read-only. // returns a *RequestInformation when successful func (m *ItemConnectorsItemMemberOfRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemConnectorsItemMemberOfRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectors/{connector%2Did}/memberOf/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *ItemConnectorsItemMemberOfRefRequestBuilder) ToGetRequestInformation(ct // ToPostRequestInformation create new navigation property ref to memberOf for onPremisesPublishingProfiles // returns a *RequestInformation when successful func (m *ItemConnectorsItemMemberOfRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemConnectorsItemMemberOfRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectors/{connector%2Did}/memberOf/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/onpremisespublishingprofiles/item_published_resources_item_agent_groups_ref_request_builder.go b/onpremisespublishingprofiles/item_published_resources_item_agent_groups_ref_request_builder.go index 977f5aef4d1..79ef07e9ad4 100644 --- a/onpremisespublishingprofiles/item_published_resources_item_agent_groups_ref_request_builder.go +++ b/onpremisespublishingprofiles/item_published_resources_item_agent_groups_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemPublishedResourcesItemAgentGroupsRefRequestBuilderPostRequestConfigurat // NewItemPublishedResourcesItemAgentGroupsRefRequestBuilderInternal instantiates a new ItemPublishedResourcesItemAgentGroupsRefRequestBuilder and sets the default values. func NewItemPublishedResourcesItemAgentGroupsRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPublishedResourcesItemAgentGroupsRefRequestBuilder) { m := &ItemPublishedResourcesItemAgentGroupsRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *ItemPublishedResourcesItemAgentGroupsRefRequestBuilder) ToDeleteRequest // ToGetRequestInformation list of onPremisesAgentGroups that a publishedResource is assigned to. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemPublishedResourcesItemAgentGroupsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPublishedResourcesItemAgentGroupsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *ItemPublishedResourcesItemAgentGroupsRefRequestBuilder) ToGetRequestInf // ToPostRequestInformation create new navigation property ref to agentGroups for onPremisesPublishingProfiles // returns a *RequestInformation when successful func (m *ItemPublishedResourcesItemAgentGroupsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemPublishedResourcesItemAgentGroupsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/organization/item_get_member_groups_post_request_body.go b/organization/item_get_member_groups_post_request_body.go index f3b7c82a2ca..b8539f5e83b 100644 --- a/organization/item_get_member_groups_post_request_body.go +++ b/organization/item_get_member_groups_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberGroupsPostRequestBody()(*ItemGetMemberGroupsPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberGroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/organization/item_get_member_objects_post_request_body.go b/organization/item_get_member_objects_post_request_body.go index 280893fed50..c6b3b75366d 100644 --- a/organization/item_get_member_objects_post_request_body.go +++ b/organization/item_get_member_objects_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberObjectsPostRequestBody()(*ItemGetMemberObjectsPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberObjectsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/permissiongrants/item_get_member_groups_post_request_body.go b/permissiongrants/item_get_member_groups_post_request_body.go index e51d7cc5efe..9eb4f47c62a 100644 --- a/permissiongrants/item_get_member_groups_post_request_body.go +++ b/permissiongrants/item_get_member_groups_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberGroupsPostRequestBody()(*ItemGetMemberGroupsPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberGroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/permissiongrants/item_get_member_objects_post_request_body.go b/permissiongrants/item_get_member_objects_post_request_body.go index d9e23d191f0..fdf534d4247 100644 --- a/permissiongrants/item_get_member_objects_post_request_body.go +++ b/permissiongrants/item_get_member_objects_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberObjectsPostRequestBody()(*ItemGetMemberObjectsPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberObjectsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/planner/plans_item_history_items_count_request_builder.go b/planner/plans_item_history_items_count_request_builder.go new file mode 100644 index 00000000000..9e826a0f0ec --- /dev/null +++ b/planner/plans_item_history_items_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package planner + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// PlansItemHistoryItemsCountRequestBuilder provides operations to count the resources in the collection. +type PlansItemHistoryItemsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// PlansItemHistoryItemsCountRequestBuilderGetQueryParameters get the number of the resource +type PlansItemHistoryItemsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// PlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *PlansItemHistoryItemsCountRequestBuilderGetQueryParameters +} +// NewPlansItemHistoryItemsCountRequestBuilderInternal instantiates a new PlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewPlansItemHistoryItemsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PlansItemHistoryItemsCountRequestBuilder) { + m := &PlansItemHistoryItemsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/planner/plans/{plannerPlan%2Did}/historyItems/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewPlansItemHistoryItemsCountRequestBuilder instantiates a new PlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewPlansItemHistoryItemsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PlansItemHistoryItemsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewPlansItemHistoryItemsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *PlansItemHistoryItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *PlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *PlansItemHistoryItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *PlansItemHistoryItemsCountRequestBuilder when successful +func (m *PlansItemHistoryItemsCountRequestBuilder) WithUrl(rawUrl string)(*PlansItemHistoryItemsCountRequestBuilder) { + return NewPlansItemHistoryItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/planner/plans_item_history_items_planner_history_item_item_request_builder.go b/planner/plans_item_history_items_planner_history_item_item_request_builder.go new file mode 100644 index 00000000000..47540a7e304 --- /dev/null +++ b/planner/plans_item_history_items_planner_history_item_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package planner + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters get historyItems from planner +type PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters +} +// PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal instantiates a new PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + m := &PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/planner/plans/{plannerPlan%2Did}/historyItems/{plannerHistoryItem%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder instantiates a new PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property historyItems for planner +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get historyItems from planner +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// Patch update the navigation property historyItems in planner +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToDeleteRequestInformation delete navigation property historyItems for planner +// returns a *RequestInformation when successful +func (m *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get historyItems from planner +// returns a *RequestInformation when successful +func (m *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property historyItems in planner +// returns a *RequestInformation when successful +func (m *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) WithUrl(rawUrl string)(*PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + return NewPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/planner/plans_item_history_items_request_builder.go b/planner/plans_item_history_items_request_builder.go new file mode 100644 index 00000000000..37b42233a68 --- /dev/null +++ b/planner/plans_item_history_items_request_builder.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package planner + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// PlansItemHistoryItemsRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type PlansItemHistoryItemsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// PlansItemHistoryItemsRequestBuilderGetQueryParameters get historyItems from planner +type PlansItemHistoryItemsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// PlansItemHistoryItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PlansItemHistoryItemsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *PlansItemHistoryItemsRequestBuilderGetQueryParameters +} +// PlansItemHistoryItemsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PlansItemHistoryItemsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByPlannerHistoryItemId provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *PlansItemHistoryItemsRequestBuilder) ByPlannerHistoryItemId(plannerHistoryItemId string)(*PlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if plannerHistoryItemId != "" { + urlTplParams["plannerHistoryItem%2Did"] = plannerHistoryItemId + } + return NewPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewPlansItemHistoryItemsRequestBuilderInternal instantiates a new PlansItemHistoryItemsRequestBuilder and sets the default values. +func NewPlansItemHistoryItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PlansItemHistoryItemsRequestBuilder) { + m := &PlansItemHistoryItemsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/planner/plans/{plannerPlan%2Did}/historyItems{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewPlansItemHistoryItemsRequestBuilder instantiates a new PlansItemHistoryItemsRequestBuilder and sets the default values. +func NewPlansItemHistoryItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PlansItemHistoryItemsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewPlansItemHistoryItemsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *PlansItemHistoryItemsCountRequestBuilder when successful +func (m *PlansItemHistoryItemsRequestBuilder) Count()(*PlansItemHistoryItemsCountRequestBuilder) { + return NewPlansItemHistoryItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get historyItems from planner +// returns a PlannerHistoryItemCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *PlansItemHistoryItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *PlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable), nil +} +// Post create new navigation property to historyItems for planner +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *PlansItemHistoryItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *PlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToGetRequestInformation get historyItems from planner +// returns a *RequestInformation when successful +func (m *PlansItemHistoryItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to historyItems for planner +// returns a *RequestInformation when successful +func (m *PlansItemHistoryItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *PlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *PlansItemHistoryItemsRequestBuilder when successful +func (m *PlansItemHistoryItemsRequestBuilder) WithUrl(rawUrl string)(*PlansItemHistoryItemsRequestBuilder) { + return NewPlansItemHistoryItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/planner/plans_planner_plan_item_request_builder.go b/planner/plans_planner_plan_item_request_builder.go index 997da38631d..0cbfbf35311 100644 --- a/planner/plans_planner_plan_item_request_builder.go +++ b/planner/plans_planner_plan_item_request_builder.go @@ -119,6 +119,11 @@ func (m *PlansPlannerPlanItemRequestBuilder) Get(ctx context.Context, requestCon func (m *PlansPlannerPlanItemRequestBuilder) GetUsageRights()(*PlansItemGetUsageRightsRequestBuilder) { return NewPlansItemGetUsageRightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// HistoryItems provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *PlansItemHistoryItemsRequestBuilder when successful +func (m *PlansPlannerPlanItemRequestBuilder) HistoryItems()(*PlansItemHistoryItemsRequestBuilder) { + return NewPlansItemHistoryItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MoveToContainer provides operations to call the moveToContainer method. // returns a *PlansItemMoveToContainerRequestBuilder when successful func (m *PlansPlannerPlanItemRequestBuilder) MoveToContainer()(*PlansItemMoveToContainerRequestBuilder) { diff --git a/policies/0dd06eb76ad8193d4e01cb1dba5a14b4c71de3a8dfb951ca9f9bfbe4134552d6.go b/policies/0dd06eb76ad8193d4e01cb1dba5a14b4c71de3a8dfb951ca9f9bfbe4134552d6.go index a44f4eacd15..3b9ce2cec2d 100644 --- a/policies/0dd06eb76ad8193d4e01cb1dba5a14b4c71de3a8dfb951ca9f9bfbe4134552d6.go +++ b/policies/0dd06eb76ad8193d4e01cb1dba5a14b4c71de3a8dfb951ca9f9bfbe4134552d6.go @@ -137,6 +137,11 @@ func (m *CrossTenantAccessPolicyPartnersCrossTenantAccessPolicyConfigurationPart func (m *CrossTenantAccessPolicyPartnersCrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder) Restore()(*CrossTenantAccessPolicyPartnersItemRestoreRequestBuilder) { return NewCrossTenantAccessPolicyPartnersItemRestoreRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ServiceProviderConstraints provides operations to manage the serviceProviderConstraints property of the microsoft.graph.crossTenantAccessPolicyConfigurationPartner entity. +// returns a *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder when successful +func (m *CrossTenantAccessPolicyPartnersCrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder) ServiceProviderConstraints()(*CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder) { + return NewCrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete a partner-specific configuration in a cross-tenant access policy. If a configuration includes a user synchronization policy, you must first delete the user synchronization policy before you can delete the partner-specific configuration. // returns a *RequestInformation when successful func (m *CrossTenantAccessPolicyPartnersCrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *CrossTenantAccessPolicyPartnersCrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/policies/8136bfb9a9c37f9251c178c70071ddf6f2f5ddf350e1bd8a6e59b4d63a61e7b7.go b/policies/8136bfb9a9c37f9251c178c70071ddf6f2f5ddf350e1bd8a6e59b4d63a61e7b7.go index d191c5c766a..8c02ce461f0 100644 --- a/policies/8136bfb9a9c37f9251c178c70071ddf6f2f5ddf350e1bd8a6e59b4d63a61e7b7.go +++ b/policies/8136bfb9a9c37f9251c178c70071ddf6f2f5ddf350e1bd8a6e59b4d63a61e7b7.go @@ -134,6 +134,11 @@ func (m *DeletedItemsCrossTenantPartnersCrossTenantAccessPolicyConfigurationPart func (m *DeletedItemsCrossTenantPartnersCrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder) Restore()(*DeletedItemsCrossTenantPartnersItemRestoreRequestBuilder) { return NewDeletedItemsCrossTenantPartnersItemRestoreRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// ServiceProviderConstraints provides operations to manage the serviceProviderConstraints property of the microsoft.graph.crossTenantAccessPolicyConfigurationPartner entity. +// returns a *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder when successful +func (m *DeletedItemsCrossTenantPartnersCrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder) ServiceProviderConstraints()(*DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder) { + return NewDeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation permanently delete a policyDeletableItem object, which might be one of the following deleted policy types:- crossTenantAccessPolicyConfigurationPartner- crossTenantIdentitySyncPolicyPartner- conditionalAccessPolicy- namedLocation // returns a *RequestInformation when successful func (m *DeletedItemsCrossTenantPartnersCrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *DeletedItemsCrossTenantPartnersCrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/policies/authentication_strength_policies_item_usage_request_builder.go b/policies/authentication_strength_policies_item_usage_request_builder.go index 750bb91dec3..c6441a299eb 100644 --- a/policies/authentication_strength_policies_item_usage_request_builder.go +++ b/policies/authentication_strength_policies_item_usage_request_builder.go @@ -34,7 +34,7 @@ func NewAuthenticationStrengthPoliciesItemUsageRequestBuilder(rawUrl string, req urlParams["request-raw-url"] = rawUrl return NewAuthenticationStrengthPoliciesItemUsageRequestBuilderInternal(urlParams, requestAdapter) } -// Get the usage function allows the caller to see which Conditional Access policies reference a specified authentication strength policy. The policies are returned in two collections, one containing Conditional Access policies that require an MFA claim and the other containing Conditional Access policies that do not require such a claim. Policies in the former category are restricted in what kinds of changes may be made to them to prevent undermining the MFA requirement of those policies. +// Get the usage function allows the caller to see which Conditional Access policies reference a specified authentication strength policy. The policies are returned in two collections, one containing Conditional Access policies that require an MFA claim and the other containing Conditional Access policies that don't require such a claim. Policies in the former category are restricted in what kinds of changes may be made to them to prevent undermining the MFA requirement of those policies. // returns a AuthenticationStrengthUsageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -57,7 +57,7 @@ func (m *AuthenticationStrengthPoliciesItemUsageRequestBuilder) Get(ctx context. } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationStrengthUsageable), nil } -// ToGetRequestInformation the usage function allows the caller to see which Conditional Access policies reference a specified authentication strength policy. The policies are returned in two collections, one containing Conditional Access policies that require an MFA claim and the other containing Conditional Access policies that do not require such a claim. Policies in the former category are restricted in what kinds of changes may be made to them to prevent undermining the MFA requirement of those policies. +// ToGetRequestInformation the usage function allows the caller to see which Conditional Access policies reference a specified authentication strength policy. The policies are returned in two collections, one containing Conditional Access policies that require an MFA claim and the other containing Conditional Access policies that don't require such a claim. Policies in the former category are restricted in what kinds of changes may be made to them to prevent undermining the MFA requirement of those policies. // returns a *RequestInformation when successful func (m *AuthenticationStrengthPoliciesItemUsageRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AuthenticationStrengthPoliciesItemUsageRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/policies/cross_tenant_access_policy_partners_item_service_provider_constraints_request_builder.go b/policies/cross_tenant_access_policy_partners_item_service_provider_constraints_request_builder.go new file mode 100644 index 00000000000..0e1643391bd --- /dev/null +++ b/policies/cross_tenant_access_policy_partners_item_service_provider_constraints_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package policies + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder provides operations to manage the serviceProviderConstraints property of the microsoft.graph.crossTenantAccessPolicyConfigurationPartner entity. +type CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderGetQueryParameters get serviceProviderConstraints from policies +type CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderGetQueryParameters +} +// CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderInternal instantiates a new CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder and sets the default values. +func NewCrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder) { + m := &CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner%2DtenantId}/serviceProviderConstraints{?%24expand,%24select}", pathParameters), + } + return m +} +// NewCrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder instantiates a new CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder and sets the default values. +func NewCrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property serviceProviderConstraints for policies +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder) Delete(ctx context.Context, requestConfiguration *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get serviceProviderConstraints from policies +// returns a ServiceProviderConstraintsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder) Get(ctx context.Context, requestConfiguration *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateServiceProviderConstraintsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable), nil +} +// Patch update the navigation property serviceProviderConstraints in policies +// returns a ServiceProviderConstraintsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable, requestConfiguration *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateServiceProviderConstraintsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable), nil +} +// Restore provides operations to call the restore method. +// returns a *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder when successful +func (m *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder) Restore()(*CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder) { + return NewCrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property serviceProviderConstraints for policies +// returns a *RequestInformation when successful +func (m *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get serviceProviderConstraints from policies +// returns a *RequestInformation when successful +func (m *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property serviceProviderConstraints in policies +// returns a *RequestInformation when successful +func (m *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable, requestConfiguration *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder when successful +func (m *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder) WithUrl(rawUrl string)(*CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder) { + return NewCrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/policies/cross_tenant_access_policy_partners_item_service_provider_constraints_restore_request_builder.go b/policies/cross_tenant_access_policy_partners_item_service_provider_constraints_restore_request_builder.go new file mode 100644 index 00000000000..7c7d2e889fd --- /dev/null +++ b/policies/cross_tenant_access_policy_partners_item_service_provider_constraints_restore_request_builder.go @@ -0,0 +1,72 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package policies + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder provides operations to call the restore method. +type CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilderInternal instantiates a new CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder and sets the default values. +func NewCrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder) { + m := &CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner%2DtenantId}/serviceProviderConstraints/restore", pathParameters), + } + return m +} +// NewCrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder instantiates a new CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder and sets the default values. +func NewCrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action restore +// returns a ServiceProviderConstraintsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder) Post(ctx context.Context, requestConfiguration *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateServiceProviderConstraintsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable), nil +} +// ToPostRequestInformation invoke action restore +// returns a *RequestInformation when successful +func (m *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder when successful +func (m *CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder) WithUrl(rawUrl string)(*CrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder) { + return NewCrossTenantAccessPolicyPartnersItemServiceProviderConstraintsRestoreRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/policies/deleted_items_cross_tenant_partners_item_service_provider_constraints_request_builder.go b/policies/deleted_items_cross_tenant_partners_item_service_provider_constraints_request_builder.go new file mode 100644 index 00000000000..389e6ffd743 --- /dev/null +++ b/policies/deleted_items_cross_tenant_partners_item_service_provider_constraints_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package policies + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder provides operations to manage the serviceProviderConstraints property of the microsoft.graph.crossTenantAccessPolicyConfigurationPartner entity. +type DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderGetQueryParameters get serviceProviderConstraints from policies +type DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderGetQueryParameters +} +// DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewDeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderInternal instantiates a new DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder and sets the default values. +func NewDeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder) { + m := &DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/policies/deletedItems/crossTenantPartners/{crossTenantAccessPolicyConfigurationPartner%2DtenantId}/serviceProviderConstraints{?%24expand,%24select}", pathParameters), + } + return m +} +// NewDeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder instantiates a new DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder and sets the default values. +func NewDeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property serviceProviderConstraints for policies +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder) Delete(ctx context.Context, requestConfiguration *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get serviceProviderConstraints from policies +// returns a ServiceProviderConstraintsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder) Get(ctx context.Context, requestConfiguration *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateServiceProviderConstraintsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable), nil +} +// Patch update the navigation property serviceProviderConstraints in policies +// returns a ServiceProviderConstraintsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable, requestConfiguration *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateServiceProviderConstraintsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable), nil +} +// Restore provides operations to call the restore method. +// returns a *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder when successful +func (m *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder) Restore()(*DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder) { + return NewDeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property serviceProviderConstraints for policies +// returns a *RequestInformation when successful +func (m *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get serviceProviderConstraints from policies +// returns a *RequestInformation when successful +func (m *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property serviceProviderConstraints in policies +// returns a *RequestInformation when successful +func (m *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable, requestConfiguration *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder when successful +func (m *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder) WithUrl(rawUrl string)(*DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder) { + return NewDeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/policies/deleted_items_cross_tenant_partners_item_service_provider_constraints_restore_request_builder.go b/policies/deleted_items_cross_tenant_partners_item_service_provider_constraints_restore_request_builder.go new file mode 100644 index 00000000000..e6005b51bc1 --- /dev/null +++ b/policies/deleted_items_cross_tenant_partners_item_service_provider_constraints_restore_request_builder.go @@ -0,0 +1,72 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package policies + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder provides operations to call the restore method. +type DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewDeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilderInternal instantiates a new DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder and sets the default values. +func NewDeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder) { + m := &DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/policies/deletedItems/crossTenantPartners/{crossTenantAccessPolicyConfigurationPartner%2DtenantId}/serviceProviderConstraints/restore", pathParameters), + } + return m +} +// NewDeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder instantiates a new DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder and sets the default values. +func NewDeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action restore +// returns a ServiceProviderConstraintsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder) Post(ctx context.Context, requestConfiguration *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateServiceProviderConstraintsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProviderConstraintsable), nil +} +// ToPostRequestInformation invoke action restore +// returns a *RequestInformation when successful +func (m *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder when successful +func (m *DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder) WithUrl(rawUrl string)(*DeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder) { + return NewDeletedItemsCrossTenantPartnersItemServiceProviderConstraintsRestoreRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/policies/feature_rollout_policies_item_applies_to_ref_request_builder.go b/policies/feature_rollout_policies_item_applies_to_ref_request_builder.go index 6242a29de57..a2f1f428650 100644 --- a/policies/feature_rollout_policies_item_applies_to_ref_request_builder.go +++ b/policies/feature_rollout_policies_item_applies_to_ref_request_builder.go @@ -62,7 +62,7 @@ type FeatureRolloutPoliciesItemAppliesToRefRequestBuilderPostRequestConfiguratio // NewFeatureRolloutPoliciesItemAppliesToRefRequestBuilderInternal instantiates a new FeatureRolloutPoliciesItemAppliesToRefRequestBuilder and sets the default values. func NewFeatureRolloutPoliciesItemAppliesToRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FeatureRolloutPoliciesItemAppliesToRefRequestBuilder) { m := &FeatureRolloutPoliciesItemAppliesToRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -147,7 +147,7 @@ func (m *FeatureRolloutPoliciesItemAppliesToRefRequestBuilder) ToDeleteRequestIn // ToGetRequestInformation nullable. Specifies a list of directoryObject resources that feature is enabled for. // returns a *RequestInformation when successful func (m *FeatureRolloutPoliciesItemAppliesToRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FeatureRolloutPoliciesItemAppliesToRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -161,7 +161,7 @@ func (m *FeatureRolloutPoliciesItemAppliesToRefRequestBuilder) ToGetRequestInfor // ToPostRequestInformation add an appliesTo on a featureRolloutPolicy object to specify the directoryObject to which the featureRolloutPolicy should be applied. // returns a *RequestInformation when successful func (m *FeatureRolloutPoliciesItemAppliesToRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *FeatureRolloutPoliciesItemAppliesToRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/policies/mobile_app_management_policies_item_included_groups_ref_request_builder.go b/policies/mobile_app_management_policies_item_included_groups_ref_request_builder.go index e5f27643b4f..d27fafab316 100644 --- a/policies/mobile_app_management_policies_item_included_groups_ref_request_builder.go +++ b/policies/mobile_app_management_policies_item_included_groups_ref_request_builder.go @@ -62,7 +62,7 @@ type MobileAppManagementPoliciesItemIncludedGroupsRefRequestBuilderPostRequestCo // NewMobileAppManagementPoliciesItemIncludedGroupsRefRequestBuilderInternal instantiates a new MobileAppManagementPoliciesItemIncludedGroupsRefRequestBuilder and sets the default values. func NewMobileAppManagementPoliciesItemIncludedGroupsRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MobileAppManagementPoliciesItemIncludedGroupsRefRequestBuilder) { m := &MobileAppManagementPoliciesItemIncludedGroupsRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/policies/mobileAppManagementPolicies/{mobileAppManagementPolicy%2Did}/includedGroups/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/policies/mobileAppManagementPolicies/{mobileAppManagementPolicy%2Did}/includedGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *MobileAppManagementPoliciesItemIncludedGroupsRefRequestBuilder) ToDelet // ToGetRequestInformation get the list of groups that are included in a mobile app management policy. // returns a *RequestInformation when successful func (m *MobileAppManagementPoliciesItemIncludedGroupsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppManagementPoliciesItemIncludedGroupsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/policies/mobileAppManagementPolicies/{mobileAppManagementPolicy%2Did}/includedGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *MobileAppManagementPoliciesItemIncludedGroupsRefRequestBuilder) ToGetRe // ToPostRequestInformation add groups to be included in a mobile app management policy. // returns a *RequestInformation when successful func (m *MobileAppManagementPoliciesItemIncludedGroupsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *MobileAppManagementPoliciesItemIncludedGroupsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/policies/mobileAppManagementPolicies/{mobileAppManagementPolicy%2Did}/includedGroups/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/policies/mobile_device_management_policies_item_included_groups_ref_request_builder.go b/policies/mobile_device_management_policies_item_included_groups_ref_request_builder.go index a137ed31900..091e2f0b138 100644 --- a/policies/mobile_device_management_policies_item_included_groups_ref_request_builder.go +++ b/policies/mobile_device_management_policies_item_included_groups_ref_request_builder.go @@ -62,7 +62,7 @@ type MobileDeviceManagementPoliciesItemIncludedGroupsRefRequestBuilderPostReques // NewMobileDeviceManagementPoliciesItemIncludedGroupsRefRequestBuilderInternal instantiates a new MobileDeviceManagementPoliciesItemIncludedGroupsRefRequestBuilder and sets the default values. func NewMobileDeviceManagementPoliciesItemIncludedGroupsRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MobileDeviceManagementPoliciesItemIncludedGroupsRefRequestBuilder) { m := &MobileDeviceManagementPoliciesItemIncludedGroupsRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/policies/mobileDeviceManagementPolicies/{mobileDeviceManagementPolicy%2Did}/includedGroups/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/policies/mobileDeviceManagementPolicies/{mobileDeviceManagementPolicy%2Did}/includedGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *MobileDeviceManagementPoliciesItemIncludedGroupsRefRequestBuilder) ToDe // ToGetRequestInformation get the list of groups that are included in a mobile device management policy. // returns a *RequestInformation when successful func (m *MobileDeviceManagementPoliciesItemIncludedGroupsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileDeviceManagementPoliciesItemIncludedGroupsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/policies/mobileDeviceManagementPolicies/{mobileDeviceManagementPolicy%2Did}/includedGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *MobileDeviceManagementPoliciesItemIncludedGroupsRefRequestBuilder) ToGe // ToPostRequestInformation add groups to be included in a mobile app management policy. // returns a *RequestInformation when successful func (m *MobileDeviceManagementPoliciesItemIncludedGroupsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *MobileDeviceManagementPoliciesItemIncludedGroupsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/policies/mobileDeviceManagementPolicies/{mobileDeviceManagementPolicy%2Did}/includedGroups/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/print/printer_shares_item_allowed_groups_ref_request_builder.go b/print/printer_shares_item_allowed_groups_ref_request_builder.go index 8945bb938d4..da811d4e1ca 100644 --- a/print/printer_shares_item_allowed_groups_ref_request_builder.go +++ b/print/printer_shares_item_allowed_groups_ref_request_builder.go @@ -62,7 +62,7 @@ type PrinterSharesItemAllowedGroupsRefRequestBuilderPostRequestConfiguration str // NewPrinterSharesItemAllowedGroupsRefRequestBuilderInternal instantiates a new PrinterSharesItemAllowedGroupsRefRequestBuilder and sets the default values. func NewPrinterSharesItemAllowedGroupsRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PrinterSharesItemAllowedGroupsRefRequestBuilder) { m := &PrinterSharesItemAllowedGroupsRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedGroups/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -146,7 +146,7 @@ func (m *PrinterSharesItemAllowedGroupsRefRequestBuilder) ToDeleteRequestInforma // Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans on 2023-06-13 and will be removed 2023-07-31 // returns a *RequestInformation when successful func (m *PrinterSharesItemAllowedGroupsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedGroupsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -161,7 +161,7 @@ func (m *PrinterSharesItemAllowedGroupsRefRequestBuilder) ToGetRequestInformatio // Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans on 2023-06-13 and will be removed 2023-07-31 // returns a *RequestInformation when successful func (m *PrinterSharesItemAllowedGroupsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *PrinterSharesItemAllowedGroupsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedGroups/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/print/printer_shares_item_allowed_users_ref_request_builder.go b/print/printer_shares_item_allowed_users_ref_request_builder.go index 30dce0e120f..06bbe990b0a 100644 --- a/print/printer_shares_item_allowed_users_ref_request_builder.go +++ b/print/printer_shares_item_allowed_users_ref_request_builder.go @@ -62,7 +62,7 @@ type PrinterSharesItemAllowedUsersRefRequestBuilderPostRequestConfiguration stru // NewPrinterSharesItemAllowedUsersRefRequestBuilderInternal instantiates a new PrinterSharesItemAllowedUsersRefRequestBuilder and sets the default values. func NewPrinterSharesItemAllowedUsersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PrinterSharesItemAllowedUsersRefRequestBuilder) { m := &PrinterSharesItemAllowedUsersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedUsers/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedUsers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -149,7 +149,7 @@ func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) ToDeleteRequestInformat // Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans on 2023-06-13 and will be removed 2023-07-31 // returns a *RequestInformation when successful func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedUsersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedUsers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) ToGetRequestInformation // Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans on 2023-06-13 and will be removed 2023-07-31 // returns a *RequestInformation when successful func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *PrinterSharesItemAllowedUsersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedUsers/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/print/printers_create_post_request_body.go b/print/printers_create_post_request_body.go index 3177ae02aa1..f2e224a5149 100644 --- a/print/printers_create_post_request_body.go +++ b/print/printers_create_post_request_body.go @@ -19,6 +19,8 @@ func NewPrintersCreatePostRequestBody()(*PrintersCreatePostRequestBody) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + hasPhysicalDeviceValue := false + m.SetHasPhysicalDevice(&hasPhysicalDeviceValue) return m } // CreatePrintersCreatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/print/shares_item_allowed_groups_ref_request_builder.go b/print/shares_item_allowed_groups_ref_request_builder.go index f47646ac5ea..f8ec9009303 100644 --- a/print/shares_item_allowed_groups_ref_request_builder.go +++ b/print/shares_item_allowed_groups_ref_request_builder.go @@ -62,7 +62,7 @@ type SharesItemAllowedGroupsRefRequestBuilderPostRequestConfiguration struct { // NewSharesItemAllowedGroupsRefRequestBuilderInternal instantiates a new SharesItemAllowedGroupsRefRequestBuilder and sets the default values. func NewSharesItemAllowedGroupsRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SharesItemAllowedGroupsRefRequestBuilder) { m := &SharesItemAllowedGroupsRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *SharesItemAllowedGroupsRefRequestBuilder) ToDeleteRequestInformation(ct // ToGetRequestInformation retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. // returns a *RequestInformation when successful func (m *SharesItemAllowedGroupsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SharesItemAllowedGroupsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *SharesItemAllowedGroupsRefRequestBuilder) ToGetRequestInformation(ctx c // ToPostRequestInformation grant the specified group access to submit print jobs to the associated printerShare. // returns a *RequestInformation when successful func (m *SharesItemAllowedGroupsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *SharesItemAllowedGroupsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/print/shares_item_allowed_users_ref_request_builder.go b/print/shares_item_allowed_users_ref_request_builder.go index 4d4bcd75234..6ad378056f7 100644 --- a/print/shares_item_allowed_users_ref_request_builder.go +++ b/print/shares_item_allowed_users_ref_request_builder.go @@ -62,7 +62,7 @@ type SharesItemAllowedUsersRefRequestBuilderPostRequestConfiguration struct { // NewSharesItemAllowedUsersRefRequestBuilderInternal instantiates a new SharesItemAllowedUsersRefRequestBuilder and sets the default values. func NewSharesItemAllowedUsersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SharesItemAllowedUsersRefRequestBuilder) { m := &SharesItemAllowedUsersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -147,7 +147,7 @@ func (m *SharesItemAllowedUsersRefRequestBuilder) ToDeleteRequestInformation(ctx // ToGetRequestInformation retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. // returns a *RequestInformation when successful func (m *SharesItemAllowedUsersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SharesItemAllowedUsersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -161,7 +161,7 @@ func (m *SharesItemAllowedUsersRefRequestBuilder) ToGetRequestInformation(ctx co // ToPostRequestInformation grant the specified user access to submit print jobs to the associated printerShare. // returns a *RequestInformation when successful func (m *SharesItemAllowedUsersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *SharesItemAllowedUsersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/privilegedsignupstatus/can_sign_up_get_response.go b/privilegedsignupstatus/can_sign_up_get_response.go index ef3a843d662..9d334fd789c 100644 --- a/privilegedsignupstatus/can_sign_up_get_response.go +++ b/privilegedsignupstatus/can_sign_up_get_response.go @@ -18,6 +18,8 @@ func NewCanSignUpGetResponse()(*CanSignUpGetResponse) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateCanSignUpGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/privilegedsignupstatus/is_signed_up_get_response.go b/privilegedsignupstatus/is_signed_up_get_response.go index 8f31b97f297..e611e546f35 100644 --- a/privilegedsignupstatus/is_signed_up_get_response.go +++ b/privilegedsignupstatus/is_signed_up_get_response.go @@ -18,6 +18,8 @@ func NewIsSignedUpGetResponse()(*IsSignedUpGetResponse) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateIsSignedUpGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/programs/program_item_request_builder.go b/programs/program_item_request_builder.go index f14ef0e24a0..45ba4d0cd3a 100644 --- a/programs/program_item_request_builder.go +++ b/programs/program_item_request_builder.go @@ -62,7 +62,7 @@ func NewProgramItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26 func (m *ProgramItemRequestBuilder) Controls()(*ItemControlsRequestBuilder) { return NewItemControlsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete in the Microsoft Entra access reviews feature, delete a program object. Do not delete a program which still has programControl linked to it, those access reviews should first be deleted or unlinked from the program and linked to a different program. Also, please note that the built-in default program cannot be deleted. +// Delete in the Microsoft Entra access reviews feature, delete a program object. Don't delete a program which still has programControl linked to it, those access reviews should first be deleted or unlinked from the program and linked to a different program. Also, please note that the built-in default program cannot be deleted. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -124,7 +124,7 @@ func (m *ProgramItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e2 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Programable), nil } -// ToDeleteRequestInformation in the Microsoft Entra access reviews feature, delete a program object. Do not delete a program which still has programControl linked to it, those access reviews should first be deleted or unlinked from the program and linked to a different program. Also, please note that the built-in default program cannot be deleted. +// ToDeleteRequestInformation in the Microsoft Entra access reviews feature, delete a program object. Don't delete a program which still has programControl linked to it, those access reviews should first be deleted or unlinked from the program and linked to a different program. Also, please note that the built-in default program cannot be deleted. // returns a *RequestInformation when successful func (m *ProgramItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ProgramItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/reports/correlations_count_request_builder.go b/reports/correlations_count_request_builder.go new file mode 100644 index 00000000000..13096aaf63f --- /dev/null +++ b/reports/correlations_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package reports + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CorrelationsCountRequestBuilder provides operations to count the resources in the collection. +type CorrelationsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CorrelationsCountRequestBuilderGetQueryParameters get the number of the resource +type CorrelationsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// CorrelationsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CorrelationsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CorrelationsCountRequestBuilderGetQueryParameters +} +// NewCorrelationsCountRequestBuilderInternal instantiates a new CorrelationsCountRequestBuilder and sets the default values. +func NewCorrelationsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CorrelationsCountRequestBuilder) { + m := &CorrelationsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/reports/correlations/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewCorrelationsCountRequestBuilder instantiates a new CorrelationsCountRequestBuilder and sets the default values. +func NewCorrelationsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CorrelationsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCorrelationsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CorrelationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *CorrelationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *CorrelationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CorrelationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CorrelationsCountRequestBuilder when successful +func (m *CorrelationsCountRequestBuilder) WithUrl(rawUrl string)(*CorrelationsCountRequestBuilder) { + return NewCorrelationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/reports/correlations_identity_correlation_item_request_builder.go b/reports/correlations_identity_correlation_item_request_builder.go new file mode 100644 index 00000000000..bb1233c9ffb --- /dev/null +++ b/reports/correlations_identity_correlation_item_request_builder.go @@ -0,0 +1,173 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package reports + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CorrelationsIdentityCorrelationItemRequestBuilder provides operations to manage the correlations property of the microsoft.graph.reportRoot entity. +type CorrelationsIdentityCorrelationItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CorrelationsIdentityCorrelationItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CorrelationsIdentityCorrelationItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// CorrelationsIdentityCorrelationItemRequestBuilderGetQueryParameters get an identityCorrelation object. +type CorrelationsIdentityCorrelationItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// CorrelationsIdentityCorrelationItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CorrelationsIdentityCorrelationItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CorrelationsIdentityCorrelationItemRequestBuilderGetQueryParameters +} +// CorrelationsIdentityCorrelationItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CorrelationsIdentityCorrelationItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCorrelationsIdentityCorrelationItemRequestBuilderInternal instantiates a new CorrelationsIdentityCorrelationItemRequestBuilder and sets the default values. +func NewCorrelationsIdentityCorrelationItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CorrelationsIdentityCorrelationItemRequestBuilder) { + m := &CorrelationsIdentityCorrelationItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/reports/correlations/{identityCorrelation%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewCorrelationsIdentityCorrelationItemRequestBuilder instantiates a new CorrelationsIdentityCorrelationItemRequestBuilder and sets the default values. +func NewCorrelationsIdentityCorrelationItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CorrelationsIdentityCorrelationItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCorrelationsIdentityCorrelationItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property correlations for reports +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CorrelationsIdentityCorrelationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *CorrelationsIdentityCorrelationItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get an identityCorrelation object. +// returns a IdentityCorrelationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/identitycorrelation-get?view=graph-rest-beta +func (m *CorrelationsIdentityCorrelationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *CorrelationsIdentityCorrelationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentityCorrelationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateIdentityCorrelationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentityCorrelationable), nil +} +// Identities provides operations to manage the identities property of the microsoft.graph.identityCorrelation entity. +// returns a *CorrelationsItemIdentitiesRequestBuilder when successful +func (m *CorrelationsIdentityCorrelationItemRequestBuilder) Identities()(*CorrelationsItemIdentitiesRequestBuilder) { + return NewCorrelationsItemIdentitiesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update the navigation property correlations in reports +// returns a IdentityCorrelationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CorrelationsIdentityCorrelationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentityCorrelationable, requestConfiguration *CorrelationsIdentityCorrelationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentityCorrelationable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateIdentityCorrelationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentityCorrelationable), nil +} +// ServicePrincipal provides operations to manage the servicePrincipal property of the microsoft.graph.identityCorrelation entity. +// returns a *CorrelationsItemServicePrincipalRequestBuilder when successful +func (m *CorrelationsIdentityCorrelationItemRequestBuilder) ServicePrincipal()(*CorrelationsItemServicePrincipalRequestBuilder) { + return NewCorrelationsItemServicePrincipalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property correlations for reports +// returns a *RequestInformation when successful +func (m *CorrelationsIdentityCorrelationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *CorrelationsIdentityCorrelationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get an identityCorrelation object. +// returns a *RequestInformation when successful +func (m *CorrelationsIdentityCorrelationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CorrelationsIdentityCorrelationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property correlations in reports +// returns a *RequestInformation when successful +func (m *CorrelationsIdentityCorrelationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentityCorrelationable, requestConfiguration *CorrelationsIdentityCorrelationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CorrelationsIdentityCorrelationItemRequestBuilder when successful +func (m *CorrelationsIdentityCorrelationItemRequestBuilder) WithUrl(rawUrl string)(*CorrelationsIdentityCorrelationItemRequestBuilder) { + return NewCorrelationsIdentityCorrelationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/reports/correlations_item_identities_correlated_identity_item_request_builder.go b/reports/correlations_item_identities_correlated_identity_item_request_builder.go new file mode 100644 index 00000000000..25a5f562156 --- /dev/null +++ b/reports/correlations_item_identities_correlated_identity_item_request_builder.go @@ -0,0 +1,163 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package reports + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder provides operations to manage the identities property of the microsoft.graph.identityCorrelation entity. +type CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderGetQueryParameters get a correlatedIdentity object from an identityCorrelation object. +type CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderGetQueryParameters +} +// CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewCorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderInternal instantiates a new CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder and sets the default values. +func NewCorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder) { + m := &CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/reports/correlations/{identityCorrelation%2Did}/identities/{correlatedIdentity%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewCorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder instantiates a new CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder and sets the default values. +func NewCorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property identities for reports +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get a correlatedIdentity object from an identityCorrelation object. +// returns a CorrelatedIdentityable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/correlatedidentity-get?view=graph-rest-beta +func (m *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder) Get(ctx context.Context, requestConfiguration *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CorrelatedIdentityable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCorrelatedIdentityFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CorrelatedIdentityable), nil +} +// Patch update the navigation property identities in reports +// returns a CorrelatedIdentityable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CorrelatedIdentityable, requestConfiguration *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CorrelatedIdentityable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCorrelatedIdentityFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CorrelatedIdentityable), nil +} +// ToDeleteRequestInformation delete navigation property identities for reports +// returns a *RequestInformation when successful +func (m *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get a correlatedIdentity object from an identityCorrelation object. +// returns a *RequestInformation when successful +func (m *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property identities in reports +// returns a *RequestInformation when successful +func (m *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CorrelatedIdentityable, requestConfiguration *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder when successful +func (m *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder) WithUrl(rawUrl string)(*CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder) { + return NewCorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/reports/correlations_item_identities_count_request_builder.go b/reports/correlations_item_identities_count_request_builder.go new file mode 100644 index 00000000000..673119af38c --- /dev/null +++ b/reports/correlations_item_identities_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package reports + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CorrelationsItemIdentitiesCountRequestBuilder provides operations to count the resources in the collection. +type CorrelationsItemIdentitiesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CorrelationsItemIdentitiesCountRequestBuilderGetQueryParameters get the number of the resource +type CorrelationsItemIdentitiesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// CorrelationsItemIdentitiesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CorrelationsItemIdentitiesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CorrelationsItemIdentitiesCountRequestBuilderGetQueryParameters +} +// NewCorrelationsItemIdentitiesCountRequestBuilderInternal instantiates a new CorrelationsItemIdentitiesCountRequestBuilder and sets the default values. +func NewCorrelationsItemIdentitiesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CorrelationsItemIdentitiesCountRequestBuilder) { + m := &CorrelationsItemIdentitiesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/reports/correlations/{identityCorrelation%2Did}/identities/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewCorrelationsItemIdentitiesCountRequestBuilder instantiates a new CorrelationsItemIdentitiesCountRequestBuilder and sets the default values. +func NewCorrelationsItemIdentitiesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CorrelationsItemIdentitiesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCorrelationsItemIdentitiesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CorrelationsItemIdentitiesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *CorrelationsItemIdentitiesCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *CorrelationsItemIdentitiesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CorrelationsItemIdentitiesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CorrelationsItemIdentitiesCountRequestBuilder when successful +func (m *CorrelationsItemIdentitiesCountRequestBuilder) WithUrl(rawUrl string)(*CorrelationsItemIdentitiesCountRequestBuilder) { + return NewCorrelationsItemIdentitiesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/reports/correlations_item_identities_request_builder.go b/reports/correlations_item_identities_request_builder.go new file mode 100644 index 00000000000..69dd7f2d0a0 --- /dev/null +++ b/reports/correlations_item_identities_request_builder.go @@ -0,0 +1,116 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package reports + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CorrelationsItemIdentitiesRequestBuilder provides operations to manage the identities property of the microsoft.graph.identityCorrelation entity. +type CorrelationsItemIdentitiesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CorrelationsItemIdentitiesRequestBuilderGetQueryParameters list the correlated identity results for an identityCorrelation object. +type CorrelationsItemIdentitiesRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// CorrelationsItemIdentitiesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CorrelationsItemIdentitiesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CorrelationsItemIdentitiesRequestBuilderGetQueryParameters +} +// ByCorrelatedIdentityId provides operations to manage the identities property of the microsoft.graph.identityCorrelation entity. +// returns a *CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder when successful +func (m *CorrelationsItemIdentitiesRequestBuilder) ByCorrelatedIdentityId(correlatedIdentityId string)(*CorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if correlatedIdentityId != "" { + urlTplParams["correlatedIdentity%2Did"] = correlatedIdentityId + } + return NewCorrelationsItemIdentitiesCorrelatedIdentityItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewCorrelationsItemIdentitiesRequestBuilderInternal instantiates a new CorrelationsItemIdentitiesRequestBuilder and sets the default values. +func NewCorrelationsItemIdentitiesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CorrelationsItemIdentitiesRequestBuilder) { + m := &CorrelationsItemIdentitiesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/reports/correlations/{identityCorrelation%2Did}/identities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewCorrelationsItemIdentitiesRequestBuilder instantiates a new CorrelationsItemIdentitiesRequestBuilder and sets the default values. +func NewCorrelationsItemIdentitiesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CorrelationsItemIdentitiesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCorrelationsItemIdentitiesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *CorrelationsItemIdentitiesCountRequestBuilder when successful +func (m *CorrelationsItemIdentitiesRequestBuilder) Count()(*CorrelationsItemIdentitiesCountRequestBuilder) { + return NewCorrelationsItemIdentitiesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get list the correlated identity results for an identityCorrelation object. +// returns a CorrelatedIdentityCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/identitycorrelation-list-identities?view=graph-rest-beta +func (m *CorrelationsItemIdentitiesRequestBuilder) Get(ctx context.Context, requestConfiguration *CorrelationsItemIdentitiesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CorrelatedIdentityCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateCorrelatedIdentityCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CorrelatedIdentityCollectionResponseable), nil +} +// ToGetRequestInformation list the correlated identity results for an identityCorrelation object. +// returns a *RequestInformation when successful +func (m *CorrelationsItemIdentitiesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CorrelationsItemIdentitiesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CorrelationsItemIdentitiesRequestBuilder when successful +func (m *CorrelationsItemIdentitiesRequestBuilder) WithUrl(rawUrl string)(*CorrelationsItemIdentitiesRequestBuilder) { + return NewCorrelationsItemIdentitiesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/reports/correlations_item_service_principal_request_builder.go b/reports/correlations_item_service_principal_request_builder.go new file mode 100644 index 00000000000..977fb8d28b3 --- /dev/null +++ b/reports/correlations_item_service_principal_request_builder.go @@ -0,0 +1,84 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package reports + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CorrelationsItemServicePrincipalRequestBuilder provides operations to manage the servicePrincipal property of the microsoft.graph.identityCorrelation entity. +type CorrelationsItemServicePrincipalRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CorrelationsItemServicePrincipalRequestBuilderGetQueryParameters the service principal associated with this correlation report. +type CorrelationsItemServicePrincipalRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// CorrelationsItemServicePrincipalRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CorrelationsItemServicePrincipalRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CorrelationsItemServicePrincipalRequestBuilderGetQueryParameters +} +// NewCorrelationsItemServicePrincipalRequestBuilderInternal instantiates a new CorrelationsItemServicePrincipalRequestBuilder and sets the default values. +func NewCorrelationsItemServicePrincipalRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CorrelationsItemServicePrincipalRequestBuilder) { + m := &CorrelationsItemServicePrincipalRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/reports/correlations/{identityCorrelation%2Did}/servicePrincipal{?%24expand,%24select}", pathParameters), + } + return m +} +// NewCorrelationsItemServicePrincipalRequestBuilder instantiates a new CorrelationsItemServicePrincipalRequestBuilder and sets the default values. +func NewCorrelationsItemServicePrincipalRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CorrelationsItemServicePrincipalRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCorrelationsItemServicePrincipalRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the service principal associated with this correlation report. +// returns a ServicePrincipalable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *CorrelationsItemServicePrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *CorrelationsItemServicePrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateServicePrincipalFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable), nil +} +// ToGetRequestInformation the service principal associated with this correlation report. +// returns a *RequestInformation when successful +func (m *CorrelationsItemServicePrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CorrelationsItemServicePrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CorrelationsItemServicePrincipalRequestBuilder when successful +func (m *CorrelationsItemServicePrincipalRequestBuilder) WithUrl(rawUrl string)(*CorrelationsItemServicePrincipalRequestBuilder) { + return NewCorrelationsItemServicePrincipalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/reports/correlations_request_builder.go b/reports/correlations_request_builder.go new file mode 100644 index 00000000000..bfe98c56a34 --- /dev/null +++ b/reports/correlations_request_builder.go @@ -0,0 +1,116 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package reports + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// CorrelationsRequestBuilder provides operations to manage the correlations property of the microsoft.graph.reportRoot entity. +type CorrelationsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// CorrelationsRequestBuilderGetQueryParameters list the identityCorrelation reports in the tenant. +type CorrelationsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// CorrelationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type CorrelationsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *CorrelationsRequestBuilderGetQueryParameters +} +// ByIdentityCorrelationId provides operations to manage the correlations property of the microsoft.graph.reportRoot entity. +// returns a *CorrelationsIdentityCorrelationItemRequestBuilder when successful +func (m *CorrelationsRequestBuilder) ByIdentityCorrelationId(identityCorrelationId string)(*CorrelationsIdentityCorrelationItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if identityCorrelationId != "" { + urlTplParams["identityCorrelation%2Did"] = identityCorrelationId + } + return NewCorrelationsIdentityCorrelationItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewCorrelationsRequestBuilderInternal instantiates a new CorrelationsRequestBuilder and sets the default values. +func NewCorrelationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CorrelationsRequestBuilder) { + m := &CorrelationsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/reports/correlations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewCorrelationsRequestBuilder instantiates a new CorrelationsRequestBuilder and sets the default values. +func NewCorrelationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CorrelationsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewCorrelationsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *CorrelationsCountRequestBuilder when successful +func (m *CorrelationsRequestBuilder) Count()(*CorrelationsCountRequestBuilder) { + return NewCorrelationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get list the identityCorrelation reports in the tenant. +// returns a IdentityCorrelationCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/reportroot-list-correlations?view=graph-rest-beta +func (m *CorrelationsRequestBuilder) Get(ctx context.Context, requestConfiguration *CorrelationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentityCorrelationCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateIdentityCorrelationCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentityCorrelationCollectionResponseable), nil +} +// ToGetRequestInformation list the identityCorrelation reports in the tenant. +// returns a *RequestInformation when successful +func (m *CorrelationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CorrelationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *CorrelationsRequestBuilder when successful +func (m *CorrelationsRequestBuilder) WithUrl(rawUrl string)(*CorrelationsRequestBuilder) { + return NewCorrelationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/reports/identity_analytics_groups_count_request_builder.go b/reports/identity_analytics_groups_count_request_builder.go new file mode 100644 index 00000000000..0e649d8da20 --- /dev/null +++ b/reports/identity_analytics_groups_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package reports + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// IdentityAnalyticsGroupsCountRequestBuilder provides operations to count the resources in the collection. +type IdentityAnalyticsGroupsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// IdentityAnalyticsGroupsCountRequestBuilderGetQueryParameters get the number of the resource +type IdentityAnalyticsGroupsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// IdentityAnalyticsGroupsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentityAnalyticsGroupsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *IdentityAnalyticsGroupsCountRequestBuilderGetQueryParameters +} +// NewIdentityAnalyticsGroupsCountRequestBuilderInternal instantiates a new IdentityAnalyticsGroupsCountRequestBuilder and sets the default values. +func NewIdentityAnalyticsGroupsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentityAnalyticsGroupsCountRequestBuilder) { + m := &IdentityAnalyticsGroupsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/reports/identityAnalytics/groups/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewIdentityAnalyticsGroupsCountRequestBuilder instantiates a new IdentityAnalyticsGroupsCountRequestBuilder and sets the default values. +func NewIdentityAnalyticsGroupsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentityAnalyticsGroupsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewIdentityAnalyticsGroupsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *IdentityAnalyticsGroupsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *IdentityAnalyticsGroupsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *IdentityAnalyticsGroupsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IdentityAnalyticsGroupsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *IdentityAnalyticsGroupsCountRequestBuilder when successful +func (m *IdentityAnalyticsGroupsCountRequestBuilder) WithUrl(rawUrl string)(*IdentityAnalyticsGroupsCountRequestBuilder) { + return NewIdentityAnalyticsGroupsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/reports/identity_analytics_groups_group_analytics_item_request_builder.go b/reports/identity_analytics_groups_group_analytics_item_request_builder.go new file mode 100644 index 00000000000..5af05fb7c87 --- /dev/null +++ b/reports/identity_analytics_groups_group_analytics_item_request_builder.go @@ -0,0 +1,163 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package reports + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder provides operations to manage the groups property of the microsoft.graph.identityAnalyticsRoot entity. +type IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderGetQueryParameters read the properties of a groupAnalytics object that contains point-in-time analytics for a group in a Microsoft Entra tenant, as part of identity analytics. +type IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderGetQueryParameters +} +// IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewIdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderInternal instantiates a new IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder and sets the default values. +func NewIdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder) { + m := &IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/reports/identityAnalytics/groups/{groupAnalytics%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewIdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder instantiates a new IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder and sets the default values. +func NewIdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewIdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property groups for reports +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get read the properties of a groupAnalytics object that contains point-in-time analytics for a group in a Microsoft Entra tenant, as part of identity analytics. +// returns a GroupAnalyticsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/groupanalytics-get?view=graph-rest-beta +func (m *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder) Get(ctx context.Context, requestConfiguration *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupAnalyticsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateGroupAnalyticsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupAnalyticsable), nil +} +// Patch update the navigation property groups in reports +// returns a GroupAnalyticsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupAnalyticsable, requestConfiguration *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupAnalyticsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateGroupAnalyticsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupAnalyticsable), nil +} +// ToDeleteRequestInformation delete navigation property groups for reports +// returns a *RequestInformation when successful +func (m *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation read the properties of a groupAnalytics object that contains point-in-time analytics for a group in a Microsoft Entra tenant, as part of identity analytics. +// returns a *RequestInformation when successful +func (m *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property groups in reports +// returns a *RequestInformation when successful +func (m *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupAnalyticsable, requestConfiguration *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder when successful +func (m *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder) WithUrl(rawUrl string)(*IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder) { + return NewIdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/reports/identity_analytics_groups_request_builder.go b/reports/identity_analytics_groups_request_builder.go new file mode 100644 index 00000000000..5a655be9491 --- /dev/null +++ b/reports/identity_analytics_groups_request_builder.go @@ -0,0 +1,158 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package reports + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// IdentityAnalyticsGroupsRequestBuilder provides operations to manage the groups property of the microsoft.graph.identityAnalyticsRoot entity. +type IdentityAnalyticsGroupsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// IdentityAnalyticsGroupsRequestBuilderGetQueryParameters get a list of the groupAnalytics objects and their properties for a Microsoft Entra tenant. Each object holds point-in-time identity analytics for one group. +type IdentityAnalyticsGroupsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// IdentityAnalyticsGroupsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentityAnalyticsGroupsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *IdentityAnalyticsGroupsRequestBuilderGetQueryParameters +} +// IdentityAnalyticsGroupsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentityAnalyticsGroupsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByGroupAnalyticsId provides operations to manage the groups property of the microsoft.graph.identityAnalyticsRoot entity. +// returns a *IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder when successful +func (m *IdentityAnalyticsGroupsRequestBuilder) ByGroupAnalyticsId(groupAnalyticsId string)(*IdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if groupAnalyticsId != "" { + urlTplParams["groupAnalytics%2Did"] = groupAnalyticsId + } + return NewIdentityAnalyticsGroupsGroupAnalyticsItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewIdentityAnalyticsGroupsRequestBuilderInternal instantiates a new IdentityAnalyticsGroupsRequestBuilder and sets the default values. +func NewIdentityAnalyticsGroupsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentityAnalyticsGroupsRequestBuilder) { + m := &IdentityAnalyticsGroupsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/reports/identityAnalytics/groups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewIdentityAnalyticsGroupsRequestBuilder instantiates a new IdentityAnalyticsGroupsRequestBuilder and sets the default values. +func NewIdentityAnalyticsGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentityAnalyticsGroupsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewIdentityAnalyticsGroupsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *IdentityAnalyticsGroupsCountRequestBuilder when successful +func (m *IdentityAnalyticsGroupsRequestBuilder) Count()(*IdentityAnalyticsGroupsCountRequestBuilder) { + return NewIdentityAnalyticsGroupsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get a list of the groupAnalytics objects and their properties for a Microsoft Entra tenant. Each object holds point-in-time identity analytics for one group. +// returns a GroupAnalyticsCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/identityanalyticsroot-list-groups?view=graph-rest-beta +func (m *IdentityAnalyticsGroupsRequestBuilder) Get(ctx context.Context, requestConfiguration *IdentityAnalyticsGroupsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupAnalyticsCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateGroupAnalyticsCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupAnalyticsCollectionResponseable), nil +} +// Post create new navigation property to groups for reports +// returns a GroupAnalyticsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *IdentityAnalyticsGroupsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupAnalyticsable, requestConfiguration *IdentityAnalyticsGroupsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupAnalyticsable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateGroupAnalyticsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupAnalyticsable), nil +} +// ToGetRequestInformation get a list of the groupAnalytics objects and their properties for a Microsoft Entra tenant. Each object holds point-in-time identity analytics for one group. +// returns a *RequestInformation when successful +func (m *IdentityAnalyticsGroupsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IdentityAnalyticsGroupsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to groups for reports +// returns a *RequestInformation when successful +func (m *IdentityAnalyticsGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupAnalyticsable, requestConfiguration *IdentityAnalyticsGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *IdentityAnalyticsGroupsRequestBuilder when successful +func (m *IdentityAnalyticsGroupsRequestBuilder) WithUrl(rawUrl string)(*IdentityAnalyticsGroupsRequestBuilder) { + return NewIdentityAnalyticsGroupsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/reports/identity_analytics_request_builder.go b/reports/identity_analytics_request_builder.go new file mode 100644 index 00000000000..140484343e0 --- /dev/null +++ b/reports/identity_analytics_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package reports + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// IdentityAnalyticsRequestBuilder provides operations to manage the identityAnalytics property of the microsoft.graph.reportRoot entity. +type IdentityAnalyticsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// IdentityAnalyticsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentityAnalyticsRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// IdentityAnalyticsRequestBuilderGetQueryParameters microsoft Entra identity analytics for the tenant, including its groups. +type IdentityAnalyticsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// IdentityAnalyticsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentityAnalyticsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *IdentityAnalyticsRequestBuilderGetQueryParameters +} +// IdentityAnalyticsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type IdentityAnalyticsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewIdentityAnalyticsRequestBuilderInternal instantiates a new IdentityAnalyticsRequestBuilder and sets the default values. +func NewIdentityAnalyticsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentityAnalyticsRequestBuilder) { + m := &IdentityAnalyticsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/reports/identityAnalytics{?%24expand,%24select}", pathParameters), + } + return m +} +// NewIdentityAnalyticsRequestBuilder instantiates a new IdentityAnalyticsRequestBuilder and sets the default values. +func NewIdentityAnalyticsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*IdentityAnalyticsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewIdentityAnalyticsRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property identityAnalytics for reports +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *IdentityAnalyticsRequestBuilder) Delete(ctx context.Context, requestConfiguration *IdentityAnalyticsRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get microsoft Entra identity analytics for the tenant, including its groups. +// returns a IdentityAnalyticsRootable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *IdentityAnalyticsRequestBuilder) Get(ctx context.Context, requestConfiguration *IdentityAnalyticsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentityAnalyticsRootable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateIdentityAnalyticsRootFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentityAnalyticsRootable), nil +} +// Groups provides operations to manage the groups property of the microsoft.graph.identityAnalyticsRoot entity. +// returns a *IdentityAnalyticsGroupsRequestBuilder when successful +func (m *IdentityAnalyticsRequestBuilder) Groups()(*IdentityAnalyticsGroupsRequestBuilder) { + return NewIdentityAnalyticsGroupsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update the navigation property identityAnalytics in reports +// returns a IdentityAnalyticsRootable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *IdentityAnalyticsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentityAnalyticsRootable, requestConfiguration *IdentityAnalyticsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentityAnalyticsRootable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateIdentityAnalyticsRootFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentityAnalyticsRootable), nil +} +// ToDeleteRequestInformation delete navigation property identityAnalytics for reports +// returns a *RequestInformation when successful +func (m *IdentityAnalyticsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *IdentityAnalyticsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation microsoft Entra identity analytics for the tenant, including its groups. +// returns a *RequestInformation when successful +func (m *IdentityAnalyticsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IdentityAnalyticsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property identityAnalytics in reports +// returns a *RequestInformation when successful +func (m *IdentityAnalyticsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IdentityAnalyticsRootable, requestConfiguration *IdentityAnalyticsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *IdentityAnalyticsRequestBuilder when successful +func (m *IdentityAnalyticsRequestBuilder) WithUrl(rawUrl string)(*IdentityAnalyticsRequestBuilder) { + return NewIdentityAnalyticsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/reports/reports_request_builder.go b/reports/reports_request_builder.go index 0cae49a3451..efb015a5d8c 100644 --- a/reports/reports_request_builder.go +++ b/reports/reports_request_builder.go @@ -72,6 +72,11 @@ func NewReportsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371 urlParams["request-raw-url"] = rawUrl return NewReportsRequestBuilderInternal(urlParams, requestAdapter) } +// Correlations provides operations to manage the correlations property of the microsoft.graph.reportRoot entity. +// returns a *CorrelationsRequestBuilder when successful +func (m *ReportsRequestBuilder) Correlations()(*CorrelationsRequestBuilder) { + return NewCorrelationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CredentialUserRegistrationDetails provides operations to manage the credentialUserRegistrationDetails property of the microsoft.graph.reportRoot entity. // returns a *CredentialUserRegistrationDetailsRequestBuilder when successful func (m *ReportsRequestBuilder) CredentialUserRegistrationDetails()(*CredentialUserRegistrationDetailsRequestBuilder) { @@ -737,6 +742,11 @@ func (m *ReportsRequestBuilder) GetYammerGroupsActivityGroupCountsWithPeriod(per func (m *ReportsRequestBuilder) HealthMonitoring()(*HealthMonitoringRequestBuilder) { return NewHealthMonitoringRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// IdentityAnalytics provides operations to manage the identityAnalytics property of the microsoft.graph.reportRoot entity. +// returns a *IdentityAnalyticsRequestBuilder when successful +func (m *ReportsRequestBuilder) IdentityAnalytics()(*IdentityAnalyticsRequestBuilder) { + return NewIdentityAnalyticsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ManagedDeviceEnrollmentAbandonmentDetailsWithSkipWithTopWithFilterWithSkipToken provides operations to call the managedDeviceEnrollmentAbandonmentDetails method. // returns a *ManagedDeviceEnrollmentAbandonmentDetailsWithSkipWithTopWithFilterWithSkipTokenRequestBuilder when successful func (m *ReportsRequestBuilder) ManagedDeviceEnrollmentAbandonmentDetailsWithSkipWithTopWithFilterWithSkipToken(filter *string, skip *int32, skipToken *string, top *int32)(*ManagedDeviceEnrollmentAbandonmentDetailsWithSkipWithTopWithFilterWithSkipTokenRequestBuilder) { diff --git a/rolemanagement/cloud_p_c_resource_namespaces_item_import_resource_actions_post_request_body.go b/rolemanagement/cloud_p_c_resource_namespaces_item_import_resource_actions_post_request_body.go index 11516521efd..28f7fb87b14 100644 --- a/rolemanagement/cloud_p_c_resource_namespaces_item_import_resource_actions_post_request_body.go +++ b/rolemanagement/cloud_p_c_resource_namespaces_item_import_resource_actions_post_request_body.go @@ -18,6 +18,8 @@ func NewCloudPCResourceNamespacesItemImportResourceActionsPostRequestBody()(*Clo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + overwriteResourceNamespaceValue := false + m.SetOverwriteResourceNamespace(&overwriteResourceNamespaceValue) return m } // CreateCloudPCResourceNamespacesItemImportResourceActionsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/rolemanagement/cloud_p_c_role_assignments_unified_role_assignment_multiple_item_request_builder.go b/rolemanagement/cloud_p_c_role_assignments_unified_role_assignment_multiple_item_request_builder.go index f59042fea85..9f279c5fee1 100644 --- a/rolemanagement/cloud_p_c_role_assignments_unified_role_assignment_multiple_item_request_builder.go +++ b/rolemanagement/cloud_p_c_role_assignments_unified_role_assignment_multiple_item_request_builder.go @@ -111,7 +111,7 @@ func (m *CloudPCRoleAssignmentsUnifiedRoleAssignmentMultipleItemRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentMultipleable), nil } -// Patch update an existing unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) In contrast, unifiedRoleAssignment does not support update. +// Patch update an existing unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) In contrast, unifiedRoleAssignment doesn't support update. // Deprecated: This version is being deprecated and is scheduled for removal on 2025-12-01.Please migrate to the latest version before the removal date. as of 2025-01/PrivatePreview:microsoft.applicationAuthorization on 2025-01-01 and will be removed 2025-12-01 // returns a UnifiedRoleAssignmentMultipleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -172,7 +172,7 @@ func (m *CloudPCRoleAssignmentsUnifiedRoleAssignmentMultipleItemRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update an existing unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) In contrast, unifiedRoleAssignment does not support update. +// ToPatchRequestInformation update an existing unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) In contrast, unifiedRoleAssignment doesn't support update. // Deprecated: This version is being deprecated and is scheduled for removal on 2025-12-01.Please migrate to the latest version before the removal date. as of 2025-01/PrivatePreview:microsoft.applicationAuthorization on 2025-01-01 and will be removed 2025-12-01 // returns a *RequestInformation when successful func (m *CloudPCRoleAssignmentsUnifiedRoleAssignmentMultipleItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentMultipleable, requestConfiguration *CloudPCRoleAssignmentsUnifiedRoleAssignmentMultipleItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/rolemanagement/defender_resource_namespaces_item_import_resource_actions_post_request_body.go b/rolemanagement/defender_resource_namespaces_item_import_resource_actions_post_request_body.go index bfcc1270618..2f45096ee8d 100644 --- a/rolemanagement/defender_resource_namespaces_item_import_resource_actions_post_request_body.go +++ b/rolemanagement/defender_resource_namespaces_item_import_resource_actions_post_request_body.go @@ -18,6 +18,8 @@ func NewDefenderResourceNamespacesItemImportResourceActionsPostRequestBody()(*De } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + overwriteResourceNamespaceValue := false + m.SetOverwriteResourceNamespace(&overwriteResourceNamespaceValue) return m } // CreateDefenderResourceNamespacesItemImportResourceActionsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/rolemanagement/device_management_resource_namespaces_item_import_resource_actions_post_request_body.go b/rolemanagement/device_management_resource_namespaces_item_import_resource_actions_post_request_body.go index 39101d7ec78..12c5767ddb4 100644 --- a/rolemanagement/device_management_resource_namespaces_item_import_resource_actions_post_request_body.go +++ b/rolemanagement/device_management_resource_namespaces_item_import_resource_actions_post_request_body.go @@ -18,6 +18,8 @@ func NewDeviceManagementResourceNamespacesItemImportResourceActionsPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + overwriteResourceNamespaceValue := false + m.SetOverwriteResourceNamespace(&overwriteResourceNamespaceValue) return m } // CreateDeviceManagementResourceNamespacesItemImportResourceActionsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/rolemanagement/device_management_role_assignments_unified_role_assignment_multiple_item_request_builder.go b/rolemanagement/device_management_role_assignments_unified_role_assignment_multiple_item_request_builder.go index ccca3eaa155..859885093c5 100644 --- a/rolemanagement/device_management_role_assignments_unified_role_assignment_multiple_item_request_builder.go +++ b/rolemanagement/device_management_role_assignments_unified_role_assignment_multiple_item_request_builder.go @@ -111,7 +111,7 @@ func (m *DeviceManagementRoleAssignmentsUnifiedRoleAssignmentMultipleItemRequest } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentMultipleable), nil } -// Patch update an existing unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) In contrast, unifiedRoleAssignment does not support update. +// Patch update an existing unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) In contrast, unifiedRoleAssignment doesn't support update. // Deprecated: This version is being deprecated and is scheduled for removal on 2025-12-01.Please migrate to the latest version before the removal date. as of 2025-01/PrivatePreview:microsoft.applicationAuthorization on 2025-01-01 and will be removed 2025-12-01 // returns a UnifiedRoleAssignmentMultipleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -172,7 +172,7 @@ func (m *DeviceManagementRoleAssignmentsUnifiedRoleAssignmentMultipleItemRequest requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update an existing unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) In contrast, unifiedRoleAssignment does not support update. +// ToPatchRequestInformation update an existing unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) In contrast, unifiedRoleAssignment doesn't support update. // Deprecated: This version is being deprecated and is scheduled for removal on 2025-12-01.Please migrate to the latest version before the removal date. as of 2025-01/PrivatePreview:microsoft.applicationAuthorization on 2025-01-01 and will be removed 2025-12-01 // returns a *RequestInformation when successful func (m *DeviceManagementRoleAssignmentsUnifiedRoleAssignmentMultipleItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentMultipleable, requestConfiguration *DeviceManagementRoleAssignmentsUnifiedRoleAssignmentMultipleItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/rolemanagement/directory_resource_namespaces_item_import_resource_actions_post_request_body.go b/rolemanagement/directory_resource_namespaces_item_import_resource_actions_post_request_body.go index c2cd5fccdf2..c32ddd3f145 100644 --- a/rolemanagement/directory_resource_namespaces_item_import_resource_actions_post_request_body.go +++ b/rolemanagement/directory_resource_namespaces_item_import_resource_actions_post_request_body.go @@ -18,6 +18,8 @@ func NewDirectoryResourceNamespacesItemImportResourceActionsPostRequestBody()(*D } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + overwriteResourceNamespaceValue := false + m.SetOverwriteResourceNamespace(&overwriteResourceNamespaceValue) return m } // CreateDirectoryResourceNamespacesItemImportResourceActionsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/rolemanagement/enterprise_apps_item_resource_namespaces_item_import_resource_actions_post_request_body.go b/rolemanagement/enterprise_apps_item_resource_namespaces_item_import_resource_actions_post_request_body.go index 4751841e261..bac4544933e 100644 --- a/rolemanagement/enterprise_apps_item_resource_namespaces_item_import_resource_actions_post_request_body.go +++ b/rolemanagement/enterprise_apps_item_resource_namespaces_item_import_resource_actions_post_request_body.go @@ -18,6 +18,8 @@ func NewEnterpriseAppsItemResourceNamespacesItemImportResourceActionsPostRequest } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + overwriteResourceNamespaceValue := false + m.SetOverwriteResourceNamespace(&overwriteResourceNamespaceValue) return m } // CreateEnterpriseAppsItemResourceNamespacesItemImportResourceActionsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/rolemanagement/entitlement_management_resource_namespaces_item_import_resource_actions_post_request_body.go b/rolemanagement/entitlement_management_resource_namespaces_item_import_resource_actions_post_request_body.go index 0020722c7ce..8c021a796d4 100644 --- a/rolemanagement/entitlement_management_resource_namespaces_item_import_resource_actions_post_request_body.go +++ b/rolemanagement/entitlement_management_resource_namespaces_item_import_resource_actions_post_request_body.go @@ -18,6 +18,8 @@ func NewEntitlementManagementResourceNamespacesItemImportResourceActionsPostRequ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + overwriteResourceNamespaceValue := false + m.SetOverwriteResourceNamespace(&overwriteResourceNamespaceValue) return m } // CreateEntitlementManagementResourceNamespacesItemImportResourceActionsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/rolemanagement/exchange_resource_namespaces_item_import_resource_actions_post_request_body.go b/rolemanagement/exchange_resource_namespaces_item_import_resource_actions_post_request_body.go index 306973e9899..5ea7b6bdee4 100644 --- a/rolemanagement/exchange_resource_namespaces_item_import_resource_actions_post_request_body.go +++ b/rolemanagement/exchange_resource_namespaces_item_import_resource_actions_post_request_body.go @@ -18,6 +18,8 @@ func NewExchangeResourceNamespacesItemImportResourceActionsPostRequestBody()(*Ex } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + overwriteResourceNamespaceValue := false + m.SetOverwriteResourceNamespace(&overwriteResourceNamespaceValue) return m } // CreateExchangeResourceNamespacesItemImportResourceActionsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/security/1fe8d2bade522e1fc835b18852ff1f9f279bd66180409574b8c56a2f0182e3a0.go b/security/1fe8d2bade522e1fc835b18852ff1f9f279bd66180409574b8c56a2f0182e3a0.go new file mode 100644 index 00000000000..edadc467d80 --- /dev/null +++ b/security/1fe8d2bade522e1fc835b18852ff1f9f279bd66180409574b8c56a2f0182e3a0.go @@ -0,0 +1,88 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" + i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder provides operations to call the getRunHuntingQuery method. +type MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilderGetQueryParameters query a specified set of event, activity, or entity data supported by Microsoft Defender XDR to proactively look for specific threats in your environment, by using a GET request. This function is the GET-based companion to the runHuntingQuery action. It accepts a query in Kusto Query Language (KQL) as a URL parameter, executes it against the advanced hunting schema, and returns the same huntingQueryResults shape as the POST action. Use this function in scenarios that can't issue authenticated POST requests, such as Power BI dashboards that authenticate through Web.Contents. Find out more about hunting for threats across devices, emails, apps, and identities. Learn about KQL. For information on using advanced hunting in the Microsoft Defender portal, see Proactively hunt for threats with advanced hunting in Microsoft Defender XDR. +type MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilderGetQueryParameters struct { + // Usage: timespan='@timespan' + Timespan *string "uriparametername:\"timespan\"" + // Usage: workspaceId=@workspaceId + WorkspaceId *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID "uriparametername:\"workspaceId\"" +} +// MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilderGetQueryParameters +} +// NewMicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilderInternal instantiates a new MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder and sets the default values. +func NewMicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, query *string)(*MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder) { + m := &MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/microsoft.graph.security.getRunHuntingQuery(query='{query}',timespan='@timespan',workspaceId=@workspaceId){?timespan*,workspaceId*}", pathParameters), + } + if query != nil { + m.BaseRequestBuilder.PathParameters["query"] = *query + } + return m +} +// NewMicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder instantiates a new MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder and sets the default values. +func NewMicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get query a specified set of event, activity, or entity data supported by Microsoft Defender XDR to proactively look for specific threats in your environment, by using a GET request. This function is the GET-based companion to the runHuntingQuery action. It accepts a query in Kusto Query Language (KQL) as a URL parameter, executes it against the advanced hunting schema, and returns the same huntingQueryResults shape as the POST action. Use this function in scenarios that can't issue authenticated POST requests, such as Power BI dashboards that authenticate through Web.Contents. Find out more about hunting for threats across devices, emails, apps, and identities. Learn about KQL. For information on using advanced hunting in the Microsoft Defender portal, see Proactively hunt for threats with advanced hunting in Microsoft Defender XDR. +// returns a HuntingQueryResultsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder) Get(ctx context.Context, requestConfiguration *MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HuntingQueryResultsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.CreateHuntingQueryResultsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HuntingQueryResultsable), nil +} +// ToGetRequestInformation query a specified set of event, activity, or entity data supported by Microsoft Defender XDR to proactively look for specific threats in your environment, by using a GET request. This function is the GET-based companion to the runHuntingQuery action. It accepts a query in Kusto Query Language (KQL) as a URL parameter, executes it against the advanced hunting schema, and returns the same huntingQueryResults shape as the POST action. Use this function in scenarios that can't issue authenticated POST requests, such as Power BI dashboards that authenticate through Web.Contents. Find out more about hunting for threats across devices, emails, apps, and identities. Learn about KQL. For information on using advanced hunting in the Microsoft Defender portal, see Proactively hunt for threats with advanced hunting in Microsoft Defender XDR. +// returns a *RequestInformation when successful +func (m *MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder when successful +func (m *MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder) WithUrl(rawUrl string)(*MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder) { + return NewMicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/security/alerts_escaped_v2_request_builder.go b/security/alerts_escaped_v2_request_builder.go index 56d45a52384..eb9a1fa9462 100644 --- a/security/alerts_escaped_v2_request_builder.go +++ b/security/alerts_escaped_v2_request_builder.go @@ -107,9 +107,12 @@ func (m *Alerts_v2RequestBuilder) Get(ctx context.Context, requestConfiguration func (m *Alerts_v2RequestBuilder) MicrosoftGraphSecurityMoveAlerts()(*Alerts_v2MicrosoftGraphSecurityMoveAlertsRequestBuilder) { return NewAlerts_v2MicrosoftGraphSecurityMoveAlertsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Post create new navigation property to alerts_v2 for security +// Post create a manual security alert in Microsoft 365 Defender with specified entities and metadata. When the alert is created, the backend automatically creates a new incident to contain the alert, or links the alert to an existing incident if linkToIncident is specified. // returns a Alertable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/security-alert-post-manualalert?view=graph-rest-beta func (m *Alerts_v2RequestBuilder) Post(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.Alertable, requestConfiguration *Alerts_v2RequestBuilderPostRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.Alertable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +144,7 @@ func (m *Alerts_v2RequestBuilder) ToGetRequestInformation(ctx context.Context, r requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create new navigation property to alerts_v2 for security +// ToPostRequestInformation create a manual security alert in Microsoft 365 Defender with specified entities and metadata. When the alert is created, the backend automatically creates a new incident to contain the alert, or links the alert to an existing incident if linkToIncident is specified. // returns a *RequestInformation when successful func (m *Alerts_v2RequestBuilder) ToPostRequestInformation(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.Alertable, requestConfiguration *Alerts_v2RequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/security/attack_simulation_simulations_simulation_item_request_builder.go b/security/attack_simulation_simulations_simulation_item_request_builder.go index 7c435c7c3bc..a5fd8038261 100644 --- a/security/attack_simulation_simulations_simulation_item_request_builder.go +++ b/security/attack_simulation_simulations_simulation_item_request_builder.go @@ -109,7 +109,7 @@ func (m *AttackSimulationSimulationsSimulationItemRequestBuilder) LandingPage()( func (m *AttackSimulationSimulationsSimulationItemRequestBuilder) LoginPage()(*AttackSimulationSimulationsItemLoginPageRequestBuilder) { return NewAttackSimulationSimulationsItemLoginPageRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update an attack simulation campaign for a tenant. +// Patch update an attack simulation campaign for a tenant. You can only update simulations that are in draft status. // returns a Simulationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -162,7 +162,7 @@ func (m *AttackSimulationSimulationsSimulationItemRequestBuilder) ToGetRequestIn requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update an attack simulation campaign for a tenant. +// ToPatchRequestInformation update an attack simulation campaign for a tenant. You can only update simulations that are in draft status. // returns a *RequestInformation when successful func (m *AttackSimulationSimulationsSimulationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Simulationable, requestConfiguration *AttackSimulationSimulationsSimulationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/security/b0fee81224494425ca475ab773280f54b1958842efdfc22e5b020d3af8d1f771.go b/security/b0fee81224494425ca475ab773280f54b1958842efdfc22e5b020d3af8d1f771.go index 33b580aecca..bd39acd89c2 100644 --- a/security/b0fee81224494425ca475ab773280f54b1958842efdfc22e5b020d3af8d1f771.go +++ b/security/b0fee81224494425ca475ab773280f54b1958842efdfc22e5b020d3af8d1f771.go @@ -19,6 +19,8 @@ func NewCasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultEx } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + exportSingleItemsValue := false + m.SetExportSingleItems(&exportSingleItemsValue) return m } // CreateCasesEdiscoveryCasesItemSearchesItemMicrosoftGraphSecurityExportResultExportResultPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/security/collaboration_analyzed_emails_microsoft_graph_security_remediate_remediate_post_request_body.go b/security/collaboration_analyzed_emails_microsoft_graph_security_remediate_remediate_post_request_body.go index 668d70125df..d0fd8988dc6 100644 --- a/security/collaboration_analyzed_emails_microsoft_graph_security_remediate_remediate_post_request_body.go +++ b/security/collaboration_analyzed_emails_microsoft_graph_security_remediate_remediate_post_request_body.go @@ -19,6 +19,8 @@ func NewCollaborationAnalyzedEmailsMicrosoftGraphSecurityRemediateRemediatePostR } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + remediateSendersCopyValue := false + m.SetRemediateSendersCopy(&remediateSendersCopyValue) return m } // CreateCollaborationAnalyzedEmailsMicrosoftGraphSecurityRemediateRemediatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/security/identities_sensor_migration_microsoft_graph_security_migrate_request_builder.go b/security/identities_sensor_migration_microsoft_graph_security_migrate_request_builder.go index 6f4318dd34f..b9c7e74cdf3 100644 --- a/security/identities_sensor_migration_microsoft_graph_security_migrate_request_builder.go +++ b/security/identities_sensor_migration_microsoft_graph_security_migrate_request_builder.go @@ -34,9 +34,12 @@ func NewIdentitiesSensorMigrationMicrosoftGraphSecurityMigrateRequestBuilder(raw urlParams["request-raw-url"] = rawUrl return NewIdentitiesSensorMigrationMicrosoftGraphSecurityMigrateRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action migrate +// Post migrate the specified sensors to the unified security portal. This action initiates the migration process for one or more Microsoft Defender for Identity sensors. // returns a MigrateSensorsResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/security-sensormigration-migrate?view=graph-rest-beta func (m *IdentitiesSensorMigrationMicrosoftGraphSecurityMigrateRequestBuilder) Post(ctx context.Context, body IdentitiesSensorMigrationMicrosoftGraphSecurityMigrateMigratePostRequestBodyable, requestConfiguration *IdentitiesSensorMigrationMicrosoftGraphSecurityMigrateRequestBuilderPostRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.MigrateSensorsResultable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -54,7 +57,7 @@ func (m *IdentitiesSensorMigrationMicrosoftGraphSecurityMigrateRequestBuilder) P } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.MigrateSensorsResultable), nil } -// ToPostRequestInformation invoke action migrate +// ToPostRequestInformation migrate the specified sensors to the unified security portal. This action initiates the migration process for one or more Microsoft Defender for Identity sensors. // returns a *RequestInformation when successful func (m *IdentitiesSensorMigrationMicrosoftGraphSecurityMigrateRequestBuilder) ToPostRequestInformation(ctx context.Context, body IdentitiesSensorMigrationMicrosoftGraphSecurityMigrateMigratePostRequestBodyable, requestConfiguration *IdentitiesSensorMigrationMicrosoftGraphSecurityMigrateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/security/identities_sensor_migration_request_builder.go b/security/identities_sensor_migration_request_builder.go index 5f244193040..7aef316eec6 100644 --- a/security/identities_sensor_migration_request_builder.go +++ b/security/identities_sensor_migration_request_builder.go @@ -14,7 +14,7 @@ import ( type IdentitiesSensorMigrationRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// IdentitiesSensorMigrationRequestBuilderGetQueryParameters get sensorMigration from security +// IdentitiesSensorMigrationRequestBuilderGetQueryParameters get a list of the sensorMigration objects and their properties. type IdentitiesSensorMigrationRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,9 +79,12 @@ func NewIdentitiesSensorMigrationRequestBuilder(rawUrl string, requestAdapter i2 func (m *IdentitiesSensorMigrationRequestBuilder) Count()(*IdentitiesSensorMigrationCountRequestBuilder) { return NewIdentitiesSensorMigrationCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get sensorMigration from security +// Get get a list of the sensorMigration objects and their properties. // returns a SensorMigrationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/security-identitycontainer-list-sensormigration?view=graph-rest-beta func (m *IdentitiesSensorMigrationRequestBuilder) Get(ctx context.Context, requestConfiguration *IdentitiesSensorMigrationRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensorMigrationCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +127,7 @@ func (m *IdentitiesSensorMigrationRequestBuilder) Post(ctx context.Context, body } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensorMigrationable), nil } -// ToGetRequestInformation get sensorMigration from security +// ToGetRequestInformation get a list of the sensorMigration objects and their properties. // returns a *RequestInformation when successful func (m *IdentitiesSensorMigrationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IdentitiesSensorMigrationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/security/identities_sensor_migration_sensor_migration_item_request_builder.go b/security/identities_sensor_migration_sensor_migration_item_request_builder.go index f061aa01b23..887ab043a32 100644 --- a/security/identities_sensor_migration_sensor_migration_item_request_builder.go +++ b/security/identities_sensor_migration_sensor_migration_item_request_builder.go @@ -21,7 +21,7 @@ type IdentitiesSensorMigrationSensorMigrationItemRequestBuilderDeleteRequestConf // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// IdentitiesSensorMigrationSensorMigrationItemRequestBuilderGetQueryParameters get sensorMigration from security +// IdentitiesSensorMigrationSensorMigrationItemRequestBuilderGetQueryParameters represents Microsoft Defender for Identity sensors that can be migrated to the unified security portal. type IdentitiesSensorMigrationSensorMigrationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -73,7 +73,7 @@ func (m *IdentitiesSensorMigrationSensorMigrationItemRequestBuilder) Delete(ctx } return nil } -// Get get sensorMigration from security +// Get represents Microsoft Defender for Identity sensors that can be migrated to the unified security portal. // returns a SensorMigrationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *IdentitiesSensorMigrationSensorMigrationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *IdentitiesSensorMigrationSensorMigrationItemRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensorMigrationable, error) { @@ -124,7 +124,7 @@ func (m *IdentitiesSensorMigrationSensorMigrationItemRequestBuilder) ToDeleteReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get sensorMigration from security +// ToGetRequestInformation represents Microsoft Defender for Identity sensors that can be migrated to the unified security portal. // returns a *RequestInformation when successful func (m *IdentitiesSensorMigrationSensorMigrationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IdentitiesSensorMigrationSensorMigrationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/security/microsoft_graph_security_get_hunting_schema_request_builder.go b/security/microsoft_graph_security_get_hunting_schema_request_builder.go new file mode 100644 index 00000000000..58c52ab1dc4 --- /dev/null +++ b/security/microsoft_graph_security_get_hunting_schema_request_builder.go @@ -0,0 +1,72 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package security + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/security" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MicrosoftGraphSecurityGetHuntingSchemaRequestBuilder provides operations to call the getHuntingSchema method. +type MicrosoftGraphSecurityGetHuntingSchemaRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MicrosoftGraphSecurityGetHuntingSchemaRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MicrosoftGraphSecurityGetHuntingSchemaRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMicrosoftGraphSecurityGetHuntingSchemaRequestBuilderInternal instantiates a new MicrosoftGraphSecurityGetHuntingSchemaRequestBuilder and sets the default values. +func NewMicrosoftGraphSecurityGetHuntingSchemaRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MicrosoftGraphSecurityGetHuntingSchemaRequestBuilder) { + m := &MicrosoftGraphSecurityGetHuntingSchemaRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/security/microsoft.graph.security.getHuntingSchema()", pathParameters), + } + return m +} +// NewMicrosoftGraphSecurityGetHuntingSchemaRequestBuilder instantiates a new MicrosoftGraphSecurityGetHuntingSchemaRequestBuilder and sets the default values. +func NewMicrosoftGraphSecurityGetHuntingSchemaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MicrosoftGraphSecurityGetHuntingSchemaRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMicrosoftGraphSecurityGetHuntingSchemaRequestBuilderInternal(urlParams, requestAdapter) +} +// Get retrieve the advanced hunting schema accessible to the signed-in user, including the tables and functions the user is authorized to query and invoke in advanced hunting with Microsoft Defender XDR. The returned schema reflects the user's effective permissions. Each user within a tenant may have a different effective schema depending on their role and access level. Common use cases include: +// returns a HuntingSchemaResultable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MicrosoftGraphSecurityGetHuntingSchemaRequestBuilder) Get(ctx context.Context, requestConfiguration *MicrosoftGraphSecurityGetHuntingSchemaRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HuntingSchemaResultable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.CreateHuntingSchemaResultFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HuntingSchemaResultable), nil +} +// ToGetRequestInformation retrieve the advanced hunting schema accessible to the signed-in user, including the tables and functions the user is authorized to query and invoke in advanced hunting with Microsoft Defender XDR. The returned schema reflects the user's effective permissions. Each user within a tenant may have a different effective schema depending on their role and access level. Common use cases include: +// returns a *RequestInformation when successful +func (m *MicrosoftGraphSecurityGetHuntingSchemaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MicrosoftGraphSecurityGetHuntingSchemaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *MicrosoftGraphSecurityGetHuntingSchemaRequestBuilder when successful +func (m *MicrosoftGraphSecurityGetHuntingSchemaRequestBuilder) WithUrl(rawUrl string)(*MicrosoftGraphSecurityGetHuntingSchemaRequestBuilder) { + return NewMicrosoftGraphSecurityGetHuntingSchemaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/security/microsoft_graph_security_run_hunting_query_request_builder.go b/security/microsoft_graph_security_run_hunting_query_request_builder.go index ca6e2cefd82..ab83629eb64 100644 --- a/security/microsoft_graph_security_run_hunting_query_request_builder.go +++ b/security/microsoft_graph_security_run_hunting_query_request_builder.go @@ -34,7 +34,7 @@ func NewMicrosoftGraphSecurityRunHuntingQueryRequestBuilder(rawUrl string, reque urlParams["request-raw-url"] = rawUrl return NewMicrosoftGraphSecurityRunHuntingQueryRequestBuilderInternal(urlParams, requestAdapter) } -// Post query a specified set of event, activity, or entity data supported by Microsoft 365 Defender to proactively look for specific threats in your environment. This method is for advanced hunting in Microsoft 365 Defender. This method includes a query in Kusto Query Language (KQL). It specifies a data table in the advanced hunting schema and a piped sequence of operators to filter or search that data and format the query output in specific ways. Find out more about hunting for threats across devices, emails, apps, and identities. Learn about KQL. For information on using advanced hunting in the Microsoft 365 Defender portal, see Proactively hunt for threats with advanced hunting in Microsoft 365 Defender. +// Post query a specified set of event, activity, or entity data supported by Microsoft Defender XDR to proactively look for specific threats in your environment. This method is for advanced hunting in Microsoft Defender XDR. This method includes a query in Kusto Query Language (KQL). It specifies a data table in the advanced hunting schema and a piped sequence of operators to filter or search that data and format the query output in specific ways. Find out more about hunting for threats across devices, emails, apps, and identities. Learn about KQL. For information on using advanced hunting in the Microsoft Defender portal, see Proactively hunt for threats with advanced hunting in Microsoft Defender XDR. // returns a HuntingQueryResultsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MicrosoftGraphSecurityRunHuntingQueryRequestBuilder) Post(ctx context.Context, body MicrosoftGraphSecurityRunHuntingQueryRunHuntingQueryPostRequestBodyable, requestConfiguration *MicrosoftGraphSecurityRunHuntingQueryRequestBuilderPostRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HuntingQueryResultsable, error) { @@ -54,7 +54,7 @@ func (m *MicrosoftGraphSecurityRunHuntingQueryRequestBuilder) Post(ctx context.C } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.HuntingQueryResultsable), nil } -// ToPostRequestInformation query a specified set of event, activity, or entity data supported by Microsoft 365 Defender to proactively look for specific threats in your environment. This method is for advanced hunting in Microsoft 365 Defender. This method includes a query in Kusto Query Language (KQL). It specifies a data table in the advanced hunting schema and a piped sequence of operators to filter or search that data and format the query output in specific ways. Find out more about hunting for threats across devices, emails, apps, and identities. Learn about KQL. For information on using advanced hunting in the Microsoft 365 Defender portal, see Proactively hunt for threats with advanced hunting in Microsoft 365 Defender. +// ToPostRequestInformation query a specified set of event, activity, or entity data supported by Microsoft Defender XDR to proactively look for specific threats in your environment. This method is for advanced hunting in Microsoft Defender XDR. This method includes a query in Kusto Query Language (KQL). It specifies a data table in the advanced hunting schema and a piped sequence of operators to filter or search that data and format the query output in specific ways. Find out more about hunting for threats across devices, emails, apps, and identities. Learn about KQL. For information on using advanced hunting in the Microsoft Defender portal, see Proactively hunt for threats with advanced hunting in Microsoft Defender XDR. // returns a *RequestInformation when successful func (m *MicrosoftGraphSecurityRunHuntingQueryRequestBuilder) ToPostRequestInformation(ctx context.Context, body MicrosoftGraphSecurityRunHuntingQueryRunHuntingQueryPostRequestBodyable, requestConfiguration *MicrosoftGraphSecurityRunHuntingQueryRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/security/microsoft_graph_security_run_hunting_query_run_hunting_query_post_request_body.go b/security/microsoft_graph_security_run_hunting_query_run_hunting_query_post_request_body.go index 5ea064c0c39..58dea989f60 100644 --- a/security/microsoft_graph_security_run_hunting_query_run_hunting_query_post_request_body.go +++ b/security/microsoft_graph_security_run_hunting_query_run_hunting_query_post_request_body.go @@ -4,6 +4,7 @@ package security import ( + i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" ) @@ -67,6 +68,16 @@ func (m *MicrosoftGraphSecurityRunHuntingQueryRunHuntingQueryPostRequestBody) Ge } return nil } + res["workspaceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetUUIDValue() + if err != nil { + return err + } + if val != nil { + m.SetWorkspaceId(val) + } + return nil + } return res } // GetQuery gets the query property value. The query property @@ -93,6 +104,18 @@ func (m *MicrosoftGraphSecurityRunHuntingQueryRunHuntingQueryPostRequestBody) Ge } return nil } +// GetWorkspaceId gets the workspaceId property value. The workspaceId property +// returns a *UUID when successful +func (m *MicrosoftGraphSecurityRunHuntingQueryRunHuntingQueryPostRequestBody) GetWorkspaceId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { + val, err := m.GetBackingStore().Get("workspaceId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) + } + return nil +} // Serialize serializes information the current object func (m *MicrosoftGraphSecurityRunHuntingQueryRunHuntingQueryPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { { @@ -107,6 +130,12 @@ func (m *MicrosoftGraphSecurityRunHuntingQueryRunHuntingQueryPostRequestBody) Se return err } } + { + err := writer.WriteUUIDValue("workspaceId", m.GetWorkspaceId()) + if err != nil { + return err + } + } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -140,6 +169,13 @@ func (m *MicrosoftGraphSecurityRunHuntingQueryRunHuntingQueryPostRequestBody) Se panic(err) } } +// SetWorkspaceId sets the workspaceId property value. The workspaceId property +func (m *MicrosoftGraphSecurityRunHuntingQueryRunHuntingQueryPostRequestBody) SetWorkspaceId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { + err := m.GetBackingStore().Set("workspaceId", value) + if err != nil { + panic(err) + } +} type MicrosoftGraphSecurityRunHuntingQueryRunHuntingQueryPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel @@ -147,7 +183,9 @@ type MicrosoftGraphSecurityRunHuntingQueryRunHuntingQueryPostRequestBodyable int GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetQuery()(*string) GetTimespan()(*string) + GetWorkspaceId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetQuery(value *string)() SetTimespan(value *string)() + SetWorkspaceId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() } diff --git a/security/rules_detection_rules_detection_rule_item_request_builder.go b/security/rules_detection_rules_detection_rule_item_request_builder.go index 12b0f40cf44..c18bf7cfc49 100644 --- a/security/rules_detection_rules_detection_rule_item_request_builder.go +++ b/security/rules_detection_rules_detection_rule_item_request_builder.go @@ -21,7 +21,7 @@ type RulesDetectionRulesDetectionRuleItemRequestBuilderDeleteRequestConfiguratio // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// RulesDetectionRulesDetectionRuleItemRequestBuilderGetQueryParameters get detectionRules from security +// RulesDetectionRulesDetectionRuleItemRequestBuilderGetQueryParameters the custom detection rules configured for the tenant. type RulesDetectionRulesDetectionRuleItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -57,8 +57,11 @@ func NewRulesDetectionRulesDetectionRuleItemRequestBuilder(rawUrl string, reques urlParams["request-raw-url"] = rawUrl return NewRulesDetectionRulesDetectionRuleItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete navigation property detectionRules for security +// Delete delete a detectionRule object. // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/security-rulesroot-delete-detectionrules?view=graph-rest-beta func (m *RulesDetectionRulesDetectionRuleItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *RulesDetectionRulesDetectionRuleItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -73,7 +76,7 @@ func (m *RulesDetectionRulesDetectionRuleItemRequestBuilder) Delete(ctx context. } return nil } -// Get get detectionRules from security +// Get the custom detection rules configured for the tenant. // returns a DetectionRuleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *RulesDetectionRulesDetectionRuleItemRequestBuilder) Get(ctx context.Context, requestConfiguration *RulesDetectionRulesDetectionRuleItemRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.DetectionRuleable, error) { @@ -113,7 +116,7 @@ func (m *RulesDetectionRulesDetectionRuleItemRequestBuilder) Patch(ctx context.C } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.DetectionRuleable), nil } -// ToDeleteRequestInformation delete navigation property detectionRules for security +// ToDeleteRequestInformation delete a detectionRule object. // returns a *RequestInformation when successful func (m *RulesDetectionRulesDetectionRuleItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *RulesDetectionRulesDetectionRuleItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -124,7 +127,7 @@ func (m *RulesDetectionRulesDetectionRuleItemRequestBuilder) ToDeleteRequestInfo requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get detectionRules from security +// ToGetRequestInformation the custom detection rules configured for the tenant. // returns a *RequestInformation when successful func (m *RulesDetectionRulesDetectionRuleItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RulesDetectionRulesDetectionRuleItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/security/rules_detection_rules_request_builder.go b/security/rules_detection_rules_request_builder.go index 8cfd0025027..09de3c8bbfd 100644 --- a/security/rules_detection_rules_request_builder.go +++ b/security/rules_detection_rules_request_builder.go @@ -14,7 +14,7 @@ import ( type RulesDetectionRulesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// RulesDetectionRulesRequestBuilderGetQueryParameters get a list of custom detection rules.With custom detections, you can proactively monitor for and respond to various events and system states, including suspected breach activity and misconfigured assets in their organization network.Custom detection rules, which are written in Kusto query language (KQL), automatically trigger alerts and response actions once there are events matching their KQL queries. +// RulesDetectionRulesRequestBuilderGetQueryParameters get a list of detectionRule objects and their properties. type RulesDetectionRulesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,12 +79,12 @@ func NewRulesDetectionRulesRequestBuilder(rawUrl string, requestAdapter i2ae4187 func (m *RulesDetectionRulesRequestBuilder) Count()(*RulesDetectionRulesCountRequestBuilder) { return NewRulesDetectionRulesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a list of custom detection rules.With custom detections, you can proactively monitor for and respond to various events and system states, including suspected breach activity and misconfigured assets in their organization network.Custom detection rules, which are written in Kusto query language (KQL), automatically trigger alerts and response actions once there are events matching their KQL queries. +// Get get a list of detectionRule objects and their properties. // returns a DetectionRuleCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/security-detectionrule-list?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/security-rulesroot-list-detectionrules?view=graph-rest-beta func (m *RulesDetectionRulesRequestBuilder) Get(ctx context.Context, requestConfiguration *RulesDetectionRulesRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.DetectionRuleCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -102,9 +102,12 @@ func (m *RulesDetectionRulesRequestBuilder) Get(ctx context.Context, requestConf } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.DetectionRuleCollectionResponseable), nil } -// Post create new navigation property to detectionRules for security +// Post create a new detectionRule object. // returns a DetectionRuleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/security-rulesroot-post-detectionrules?view=graph-rest-beta func (m *RulesDetectionRulesRequestBuilder) Post(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.DetectionRuleable, requestConfiguration *RulesDetectionRulesRequestBuilderPostRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.DetectionRuleable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -122,7 +125,7 @@ func (m *RulesDetectionRulesRequestBuilder) Post(ctx context.Context, body i084f } return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.DetectionRuleable), nil } -// ToGetRequestInformation get a list of custom detection rules.With custom detections, you can proactively monitor for and respond to various events and system states, including suspected breach activity and misconfigured assets in their organization network.Custom detection rules, which are written in Kusto query language (KQL), automatically trigger alerts and response actions once there are events matching their KQL queries. +// ToGetRequestInformation get a list of detectionRule objects and their properties. // returns a *RequestInformation when successful func (m *RulesDetectionRulesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RulesDetectionRulesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +139,7 @@ func (m *RulesDetectionRulesRequestBuilder) ToGetRequestInformation(ctx context. requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create new navigation property to detectionRules for security +// ToPostRequestInformation create a new detectionRule object. // returns a *RequestInformation when successful func (m *RulesDetectionRulesRequestBuilder) ToPostRequestInformation(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.DetectionRuleable, requestConfiguration *RulesDetectionRulesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/security/rules_request_builder.go b/security/rules_request_builder.go index f5c3047fba4..4516d844be4 100644 --- a/security/rules_request_builder.go +++ b/security/rules_request_builder.go @@ -21,7 +21,7 @@ type RulesRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// RulesRequestBuilderGetQueryParameters get rules from security +// RulesRequestBuilderGetQueryParameters container for the security rules configured in Microsoft Defender XDR, including custom detection rules. type RulesRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -78,7 +78,7 @@ func (m *RulesRequestBuilder) Delete(ctx context.Context, requestConfiguration * func (m *RulesRequestBuilder) DetectionRules()(*RulesDetectionRulesRequestBuilder) { return NewRulesDetectionRulesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get rules from security +// Get container for the security rules configured in Microsoft Defender XDR, including custom detection rules. // returns a RulesRootable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *RulesRequestBuilder) Get(ctx context.Context, requestConfiguration *RulesRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.RulesRootable, error) { @@ -129,7 +129,7 @@ func (m *RulesRequestBuilder) ToDeleteRequestInformation(ctx context.Context, re requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get rules from security +// ToGetRequestInformation container for the security rules configured in Microsoft Defender XDR, including custom detection rules. // returns a *RequestInformation when successful func (m *RulesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RulesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/security/security_request_builder.go b/security/security_request_builder.go index 12d6f0a1a2a..3b7a8ff1be2 100644 --- a/security/security_request_builder.go +++ b/security/security_request_builder.go @@ -160,6 +160,16 @@ func (m *SecurityRequestBuilder) IpSecurityProfiles()(*IpSecurityProfilesRequest func (m *SecurityRequestBuilder) Labels()(*LabelsRequestBuilder) { return NewLabelsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// MicrosoftGraphSecurityGetHuntingSchema provides operations to call the getHuntingSchema method. +// returns a *MicrosoftGraphSecurityGetHuntingSchemaRequestBuilder when successful +func (m *SecurityRequestBuilder) MicrosoftGraphSecurityGetHuntingSchema()(*MicrosoftGraphSecurityGetHuntingSchemaRequestBuilder) { + return NewMicrosoftGraphSecurityGetHuntingSchemaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceId provides operations to call the getRunHuntingQuery method. +// returns a *MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder when successful +func (m *SecurityRequestBuilder) MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceId(query *string)(*MicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilder) { + return NewMicrosoftGraphSecurityGetRunHuntingQueryWithQuerytimespanTimespanWithWorkspaceIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, query) +} // MicrosoftGraphSecurityRunHuntingQuery provides operations to call the runHuntingQuery method. // returns a *MicrosoftGraphSecurityRunHuntingQueryRequestBuilder when successful func (m *SecurityRequestBuilder) MicrosoftGraphSecurityRunHuntingQuery()(*MicrosoftGraphSecurityRunHuntingQueryRequestBuilder) { diff --git a/serviceprincipals/item_claims_mapping_policies_ref_request_builder.go b/serviceprincipals/item_claims_mapping_policies_ref_request_builder.go index 91afbc31f29..1107da67bb4 100644 --- a/serviceprincipals/item_claims_mapping_policies_ref_request_builder.go +++ b/serviceprincipals/item_claims_mapping_policies_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemClaimsMappingPoliciesRefRequestBuilderPostRequestConfiguration struct { // NewItemClaimsMappingPoliciesRefRequestBuilderInternal instantiates a new ItemClaimsMappingPoliciesRefRequestBuilder and sets the default values. func NewItemClaimsMappingPoliciesRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemClaimsMappingPoliciesRefRequestBuilder) { m := &ItemClaimsMappingPoliciesRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ItemClaimsMappingPoliciesRefRequestBuilder) ToDeleteRequestInformation( // ToGetRequestInformation list the claimsMappingPolicy objects that are assigned to a servicePrincipal. // returns a *RequestInformation when successful func (m *ItemClaimsMappingPoliciesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemClaimsMappingPoliciesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ItemClaimsMappingPoliciesRefRequestBuilder) ToGetRequestInformation(ctx // ToPostRequestInformation assign a claimsMappingPolicy to a servicePrincipal. // returns a *RequestInformation when successful func (m *ItemClaimsMappingPoliciesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemClaimsMappingPoliciesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/serviceprincipals/item_get_member_groups_post_request_body.go b/serviceprincipals/item_get_member_groups_post_request_body.go index 6551848344d..23105598542 100644 --- a/serviceprincipals/item_get_member_groups_post_request_body.go +++ b/serviceprincipals/item_get_member_groups_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberGroupsPostRequestBody()(*ItemGetMemberGroupsPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberGroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/serviceprincipals/item_get_member_objects_post_request_body.go b/serviceprincipals/item_get_member_objects_post_request_body.go index 94a9edaca6b..eda9082acc7 100644 --- a/serviceprincipals/item_get_member_objects_post_request_body.go +++ b/serviceprincipals/item_get_member_objects_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberObjectsPostRequestBody()(*ItemGetMemberObjectsPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberObjectsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/serviceprincipals/item_home_realm_discovery_policies_ref_request_builder.go b/serviceprincipals/item_home_realm_discovery_policies_ref_request_builder.go index 4f98bc25d1c..7f7a19d0cfa 100644 --- a/serviceprincipals/item_home_realm_discovery_policies_ref_request_builder.go +++ b/serviceprincipals/item_home_realm_discovery_policies_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemHomeRealmDiscoveryPoliciesRefRequestBuilderPostRequestConfiguration str // NewItemHomeRealmDiscoveryPoliciesRefRequestBuilderInternal instantiates a new ItemHomeRealmDiscoveryPoliciesRefRequestBuilder and sets the default values. func NewItemHomeRealmDiscoveryPoliciesRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemHomeRealmDiscoveryPoliciesRefRequestBuilder) { m := &ItemHomeRealmDiscoveryPoliciesRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ItemHomeRealmDiscoveryPoliciesRefRequestBuilder) ToDeleteRequestInforma // ToGetRequestInformation list the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. // returns a *RequestInformation when successful func (m *ItemHomeRealmDiscoveryPoliciesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemHomeRealmDiscoveryPoliciesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ItemHomeRealmDiscoveryPoliciesRefRequestBuilder) ToGetRequestInformatio // ToPostRequestInformation assign a homeRealmDiscoveryPolicy to a servicePrincipal. // returns a *RequestInformation when successful func (m *ItemHomeRealmDiscoveryPoliciesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemHomeRealmDiscoveryPoliciesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/serviceprincipals/item_owners_ref_request_builder.go b/serviceprincipals/item_owners_ref_request_builder.go index 549d76ad33c..8710e0f3aae 100644 --- a/serviceprincipals/item_owners_ref_request_builder.go +++ b/serviceprincipals/item_owners_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemOwnersRefRequestBuilderPostRequestConfiguration struct { // NewItemOwnersRefRequestBuilderInternal instantiates a new ItemOwnersRefRequestBuilder and sets the default values. func NewItemOwnersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOwnersRefRequestBuilder) { m := &ItemOwnersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -147,7 +147,7 @@ func (m *ItemOwnersRefRequestBuilder) ToDeleteRequestInformation(ctx context.Con // ToGetRequestInformation directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). // returns a *RequestInformation when successful func (m *ItemOwnersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -161,7 +161,7 @@ func (m *ItemOwnersRefRequestBuilder) ToGetRequestInformation(ctx context.Contex // ToPostRequestInformation add an owner for the servicePrincipal. Service principal owners can be users, the service principal itself, or other service principals. // returns a *RequestInformation when successful func (m *ItemOwnersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemOwnersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/serviceprincipals/item_synchronization_jobs_item_validate_credentials_post_request_body.go b/serviceprincipals/item_synchronization_jobs_item_validate_credentials_post_request_body.go index 57852095613..1a19d2f7f49 100644 --- a/serviceprincipals/item_synchronization_jobs_item_validate_credentials_post_request_body.go +++ b/serviceprincipals/item_synchronization_jobs_item_validate_credentials_post_request_body.go @@ -19,6 +19,8 @@ func NewItemSynchronizationJobsItemValidateCredentialsPostRequestBody()(*ItemSyn } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + useSavedCredentialsValue := false + m.SetUseSavedCredentials(&useSavedCredentialsValue) return m } // CreateItemSynchronizationJobsItemValidateCredentialsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/serviceprincipals/item_synchronization_jobs_validate_credentials_post_request_body.go b/serviceprincipals/item_synchronization_jobs_validate_credentials_post_request_body.go index 8f46f036c19..32c76df7b92 100644 --- a/serviceprincipals/item_synchronization_jobs_validate_credentials_post_request_body.go +++ b/serviceprincipals/item_synchronization_jobs_validate_credentials_post_request_body.go @@ -19,6 +19,8 @@ func NewItemSynchronizationJobsValidateCredentialsPostRequestBody()(*ItemSynchro } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + useSavedCredentialsValue := false + m.SetUseSavedCredentials(&useSavedCredentialsValue) return m } // CreateItemSynchronizationJobsValidateCredentialsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/serviceprincipals/item_token_issuance_policies_ref_request_builder.go b/serviceprincipals/item_token_issuance_policies_ref_request_builder.go index bc576d04d27..f21f852b540 100644 --- a/serviceprincipals/item_token_issuance_policies_ref_request_builder.go +++ b/serviceprincipals/item_token_issuance_policies_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemTokenIssuancePoliciesRefRequestBuilderPostRequestConfiguration struct { // NewItemTokenIssuancePoliciesRefRequestBuilderInternal instantiates a new ItemTokenIssuancePoliciesRefRequestBuilder and sets the default values. func NewItemTokenIssuancePoliciesRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTokenIssuancePoliciesRefRequestBuilder) { m := &ItemTokenIssuancePoliciesRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/tokenIssuancePolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/tokenIssuancePolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *ItemTokenIssuancePoliciesRefRequestBuilder) ToDeleteRequestInformation( // ToGetRequestInformation the tokenIssuancePolicies assigned to this service principal. Supports $expand. // returns a *RequestInformation when successful func (m *ItemTokenIssuancePoliciesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTokenIssuancePoliciesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/tokenIssuancePolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *ItemTokenIssuancePoliciesRefRequestBuilder) ToGetRequestInformation(ctx // ToPostRequestInformation create new navigation property ref to tokenIssuancePolicies for servicePrincipals // returns a *RequestInformation when successful func (m *ItemTokenIssuancePoliciesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemTokenIssuancePoliciesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/tokenIssuancePolicies/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/serviceprincipals/item_token_lifetime_policies_ref_request_builder.go b/serviceprincipals/item_token_lifetime_policies_ref_request_builder.go index b11227f3f86..a9607983f1e 100644 --- a/serviceprincipals/item_token_lifetime_policies_ref_request_builder.go +++ b/serviceprincipals/item_token_lifetime_policies_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemTokenLifetimePoliciesRefRequestBuilderPostRequestConfiguration struct { // NewItemTokenLifetimePoliciesRefRequestBuilderInternal instantiates a new ItemTokenLifetimePoliciesRefRequestBuilder and sets the default values. func NewItemTokenLifetimePoliciesRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTokenLifetimePoliciesRefRequestBuilder) { m := &ItemTokenLifetimePoliciesRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/tokenLifetimePolicies/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/tokenLifetimePolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ItemTokenLifetimePoliciesRefRequestBuilder) ToDeleteRequestInformation( // ToGetRequestInformation list the tokenLifetimePolicy objects that are assigned to a servicePrincipal. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to a service principal. // returns a *RequestInformation when successful func (m *ItemTokenLifetimePoliciesRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTokenLifetimePoliciesRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/tokenLifetimePolicies/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ItemTokenLifetimePoliciesRefRequestBuilder) ToGetRequestInformation(ctx // ToPostRequestInformation assign a tokenLifetimePolicy to a servicePrincipal. You can have multiple tokenLifetimePolicy policies in a tenant but can assign only one tokenLifetimePolicy per service principal. // returns a *RequestInformation when successful func (m *ItemTokenLifetimePoliciesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemTokenLifetimePoliciesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/tokenLifetimePolicies/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/shares/item_list_content_types_item_associate_with_hub_sites_post_request_body.go b/shares/item_list_content_types_item_associate_with_hub_sites_post_request_body.go index 98bff163918..fe3cdc68f3a 100644 --- a/shares/item_list_content_types_item_associate_with_hub_sites_post_request_body.go +++ b/shares/item_list_content_types_item_associate_with_hub_sites_post_request_body.go @@ -18,6 +18,8 @@ func NewItemListContentTypesItemAssociateWithHubSitesPostRequestBody()(*ItemList } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + propagateToExistingListsValue := false + m.SetPropagateToExistingLists(&propagateToExistingListsValue) return m } // CreateItemListContentTypesItemAssociateWithHubSitesPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/shares/item_list_content_types_item_is_published_get_response.go b/shares/item_list_content_types_item_is_published_get_response.go index 7a3d1f5adc5..59e50a4ee55 100644 --- a/shares/item_list_content_types_item_is_published_get_response.go +++ b/shares/item_list_content_types_item_is_published_get_response.go @@ -18,6 +18,8 @@ func NewItemListContentTypesItemIsPublishedGetResponse()(*ItemListContentTypesIt } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemListContentTypesItemIsPublishedGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/shares/item_list_items_item_create_link_post_request_body.go b/shares/item_list_items_item_create_link_post_request_body.go index 6da258c8034..b696235644a 100644 --- a/shares/item_list_items_item_create_link_post_request_body.go +++ b/shares/item_list_items_item_create_link_post_request_body.go @@ -20,6 +20,10 @@ func NewItemListItemsItemCreateLinkPostRequestBody()(*ItemListItemsItemCreateLin } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + retainInheritedPermissionsValue := false + m.SetRetainInheritedPermissions(&retainInheritedPermissionsValue) + sendNotificationValue := false + m.SetSendNotification(&sendNotificationValue) return m } // CreateItemListItemsItemCreateLinkPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/sites/item_content_types_item_associate_with_hub_sites_post_request_body.go b/sites/item_content_types_item_associate_with_hub_sites_post_request_body.go index b4d7a2a1dd0..2a675699aed 100644 --- a/sites/item_content_types_item_associate_with_hub_sites_post_request_body.go +++ b/sites/item_content_types_item_associate_with_hub_sites_post_request_body.go @@ -18,6 +18,8 @@ func NewItemContentTypesItemAssociateWithHubSitesPostRequestBody()(*ItemContentT } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + propagateToExistingListsValue := false + m.SetPropagateToExistingLists(&propagateToExistingListsValue) return m } // CreateItemContentTypesItemAssociateWithHubSitesPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/sites/item_content_types_item_is_published_get_response.go b/sites/item_content_types_item_is_published_get_response.go index 039154d86ff..a6f73be8258 100644 --- a/sites/item_content_types_item_is_published_get_response.go +++ b/sites/item_content_types_item_is_published_get_response.go @@ -18,6 +18,8 @@ func NewItemContentTypesItemIsPublishedGetResponse()(*ItemContentTypesItemIsPubl } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemContentTypesItemIsPublishedGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/sites/item_lists_item_content_types_item_associate_with_hub_sites_post_request_body.go b/sites/item_lists_item_content_types_item_associate_with_hub_sites_post_request_body.go index f8bb48cd514..92dce88a9fd 100644 --- a/sites/item_lists_item_content_types_item_associate_with_hub_sites_post_request_body.go +++ b/sites/item_lists_item_content_types_item_associate_with_hub_sites_post_request_body.go @@ -18,6 +18,8 @@ func NewItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBody()(*Ite } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + propagateToExistingListsValue := false + m.SetPropagateToExistingLists(&propagateToExistingListsValue) return m } // CreateItemListsItemContentTypesItemAssociateWithHubSitesPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/sites/item_lists_item_content_types_item_is_published_get_response.go b/sites/item_lists_item_content_types_item_is_published_get_response.go index 7481d5769f6..c8041b37a18 100644 --- a/sites/item_lists_item_content_types_item_is_published_get_response.go +++ b/sites/item_lists_item_content_types_item_is_published_get_response.go @@ -18,6 +18,8 @@ func NewItemListsItemContentTypesItemIsPublishedGetResponse()(*ItemListsItemCont } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemListsItemContentTypesItemIsPublishedGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/sites/item_lists_item_items_item_create_link_post_request_body.go b/sites/item_lists_item_items_item_create_link_post_request_body.go index 60516a0d2b8..d37d01d01ca 100644 --- a/sites/item_lists_item_items_item_create_link_post_request_body.go +++ b/sites/item_lists_item_items_item_create_link_post_request_body.go @@ -20,6 +20,10 @@ func NewItemListsItemItemsItemCreateLinkPostRequestBody()(*ItemListsItemItemsIte } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + retainInheritedPermissionsValue := false + m.SetRetainInheritedPermissions(&retainInheritedPermissionsValue) + sendNotificationValue := false + m.SetSendNotification(&sendNotificationValue) return m } // CreateItemListsItemItemsItemCreateLinkPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/solutions/03ad2793d2b71515f3de372542d1bf80f866d8b1ca3c798f7f1384eb9409338b.go b/solutions/03ad2793d2b71515f3de372542d1bf80f866d8b1ca3c798f7f1384eb9409338b.go index afa443fd384..f81795b22db 100644 --- a/solutions/03ad2793d2b71515f3de372542d1bf80f866d8b1ca3c798f7f1384eb9409338b.go +++ b/solutions/03ad2793d2b71515f3de372542d1bf80f866d8b1ca3c798f7f1384eb9409338b.go @@ -14,7 +14,7 @@ import ( type BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsDriveExclusionUnitItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsDriveExclusionUnitItemRequestBuilderGetQueryParameters get driveExclusionUnits from solutions +// BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsDriveExclusionUnitItemRequestBuilderGetQueryParameters get a drive exclusion unit associated with a OneDrive for work or school protection policy. type BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsDriveExclusionUnitItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -43,9 +43,12 @@ func NewBackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnit urlParams["request-raw-url"] = rawUrl return NewBackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsDriveExclusionUnitItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get get driveExclusionUnits from solutions +// Get get a drive exclusion unit associated with a OneDrive for work or school protection policy. // returns a DriveExclusionUnitable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/driveexclusionunit-get?view=graph-rest-beta func (m *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsDriveExclusionUnitItemRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsDriveExclusionUnitItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveExclusionUnitable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -63,7 +66,7 @@ func (m *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUni } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveExclusionUnitable), nil } -// ToGetRequestInformation get driveExclusionUnits from solutions +// ToGetRequestInformation get a drive exclusion unit associated with a OneDrive for work or school protection policy. // returns a *RequestInformation when successful func (m *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsDriveExclusionUnitItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsDriveExclusionUnitItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/07596e736ebaa900b03a79280fe29849b04724da68eb8d9441f3d9706bd9047f.go b/solutions/07596e736ebaa900b03a79280fe29849b04724da68eb8d9441f3d9706bd9047f.go index fb2e8785c21..2a95709716c 100644 --- a/solutions/07596e736ebaa900b03a79280fe29849b04724da68eb8d9441f3d9706bd9047f.go +++ b/solutions/07596e736ebaa900b03a79280fe29849b04724da68eb8d9441f3d9706bd9047f.go @@ -14,7 +14,7 @@ import ( type BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters get driveExclusionUnitsBulkAdditionJobs from solutions +// BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters get a list of drive exclusion units bulk addition jobs associated with a OneDrive for work or school protection policy. type BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -72,9 +72,12 @@ func NewBackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnit func (m *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsRequestBuilder) Count()(*BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsCountRequestBuilder) { return NewBackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get driveExclusionUnitsBulkAdditionJobs from solutions +// Get get a list of drive exclusion units bulk addition jobs associated with a OneDrive for work or school protection policy. // returns a DriveExclusionUnitsBulkAdditionJobCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/onedriveforbusinessprotectionpolicy-list-driveexclusionunitsbulkadditionjobs?view=graph-rest-beta func (m *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveExclusionUnitsBulkAdditionJobCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -92,7 +95,7 @@ func (m *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUni } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveExclusionUnitsBulkAdditionJobCollectionResponseable), nil } -// ToGetRequestInformation get driveExclusionUnitsBulkAdditionJobs from solutions +// ToGetRequestInformation get a list of drive exclusion units bulk addition jobs associated with a OneDrive for work or school protection policy. // returns a *RequestInformation when successful func (m *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/34acea693b8744941d33b1fa89a8c5118207d104a43606a6dfcefc066365322f.go b/solutions/34acea693b8744941d33b1fa89a8c5118207d104a43606a6dfcefc066365322f.go index ae65e0cf327..f5df769a68f 100644 --- a/solutions/34acea693b8744941d33b1fa89a8c5118207d104a43606a6dfcefc066365322f.go +++ b/solutions/34acea693b8744941d33b1fa89a8c5118207d104a43606a6dfcefc066365322f.go @@ -14,7 +14,7 @@ import ( type BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters get siteExclusionUnitsBulkAdditionJobs from solutions +// BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters get a list of site exclusion units bulk addition jobs associated with a SharePoint protection policy. type BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -72,9 +72,12 @@ func NewBackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAddit func (m *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsRequestBuilder) Count()(*BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsCountRequestBuilder) { return NewBackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get siteExclusionUnitsBulkAdditionJobs from solutions +// Get get a list of site exclusion units bulk addition jobs associated with a SharePoint protection policy. // returns a SiteExclusionUnitsBulkAdditionJobCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/sharepointprotectionpolicy-list-siteexclusionunitsbulkadditionjobs?view=graph-rest-beta func (m *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteExclusionUnitsBulkAdditionJobCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -92,7 +95,7 @@ func (m *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAddi } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteExclusionUnitsBulkAdditionJobCollectionResponseable), nil } -// ToGetRequestInformation get siteExclusionUnitsBulkAdditionJobs from solutions +// ToGetRequestInformation get a list of site exclusion units bulk addition jobs associated with a SharePoint protection policy. // returns a *RequestInformation when successful func (m *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/5c085f0d02dca4a70174a870854bc214ddbd8214ff10d0eb74dc7ebba6942836.go b/solutions/5c085f0d02dca4a70174a870854bc214ddbd8214ff10d0eb74dc7ebba6942836.go index 0d2dbed95b9..207b8dbc3c4 100644 --- a/solutions/5c085f0d02dca4a70174a870854bc214ddbd8214ff10d0eb74dc7ebba6942836.go +++ b/solutions/5c085f0d02dca4a70174a870854bc214ddbd8214ff10d0eb74dc7ebba6942836.go @@ -14,7 +14,7 @@ import ( type BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters get siteExclusionUnitsBulkAdditionJobs from solutions +// BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters get a site exclusion units bulk addition job associated with a SharePoint protection policy. type BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -43,9 +43,12 @@ func NewBackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAddit urlParams["request-raw-url"] = rawUrl return NewBackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get get siteExclusionUnitsBulkAdditionJobs from solutions +// Get get a site exclusion units bulk addition job associated with a SharePoint protection policy. // returns a SiteExclusionUnitsBulkAdditionJobable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/siteexclusionunitsbulkadditionjob-get?view=graph-rest-beta func (m *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteExclusionUnitsBulkAdditionJobable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -63,7 +66,7 @@ func (m *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAddi } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteExclusionUnitsBulkAdditionJobable), nil } -// ToGetRequestInformation get siteExclusionUnitsBulkAdditionJobs from solutions +// ToGetRequestInformation get a site exclusion units bulk addition job associated with a SharePoint protection policy. // returns a *RequestInformation when successful func (m *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/5c5e71a009f178a1fbcf6135bb90530fa2302251d5a7463d0df4dff519827088.go b/solutions/5c5e71a009f178a1fbcf6135bb90530fa2302251d5a7463d0df4dff519827088.go index f1b15740d96..6b9756e04f2 100644 --- a/solutions/5c5e71a009f178a1fbcf6135bb90530fa2302251d5a7463d0df4dff519827088.go +++ b/solutions/5c5e71a009f178a1fbcf6135bb90530fa2302251d5a7463d0df4dff519827088.go @@ -14,7 +14,7 @@ import ( type BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters get driveExclusionUnitsBulkAdditionJobs from solutions +// BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters get a drive exclusion units bulk addition job associated with a OneDrive for work or school protection policy. type BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -43,9 +43,12 @@ func NewBackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnit urlParams["request-raw-url"] = rawUrl return NewBackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get get driveExclusionUnitsBulkAdditionJobs from solutions +// Get get a drive exclusion units bulk addition job associated with a OneDrive for work or school protection policy. // returns a DriveExclusionUnitsBulkAdditionJobable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/driveexclusionunitsbulkadditionjob-get?view=graph-rest-beta func (m *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveExclusionUnitsBulkAdditionJobable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -63,7 +66,7 @@ func (m *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUni } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveExclusionUnitsBulkAdditionJobable), nil } -// ToGetRequestInformation get driveExclusionUnitsBulkAdditionJobs from solutions +// ToGetRequestInformation get a drive exclusion units bulk addition job associated with a OneDrive for work or school protection policy. // returns a *RequestInformation when successful func (m *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/5da2f995ec292dd0b37863f9881148d0f501f05cbcfbcf928506b105f15326d4.go b/solutions/5da2f995ec292dd0b37863f9881148d0f501f05cbcfbcf928506b105f15326d4.go index 19dbf1005ea..35e50ad4c0d 100644 --- a/solutions/5da2f995ec292dd0b37863f9881148d0f501f05cbcfbcf928506b105f15326d4.go +++ b/solutions/5da2f995ec292dd0b37863f9881148d0f501f05cbcfbcf928506b105f15326d4.go @@ -21,7 +21,7 @@ type BackupRestoreMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulk // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// BackupRestoreMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters get mailboxExclusionUnitsBulkAdditionJobs from solutions +// BackupRestoreMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters the list of bulk addition jobs for mailbox exclusion units in the tenant. type BackupRestoreMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -73,7 +73,7 @@ func (m *BackupRestoreMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnits } return nil } -// Get get mailboxExclusionUnitsBulkAdditionJobs from solutions +// Get the list of bulk addition jobs for mailbox exclusion units in the tenant. // returns a MailboxExclusionUnitsBulkAdditionJobable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *BackupRestoreMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxExclusionUnitsBulkAdditionJobable, error) { @@ -124,7 +124,7 @@ func (m *BackupRestoreMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnits requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get mailboxExclusionUnitsBulkAdditionJobs from solutions +// ToGetRequestInformation the list of bulk addition jobs for mailbox exclusion units in the tenant. // returns a *RequestInformation when successful func (m *BackupRestoreMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/60dd02184904f17bf66b96536cc532a31374f3479dce2b9e83aa5fc78ecb511e.go b/solutions/60dd02184904f17bf66b96536cc532a31374f3479dce2b9e83aa5fc78ecb511e.go index 5611761e197..c5676636465 100644 --- a/solutions/60dd02184904f17bf66b96536cc532a31374f3479dce2b9e83aa5fc78ecb511e.go +++ b/solutions/60dd02184904f17bf66b96536cc532a31374f3479dce2b9e83aa5fc78ecb511e.go @@ -57,7 +57,7 @@ func NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventR urlParams["request-raw-url"] = rawUrl return NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a registration question from a webinar. The question can either be a predefined registration question or a custom registration question. +// Delete delete a registration question from a webinar or town hall. The question can either be a predefined registration question or a custom registration question. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -116,7 +116,7 @@ func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEvent } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseable), nil } -// ToDeleteRequestInformation delete a registration question from a webinar. The question can either be a predefined registration question or a custom registration question. +// ToDeleteRequestInformation delete a registration question from a webinar or town hall. The question can either be a predefined registration question or a custom registration question. // returns a *RequestInformation when successful func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/6cf52b39e1f4af49672c45cbfd221619e63a957447749a167003890e2e286b76.go b/solutions/6cf52b39e1f4af49672c45cbfd221619e63a957447749a167003890e2e286b76.go index 3dac9397509..545cfb06fda 100644 --- a/solutions/6cf52b39e1f4af49672c45cbfd221619e63a957447749a167003890e2e286b76.go +++ b/solutions/6cf52b39e1f4af49672c45cbfd221619e63a957447749a167003890e2e286b76.go @@ -14,7 +14,7 @@ import ( type BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters get mailboxExclusionUnitsBulkAdditionJobs from solutions +// BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters get a list of mailbox exclusion units bulk addition jobs associated with an Exchange protection policy. type BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -72,9 +72,12 @@ func NewBackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAddi func (m *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsRequestBuilder) Count()(*BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsCountRequestBuilder) { return NewBackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get mailboxExclusionUnitsBulkAdditionJobs from solutions +// Get get a list of mailbox exclusion units bulk addition jobs associated with an Exchange protection policy. // returns a MailboxExclusionUnitsBulkAdditionJobCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/exchangeprotectionpolicy-list-mailboxexclusionunitsbulkadditionjobs?view=graph-rest-beta func (m *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxExclusionUnitsBulkAdditionJobCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -92,7 +95,7 @@ func (m *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdd } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxExclusionUnitsBulkAdditionJobCollectionResponseable), nil } -// ToGetRequestInformation get mailboxExclusionUnitsBulkAdditionJobs from solutions +// ToGetRequestInformation get a list of mailbox exclusion units bulk addition jobs associated with an Exchange protection policy. // returns a *RequestInformation when successful func (m *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/71a9d631cb8897fd17577bf86ac2bc2171f28af09f0c8d386bb1d649ef44d8c6.go b/solutions/71a9d631cb8897fd17577bf86ac2bc2171f28af09f0c8d386bb1d649ef44d8c6.go index f84de40872a..150fb4590c3 100644 --- a/solutions/71a9d631cb8897fd17577bf86ac2bc2171f28af09f0c8d386bb1d649ef44d8c6.go +++ b/solutions/71a9d631cb8897fd17577bf86ac2bc2171f28af09f0c8d386bb1d649ef44d8c6.go @@ -14,7 +14,7 @@ import ( type BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilderGetQueryParameters get mailboxExclusionUnits from solutions +// BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilderGetQueryParameters get a mailbox exclusion unit associated with an Exchange protection policy. type BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -43,9 +43,12 @@ func NewBackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsMailboxE urlParams["request-raw-url"] = rawUrl return NewBackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get get mailboxExclusionUnits from solutions +// Get get a mailbox exclusion unit associated with an Exchange protection policy. // returns a MailboxExclusionUnitable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/mailboxexclusionunit-get?view=graph-rest-beta func (m *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxExclusionUnitable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -63,7 +66,7 @@ func (m *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsMailbox } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxExclusionUnitable), nil } -// ToGetRequestInformation get mailboxExclusionUnits from solutions +// ToGetRequestInformation get a mailbox exclusion unit associated with an Exchange protection policy. // returns a *RequestInformation when successful func (m *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/80565f128e2a0bfacd2c16d93c0e8b431e99df3edadf586b91b44375bd020b37.go b/solutions/80565f128e2a0bfacd2c16d93c0e8b431e99df3edadf586b91b44375bd020b37.go index c97e19aa106..c6d7005a99b 100644 --- a/solutions/80565f128e2a0bfacd2c16d93c0e8b431e99df3edadf586b91b44375bd020b37.go +++ b/solutions/80565f128e2a0bfacd2c16d93c0e8b431e99df3edadf586b91b44375bd020b37.go @@ -14,7 +14,7 @@ import ( type BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsSiteExclusionUnitItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsSiteExclusionUnitItemRequestBuilderGetQueryParameters get siteExclusionUnits from solutions +// BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsSiteExclusionUnitItemRequestBuilderGetQueryParameters get a site exclusion unit associated with a SharePoint protection policy. type BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsSiteExclusionUnitItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -43,9 +43,12 @@ func NewBackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsSiteExclu urlParams["request-raw-url"] = rawUrl return NewBackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsSiteExclusionUnitItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get get siteExclusionUnits from solutions +// Get get a site exclusion unit associated with a SharePoint protection policy. // returns a SiteExclusionUnitable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/siteexclusionunit-get?view=graph-rest-beta func (m *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsSiteExclusionUnitItemRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsSiteExclusionUnitItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteExclusionUnitable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -63,7 +66,7 @@ func (m *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsSiteExcl } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteExclusionUnitable), nil } -// ToGetRequestInformation get siteExclusionUnits from solutions +// ToGetRequestInformation get a site exclusion unit associated with a SharePoint protection policy. // returns a *RequestInformation when successful func (m *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsSiteExclusionUnitItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsSiteExclusionUnitItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/b9544ba0f48052d3eb249c3291fa70bb0c2d558290b896cbac8a9e6b43fecc50.go b/solutions/b9544ba0f48052d3eb249c3291fa70bb0c2d558290b896cbac8a9e6b43fecc50.go index f1db1653999..1dd4dab3cc4 100644 --- a/solutions/b9544ba0f48052d3eb249c3291fa70bb0c2d558290b896cbac8a9e6b43fecc50.go +++ b/solutions/b9544ba0f48052d3eb249c3291fa70bb0c2d558290b896cbac8a9e6b43fecc50.go @@ -21,7 +21,7 @@ type BackupRestoreSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditi // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// BackupRestoreSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters get siteExclusionUnitsBulkAdditionJobs from solutions +// BackupRestoreSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters the list of bulk addition jobs for site exclusion units in the tenant. type BackupRestoreSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -73,7 +73,7 @@ func (m *BackupRestoreSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAd } return nil } -// Get get siteExclusionUnitsBulkAdditionJobs from solutions +// Get the list of bulk addition jobs for site exclusion units in the tenant. // returns a SiteExclusionUnitsBulkAdditionJobable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *BackupRestoreSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteExclusionUnitsBulkAdditionJobable, error) { @@ -124,7 +124,7 @@ func (m *BackupRestoreSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAd requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get siteExclusionUnitsBulkAdditionJobs from solutions +// ToGetRequestInformation the list of bulk addition jobs for site exclusion units in the tenant. // returns a *RequestInformation when successful func (m *BackupRestoreSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreSiteExclusionUnitsBulkAdditionJobsSiteExclusionUnitsBulkAdditionJobItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/backup_restore_drive_exclusion_units_bulk_addition_jobs_request_builder.go b/solutions/backup_restore_drive_exclusion_units_bulk_addition_jobs_request_builder.go index 028c8d61c24..e3e238987ce 100644 --- a/solutions/backup_restore_drive_exclusion_units_bulk_addition_jobs_request_builder.go +++ b/solutions/backup_restore_drive_exclusion_units_bulk_addition_jobs_request_builder.go @@ -14,7 +14,7 @@ import ( type BackupRestoreDriveExclusionUnitsBulkAdditionJobsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreDriveExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters get driveExclusionUnitsBulkAdditionJobs from solutions +// BackupRestoreDriveExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters the list of bulk addition jobs for drive exclusion units in the tenant. type BackupRestoreDriveExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,7 +79,7 @@ func NewBackupRestoreDriveExclusionUnitsBulkAdditionJobsRequestBuilder(rawUrl st func (m *BackupRestoreDriveExclusionUnitsBulkAdditionJobsRequestBuilder) Count()(*BackupRestoreDriveExclusionUnitsBulkAdditionJobsCountRequestBuilder) { return NewBackupRestoreDriveExclusionUnitsBulkAdditionJobsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get driveExclusionUnitsBulkAdditionJobs from solutions +// Get the list of bulk addition jobs for drive exclusion units in the tenant. // returns a DriveExclusionUnitsBulkAdditionJobCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *BackupRestoreDriveExclusionUnitsBulkAdditionJobsRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreDriveExclusionUnitsBulkAdditionJobsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveExclusionUnitsBulkAdditionJobCollectionResponseable, error) { @@ -119,7 +119,7 @@ func (m *BackupRestoreDriveExclusionUnitsBulkAdditionJobsRequestBuilder) Post(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveExclusionUnitsBulkAdditionJobable), nil } -// ToGetRequestInformation get driveExclusionUnitsBulkAdditionJobs from solutions +// ToGetRequestInformation the list of bulk addition jobs for drive exclusion units in the tenant. // returns a *RequestInformation when successful func (m *BackupRestoreDriveExclusionUnitsBulkAdditionJobsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreDriveExclusionUnitsBulkAdditionJobsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/backup_restore_drive_exclusion_units_drive_exclusion_unit_item_request_builder.go b/solutions/backup_restore_drive_exclusion_units_drive_exclusion_unit_item_request_builder.go index 245848b74e0..7c3e5386a1e 100644 --- a/solutions/backup_restore_drive_exclusion_units_drive_exclusion_unit_item_request_builder.go +++ b/solutions/backup_restore_drive_exclusion_units_drive_exclusion_unit_item_request_builder.go @@ -21,7 +21,7 @@ type BackupRestoreDriveExclusionUnitsDriveExclusionUnitItemRequestBuilderDeleteR // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// BackupRestoreDriveExclusionUnitsDriveExclusionUnitItemRequestBuilderGetQueryParameters get driveExclusionUnits from solutions +// BackupRestoreDriveExclusionUnitsDriveExclusionUnitItemRequestBuilderGetQueryParameters the list of drive exclusion units in the tenant. type BackupRestoreDriveExclusionUnitsDriveExclusionUnitItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -73,7 +73,7 @@ func (m *BackupRestoreDriveExclusionUnitsDriveExclusionUnitItemRequestBuilder) D } return nil } -// Get get driveExclusionUnits from solutions +// Get the list of drive exclusion units in the tenant. // returns a DriveExclusionUnitable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *BackupRestoreDriveExclusionUnitsDriveExclusionUnitItemRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreDriveExclusionUnitsDriveExclusionUnitItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveExclusionUnitable, error) { @@ -124,7 +124,7 @@ func (m *BackupRestoreDriveExclusionUnitsDriveExclusionUnitItemRequestBuilder) T requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get driveExclusionUnits from solutions +// ToGetRequestInformation the list of drive exclusion units in the tenant. // returns a *RequestInformation when successful func (m *BackupRestoreDriveExclusionUnitsDriveExclusionUnitItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreDriveExclusionUnitsDriveExclusionUnitItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/backup_restore_drive_exclusion_units_request_builder.go b/solutions/backup_restore_drive_exclusion_units_request_builder.go index c50a57d3b61..8e1dbf7bc74 100644 --- a/solutions/backup_restore_drive_exclusion_units_request_builder.go +++ b/solutions/backup_restore_drive_exclusion_units_request_builder.go @@ -14,7 +14,7 @@ import ( type BackupRestoreDriveExclusionUnitsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreDriveExclusionUnitsRequestBuilderGetQueryParameters get driveExclusionUnits from solutions +// BackupRestoreDriveExclusionUnitsRequestBuilderGetQueryParameters the list of drive exclusion units in the tenant. type BackupRestoreDriveExclusionUnitsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,7 +79,7 @@ func NewBackupRestoreDriveExclusionUnitsRequestBuilder(rawUrl string, requestAda func (m *BackupRestoreDriveExclusionUnitsRequestBuilder) Count()(*BackupRestoreDriveExclusionUnitsCountRequestBuilder) { return NewBackupRestoreDriveExclusionUnitsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get driveExclusionUnits from solutions +// Get the list of drive exclusion units in the tenant. // returns a DriveExclusionUnitCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *BackupRestoreDriveExclusionUnitsRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreDriveExclusionUnitsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveExclusionUnitCollectionResponseable, error) { @@ -119,7 +119,7 @@ func (m *BackupRestoreDriveExclusionUnitsRequestBuilder) Post(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveExclusionUnitable), nil } -// ToGetRequestInformation get driveExclusionUnits from solutions +// ToGetRequestInformation the list of drive exclusion units in the tenant. // returns a *RequestInformation when successful func (m *BackupRestoreDriveExclusionUnitsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreDriveExclusionUnitsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/backup_restore_exchange_protection_policies_item_mailbox_exclusion_units_request_builder.go b/solutions/backup_restore_exchange_protection_policies_item_mailbox_exclusion_units_request_builder.go index 8ba0b2b2b56..ad88766e7a5 100644 --- a/solutions/backup_restore_exchange_protection_policies_item_mailbox_exclusion_units_request_builder.go +++ b/solutions/backup_restore_exchange_protection_policies_item_mailbox_exclusion_units_request_builder.go @@ -14,7 +14,7 @@ import ( type BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsRequestBuilderGetQueryParameters get mailboxExclusionUnits from solutions +// BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsRequestBuilderGetQueryParameters get a list of mailbox exclusion units associated with an Exchange protection policy. type BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -72,9 +72,12 @@ func NewBackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsRequestB func (m *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsRequestBuilder) Count()(*BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsCountRequestBuilder) { return NewBackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get mailboxExclusionUnits from solutions +// Get get a list of mailbox exclusion units associated with an Exchange protection policy. // returns a MailboxExclusionUnitCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/exchangeprotectionpolicy-list-mailboxexclusionunits?view=graph-rest-beta func (m *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxExclusionUnitCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -92,7 +95,7 @@ func (m *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsRequest } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxExclusionUnitCollectionResponseable), nil } -// ToGetRequestInformation get mailboxExclusionUnits from solutions +// ToGetRequestInformation get a list of mailbox exclusion units associated with an Exchange protection policy. // returns a *RequestInformation when successful func (m *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/backup_restore_exclusion_units_exclusion_unit_base_item_request_builder.go b/solutions/backup_restore_exclusion_units_exclusion_unit_base_item_request_builder.go index 8ad95fcfe33..e934e7a7f13 100644 --- a/solutions/backup_restore_exclusion_units_exclusion_unit_base_item_request_builder.go +++ b/solutions/backup_restore_exclusion_units_exclusion_unit_base_item_request_builder.go @@ -14,7 +14,7 @@ import ( type BackupRestoreExclusionUnitsExclusionUnitBaseItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreExclusionUnitsExclusionUnitBaseItemRequestBuilderGetQueryParameters get exclusionUnits from solutions +// BackupRestoreExclusionUnitsExclusionUnitBaseItemRequestBuilderGetQueryParameters the list of exclusion units in the tenant. type BackupRestoreExclusionUnitsExclusionUnitBaseItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -43,7 +43,7 @@ func NewBackupRestoreExclusionUnitsExclusionUnitBaseItemRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewBackupRestoreExclusionUnitsExclusionUnitBaseItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get get exclusionUnits from solutions +// Get the list of exclusion units in the tenant. // returns a ExclusionUnitBaseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *BackupRestoreExclusionUnitsExclusionUnitBaseItemRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreExclusionUnitsExclusionUnitBaseItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExclusionUnitBaseable, error) { @@ -63,7 +63,7 @@ func (m *BackupRestoreExclusionUnitsExclusionUnitBaseItemRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExclusionUnitBaseable), nil } -// ToGetRequestInformation get exclusionUnits from solutions +// ToGetRequestInformation the list of exclusion units in the tenant. // returns a *RequestInformation when successful func (m *BackupRestoreExclusionUnitsExclusionUnitBaseItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreExclusionUnitsExclusionUnitBaseItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/backup_restore_exclusion_units_request_builder.go b/solutions/backup_restore_exclusion_units_request_builder.go index f82d417b566..3ffebdf6c22 100644 --- a/solutions/backup_restore_exclusion_units_request_builder.go +++ b/solutions/backup_restore_exclusion_units_request_builder.go @@ -14,7 +14,7 @@ import ( type BackupRestoreExclusionUnitsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreExclusionUnitsRequestBuilderGetQueryParameters get exclusionUnits from solutions +// BackupRestoreExclusionUnitsRequestBuilderGetQueryParameters the list of exclusion units in the tenant. type BackupRestoreExclusionUnitsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -72,7 +72,7 @@ func NewBackupRestoreExclusionUnitsRequestBuilder(rawUrl string, requestAdapter func (m *BackupRestoreExclusionUnitsRequestBuilder) Count()(*BackupRestoreExclusionUnitsCountRequestBuilder) { return NewBackupRestoreExclusionUnitsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get exclusionUnits from solutions +// Get the list of exclusion units in the tenant. // returns a ExclusionUnitBaseCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *BackupRestoreExclusionUnitsRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreExclusionUnitsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExclusionUnitBaseCollectionResponseable, error) { @@ -92,7 +92,7 @@ func (m *BackupRestoreExclusionUnitsRequestBuilder) Get(ctx context.Context, req } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExclusionUnitBaseCollectionResponseable), nil } -// ToGetRequestInformation get exclusionUnits from solutions +// ToGetRequestInformation the list of exclusion units in the tenant. // returns a *RequestInformation when successful func (m *BackupRestoreExclusionUnitsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreExclusionUnitsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/backup_restore_mailbox_exclusion_units_bulk_addition_jobs_request_builder.go b/solutions/backup_restore_mailbox_exclusion_units_bulk_addition_jobs_request_builder.go index f59c3e31927..ad904afe8b9 100644 --- a/solutions/backup_restore_mailbox_exclusion_units_bulk_addition_jobs_request_builder.go +++ b/solutions/backup_restore_mailbox_exclusion_units_bulk_addition_jobs_request_builder.go @@ -14,7 +14,7 @@ import ( type BackupRestoreMailboxExclusionUnitsBulkAdditionJobsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreMailboxExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters get mailboxExclusionUnitsBulkAdditionJobs from solutions +// BackupRestoreMailboxExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters the list of bulk addition jobs for mailbox exclusion units in the tenant. type BackupRestoreMailboxExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,7 +79,7 @@ func NewBackupRestoreMailboxExclusionUnitsBulkAdditionJobsRequestBuilder(rawUrl func (m *BackupRestoreMailboxExclusionUnitsBulkAdditionJobsRequestBuilder) Count()(*BackupRestoreMailboxExclusionUnitsBulkAdditionJobsCountRequestBuilder) { return NewBackupRestoreMailboxExclusionUnitsBulkAdditionJobsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get mailboxExclusionUnitsBulkAdditionJobs from solutions +// Get the list of bulk addition jobs for mailbox exclusion units in the tenant. // returns a MailboxExclusionUnitsBulkAdditionJobCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *BackupRestoreMailboxExclusionUnitsBulkAdditionJobsRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreMailboxExclusionUnitsBulkAdditionJobsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxExclusionUnitsBulkAdditionJobCollectionResponseable, error) { @@ -119,7 +119,7 @@ func (m *BackupRestoreMailboxExclusionUnitsBulkAdditionJobsRequestBuilder) Post( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxExclusionUnitsBulkAdditionJobable), nil } -// ToGetRequestInformation get mailboxExclusionUnitsBulkAdditionJobs from solutions +// ToGetRequestInformation the list of bulk addition jobs for mailbox exclusion units in the tenant. // returns a *RequestInformation when successful func (m *BackupRestoreMailboxExclusionUnitsBulkAdditionJobsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreMailboxExclusionUnitsBulkAdditionJobsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/backup_restore_mailbox_exclusion_units_mailbox_exclusion_unit_item_request_builder.go b/solutions/backup_restore_mailbox_exclusion_units_mailbox_exclusion_unit_item_request_builder.go index 2589f5e7bca..2bc5caa5f8c 100644 --- a/solutions/backup_restore_mailbox_exclusion_units_mailbox_exclusion_unit_item_request_builder.go +++ b/solutions/backup_restore_mailbox_exclusion_units_mailbox_exclusion_unit_item_request_builder.go @@ -21,7 +21,7 @@ type BackupRestoreMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilderDel // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// BackupRestoreMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilderGetQueryParameters get mailboxExclusionUnits from solutions +// BackupRestoreMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilderGetQueryParameters the list of mailbox exclusion units in the tenant. type BackupRestoreMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -73,7 +73,7 @@ func (m *BackupRestoreMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilde } return nil } -// Get get mailboxExclusionUnits from solutions +// Get the list of mailbox exclusion units in the tenant. // returns a MailboxExclusionUnitable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *BackupRestoreMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxExclusionUnitable, error) { @@ -124,7 +124,7 @@ func (m *BackupRestoreMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get mailboxExclusionUnits from solutions +// ToGetRequestInformation the list of mailbox exclusion units in the tenant. // returns a *RequestInformation when successful func (m *BackupRestoreMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreMailboxExclusionUnitsMailboxExclusionUnitItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/backup_restore_mailbox_exclusion_units_request_builder.go b/solutions/backup_restore_mailbox_exclusion_units_request_builder.go index 181f27e7c17..8a82f0730b2 100644 --- a/solutions/backup_restore_mailbox_exclusion_units_request_builder.go +++ b/solutions/backup_restore_mailbox_exclusion_units_request_builder.go @@ -14,7 +14,7 @@ import ( type BackupRestoreMailboxExclusionUnitsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreMailboxExclusionUnitsRequestBuilderGetQueryParameters get mailboxExclusionUnits from solutions +// BackupRestoreMailboxExclusionUnitsRequestBuilderGetQueryParameters the list of mailbox exclusion units in the tenant. type BackupRestoreMailboxExclusionUnitsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,7 +79,7 @@ func NewBackupRestoreMailboxExclusionUnitsRequestBuilder(rawUrl string, requestA func (m *BackupRestoreMailboxExclusionUnitsRequestBuilder) Count()(*BackupRestoreMailboxExclusionUnitsCountRequestBuilder) { return NewBackupRestoreMailboxExclusionUnitsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get mailboxExclusionUnits from solutions +// Get the list of mailbox exclusion units in the tenant. // returns a MailboxExclusionUnitCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *BackupRestoreMailboxExclusionUnitsRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreMailboxExclusionUnitsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxExclusionUnitCollectionResponseable, error) { @@ -119,7 +119,7 @@ func (m *BackupRestoreMailboxExclusionUnitsRequestBuilder) Post(ctx context.Cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxExclusionUnitable), nil } -// ToGetRequestInformation get mailboxExclusionUnits from solutions +// ToGetRequestInformation the list of mailbox exclusion units in the tenant. // returns a *RequestInformation when successful func (m *BackupRestoreMailboxExclusionUnitsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreMailboxExclusionUnitsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/backup_restore_one_drive_for_business_protection_policies_item_drive_exclusion_units_request_builder.go b/solutions/backup_restore_one_drive_for_business_protection_policies_item_drive_exclusion_units_request_builder.go index cda02e81004..1f5f97891a7 100644 --- a/solutions/backup_restore_one_drive_for_business_protection_policies_item_drive_exclusion_units_request_builder.go +++ b/solutions/backup_restore_one_drive_for_business_protection_policies_item_drive_exclusion_units_request_builder.go @@ -14,7 +14,7 @@ import ( type BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsRequestBuilderGetQueryParameters get driveExclusionUnits from solutions +// BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsRequestBuilderGetQueryParameters get a list of drive exclusion units associated with a OneDrive for work or school protection policy. type BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -72,9 +72,12 @@ func NewBackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnit func (m *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsRequestBuilder) Count()(*BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsCountRequestBuilder) { return NewBackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get driveExclusionUnits from solutions +// Get get a list of drive exclusion units associated with a OneDrive for work or school protection policy. // returns a DriveExclusionUnitCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/onedriveforbusinessprotectionpolicy-list-driveexclusionunits?view=graph-rest-beta func (m *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveExclusionUnitCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -92,7 +95,7 @@ func (m *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUni } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveExclusionUnitCollectionResponseable), nil } -// ToGetRequestInformation get driveExclusionUnits from solutions +// ToGetRequestInformation get a list of drive exclusion units associated with a OneDrive for work or school protection policy. // returns a *RequestInformation when successful func (m *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreOneDriveForBusinessProtectionPoliciesItemDriveExclusionUnitsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/backup_restore_share_point_protection_policies_item_site_exclusion_units_request_builder.go b/solutions/backup_restore_share_point_protection_policies_item_site_exclusion_units_request_builder.go index 66e1435fb05..c662467cf13 100644 --- a/solutions/backup_restore_share_point_protection_policies_item_site_exclusion_units_request_builder.go +++ b/solutions/backup_restore_share_point_protection_policies_item_site_exclusion_units_request_builder.go @@ -14,7 +14,7 @@ import ( type BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsRequestBuilderGetQueryParameters get siteExclusionUnits from solutions +// BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsRequestBuilderGetQueryParameters get a list of site exclusion units associated with a SharePoint protection policy. type BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -72,9 +72,12 @@ func NewBackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsRequestBu func (m *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsRequestBuilder) Count()(*BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsCountRequestBuilder) { return NewBackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get siteExclusionUnits from solutions +// Get get a list of site exclusion units associated with a SharePoint protection policy. // returns a SiteExclusionUnitCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/sharepointprotectionpolicy-list-siteexclusionunits?view=graph-rest-beta func (m *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteExclusionUnitCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -92,7 +95,7 @@ func (m *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsRequestB } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteExclusionUnitCollectionResponseable), nil } -// ToGetRequestInformation get siteExclusionUnits from solutions +// ToGetRequestInformation get a list of site exclusion units associated with a SharePoint protection policy. // returns a *RequestInformation when successful func (m *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreSharePointProtectionPoliciesItemSiteExclusionUnitsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/backup_restore_site_exclusion_units_bulk_addition_jobs_request_builder.go b/solutions/backup_restore_site_exclusion_units_bulk_addition_jobs_request_builder.go index afa46c2d107..455299f00a0 100644 --- a/solutions/backup_restore_site_exclusion_units_bulk_addition_jobs_request_builder.go +++ b/solutions/backup_restore_site_exclusion_units_bulk_addition_jobs_request_builder.go @@ -14,7 +14,7 @@ import ( type BackupRestoreSiteExclusionUnitsBulkAdditionJobsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreSiteExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters get siteExclusionUnitsBulkAdditionJobs from solutions +// BackupRestoreSiteExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters the list of bulk addition jobs for site exclusion units in the tenant. type BackupRestoreSiteExclusionUnitsBulkAdditionJobsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,7 +79,7 @@ func NewBackupRestoreSiteExclusionUnitsBulkAdditionJobsRequestBuilder(rawUrl str func (m *BackupRestoreSiteExclusionUnitsBulkAdditionJobsRequestBuilder) Count()(*BackupRestoreSiteExclusionUnitsBulkAdditionJobsCountRequestBuilder) { return NewBackupRestoreSiteExclusionUnitsBulkAdditionJobsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get siteExclusionUnitsBulkAdditionJobs from solutions +// Get the list of bulk addition jobs for site exclusion units in the tenant. // returns a SiteExclusionUnitsBulkAdditionJobCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *BackupRestoreSiteExclusionUnitsBulkAdditionJobsRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreSiteExclusionUnitsBulkAdditionJobsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteExclusionUnitsBulkAdditionJobCollectionResponseable, error) { @@ -119,7 +119,7 @@ func (m *BackupRestoreSiteExclusionUnitsBulkAdditionJobsRequestBuilder) Post(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteExclusionUnitsBulkAdditionJobable), nil } -// ToGetRequestInformation get siteExclusionUnitsBulkAdditionJobs from solutions +// ToGetRequestInformation the list of bulk addition jobs for site exclusion units in the tenant. // returns a *RequestInformation when successful func (m *BackupRestoreSiteExclusionUnitsBulkAdditionJobsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreSiteExclusionUnitsBulkAdditionJobsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/backup_restore_site_exclusion_units_request_builder.go b/solutions/backup_restore_site_exclusion_units_request_builder.go index 9733625172b..ae589f0829c 100644 --- a/solutions/backup_restore_site_exclusion_units_request_builder.go +++ b/solutions/backup_restore_site_exclusion_units_request_builder.go @@ -14,7 +14,7 @@ import ( type BackupRestoreSiteExclusionUnitsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreSiteExclusionUnitsRequestBuilderGetQueryParameters get siteExclusionUnits from solutions +// BackupRestoreSiteExclusionUnitsRequestBuilderGetQueryParameters the list of site exclusion units in the tenant. type BackupRestoreSiteExclusionUnitsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,7 +79,7 @@ func NewBackupRestoreSiteExclusionUnitsRequestBuilder(rawUrl string, requestAdap func (m *BackupRestoreSiteExclusionUnitsRequestBuilder) Count()(*BackupRestoreSiteExclusionUnitsCountRequestBuilder) { return NewBackupRestoreSiteExclusionUnitsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get siteExclusionUnits from solutions +// Get the list of site exclusion units in the tenant. // returns a SiteExclusionUnitCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *BackupRestoreSiteExclusionUnitsRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreSiteExclusionUnitsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteExclusionUnitCollectionResponseable, error) { @@ -119,7 +119,7 @@ func (m *BackupRestoreSiteExclusionUnitsRequestBuilder) Post(ctx context.Context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteExclusionUnitable), nil } -// ToGetRequestInformation get siteExclusionUnits from solutions +// ToGetRequestInformation the list of site exclusion units in the tenant. // returns a *RequestInformation when successful func (m *BackupRestoreSiteExclusionUnitsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreSiteExclusionUnitsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/backup_restore_site_exclusion_units_site_exclusion_unit_item_request_builder.go b/solutions/backup_restore_site_exclusion_units_site_exclusion_unit_item_request_builder.go index e6dd340ee1d..d920cfffbf5 100644 --- a/solutions/backup_restore_site_exclusion_units_site_exclusion_unit_item_request_builder.go +++ b/solutions/backup_restore_site_exclusion_units_site_exclusion_unit_item_request_builder.go @@ -21,7 +21,7 @@ type BackupRestoreSiteExclusionUnitsSiteExclusionUnitItemRequestBuilderDeleteReq // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// BackupRestoreSiteExclusionUnitsSiteExclusionUnitItemRequestBuilderGetQueryParameters get siteExclusionUnits from solutions +// BackupRestoreSiteExclusionUnitsSiteExclusionUnitItemRequestBuilderGetQueryParameters the list of site exclusion units in the tenant. type BackupRestoreSiteExclusionUnitsSiteExclusionUnitItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -73,7 +73,7 @@ func (m *BackupRestoreSiteExclusionUnitsSiteExclusionUnitItemRequestBuilder) Del } return nil } -// Get get siteExclusionUnits from solutions +// Get the list of site exclusion units in the tenant. // returns a SiteExclusionUnitable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *BackupRestoreSiteExclusionUnitsSiteExclusionUnitItemRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreSiteExclusionUnitsSiteExclusionUnitItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteExclusionUnitable, error) { @@ -124,7 +124,7 @@ func (m *BackupRestoreSiteExclusionUnitsSiteExclusionUnitItemRequestBuilder) ToD requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get siteExclusionUnits from solutions +// ToGetRequestInformation the list of site exclusion units in the tenant. // returns a *RequestInformation when successful func (m *BackupRestoreSiteExclusionUnitsSiteExclusionUnitItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreSiteExclusionUnitsSiteExclusionUnitItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/booking_businesses_item_calendar_view_booking_appointment_item_request_builder.go b/solutions/booking_businesses_item_calendar_view_booking_appointment_item_request_builder.go index 112ee03ad09..b505c3f2228 100644 --- a/solutions/booking_businesses_item_calendar_view_booking_appointment_item_request_builder.go +++ b/solutions/booking_businesses_item_calendar_view_booking_appointment_item_request_builder.go @@ -56,7 +56,7 @@ func (m *BookingBusinessesItemCalendarViewBookingAppointmentItemRequestBuilder) // NewBookingBusinessesItemCalendarViewBookingAppointmentItemRequestBuilderInternal instantiates a new BookingBusinessesItemCalendarViewBookingAppointmentItemRequestBuilder and sets the default values. func NewBookingBusinessesItemCalendarViewBookingAppointmentItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*BookingBusinessesItemCalendarViewBookingAppointmentItemRequestBuilder) { m := &BookingBusinessesItemCalendarViewBookingAppointmentItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/calendarView/{bookingAppointment%2Did}?end={end}&start={start}{&%24expand,%24select}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/calendarView/{bookingAppointment%2Did}{?%24expand,%24select}", pathParameters), } return m } @@ -125,7 +125,7 @@ func (m *BookingBusinessesItemCalendarViewBookingAppointmentItemRequestBuilder) // ToDeleteRequestInformation delete navigation property calendarView for solutions // returns a *RequestInformation when successful func (m *BookingBusinessesItemCalendarViewBookingAppointmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *BookingBusinessesItemCalendarViewBookingAppointmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/calendarView/{bookingAppointment%2Did}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) @@ -136,7 +136,7 @@ func (m *BookingBusinessesItemCalendarViewBookingAppointmentItemRequestBuilder) // ToGetRequestInformation the set of appointments of this business in a specified date range. Read-only. Nullable. // returns a *RequestInformation when successful func (m *BookingBusinessesItemCalendarViewBookingAppointmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BookingBusinessesItemCalendarViewBookingAppointmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/calendarView/{bookingAppointment%2Did}?end={end}&start={start}{&%24expand,%24select}", m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -150,7 +150,7 @@ func (m *BookingBusinessesItemCalendarViewBookingAppointmentItemRequestBuilder) // ToPatchRequestInformation update the navigation property calendarView in solutions // returns a *RequestInformation when successful func (m *BookingBusinessesItemCalendarViewBookingAppointmentItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BookingAppointmentable, requestConfiguration *BookingBusinessesItemCalendarViewBookingAppointmentItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/calendarView/{bookingAppointment%2Did}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/solutions/booking_businesses_item_calendar_view_request_builder.go b/solutions/booking_businesses_item_calendar_view_request_builder.go index 2966018e486..301e7c560c6 100644 --- a/solutions/booking_businesses_item_calendar_view_request_builder.go +++ b/solutions/booking_businesses_item_calendar_view_request_builder.go @@ -68,7 +68,7 @@ func (m *BookingBusinessesItemCalendarViewRequestBuilder) ByBookingAppointmentId // NewBookingBusinessesItemCalendarViewRequestBuilderInternal instantiates a new BookingBusinessesItemCalendarViewRequestBuilder and sets the default values. func NewBookingBusinessesItemCalendarViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*BookingBusinessesItemCalendarViewRequestBuilder) { m := &BookingBusinessesItemCalendarViewRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/calendarView?end={end}&start={start}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/calendarView{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), } return m } @@ -126,7 +126,7 @@ func (m *BookingBusinessesItemCalendarViewRequestBuilder) Post(ctx context.Conte // ToGetRequestInformation the set of appointments of this business in a specified date range. Read-only. Nullable. // returns a *RequestInformation when successful func (m *BookingBusinessesItemCalendarViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BookingBusinessesItemCalendarViewRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/calendarView?end={end}&start={start}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -140,7 +140,7 @@ func (m *BookingBusinessesItemCalendarViewRequestBuilder) ToGetRequestInformatio // ToPostRequestInformation create new navigation property to calendarView for solutions // returns a *RequestInformation when successful func (m *BookingBusinessesItemCalendarViewRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BookingAppointmentable, requestConfiguration *BookingBusinessesItemCalendarViewRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/solutions/bookingBusinesses/{bookingBusiness%2Did}/calendarView", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/solutions/e0931eae9e7fdd43020be6a0ab86e767e1bc24a614f1a8e7f9af0275394928e6.go b/solutions/e0931eae9e7fdd43020be6a0ab86e767e1bc24a614f1a8e7f9af0275394928e6.go index 859cbbc8b69..b068db40f9e 100644 --- a/solutions/e0931eae9e7fdd43020be6a0ab86e767e1bc24a614f1a8e7f9af0275394928e6.go +++ b/solutions/e0931eae9e7fdd43020be6a0ab86e767e1bc24a614f1a8e7f9af0275394928e6.go @@ -21,7 +21,7 @@ type BackupRestoreDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAddi // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// BackupRestoreDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters get driveExclusionUnitsBulkAdditionJobs from solutions +// BackupRestoreDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters the list of bulk addition jobs for drive exclusion units in the tenant. type BackupRestoreDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -73,7 +73,7 @@ func (m *BackupRestoreDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulk } return nil } -// Get get driveExclusionUnitsBulkAdditionJobs from solutions +// Get the list of bulk addition jobs for drive exclusion units in the tenant. // returns a DriveExclusionUnitsBulkAdditionJobable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *BackupRestoreDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveExclusionUnitsBulkAdditionJobable, error) { @@ -124,7 +124,7 @@ func (m *BackupRestoreDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulk requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get driveExclusionUnitsBulkAdditionJobs from solutions +// ToGetRequestInformation the list of bulk addition jobs for drive exclusion units in the tenant. // returns a *RequestInformation when successful func (m *BackupRestoreDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreDriveExclusionUnitsBulkAdditionJobsDriveExclusionUnitsBulkAdditionJobItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/fc35fcd20ed11636b1963a92b443e55931077346505dc9ad7cbca500e88daa8d.go b/solutions/fc35fcd20ed11636b1963a92b443e55931077346505dc9ad7cbca500e88daa8d.go index 6dad101ae8d..49d45b96a0b 100644 --- a/solutions/fc35fcd20ed11636b1963a92b443e55931077346505dc9ad7cbca500e88daa8d.go +++ b/solutions/fc35fcd20ed11636b1963a92b443e55931077346505dc9ad7cbca500e88daa8d.go @@ -14,7 +14,7 @@ import ( type BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters get mailboxExclusionUnitsBulkAdditionJobs from solutions +// BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters get a mailbox exclusion units bulk addition job associated with an Exchange protection policy. type BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -43,9 +43,12 @@ func NewBackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAddi urlParams["request-raw-url"] = rawUrl return NewBackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get get mailboxExclusionUnitsBulkAdditionJobs from solutions +// Get get a mailbox exclusion units bulk addition job associated with an Exchange protection policy. // returns a MailboxExclusionUnitsBulkAdditionJobable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/mailboxexclusionunitsbulkadditionjob-get?view=graph-rest-beta func (m *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxExclusionUnitsBulkAdditionJobable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -63,7 +66,7 @@ func (m *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdd } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxExclusionUnitsBulkAdditionJobable), nil } -// ToGetRequestInformation get mailboxExclusionUnitsBulkAdditionJobs from solutions +// ToGetRequestInformation get a mailbox exclusion units bulk addition job associated with an Exchange protection policy. // returns a *RequestInformation when successful func (m *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreExchangeProtectionPoliciesItemMailboxExclusionUnitsBulkAdditionJobsMailboxExclusionUnitsBulkAdditionJobItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/migrations_cross_tenant_migration_jobs_item_migrate_request_builder.go b/solutions/migrations_cross_tenant_migration_jobs_item_migrate_request_builder.go index 31d8281329d..c2eb2146252 100644 --- a/solutions/migrations_cross_tenant_migration_jobs_item_migrate_request_builder.go +++ b/solutions/migrations_cross_tenant_migration_jobs_item_migrate_request_builder.go @@ -34,10 +34,13 @@ func NewMigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder(rawUrl strin urlParams["request-raw-url"] = rawUrl return NewMigrationsCrossTenantMigrationJobsItemMigrateRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action migrate +// Post migrate a cross-tenant migration job asynchronously. The job must pass validation before migration can start. After a job is created by using the Create crossTenantMigrationJob method and validated by using the validate action, call this action to start the migration of user data from the source tenant to the target tenant for the specified workloads. Validation results expire after seven days; if expired, revalidate the job before you call the migrate API. This action is asynchronous. After you call the migrate API, poll the Get crossTenantMigrationJob endpoint to check for a terminal status of completed, completedWithErrors, or failed. // Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 // returns a CrossTenantMigrationJobable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/crosstenantmigrationjob-migrate?view=graph-rest-beta func (m *MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder) Post(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); if err != nil { @@ -55,7 +58,7 @@ func (m *MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder) Post(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable), nil } -// ToPostRequestInformation invoke action migrate +// ToPostRequestInformation migrate a cross-tenant migration job asynchronously. The job must pass validation before migration can start. After a job is created by using the Create crossTenantMigrationJob method and validated by using the validate action, call this action to start the migration of user data from the source tenant to the target tenant for the specified workloads. Validation results expire after seven days; if expired, revalidate the job before you call the migrate API. This action is asynchronous. After you call the migrate API, poll the Get crossTenantMigrationJob endpoint to check for a terminal status of completed, completedWithErrors, or failed. // Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 // returns a *RequestInformation when successful func (m *MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsItemMigrateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/solutions/migrations_cross_tenant_migration_jobs_item_validate_request_builder.go b/solutions/migrations_cross_tenant_migration_jobs_item_validate_request_builder.go index 2e1eb7d1c90..6dba0523bab 100644 --- a/solutions/migrations_cross_tenant_migration_jobs_item_validate_request_builder.go +++ b/solutions/migrations_cross_tenant_migration_jobs_item_validate_request_builder.go @@ -34,10 +34,13 @@ func NewMigrationsCrossTenantMigrationJobsItemValidateRequestBuilder(rawUrl stri urlParams["request-raw-url"] = rawUrl return NewMigrationsCrossTenantMigrationJobsItemValidateRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action validate +// Post validate the configuration of a cross-tenant migration job asynchronously. This action doesn't migrate any content, but goes through validation for the specified workloads to find any errors or misconfigurations that affect an actual migration job. The job must be in a submitted or validateFailed status before you can call this action. This action is asynchronous. After you call the validate API, poll the Get crossTenantMigrationJob endpoint to check for a terminal status of validatePassed or validateFailed. // Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 // returns a CrossTenantMigrationJobable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/crosstenantmigrationjob-validate?view=graph-rest-beta func (m *MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder) Post(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsItemValidateRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); if err != nil { @@ -55,7 +58,7 @@ func (m *MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder) Post(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable), nil } -// ToPostRequestInformation invoke action validate +// ToPostRequestInformation validate the configuration of a cross-tenant migration job asynchronously. This action doesn't migrate any content, but goes through validation for the specified workloads to find any errors or misconfigurations that affect an actual migration job. The job must be in a submitted or validateFailed status before you can call this action. This action is asynchronous. After you call the validate API, poll the Get crossTenantMigrationJob endpoint to check for a terminal status of validatePassed or validateFailed. // Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 // returns a *RequestInformation when successful func (m *MigrationsCrossTenantMigrationJobsItemValidateRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsItemValidateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/solutions/migrations_cross_tenant_migration_jobs_request_builder.go b/solutions/migrations_cross_tenant_migration_jobs_request_builder.go index 1ccfdb860fe..57e87c95d15 100644 --- a/solutions/migrations_cross_tenant_migration_jobs_request_builder.go +++ b/solutions/migrations_cross_tenant_migration_jobs_request_builder.go @@ -104,7 +104,7 @@ func (m *MigrationsCrossTenantMigrationJobsRequestBuilder) Get(ctx context.Conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobCollectionResponseable), nil } -// Post create a new crossTenantMigrationJob. +// Post create a new crossTenantMigrationJob. A job defines the migration batch but doesn't start validation or migration. After you create the job, call validate to verify tenant and resource configuration, then call migrate to begin the actual migration. // Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 // returns a CrossTenantMigrationJobable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -143,7 +143,7 @@ func (m *MigrationsCrossTenantMigrationJobsRequestBuilder) ToGetRequestInformati requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new crossTenantMigrationJob. +// ToPostRequestInformation create a new crossTenantMigrationJob. A job defines the migration batch but doesn't start validation or migration. After you create the job, call validate to verify tenant and resource configuration, then call migrate to begin the actual migration. // Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 // returns a *RequestInformation when successful func (m *MigrationsCrossTenantMigrationJobsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable, requestConfiguration *MigrationsCrossTenantMigrationJobsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/solutions/migrations_cross_tenant_migration_jobs_validate_request_builder.go b/solutions/migrations_cross_tenant_migration_jobs_validate_request_builder.go index acec6e6da4d..579c4b473b8 100644 --- a/solutions/migrations_cross_tenant_migration_jobs_validate_request_builder.go +++ b/solutions/migrations_cross_tenant_migration_jobs_validate_request_builder.go @@ -34,13 +34,10 @@ func NewMigrationsCrossTenantMigrationJobsValidateRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewMigrationsCrossTenantMigrationJobsValidateRequestBuilderInternal(urlParams, requestAdapter) } -// Post validate the configuration of a crossTenantMigrationJob. This function doesn't migrate any content, but goes through validation for the specified workloads to find any errors or misconfigurations that would affect an actual migration job. +// Post invoke action validate // Deprecated: as of 2025-07/PrivatePreview:CrossTenantContentMigrationAPI on 2025-07-09 and will be removed 2026-07-09 // returns a CrossTenantMigrationJobable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code -// [Find more info here] -// -// [Find more info here]: https://learn.microsoft.com/graph/api/crosstenantmigrationjob-validate?view=graph-rest-beta func (m *MigrationsCrossTenantMigrationJobsValidateRequestBuilder) Post(ctx context.Context, body MigrationsCrossTenantMigrationJobsValidatePostRequestBodyable, requestConfiguration *MigrationsCrossTenantMigrationJobsValidateRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -58,7 +55,7 @@ func (m *MigrationsCrossTenantMigrationJobsValidateRequestBuilder) Post(ctx cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable), nil } -// ToPostRequestInformation validate the configuration of a crossTenantMigrationJob. This function doesn't migrate any content, but goes through validation for the specified workloads to find any errors or misconfigurations that would affect an actual migration job. +// ToPostRequestInformation invoke action validate // Deprecated: as of 2025-07/PrivatePreview:CrossTenantContentMigrationAPI on 2025-07-09 and will be removed 2026-07-09 // returns a *RequestInformation when successful func (m *MigrationsCrossTenantMigrationJobsValidateRequestBuilder) ToPostRequestInformation(ctx context.Context, body MigrationsCrossTenantMigrationJobsValidatePostRequestBodyable, requestConfiguration *MigrationsCrossTenantMigrationJobsValidateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/solutions/migrations_cross_tenant_migration_jobs_with_display_name_migrate_request_builder.go b/solutions/migrations_cross_tenant_migration_jobs_with_display_name_migrate_request_builder.go index 31fecf0b5ce..5be70692bf3 100644 --- a/solutions/migrations_cross_tenant_migration_jobs_with_display_name_migrate_request_builder.go +++ b/solutions/migrations_cross_tenant_migration_jobs_with_display_name_migrate_request_builder.go @@ -34,10 +34,13 @@ func NewMigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder(r urlParams["request-raw-url"] = rawUrl return NewMigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action migrate +// Post migrate a cross-tenant migration job asynchronously. The job must pass validation before migration can start. After a job is created by using the Create crossTenantMigrationJob method and validated by using the validate action, call this action to start the migration of user data from the source tenant to the target tenant for the specified workloads. Validation results expire after seven days; if expired, revalidate the job before you call the migrate API. This action is asynchronous. After you call the migrate API, poll the Get crossTenantMigrationJob endpoint to check for a terminal status of completed, completedWithErrors, or failed. // Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 // returns a CrossTenantMigrationJobable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/crosstenantmigrationjob-migrate?view=graph-rest-beta func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder) Post(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); if err != nil { @@ -55,7 +58,7 @@ func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable), nil } -// ToPostRequestInformation invoke action migrate +// ToPostRequestInformation migrate a cross-tenant migration job asynchronously. The job must pass validation before migration can start. After a job is created by using the Create crossTenantMigrationJob method and validated by using the validate action, call this action to start the migration of user data from the source tenant to the target tenant for the specified workloads. Validation results expire after seven days; if expired, revalidate the job before you call the migrate API. This action is asynchronous. After you call the migrate API, poll the Get crossTenantMigrationJob endpoint to check for a terminal status of completed, completedWithErrors, or failed. // Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 // returns a *RequestInformation when successful func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsWithDisplayNameMigrateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/solutions/migrations_cross_tenant_migration_jobs_with_display_name_validate_request_builder.go b/solutions/migrations_cross_tenant_migration_jobs_with_display_name_validate_request_builder.go index d7d6f53cc88..f8cdd30aa8f 100644 --- a/solutions/migrations_cross_tenant_migration_jobs_with_display_name_validate_request_builder.go +++ b/solutions/migrations_cross_tenant_migration_jobs_with_display_name_validate_request_builder.go @@ -34,10 +34,13 @@ func NewMigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder( urlParams["request-raw-url"] = rawUrl return NewMigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action validate +// Post validate the configuration of a cross-tenant migration job asynchronously. This action doesn't migrate any content, but goes through validation for the specified workloads to find any errors or misconfigurations that affect an actual migration job. The job must be in a submitted or validateFailed status before you can call this action. This action is asynchronous. After you call the validate API, poll the Get crossTenantMigrationJob endpoint to check for a terminal status of validatePassed or validateFailed. // Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 // returns a CrossTenantMigrationJobable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/crosstenantmigrationjob-validate?view=graph-rest-beta func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder) Post(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); if err != nil { @@ -55,7 +58,7 @@ func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CrossTenantMigrationJobable), nil } -// ToPostRequestInformation invoke action validate +// ToPostRequestInformation validate the configuration of a cross-tenant migration job asynchronously. This action doesn't migrate any content, but goes through validation for the specified workloads to find any errors or misconfigurations that affect an actual migration job. The job must be in a submitted or validateFailed status before you can call this action. This action is asynchronous. After you call the validate API, poll the Get crossTenantMigrationJob endpoint to check for a terminal status of validatePassed or validateFailed. // Deprecated: as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 // returns a *RequestInformation when successful func (m *MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *MigrationsCrossTenantMigrationJobsWithDisplayNameValidateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/solutions/virtual_events_townhalls_item_registration_configuration_request_builder.go b/solutions/virtual_events_townhalls_item_registration_configuration_request_builder.go index aae4bdbab85..4510742f461 100644 --- a/solutions/virtual_events_townhalls_item_registration_configuration_request_builder.go +++ b/solutions/virtual_events_townhalls_item_registration_configuration_request_builder.go @@ -21,7 +21,7 @@ type VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderDeleteRequ // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderGetQueryParameters get registrationConfiguration from solutions +// VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderGetQueryParameters read the properties and relationships of a virtualEventTownhallRegistrationConfiguration object. type VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -73,9 +73,12 @@ func (m *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) Dele } return nil } -// Get get registrationConfiguration from solutions +// Get read the properties and relationships of a virtualEventTownhallRegistrationConfiguration object. // returns a VirtualEventTownhallRegistrationConfigurationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/virtualeventtownhallregistrationconfiguration-get?view=graph-rest-beta func (m *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventTownhallRegistrationConfigurationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -129,7 +132,7 @@ func (m *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) ToDe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get registrationConfiguration from solutions +// ToGetRequestInformation read the properties and relationships of a virtualEventTownhallRegistrationConfiguration object. // returns a *RequestInformation when successful func (m *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationConfigurationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/virtual_events_townhalls_item_registrations_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_request_builder.go index 6b119047a38..44a248be7da 100644 --- a/solutions/virtual_events_townhalls_item_registrations_request_builder.go +++ b/solutions/virtual_events_townhalls_item_registrations_request_builder.go @@ -14,7 +14,7 @@ import ( type VirtualEventsTownhallsItemRegistrationsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsTownhallsItemRegistrationsRequestBuilderGetQueryParameters get registrations from solutions +// VirtualEventsTownhallsItemRegistrationsRequestBuilderGetQueryParameters registration records of the town hall. type VirtualEventsTownhallsItemRegistrationsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,7 +79,7 @@ func NewVirtualEventsTownhallsItemRegistrationsRequestBuilder(rawUrl string, req func (m *VirtualEventsTownhallsItemRegistrationsRequestBuilder) Count()(*VirtualEventsTownhallsItemRegistrationsCountRequestBuilder) { return NewVirtualEventsTownhallsItemRegistrationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get registrations from solutions +// Get registration records of the town hall. // returns a VirtualEventRegistrationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *VirtualEventsTownhallsItemRegistrationsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationCollectionResponseable, error) { @@ -119,7 +119,7 @@ func (m *VirtualEventsTownhallsItemRegistrationsRequestBuilder) Post(ctx context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil } -// ToGetRequestInformation get registrations from solutions +// ToGetRequestInformation registration records of the town hall. // returns a *RequestInformation when successful func (m *VirtualEventsTownhallsItemRegistrationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/virtual_events_townhalls_item_registrations_virtual_event_registration_item_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_virtual_event_registration_item_request_builder.go index ae60b0b5b7f..8a0d353119b 100644 --- a/solutions/virtual_events_townhalls_item_registrations_virtual_event_registration_item_request_builder.go +++ b/solutions/virtual_events_townhalls_item_registrations_virtual_event_registration_item_request_builder.go @@ -21,7 +21,7 @@ type VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestB // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetQueryParameters get registrations from solutions +// VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetQueryParameters registration records of the town hall. type VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -78,7 +78,7 @@ func (m *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequ } return nil } -// Get get registrations from solutions +// Get registration records of the town hall. // returns a VirtualEventRegistrationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { @@ -139,7 +139,7 @@ func (m *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequ requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get registrations from solutions +// ToGetRequestInformation registration records of the town hall. // returns a *RequestInformation when successful func (m *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsVirtualEventRegistrationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/virtual_events_townhalls_item_registrations_with_email_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_with_email_request_builder.go index 9c415589a2d..2d2c17912f8 100644 --- a/solutions/virtual_events_townhalls_item_registrations_with_email_request_builder.go +++ b/solutions/virtual_events_townhalls_item_registrations_with_email_request_builder.go @@ -21,7 +21,7 @@ type VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderDeleteRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderGetQueryParameters get registrations from solutions +// VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderGetQueryParameters registration records of the town hall. type VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -81,7 +81,7 @@ func (m *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) Delete( } return nil } -// Get get registrations from solutions +// Get registration records of the town hall. // returns a VirtualEventRegistrationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { @@ -132,7 +132,7 @@ func (m *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) ToDelet requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get registrations from solutions +// ToGetRequestInformation registration records of the town hall. // returns a *RequestInformation when successful func (m *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/virtual_events_townhalls_item_registrations_with_user_id_request_builder.go b/solutions/virtual_events_townhalls_item_registrations_with_user_id_request_builder.go index ebb1895d531..97f2c97aa41 100644 --- a/solutions/virtual_events_townhalls_item_registrations_with_user_id_request_builder.go +++ b/solutions/virtual_events_townhalls_item_registrations_with_user_id_request_builder.go @@ -21,7 +21,7 @@ type VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderDeleteReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters get registrations from solutions +// VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters registration records of the town hall. type VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -81,7 +81,7 @@ func (m *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) Delete } return nil } -// Get get registrations from solutions +// Get registration records of the town hall. // returns a VirtualEventRegistrationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, error) { @@ -132,7 +132,7 @@ func (m *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) ToDele requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get registrations from solutions +// ToGetRequestInformation registration records of the town hall. // returns a *RequestInformation when successful func (m *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/virtual_events_webinars_item_registration_configuration_questions_request_builder.go b/solutions/virtual_events_webinars_item_registration_configuration_questions_request_builder.go index e9fab85e713..b1ff43e7d32 100644 --- a/solutions/virtual_events_webinars_item_registration_configuration_questions_request_builder.go +++ b/solutions/virtual_events_webinars_item_registration_configuration_questions_request_builder.go @@ -14,7 +14,7 @@ import ( type VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderGetQueryParameters get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. +// VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderGetQueryParameters get a list of all registration questions for a webinar or town hall. The list can include either predefined registration questions or custom registration questions. type VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,7 +79,7 @@ func NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilde func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder) Count()(*VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder) { return NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. +// Get get a list of all registration questions for a webinar or town hall. The list can include either predefined registration questions or custom registration questions. // returns a VirtualEventRegistrationQuestionBaseCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,7 +102,7 @@ func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuild } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseCollectionResponseable), nil } -// Post create a registration question for a webinar. You can create either a predefined registration question or a custom registration question. +// Post create a registration question for a webinar or town hall. You can create either a predefined registration question or a custom registration question. // returns a VirtualEventRegistrationQuestionBaseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -125,7 +125,7 @@ func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuild } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseable), nil } -// ToGetRequestInformation get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. +// ToGetRequestInformation get a list of all registration questions for a webinar or town hall. The list can include either predefined registration questions or custom registration questions. // returns a *RequestInformation when successful func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,7 +139,7 @@ func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuild requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a registration question for a webinar. You can create either a predefined registration question or a custom registration question. +// ToPostRequestInformation create a registration question for a webinar or town hall. You can create either a predefined registration question or a custom registration question. // returns a *RequestInformation when successful func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationQuestionBaseable, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/virtual_events_webinars_item_registrations_item_cancel_request_builder.go b/solutions/virtual_events_webinars_item_registrations_item_cancel_request_builder.go index 10c2ba01da7..64693085fcd 100644 --- a/solutions/virtual_events_webinars_item_registrations_item_cancel_request_builder.go +++ b/solutions/virtual_events_webinars_item_registrations_item_cancel_request_builder.go @@ -33,7 +33,7 @@ func NewVirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewVirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilderInternal(urlParams, requestAdapter) } -// Post cancel a registrant's registration record for a webinar. +// Post cancel a registrant's registration record for a webinar or town hall. // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder) Post(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -49,7 +49,7 @@ func (m *VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder) Post(ct } return nil } -// ToPostRequestInformation cancel a registrant's registration record for a webinar. +// ToPostRequestInformation cancel a registrant's registration record for a webinar or town hall. // returns a *RequestInformation when successful func (m *VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/virtual_events_webinars_item_registrations_item_sessions_request_builder.go b/solutions/virtual_events_webinars_item_registrations_item_sessions_request_builder.go index 552968a145c..02edf4785d7 100644 --- a/solutions/virtual_events_webinars_item_registrations_item_sessions_request_builder.go +++ b/solutions/virtual_events_webinars_item_registrations_item_sessions_request_builder.go @@ -14,7 +14,7 @@ import ( type VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetQueryParameters get a list of sessions that a registrant registered for in a webinar. +// VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetQueryParameters get a list of sessions that a registrant registered for in a webinar or town hall. type VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -72,7 +72,7 @@ func NewVirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder(rawUrl func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) Count()(*VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder) { return NewVirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a list of sessions that a registrant registered for in a webinar. +// Get get a list of sessions that a registrant registered for in a webinar or town hall. // returns a VirtualEventSessionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -95,7 +95,7 @@ func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) Get(c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventSessionCollectionResponseable), nil } -// ToGetRequestInformation get a list of sessions that a registrant registered for in a webinar. +// ToGetRequestInformation get a list of sessions that a registrant registered for in a webinar or town hall. // returns a *RequestInformation when successful func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/virtual_events_webinars_item_registrations_request_builder.go b/solutions/virtual_events_webinars_item_registrations_request_builder.go index 394de1dc2b1..eb030245960 100644 --- a/solutions/virtual_events_webinars_item_registrations_request_builder.go +++ b/solutions/virtual_events_webinars_item_registrations_request_builder.go @@ -14,7 +14,7 @@ import ( type VirtualEventsWebinarsItemRegistrationsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEventsWebinarsItemRegistrationsRequestBuilderGetQueryParameters get a list of all registration records of a webinar. +// VirtualEventsWebinarsItemRegistrationsRequestBuilderGetQueryParameters get a list of all registration records of a webinar or town hall. type VirtualEventsWebinarsItemRegistrationsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,7 +79,7 @@ func NewVirtualEventsWebinarsItemRegistrationsRequestBuilder(rawUrl string, requ func (m *VirtualEventsWebinarsItemRegistrationsRequestBuilder) Count()(*VirtualEventsWebinarsItemRegistrationsCountRequestBuilder) { return NewVirtualEventsWebinarsItemRegistrationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a list of all registration records of a webinar. +// Get get a list of all registration records of a webinar or town hall. // returns a VirtualEventRegistrationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,7 +102,7 @@ func (m *VirtualEventsWebinarsItemRegistrationsRequestBuilder) Get(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationCollectionResponseable), nil } -// Post create a registration record for a registrant of a webinar. This method registers the person for the webinar. +// Post create a registration record for a registrant of a webinar or town hall. This method registers the person for the webinar or town hall. // returns a VirtualEventRegistrationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -125,7 +125,7 @@ func (m *VirtualEventsWebinarsItemRegistrationsRequestBuilder) Post(ctx context. } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable), nil } -// ToGetRequestInformation get a list of all registration records of a webinar. +// ToGetRequestInformation get a list of all registration records of a webinar or town hall. // returns a *RequestInformation when successful func (m *VirtualEventsWebinarsItemRegistrationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,7 +139,7 @@ func (m *VirtualEventsWebinarsItemRegistrationsRequestBuilder) ToGetRequestInfor requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a registration record for a registrant of a webinar. This method registers the person for the webinar. +// ToPostRequestInformation create a registration record for a registrant of a webinar or town hall. This method registers the person for the webinar or town hall. // returns a *RequestInformation when successful func (m *VirtualEventsWebinarsItemRegistrationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventRegistrationable, requestConfiguration *VirtualEventsWebinarsItemRegistrationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/virtual_events_webinars_item_registrations_with_email_cancel_request_builder.go b/solutions/virtual_events_webinars_item_registrations_with_email_cancel_request_builder.go index 2bd55bd8873..cfd0c0ff5ff 100644 --- a/solutions/virtual_events_webinars_item_registrations_with_email_cancel_request_builder.go +++ b/solutions/virtual_events_webinars_item_registrations_with_email_cancel_request_builder.go @@ -33,7 +33,7 @@ func NewVirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder(rawU urlParams["request-raw-url"] = rawUrl return NewVirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilderInternal(urlParams, requestAdapter) } -// Post cancel a registrant's registration record for a webinar. +// Post cancel a registrant's registration record for a webinar or town hall. // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder) Post(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -49,7 +49,7 @@ func (m *VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder) Po } return nil } -// ToPostRequestInformation cancel a registrant's registration record for a webinar. +// ToPostRequestInformation cancel a registrant's registration record for a webinar or town hall. // returns a *RequestInformation when successful func (m *VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/virtual_events_webinars_item_registrations_with_user_id_cancel_request_builder.go b/solutions/virtual_events_webinars_item_registrations_with_user_id_cancel_request_builder.go index 340f2c4d248..2b917362f47 100644 --- a/solutions/virtual_events_webinars_item_registrations_with_user_id_cancel_request_builder.go +++ b/solutions/virtual_events_webinars_item_registrations_with_user_id_cancel_request_builder.go @@ -33,7 +33,7 @@ func NewVirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder(raw urlParams["request-raw-url"] = rawUrl return NewVirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilderInternal(urlParams, requestAdapter) } -// Post cancel a registrant's registration record for a webinar. +// Post cancel a registrant's registration record for a webinar or town hall. // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder) Post(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -49,7 +49,7 @@ func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder) P } return nil } -// ToPostRequestInformation cancel a registrant's registration record for a webinar. +// ToPostRequestInformation cancel a registrant's registration record for a webinar or town hall. // returns a *RequestInformation when successful func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teams/3fae68e1ef76588d6b9d6e65c526405ff0fd5c98b8eb068a23fe538e9244cae7.go b/teams/3fae68e1ef76588d6b9d6e65c526405ff0fd5c98b8eb068a23fe538e9244cae7.go index 80dd971226a..f003dfb4bc0 100644 --- a/teams/3fae68e1ef76588d6b9d6e65c526405ff0fd5c98b8eb068a23fe538e9244cae7.go +++ b/teams/3fae68e1ef76588d6b9d6e65c526405ff0fd5c98b8eb068a23fe538e9244cae7.go @@ -18,6 +18,8 @@ func NewItemPrimaryChannelDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrin } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemPrimaryChannelDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teams/aeca5988750364c3dde6b21629d1752d9619c5a36b19353e8a335bd823ac94e9.go b/teams/aeca5988750364c3dde6b21629d1752d9619c5a36b19353e8a335bd823ac94e9.go index 1b323cbdf70..e89ad6c5efc 100644 --- a/teams/aeca5988750364c3dde6b21629d1752d9619c5a36b19353e8a335bd823ac94e9.go +++ b/teams/aeca5988750364c3dde6b21629d1752d9619c5a36b19353e8a335bd823ac94e9.go @@ -18,6 +18,8 @@ func NewItemChannelsItemDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrinci } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemChannelsItemDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teams/item_archive_post_request_body.go b/teams/item_archive_post_request_body.go index 88ad9977245..dce79e7b22e 100644 --- a/teams/item_archive_post_request_body.go +++ b/teams/item_archive_post_request_body.go @@ -18,6 +18,8 @@ func NewItemArchivePostRequestBody()(*ItemArchivePostRequestBody) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + shouldSetSpoSiteReadOnlyForMembersValue := false + m.SetShouldSetSpoSiteReadOnlyForMembers(&shouldSetSpoSiteReadOnlyForMembersValue) return m } // CreateItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teams/item_channels_channel_item_request_builder.go b/teams/item_channels_channel_item_request_builder.go index 0362fa1a2f6..5185571f4bf 100644 --- a/teams/item_channels_channel_item_request_builder.go +++ b/teams/item_channels_channel_item_request_builder.go @@ -129,6 +129,11 @@ func (m *ItemChannelsChannelItemRequestBuilder) Get(ctx context.Context, request } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Channelable), nil } +// JoinedUsers provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *ItemChannelsItemJoinedUsersRequestBuilder when successful +func (m *ItemChannelsChannelItemRequestBuilder) JoinedUsers()(*ItemChannelsItemJoinedUsersRequestBuilder) { + return NewItemChannelsItemJoinedUsersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Members provides operations to manage the members property of the microsoft.graph.channel entity. // returns a *ItemChannelsItemMembersRequestBuilder when successful func (m *ItemChannelsChannelItemRequestBuilder) Members()(*ItemChannelsItemMembersRequestBuilder) { diff --git a/teams/item_channels_item_archive_post_request_body.go b/teams/item_channels_item_archive_post_request_body.go index 728627780fa..78401dfb324 100644 --- a/teams/item_channels_item_archive_post_request_body.go +++ b/teams/item_channels_item_archive_post_request_body.go @@ -18,6 +18,8 @@ func NewItemChannelsItemArchivePostRequestBody()(*ItemChannelsItemArchivePostReq } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + shouldSetSpoSiteReadOnlyForMembersValue := false + m.SetShouldSetSpoSiteReadOnlyForMembers(&shouldSetSpoSiteReadOnlyForMembersValue) return m } // CreateItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teams/item_channels_item_joined_users_add_post_request_body.go b/teams/item_channels_item_joined_users_add_post_request_body.go new file mode 100644 index 00000000000..6f3850a0c49 --- /dev/null +++ b/teams/item_channels_item_joined_users_add_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemChannelsItemJoinedUsersAddPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemChannelsItemJoinedUsersAddPostRequestBody instantiates a new ItemChannelsItemJoinedUsersAddPostRequestBody and sets the default values. +func NewItemChannelsItemJoinedUsersAddPostRequestBody()(*ItemChannelsItemJoinedUsersAddPostRequestBody) { + m := &ItemChannelsItemJoinedUsersAddPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemChannelsItemJoinedUsersAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemChannelsItemJoinedUsersAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemChannelsItemJoinedUsersAddPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemChannelsItemJoinedUsersAddPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemChannelsItemJoinedUsersAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemChannelsItemJoinedUsersAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *ItemChannelsItemJoinedUsersAddPostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemChannelsItemJoinedUsersAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemChannelsItemJoinedUsersAddPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemChannelsItemJoinedUsersAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *ItemChannelsItemJoinedUsersAddPostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type ItemChannelsItemJoinedUsersAddPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/teams/item_channels_item_joined_users_add_post_response.go b/teams/item_channels_item_joined_users_add_post_response.go new file mode 100644 index 00000000000..5db170d3930 --- /dev/null +++ b/teams/item_channels_item_joined_users_add_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemChannelsItemJoinedUsersAddPostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemChannelsItemJoinedUsersAddPostResponse instantiates a new ItemChannelsItemJoinedUsersAddPostResponse and sets the default values. +func NewItemChannelsItemJoinedUsersAddPostResponse()(*ItemChannelsItemJoinedUsersAddPostResponse) { + m := &ItemChannelsItemJoinedUsersAddPostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemChannelsItemJoinedUsersAddPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemChannelsItemJoinedUsersAddPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemChannelsItemJoinedUsersAddPostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemChannelsItemJoinedUsersAddPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *ItemChannelsItemJoinedUsersAddPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemChannelsItemJoinedUsersAddPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemChannelsItemJoinedUsersAddPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemChannelsItemJoinedUsersAddPostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/teams/item_channels_item_joined_users_add_request_builder.go b/teams/item_channels_item_joined_users_add_request_builder.go new file mode 100644 index 00000000000..3062465d453 --- /dev/null +++ b/teams/item_channels_item_joined_users_add_request_builder.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemChannelsItemJoinedUsersAddRequestBuilder provides operations to call the add method. +type ItemChannelsItemJoinedUsersAddRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemChannelsItemJoinedUsersAddRequestBuilderInternal instantiates a new ItemChannelsItemJoinedUsersAddRequestBuilder and sets the default values. +func NewItemChannelsItemJoinedUsersAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemJoinedUsersAddRequestBuilder) { + m := &ItemChannelsItemJoinedUsersAddRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/joinedUsers/add", pathParameters), + } + return m +} +// NewItemChannelsItemJoinedUsersAddRequestBuilder instantiates a new ItemChannelsItemJoinedUsersAddRequestBuilder and sets the default values. +func NewItemChannelsItemJoinedUsersAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemJoinedUsersAddRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsItemJoinedUsersAddRequestBuilderInternal(urlParams, requestAdapter) +} +// Post add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// Deprecated: This method is obsolete. Use PostAsAddPostResponse instead. +// returns a ItemChannelsItemJoinedUsersAddResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *ItemChannelsItemJoinedUsersAddRequestBuilder) Post(ctx context.Context, body ItemChannelsItemJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration)(ItemChannelsItemJoinedUsersAddResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemChannelsItemJoinedUsersAddResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemChannelsItemJoinedUsersAddResponseable), nil +} +// PostAsAddPostResponse add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a ItemChannelsItemJoinedUsersAddPostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *ItemChannelsItemJoinedUsersAddRequestBuilder) PostAsAddPostResponse(ctx context.Context, body ItemChannelsItemJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration)(ItemChannelsItemJoinedUsersAddPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemChannelsItemJoinedUsersAddPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemChannelsItemJoinedUsersAddPostResponseable), nil +} +// ToPostRequestInformation add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a *RequestInformation when successful +func (m *ItemChannelsItemJoinedUsersAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChannelsItemJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemChannelsItemJoinedUsersAddRequestBuilder when successful +func (m *ItemChannelsItemJoinedUsersAddRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsItemJoinedUsersAddRequestBuilder) { + return NewItemChannelsItemJoinedUsersAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_channels_item_joined_users_add_response.go b/teams/item_channels_item_joined_users_add_response.go new file mode 100644 index 00000000000..67b2085085a --- /dev/null +++ b/teams/item_channels_item_joined_users_add_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemChannelsItemJoinedUsersAddPostResponseable instead. +type ItemChannelsItemJoinedUsersAddResponse struct { + ItemChannelsItemJoinedUsersAddPostResponse +} +// NewItemChannelsItemJoinedUsersAddResponse instantiates a new ItemChannelsItemJoinedUsersAddResponse and sets the default values. +func NewItemChannelsItemJoinedUsersAddResponse()(*ItemChannelsItemJoinedUsersAddResponse) { + m := &ItemChannelsItemJoinedUsersAddResponse{ + ItemChannelsItemJoinedUsersAddPostResponse: *NewItemChannelsItemJoinedUsersAddPostResponse(), + } + return m +} +// CreateItemChannelsItemJoinedUsersAddResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemChannelsItemJoinedUsersAddResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemChannelsItemJoinedUsersAddResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemChannelsItemJoinedUsersAddPostResponseable instead. +type ItemChannelsItemJoinedUsersAddResponseable interface { + ItemChannelsItemJoinedUsersAddPostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/teams/item_channels_item_joined_users_conversation_member_item_request_builder.go b/teams/item_channels_item_joined_users_conversation_member_item_request_builder.go new file mode 100644 index 00000000000..436e29b2834 --- /dev/null +++ b/teams/item_channels_item_joined_users_conversation_member_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters get joinedUsers from teams +type ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters +} +// ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal instantiates a new ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + m := &ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/joinedUsers/{conversationMember%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder instantiates a new ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property joinedUsers for teams +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get joinedUsers from teams +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Patch update the navigation property joinedUsers in teams +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// ToDeleteRequestInformation delete navigation property joinedUsers for teams +// returns a *RequestInformation when successful +func (m *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get joinedUsers from teams +// returns a *RequestInformation when successful +func (m *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property joinedUsers in teams +// returns a *RequestInformation when successful +func (m *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + return NewItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_channels_item_joined_users_count_request_builder.go b/teams/item_channels_item_joined_users_count_request_builder.go new file mode 100644 index 00000000000..254b5e4a46d --- /dev/null +++ b/teams/item_channels_item_joined_users_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemChannelsItemJoinedUsersCountRequestBuilder provides operations to count the resources in the collection. +type ItemChannelsItemJoinedUsersCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsItemJoinedUsersCountRequestBuilderGetQueryParameters get the number of the resource +type ItemChannelsItemJoinedUsersCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemChannelsItemJoinedUsersCountRequestBuilderGetQueryParameters +} +// NewItemChannelsItemJoinedUsersCountRequestBuilderInternal instantiates a new ItemChannelsItemJoinedUsersCountRequestBuilder and sets the default values. +func NewItemChannelsItemJoinedUsersCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemJoinedUsersCountRequestBuilder) { + m := &ItemChannelsItemJoinedUsersCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/joinedUsers/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemChannelsItemJoinedUsersCountRequestBuilder instantiates a new ItemChannelsItemJoinedUsersCountRequestBuilder and sets the default values. +func NewItemChannelsItemJoinedUsersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemJoinedUsersCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsItemJoinedUsersCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChannelsItemJoinedUsersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemChannelsItemJoinedUsersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemChannelsItemJoinedUsersCountRequestBuilder when successful +func (m *ItemChannelsItemJoinedUsersCountRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsItemJoinedUsersCountRequestBuilder) { + return NewItemChannelsItemJoinedUsersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_channels_item_joined_users_remove_post_request_body.go b/teams/item_channels_item_joined_users_remove_post_request_body.go new file mode 100644 index 00000000000..05810db0164 --- /dev/null +++ b/teams/item_channels_item_joined_users_remove_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemChannelsItemJoinedUsersRemovePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemChannelsItemJoinedUsersRemovePostRequestBody instantiates a new ItemChannelsItemJoinedUsersRemovePostRequestBody and sets the default values. +func NewItemChannelsItemJoinedUsersRemovePostRequestBody()(*ItemChannelsItemJoinedUsersRemovePostRequestBody) { + m := &ItemChannelsItemJoinedUsersRemovePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemChannelsItemJoinedUsersRemovePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemChannelsItemJoinedUsersRemovePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemChannelsItemJoinedUsersRemovePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemChannelsItemJoinedUsersRemovePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemChannelsItemJoinedUsersRemovePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemChannelsItemJoinedUsersRemovePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *ItemChannelsItemJoinedUsersRemovePostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemChannelsItemJoinedUsersRemovePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemChannelsItemJoinedUsersRemovePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemChannelsItemJoinedUsersRemovePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *ItemChannelsItemJoinedUsersRemovePostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type ItemChannelsItemJoinedUsersRemovePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/teams/item_channels_item_joined_users_remove_post_response.go b/teams/item_channels_item_joined_users_remove_post_response.go new file mode 100644 index 00000000000..3f6e2ea7193 --- /dev/null +++ b/teams/item_channels_item_joined_users_remove_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemChannelsItemJoinedUsersRemovePostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemChannelsItemJoinedUsersRemovePostResponse instantiates a new ItemChannelsItemJoinedUsersRemovePostResponse and sets the default values. +func NewItemChannelsItemJoinedUsersRemovePostResponse()(*ItemChannelsItemJoinedUsersRemovePostResponse) { + m := &ItemChannelsItemJoinedUsersRemovePostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemChannelsItemJoinedUsersRemovePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemChannelsItemJoinedUsersRemovePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemChannelsItemJoinedUsersRemovePostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemChannelsItemJoinedUsersRemovePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *ItemChannelsItemJoinedUsersRemovePostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemChannelsItemJoinedUsersRemovePostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemChannelsItemJoinedUsersRemovePostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemChannelsItemJoinedUsersRemovePostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/teams/item_channels_item_joined_users_remove_request_builder.go b/teams/item_channels_item_joined_users_remove_request_builder.go new file mode 100644 index 00000000000..b644c3245b4 --- /dev/null +++ b/teams/item_channels_item_joined_users_remove_request_builder.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemChannelsItemJoinedUsersRemoveRequestBuilder provides operations to call the remove method. +type ItemChannelsItemJoinedUsersRemoveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemChannelsItemJoinedUsersRemoveRequestBuilderInternal instantiates a new ItemChannelsItemJoinedUsersRemoveRequestBuilder and sets the default values. +func NewItemChannelsItemJoinedUsersRemoveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemJoinedUsersRemoveRequestBuilder) { + m := &ItemChannelsItemJoinedUsersRemoveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/joinedUsers/remove", pathParameters), + } + return m +} +// NewItemChannelsItemJoinedUsersRemoveRequestBuilder instantiates a new ItemChannelsItemJoinedUsersRemoveRequestBuilder and sets the default values. +func NewItemChannelsItemJoinedUsersRemoveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemJoinedUsersRemoveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsItemJoinedUsersRemoveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// Deprecated: This method is obsolete. Use PostAsRemovePostResponse instead. +// returns a ItemChannelsItemJoinedUsersRemoveResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *ItemChannelsItemJoinedUsersRemoveRequestBuilder) Post(ctx context.Context, body ItemChannelsItemJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(ItemChannelsItemJoinedUsersRemoveResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemChannelsItemJoinedUsersRemoveResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemChannelsItemJoinedUsersRemoveResponseable), nil +} +// PostAsRemovePostResponse remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a ItemChannelsItemJoinedUsersRemovePostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *ItemChannelsItemJoinedUsersRemoveRequestBuilder) PostAsRemovePostResponse(ctx context.Context, body ItemChannelsItemJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(ItemChannelsItemJoinedUsersRemovePostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemChannelsItemJoinedUsersRemovePostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemChannelsItemJoinedUsersRemovePostResponseable), nil +} +// ToPostRequestInformation remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a *RequestInformation when successful +func (m *ItemChannelsItemJoinedUsersRemoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChannelsItemJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemChannelsItemJoinedUsersRemoveRequestBuilder when successful +func (m *ItemChannelsItemJoinedUsersRemoveRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsItemJoinedUsersRemoveRequestBuilder) { + return NewItemChannelsItemJoinedUsersRemoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_channels_item_joined_users_remove_response.go b/teams/item_channels_item_joined_users_remove_response.go new file mode 100644 index 00000000000..f24f3d0ec84 --- /dev/null +++ b/teams/item_channels_item_joined_users_remove_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemChannelsItemJoinedUsersRemovePostResponseable instead. +type ItemChannelsItemJoinedUsersRemoveResponse struct { + ItemChannelsItemJoinedUsersRemovePostResponse +} +// NewItemChannelsItemJoinedUsersRemoveResponse instantiates a new ItemChannelsItemJoinedUsersRemoveResponse and sets the default values. +func NewItemChannelsItemJoinedUsersRemoveResponse()(*ItemChannelsItemJoinedUsersRemoveResponse) { + m := &ItemChannelsItemJoinedUsersRemoveResponse{ + ItemChannelsItemJoinedUsersRemovePostResponse: *NewItemChannelsItemJoinedUsersRemovePostResponse(), + } + return m +} +// CreateItemChannelsItemJoinedUsersRemoveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemChannelsItemJoinedUsersRemoveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemChannelsItemJoinedUsersRemoveResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemChannelsItemJoinedUsersRemovePostResponseable instead. +type ItemChannelsItemJoinedUsersRemoveResponseable interface { + ItemChannelsItemJoinedUsersRemovePostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/teams/item_channels_item_joined_users_request_builder.go b/teams/item_channels_item_joined_users_request_builder.go new file mode 100644 index 00000000000..5e5416902e9 --- /dev/null +++ b/teams/item_channels_item_joined_users_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemChannelsItemJoinedUsersRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type ItemChannelsItemJoinedUsersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsItemJoinedUsersRequestBuilderGetQueryParameters get joinedUsers from teams +type ItemChannelsItemJoinedUsersRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemChannelsItemJoinedUsersRequestBuilderGetQueryParameters +} +// ItemChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Add provides operations to call the add method. +// returns a *ItemChannelsItemJoinedUsersAddRequestBuilder when successful +func (m *ItemChannelsItemJoinedUsersRequestBuilder) Add()(*ItemChannelsItemJoinedUsersAddRequestBuilder) { + return NewItemChannelsItemJoinedUsersAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ByConversationMemberId provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *ItemChannelsItemJoinedUsersRequestBuilder) ByConversationMemberId(conversationMemberId string)(*ItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if conversationMemberId != "" { + urlTplParams["conversationMember%2Did"] = conversationMemberId + } + return NewItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemChannelsItemJoinedUsersRequestBuilderInternal instantiates a new ItemChannelsItemJoinedUsersRequestBuilder and sets the default values. +func NewItemChannelsItemJoinedUsersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemJoinedUsersRequestBuilder) { + m := &ItemChannelsItemJoinedUsersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/joinedUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemChannelsItemJoinedUsersRequestBuilder instantiates a new ItemChannelsItemJoinedUsersRequestBuilder and sets the default values. +func NewItemChannelsItemJoinedUsersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemJoinedUsersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsItemJoinedUsersRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemChannelsItemJoinedUsersCountRequestBuilder when successful +func (m *ItemChannelsItemJoinedUsersRequestBuilder) Count()(*ItemChannelsItemJoinedUsersCountRequestBuilder) { + return NewItemChannelsItemJoinedUsersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get joinedUsers from teams +// returns a ConversationMemberCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChannelsItemJoinedUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable), nil +} +// Post create new navigation property to joinedUsers for teams +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChannelsItemJoinedUsersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Remove provides operations to call the remove method. +// returns a *ItemChannelsItemJoinedUsersRemoveRequestBuilder when successful +func (m *ItemChannelsItemJoinedUsersRequestBuilder) Remove()(*ItemChannelsItemJoinedUsersRemoveRequestBuilder) { + return NewItemChannelsItemJoinedUsersRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation get joinedUsers from teams +// returns a *RequestInformation when successful +func (m *ItemChannelsItemJoinedUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to joinedUsers for teams +// returns a *RequestInformation when successful +func (m *ItemChannelsItemJoinedUsersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemChannelsItemJoinedUsersRequestBuilder when successful +func (m *ItemChannelsItemJoinedUsersRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsItemJoinedUsersRequestBuilder) { + return NewItemChannelsItemJoinedUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_channels_item_planner_plans_item_history_items_count_request_builder.go b/teams/item_channels_item_planner_plans_item_history_items_count_request_builder.go new file mode 100644 index 00000000000..dd9e44ec482 --- /dev/null +++ b/teams/item_channels_item_planner_plans_item_history_items_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder provides operations to count the resources in the collection. +type ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters get the number of the resource +type ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters +} +// NewItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal instantiates a new ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + m := &ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/planner/plans/{plannerPlan%2Did}/historyItems/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder instantiates a new ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_channels_item_planner_plans_item_history_items_planner_history_item_item_request_builder.go b/teams/item_channels_item_planner_plans_item_history_items_planner_history_item_item_request_builder.go new file mode 100644 index 00000000000..0ad37221a4e --- /dev/null +++ b/teams/item_channels_item_planner_plans_item_history_items_planner_history_item_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters get historyItems from teams +type ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters +} +// ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal instantiates a new ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + m := &ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/planner/plans/{plannerPlan%2Did}/historyItems/{plannerHistoryItem%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder instantiates a new ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property historyItems for teams +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get historyItems from teams +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// Patch update the navigation property historyItems in teams +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToDeleteRequestInformation delete navigation property historyItems for teams +// returns a *RequestInformation when successful +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get historyItems from teams +// returns a *RequestInformation when successful +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property historyItems in teams +// returns a *RequestInformation when successful +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + return NewItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_channels_item_planner_plans_item_history_items_request_builder.go b/teams/item_channels_item_planner_plans_item_history_items_request_builder.go new file mode 100644 index 00000000000..ca5724840b9 --- /dev/null +++ b/teams/item_channels_item_planner_plans_item_history_items_request_builder.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters get historyItems from teams +type ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters +} +// ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByPlannerHistoryItemId provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) ByPlannerHistoryItemId(plannerHistoryItemId string)(*ItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if plannerHistoryItemId != "" { + urlTplParams["plannerHistoryItem%2Did"] = plannerHistoryItemId + } + return NewItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal instantiates a new ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + m := &ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/planner/plans/{plannerPlan%2Did}/historyItems{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder instantiates a new ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) Count()(*ItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get historyItems from teams +// returns a PlannerHistoryItemCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable), nil +} +// Post create new navigation property to historyItems for teams +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToGetRequestInformation get historyItems from teams +// returns a *RequestInformation when successful +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to historyItems for teams +// returns a *RequestInformation when successful +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_channels_item_planner_plans_planner_plan_item_request_builder.go b/teams/item_channels_item_planner_plans_planner_plan_item_request_builder.go index f021efbfd60..693bb74d895 100644 --- a/teams/item_channels_item_planner_plans_planner_plan_item_request_builder.go +++ b/teams/item_channels_item_planner_plans_planner_plan_item_request_builder.go @@ -113,6 +113,11 @@ func (m *ItemChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) Get(ctx cont func (m *ItemChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) GetUsageRights()(*ItemChannelsItemPlannerPlansItemGetUsageRightsRequestBuilder) { return NewItemChannelsItemPlannerPlansItemGetUsageRightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// HistoryItems provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) HistoryItems()(*ItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MoveToContainer provides operations to call the moveToContainer method. // returns a *ItemChannelsItemPlannerPlansItemMoveToContainerRequestBuilder when successful func (m *ItemChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) MoveToContainer()(*ItemChannelsItemPlannerPlansItemMoveToContainerRequestBuilder) { diff --git a/teams/item_channels_item_shared_with_teams_item_allowed_members_request_builder.go b/teams/item_channels_item_shared_with_teams_item_allowed_members_request_builder.go index 50f06d5fd52..5de68c0444b 100644 --- a/teams/item_channels_item_shared_with_teams_item_allowed_members_request_builder.go +++ b/teams/item_channels_item_shared_with_teams_item_allowed_members_request_builder.go @@ -14,7 +14,7 @@ import ( type ItemChannelsItemSharedWithTeamsItemAllowedMembersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemChannelsItemSharedWithTeamsItemAllowedMembersRequestBuilderGetQueryParameters get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant +// ItemChannelsItemSharedWithTeamsItemAllowedMembersRequestBuilderGetQueryParameters get the list of conversationMembers who can access a shared channel. This method doesn't return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant type ItemChannelsItemSharedWithTeamsItemAllowedMembersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -72,7 +72,7 @@ func NewItemChannelsItemSharedWithTeamsItemAllowedMembersRequestBuilder(rawUrl s func (m *ItemChannelsItemSharedWithTeamsItemAllowedMembersRequestBuilder) Count()(*ItemChannelsItemSharedWithTeamsItemAllowedMembersCountRequestBuilder) { return NewItemChannelsItemSharedWithTeamsItemAllowedMembersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant +// Get get the list of conversationMembers who can access a shared channel. This method doesn't return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant // returns a ConversationMemberCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -95,7 +95,7 @@ func (m *ItemChannelsItemSharedWithTeamsItemAllowedMembersRequestBuilder) Get(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable), nil } -// ToGetRequestInformation get the list of conversationMembers who can access a shared channel. This method does not return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant +// ToGetRequestInformation get the list of conversationMembers who can access a shared channel. This method doesn't return the following conversationMembers from the team:- Users with Guest role- Users who are externally authenticated in the tenant // returns a *RequestInformation when successful func (m *ItemChannelsItemSharedWithTeamsItemAllowedMembersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemSharedWithTeamsItemAllowedMembersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_primary_channel_archive_post_request_body.go b/teams/item_primary_channel_archive_post_request_body.go index a0cbab31b9b..a1a126657dd 100644 --- a/teams/item_primary_channel_archive_post_request_body.go +++ b/teams/item_primary_channel_archive_post_request_body.go @@ -18,6 +18,8 @@ func NewItemPrimaryChannelArchivePostRequestBody()(*ItemPrimaryChannelArchivePos } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + shouldSetSpoSiteReadOnlyForMembersValue := false + m.SetShouldSetSpoSiteReadOnlyForMembers(&shouldSetSpoSiteReadOnlyForMembersValue) return m } // CreateItemPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teams/item_primary_channel_joined_users_add_post_request_body.go b/teams/item_primary_channel_joined_users_add_post_request_body.go new file mode 100644 index 00000000000..52b74c571d8 --- /dev/null +++ b/teams/item_primary_channel_joined_users_add_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemPrimaryChannelJoinedUsersAddPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemPrimaryChannelJoinedUsersAddPostRequestBody instantiates a new ItemPrimaryChannelJoinedUsersAddPostRequestBody and sets the default values. +func NewItemPrimaryChannelJoinedUsersAddPostRequestBody()(*ItemPrimaryChannelJoinedUsersAddPostRequestBody) { + m := &ItemPrimaryChannelJoinedUsersAddPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemPrimaryChannelJoinedUsersAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemPrimaryChannelJoinedUsersAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPrimaryChannelJoinedUsersAddPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemPrimaryChannelJoinedUsersAddPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemPrimaryChannelJoinedUsersAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemPrimaryChannelJoinedUsersAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *ItemPrimaryChannelJoinedUsersAddPostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemPrimaryChannelJoinedUsersAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPrimaryChannelJoinedUsersAddPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemPrimaryChannelJoinedUsersAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *ItemPrimaryChannelJoinedUsersAddPostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type ItemPrimaryChannelJoinedUsersAddPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/teams/item_primary_channel_joined_users_add_post_response.go b/teams/item_primary_channel_joined_users_add_post_response.go new file mode 100644 index 00000000000..9e7907884ee --- /dev/null +++ b/teams/item_primary_channel_joined_users_add_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemPrimaryChannelJoinedUsersAddPostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemPrimaryChannelJoinedUsersAddPostResponse instantiates a new ItemPrimaryChannelJoinedUsersAddPostResponse and sets the default values. +func NewItemPrimaryChannelJoinedUsersAddPostResponse()(*ItemPrimaryChannelJoinedUsersAddPostResponse) { + m := &ItemPrimaryChannelJoinedUsersAddPostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemPrimaryChannelJoinedUsersAddPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemPrimaryChannelJoinedUsersAddPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPrimaryChannelJoinedUsersAddPostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemPrimaryChannelJoinedUsersAddPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *ItemPrimaryChannelJoinedUsersAddPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemPrimaryChannelJoinedUsersAddPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemPrimaryChannelJoinedUsersAddPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemPrimaryChannelJoinedUsersAddPostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/teams/item_primary_channel_joined_users_add_request_builder.go b/teams/item_primary_channel_joined_users_add_request_builder.go new file mode 100644 index 00000000000..520dde6d9a9 --- /dev/null +++ b/teams/item_primary_channel_joined_users_add_request_builder.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPrimaryChannelJoinedUsersAddRequestBuilder provides operations to call the add method. +type ItemPrimaryChannelJoinedUsersAddRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPrimaryChannelJoinedUsersAddRequestBuilderInternal instantiates a new ItemPrimaryChannelJoinedUsersAddRequestBuilder and sets the default values. +func NewItemPrimaryChannelJoinedUsersAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelJoinedUsersAddRequestBuilder) { + m := &ItemPrimaryChannelJoinedUsersAddRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/joinedUsers/add", pathParameters), + } + return m +} +// NewItemPrimaryChannelJoinedUsersAddRequestBuilder instantiates a new ItemPrimaryChannelJoinedUsersAddRequestBuilder and sets the default values. +func NewItemPrimaryChannelJoinedUsersAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelJoinedUsersAddRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPrimaryChannelJoinedUsersAddRequestBuilderInternal(urlParams, requestAdapter) +} +// Post add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// Deprecated: This method is obsolete. Use PostAsAddPostResponse instead. +// returns a ItemPrimaryChannelJoinedUsersAddResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *ItemPrimaryChannelJoinedUsersAddRequestBuilder) Post(ctx context.Context, body ItemPrimaryChannelJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration)(ItemPrimaryChannelJoinedUsersAddResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemPrimaryChannelJoinedUsersAddResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemPrimaryChannelJoinedUsersAddResponseable), nil +} +// PostAsAddPostResponse add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a ItemPrimaryChannelJoinedUsersAddPostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *ItemPrimaryChannelJoinedUsersAddRequestBuilder) PostAsAddPostResponse(ctx context.Context, body ItemPrimaryChannelJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration)(ItemPrimaryChannelJoinedUsersAddPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemPrimaryChannelJoinedUsersAddPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemPrimaryChannelJoinedUsersAddPostResponseable), nil +} +// ToPostRequestInformation add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelJoinedUsersAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPrimaryChannelJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPrimaryChannelJoinedUsersAddRequestBuilder when successful +func (m *ItemPrimaryChannelJoinedUsersAddRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelJoinedUsersAddRequestBuilder) { + return NewItemPrimaryChannelJoinedUsersAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_primary_channel_joined_users_add_response.go b/teams/item_primary_channel_joined_users_add_response.go new file mode 100644 index 00000000000..f898179e4d0 --- /dev/null +++ b/teams/item_primary_channel_joined_users_add_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemPrimaryChannelJoinedUsersAddPostResponseable instead. +type ItemPrimaryChannelJoinedUsersAddResponse struct { + ItemPrimaryChannelJoinedUsersAddPostResponse +} +// NewItemPrimaryChannelJoinedUsersAddResponse instantiates a new ItemPrimaryChannelJoinedUsersAddResponse and sets the default values. +func NewItemPrimaryChannelJoinedUsersAddResponse()(*ItemPrimaryChannelJoinedUsersAddResponse) { + m := &ItemPrimaryChannelJoinedUsersAddResponse{ + ItemPrimaryChannelJoinedUsersAddPostResponse: *NewItemPrimaryChannelJoinedUsersAddPostResponse(), + } + return m +} +// CreateItemPrimaryChannelJoinedUsersAddResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemPrimaryChannelJoinedUsersAddResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPrimaryChannelJoinedUsersAddResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemPrimaryChannelJoinedUsersAddPostResponseable instead. +type ItemPrimaryChannelJoinedUsersAddResponseable interface { + ItemPrimaryChannelJoinedUsersAddPostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/teams/item_primary_channel_joined_users_conversation_member_item_request_builder.go b/teams/item_primary_channel_joined_users_conversation_member_item_request_builder.go new file mode 100644 index 00000000000..e14eaf15ab7 --- /dev/null +++ b/teams/item_primary_channel_joined_users_conversation_member_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters get joinedUsers from teams +type ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters +} +// ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal instantiates a new ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + m := &ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/joinedUsers/{conversationMember%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder instantiates a new ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property joinedUsers for teams +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get joinedUsers from teams +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Patch update the navigation property joinedUsers in teams +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// ToDeleteRequestInformation delete navigation property joinedUsers for teams +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get joinedUsers from teams +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property joinedUsers in teams +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + return NewItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_primary_channel_joined_users_count_request_builder.go b/teams/item_primary_channel_joined_users_count_request_builder.go new file mode 100644 index 00000000000..b4cc69b8e56 --- /dev/null +++ b/teams/item_primary_channel_joined_users_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPrimaryChannelJoinedUsersCountRequestBuilder provides operations to count the resources in the collection. +type ItemPrimaryChannelJoinedUsersCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPrimaryChannelJoinedUsersCountRequestBuilderGetQueryParameters get the number of the resource +type ItemPrimaryChannelJoinedUsersCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemPrimaryChannelJoinedUsersCountRequestBuilderGetQueryParameters +} +// NewItemPrimaryChannelJoinedUsersCountRequestBuilderInternal instantiates a new ItemPrimaryChannelJoinedUsersCountRequestBuilder and sets the default values. +func NewItemPrimaryChannelJoinedUsersCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelJoinedUsersCountRequestBuilder) { + m := &ItemPrimaryChannelJoinedUsersCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/joinedUsers/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemPrimaryChannelJoinedUsersCountRequestBuilder instantiates a new ItemPrimaryChannelJoinedUsersCountRequestBuilder and sets the default values. +func NewItemPrimaryChannelJoinedUsersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelJoinedUsersCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPrimaryChannelJoinedUsersCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPrimaryChannelJoinedUsersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelJoinedUsersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPrimaryChannelJoinedUsersCountRequestBuilder when successful +func (m *ItemPrimaryChannelJoinedUsersCountRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelJoinedUsersCountRequestBuilder) { + return NewItemPrimaryChannelJoinedUsersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_primary_channel_joined_users_remove_post_request_body.go b/teams/item_primary_channel_joined_users_remove_post_request_body.go new file mode 100644 index 00000000000..c6007040a76 --- /dev/null +++ b/teams/item_primary_channel_joined_users_remove_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemPrimaryChannelJoinedUsersRemovePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemPrimaryChannelJoinedUsersRemovePostRequestBody instantiates a new ItemPrimaryChannelJoinedUsersRemovePostRequestBody and sets the default values. +func NewItemPrimaryChannelJoinedUsersRemovePostRequestBody()(*ItemPrimaryChannelJoinedUsersRemovePostRequestBody) { + m := &ItemPrimaryChannelJoinedUsersRemovePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemPrimaryChannelJoinedUsersRemovePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemPrimaryChannelJoinedUsersRemovePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPrimaryChannelJoinedUsersRemovePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemPrimaryChannelJoinedUsersRemovePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemPrimaryChannelJoinedUsersRemovePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemPrimaryChannelJoinedUsersRemovePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *ItemPrimaryChannelJoinedUsersRemovePostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemPrimaryChannelJoinedUsersRemovePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPrimaryChannelJoinedUsersRemovePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemPrimaryChannelJoinedUsersRemovePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *ItemPrimaryChannelJoinedUsersRemovePostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type ItemPrimaryChannelJoinedUsersRemovePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/teams/item_primary_channel_joined_users_remove_post_response.go b/teams/item_primary_channel_joined_users_remove_post_response.go new file mode 100644 index 00000000000..41634fbe28b --- /dev/null +++ b/teams/item_primary_channel_joined_users_remove_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemPrimaryChannelJoinedUsersRemovePostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemPrimaryChannelJoinedUsersRemovePostResponse instantiates a new ItemPrimaryChannelJoinedUsersRemovePostResponse and sets the default values. +func NewItemPrimaryChannelJoinedUsersRemovePostResponse()(*ItemPrimaryChannelJoinedUsersRemovePostResponse) { + m := &ItemPrimaryChannelJoinedUsersRemovePostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemPrimaryChannelJoinedUsersRemovePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemPrimaryChannelJoinedUsersRemovePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPrimaryChannelJoinedUsersRemovePostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemPrimaryChannelJoinedUsersRemovePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *ItemPrimaryChannelJoinedUsersRemovePostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemPrimaryChannelJoinedUsersRemovePostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemPrimaryChannelJoinedUsersRemovePostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemPrimaryChannelJoinedUsersRemovePostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/teams/item_primary_channel_joined_users_remove_request_builder.go b/teams/item_primary_channel_joined_users_remove_request_builder.go new file mode 100644 index 00000000000..8e0c08ae92b --- /dev/null +++ b/teams/item_primary_channel_joined_users_remove_request_builder.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPrimaryChannelJoinedUsersRemoveRequestBuilder provides operations to call the remove method. +type ItemPrimaryChannelJoinedUsersRemoveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPrimaryChannelJoinedUsersRemoveRequestBuilderInternal instantiates a new ItemPrimaryChannelJoinedUsersRemoveRequestBuilder and sets the default values. +func NewItemPrimaryChannelJoinedUsersRemoveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelJoinedUsersRemoveRequestBuilder) { + m := &ItemPrimaryChannelJoinedUsersRemoveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/joinedUsers/remove", pathParameters), + } + return m +} +// NewItemPrimaryChannelJoinedUsersRemoveRequestBuilder instantiates a new ItemPrimaryChannelJoinedUsersRemoveRequestBuilder and sets the default values. +func NewItemPrimaryChannelJoinedUsersRemoveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelJoinedUsersRemoveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPrimaryChannelJoinedUsersRemoveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// Deprecated: This method is obsolete. Use PostAsRemovePostResponse instead. +// returns a ItemPrimaryChannelJoinedUsersRemoveResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *ItemPrimaryChannelJoinedUsersRemoveRequestBuilder) Post(ctx context.Context, body ItemPrimaryChannelJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(ItemPrimaryChannelJoinedUsersRemoveResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemPrimaryChannelJoinedUsersRemoveResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemPrimaryChannelJoinedUsersRemoveResponseable), nil +} +// PostAsRemovePostResponse remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a ItemPrimaryChannelJoinedUsersRemovePostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *ItemPrimaryChannelJoinedUsersRemoveRequestBuilder) PostAsRemovePostResponse(ctx context.Context, body ItemPrimaryChannelJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(ItemPrimaryChannelJoinedUsersRemovePostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemPrimaryChannelJoinedUsersRemovePostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemPrimaryChannelJoinedUsersRemovePostResponseable), nil +} +// ToPostRequestInformation remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelJoinedUsersRemoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPrimaryChannelJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPrimaryChannelJoinedUsersRemoveRequestBuilder when successful +func (m *ItemPrimaryChannelJoinedUsersRemoveRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelJoinedUsersRemoveRequestBuilder) { + return NewItemPrimaryChannelJoinedUsersRemoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_primary_channel_joined_users_remove_response.go b/teams/item_primary_channel_joined_users_remove_response.go new file mode 100644 index 00000000000..2a4caa2461c --- /dev/null +++ b/teams/item_primary_channel_joined_users_remove_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemPrimaryChannelJoinedUsersRemovePostResponseable instead. +type ItemPrimaryChannelJoinedUsersRemoveResponse struct { + ItemPrimaryChannelJoinedUsersRemovePostResponse +} +// NewItemPrimaryChannelJoinedUsersRemoveResponse instantiates a new ItemPrimaryChannelJoinedUsersRemoveResponse and sets the default values. +func NewItemPrimaryChannelJoinedUsersRemoveResponse()(*ItemPrimaryChannelJoinedUsersRemoveResponse) { + m := &ItemPrimaryChannelJoinedUsersRemoveResponse{ + ItemPrimaryChannelJoinedUsersRemovePostResponse: *NewItemPrimaryChannelJoinedUsersRemovePostResponse(), + } + return m +} +// CreateItemPrimaryChannelJoinedUsersRemoveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemPrimaryChannelJoinedUsersRemoveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPrimaryChannelJoinedUsersRemoveResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemPrimaryChannelJoinedUsersRemovePostResponseable instead. +type ItemPrimaryChannelJoinedUsersRemoveResponseable interface { + ItemPrimaryChannelJoinedUsersRemovePostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/teams/item_primary_channel_joined_users_request_builder.go b/teams/item_primary_channel_joined_users_request_builder.go new file mode 100644 index 00000000000..35d8337ef90 --- /dev/null +++ b/teams/item_primary_channel_joined_users_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPrimaryChannelJoinedUsersRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type ItemPrimaryChannelJoinedUsersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPrimaryChannelJoinedUsersRequestBuilderGetQueryParameters get joinedUsers from teams +type ItemPrimaryChannelJoinedUsersRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemPrimaryChannelJoinedUsersRequestBuilderGetQueryParameters +} +// ItemPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Add provides operations to call the add method. +// returns a *ItemPrimaryChannelJoinedUsersAddRequestBuilder when successful +func (m *ItemPrimaryChannelJoinedUsersRequestBuilder) Add()(*ItemPrimaryChannelJoinedUsersAddRequestBuilder) { + return NewItemPrimaryChannelJoinedUsersAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ByConversationMemberId provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *ItemPrimaryChannelJoinedUsersRequestBuilder) ByConversationMemberId(conversationMemberId string)(*ItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if conversationMemberId != "" { + urlTplParams["conversationMember%2Did"] = conversationMemberId + } + return NewItemPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemPrimaryChannelJoinedUsersRequestBuilderInternal instantiates a new ItemPrimaryChannelJoinedUsersRequestBuilder and sets the default values. +func NewItemPrimaryChannelJoinedUsersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelJoinedUsersRequestBuilder) { + m := &ItemPrimaryChannelJoinedUsersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/joinedUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemPrimaryChannelJoinedUsersRequestBuilder instantiates a new ItemPrimaryChannelJoinedUsersRequestBuilder and sets the default values. +func NewItemPrimaryChannelJoinedUsersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelJoinedUsersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPrimaryChannelJoinedUsersRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemPrimaryChannelJoinedUsersCountRequestBuilder when successful +func (m *ItemPrimaryChannelJoinedUsersRequestBuilder) Count()(*ItemPrimaryChannelJoinedUsersCountRequestBuilder) { + return NewItemPrimaryChannelJoinedUsersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get joinedUsers from teams +// returns a ConversationMemberCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPrimaryChannelJoinedUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable), nil +} +// Post create new navigation property to joinedUsers for teams +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPrimaryChannelJoinedUsersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Remove provides operations to call the remove method. +// returns a *ItemPrimaryChannelJoinedUsersRemoveRequestBuilder when successful +func (m *ItemPrimaryChannelJoinedUsersRequestBuilder) Remove()(*ItemPrimaryChannelJoinedUsersRemoveRequestBuilder) { + return NewItemPrimaryChannelJoinedUsersRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation get joinedUsers from teams +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelJoinedUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to joinedUsers for teams +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelJoinedUsersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPrimaryChannelJoinedUsersRequestBuilder when successful +func (m *ItemPrimaryChannelJoinedUsersRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelJoinedUsersRequestBuilder) { + return NewItemPrimaryChannelJoinedUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_primary_channel_planner_plans_item_history_items_count_request_builder.go b/teams/item_primary_channel_planner_plans_item_history_items_count_request_builder.go new file mode 100644 index 00000000000..6cdbd5b610a --- /dev/null +++ b/teams/item_primary_channel_planner_plans_item_history_items_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder provides operations to count the resources in the collection. +type ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters get the number of the resource +type ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters +} +// NewItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal instantiates a new ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + m := &ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/planner/plans/{plannerPlan%2Did}/historyItems/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder instantiates a new ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_primary_channel_planner_plans_item_history_items_planner_history_item_item_request_builder.go b/teams/item_primary_channel_planner_plans_item_history_items_planner_history_item_item_request_builder.go new file mode 100644 index 00000000000..ea6d640cfa6 --- /dev/null +++ b/teams/item_primary_channel_planner_plans_item_history_items_planner_history_item_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters get historyItems from teams +type ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters +} +// ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal instantiates a new ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + m := &ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/planner/plans/{plannerPlan%2Did}/historyItems/{plannerHistoryItem%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder instantiates a new ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property historyItems for teams +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get historyItems from teams +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// Patch update the navigation property historyItems in teams +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToDeleteRequestInformation delete navigation property historyItems for teams +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get historyItems from teams +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property historyItems in teams +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + return NewItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_primary_channel_planner_plans_item_history_items_request_builder.go b/teams/item_primary_channel_planner_plans_item_history_items_request_builder.go new file mode 100644 index 00000000000..82ce3279e50 --- /dev/null +++ b/teams/item_primary_channel_planner_plans_item_history_items_request_builder.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters get historyItems from teams +type ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters +} +// ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByPlannerHistoryItemId provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) ByPlannerHistoryItemId(plannerHistoryItemId string)(*ItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if plannerHistoryItemId != "" { + urlTplParams["plannerHistoryItem%2Did"] = plannerHistoryItemId + } + return NewItemPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal instantiates a new ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + m := &ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/planner/plans/{plannerPlan%2Did}/historyItems{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder instantiates a new ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) Count()(*ItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get historyItems from teams +// returns a PlannerHistoryItemCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable), nil +} +// Post create new navigation property to historyItems for teams +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToGetRequestInformation get historyItems from teams +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to historyItems for teams +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_primary_channel_planner_plans_planner_plan_item_request_builder.go b/teams/item_primary_channel_planner_plans_planner_plan_item_request_builder.go index 9e7d1e1c1df..419b7063430 100644 --- a/teams/item_primary_channel_planner_plans_planner_plan_item_request_builder.go +++ b/teams/item_primary_channel_planner_plans_planner_plan_item_request_builder.go @@ -113,6 +113,11 @@ func (m *ItemPrimaryChannelPlannerPlansPlannerPlanItemRequestBuilder) Get(ctx co func (m *ItemPrimaryChannelPlannerPlansPlannerPlanItemRequestBuilder) GetUsageRights()(*ItemPrimaryChannelPlannerPlansItemGetUsageRightsRequestBuilder) { return NewItemPrimaryChannelPlannerPlansItemGetUsageRightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// HistoryItems provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemPrimaryChannelPlannerPlansPlannerPlanItemRequestBuilder) HistoryItems()(*ItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MoveToContainer provides operations to call the moveToContainer method. // returns a *ItemPrimaryChannelPlannerPlansItemMoveToContainerRequestBuilder when successful func (m *ItemPrimaryChannelPlannerPlansPlannerPlanItemRequestBuilder) MoveToContainer()(*ItemPrimaryChannelPlannerPlansItemMoveToContainerRequestBuilder) { diff --git a/teams/item_primary_channel_request_builder.go b/teams/item_primary_channel_request_builder.go index 7fda22871b7..02df8f08606 100644 --- a/teams/item_primary_channel_request_builder.go +++ b/teams/item_primary_channel_request_builder.go @@ -126,6 +126,11 @@ func (m *ItemPrimaryChannelRequestBuilder) Get(ctx context.Context, requestConfi } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Channelable), nil } +// JoinedUsers provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *ItemPrimaryChannelJoinedUsersRequestBuilder when successful +func (m *ItemPrimaryChannelRequestBuilder) JoinedUsers()(*ItemPrimaryChannelJoinedUsersRequestBuilder) { + return NewItemPrimaryChannelJoinedUsersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Members provides operations to manage the members property of the microsoft.graph.channel entity. // returns a *ItemPrimaryChannelMembersRequestBuilder when successful func (m *ItemPrimaryChannelRequestBuilder) Members()(*ItemPrimaryChannelMembersRequestBuilder) { diff --git a/teams/item_schedule_scheduling_groups_scheduling_group_item_request_builder.go b/teams/item_schedule_scheduling_groups_scheduling_group_item_request_builder.go index 597c82013f2..94d7fe47947 100644 --- a/teams/item_schedule_scheduling_groups_scheduling_group_item_request_builder.go +++ b/teams/item_schedule_scheduling_groups_scheduling_group_item_request_builder.go @@ -57,7 +57,7 @@ func NewItemScheduleSchedulingGroupsSchedulingGroupItemRequestBuilder(rawUrl str urlParams["request-raw-url"] = rawUrl return NewItemScheduleSchedulingGroupsSchedulingGroupItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. +// Delete mark a schedulingGroup as inactive by setting its isActive property.This method doesn't remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -122,7 +122,7 @@ func (m *ItemScheduleSchedulingGroupsSchedulingGroupItemRequestBuilder) Patch(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SchedulingGroupable), nil } -// ToDeleteRequestInformation mark a schedulingGroup as inactive by setting its isActive property.This method does not remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. +// ToDeleteRequestInformation mark a schedulingGroup as inactive by setting its isActive property.This method doesn't remove the schedulingGroup from the schedule. Existing shift instances assigned to the scheduling group remain part of the group. // returns a *RequestInformation when successful func (m *ItemScheduleSchedulingGroupsSchedulingGroupItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemScheduleSchedulingGroupsSchedulingGroupItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_schedule_share_post_request_body.go b/teams/item_schedule_share_post_request_body.go index 4b0b1eae2a4..2ab077749bd 100644 --- a/teams/item_schedule_share_post_request_body.go +++ b/teams/item_schedule_share_post_request_body.go @@ -19,6 +19,8 @@ func NewItemScheduleSharePostRequestBody()(*ItemScheduleSharePostRequestBody) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + notifyTeamValue := false + m.SetNotifyTeam(¬ifyTeamValue) return m } // CreateItemScheduleSharePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teams/item_schedule_time_cards_clock_in_post_request_body.go b/teams/item_schedule_time_cards_clock_in_post_request_body.go index 328cdb97e8b..2780b7f10f5 100644 --- a/teams/item_schedule_time_cards_clock_in_post_request_body.go +++ b/teams/item_schedule_time_cards_clock_in_post_request_body.go @@ -19,6 +19,10 @@ func NewItemScheduleTimeCardsClockInPostRequestBody()(*ItemScheduleTimeCardsCloc } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateItemScheduleTimeCardsClockInPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teams/item_schedule_time_cards_item_clock_out_post_request_body.go b/teams/item_schedule_time_cards_item_clock_out_post_request_body.go index b873371cae1..701e0e45353 100644 --- a/teams/item_schedule_time_cards_item_clock_out_post_request_body.go +++ b/teams/item_schedule_time_cards_item_clock_out_post_request_body.go @@ -19,6 +19,10 @@ func NewItemScheduleTimeCardsItemClockOutPostRequestBody()(*ItemScheduleTimeCard } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateItemScheduleTimeCardsItemClockOutPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teams/item_schedule_time_cards_item_end_break_post_request_body.go b/teams/item_schedule_time_cards_item_end_break_post_request_body.go index 132dd55fe1a..db690ff8696 100644 --- a/teams/item_schedule_time_cards_item_end_break_post_request_body.go +++ b/teams/item_schedule_time_cards_item_end_break_post_request_body.go @@ -19,6 +19,10 @@ func NewItemScheduleTimeCardsItemEndBreakPostRequestBody()(*ItemScheduleTimeCard } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateItemScheduleTimeCardsItemEndBreakPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teams/item_schedule_time_cards_item_start_break_post_request_body.go b/teams/item_schedule_time_cards_item_start_break_post_request_body.go index b6d073a741e..b214ab0e7c6 100644 --- a/teams/item_schedule_time_cards_item_start_break_post_request_body.go +++ b/teams/item_schedule_time_cards_item_start_break_post_request_body.go @@ -19,6 +19,10 @@ func NewItemScheduleTimeCardsItemStartBreakPostRequestBody()(*ItemScheduleTimeCa } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateItemScheduleTimeCardsItemStartBreakPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamtemplatedefinition/174bdc986c17ce2f45be631e0719f27b24b7e7160123d3fd9c3693c7963fa0b5.go b/teamtemplatedefinition/174bdc986c17ce2f45be631e0719f27b24b7e7160123d3fd9c3693c7963fa0b5.go new file mode 100644 index 00000000000..0b6a79a4653 --- /dev/null +++ b/teamtemplatedefinition/174bdc986c17ce2f45be631e0719f27b24b7e7160123d3fd9c3693c7963fa0b5.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters get historyItems from teamTemplateDefinition +type ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters +} +// ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal instantiates a new ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + m := &ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/planner/plans/{plannerPlan%2Did}/historyItems/{plannerHistoryItem%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder instantiates a new ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property historyItems for teamTemplateDefinition +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get historyItems from teamTemplateDefinition +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// Patch update the navigation property historyItems in teamTemplateDefinition +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToDeleteRequestInformation delete navigation property historyItems for teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get historyItems from teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property historyItems in teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/2753b070f3f494f8f3aa540c3be138272271fb006a4a2d1e14902cd0dbfed72f.go b/teamtemplatedefinition/2753b070f3f494f8f3aa540c3be138272271fb006a4a2d1e14902cd0dbfed72f.go new file mode 100644 index 00000000000..3d1f822ceb6 --- /dev/null +++ b/teamtemplatedefinition/2753b070f3f494f8f3aa540c3be138272271fb006a4a2d1e14902cd0dbfed72f.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters get historyItems from teamTemplateDefinition +type ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters +} +// ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal instantiates a new ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + m := &ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/planner/plans/{plannerPlan%2Did}/historyItems/{plannerHistoryItem%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder instantiates a new ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property historyItems for teamTemplateDefinition +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get historyItems from teamTemplateDefinition +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// Patch update the navigation property historyItems in teamTemplateDefinition +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToDeleteRequestInformation delete navigation property historyItems for teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get historyItems from teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property historyItems in teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + return NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/b56680ef7441f9c2095d8a42eab004af4f5499d2ec7277deeaa0ac6205cfe1cb.go b/teamtemplatedefinition/b56680ef7441f9c2095d8a42eab004af4f5499d2ec7277deeaa0ac6205cfe1cb.go index 9214be3d0c3..79779d0d54b 100644 --- a/teamtemplatedefinition/b56680ef7441f9c2095d8a42eab004af4f5499d2ec7277deeaa0ac6205cfe1cb.go +++ b/teamtemplatedefinition/b56680ef7441f9c2095d8a42eab004af4f5499d2ec7277deeaa0ac6205cfe1cb.go @@ -18,6 +18,8 @@ func NewItemTeamDefinitionPrimaryChannelDoesUserHaveAccessuserIdUserIdTenantIdTe } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemTeamDefinitionPrimaryChannelDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamtemplatedefinition/d2d4f2bdd52c4f7e3373689073e001db033ae6feab8e5c07ad3dae04e6bf30be.go b/teamtemplatedefinition/d2d4f2bdd52c4f7e3373689073e001db033ae6feab8e5c07ad3dae04e6bf30be.go index 9b01e47f08b..7753f16c56d 100644 --- a/teamtemplatedefinition/d2d4f2bdd52c4f7e3373689073e001db033ae6feab8e5c07ad3dae04e6bf30be.go +++ b/teamtemplatedefinition/d2d4f2bdd52c4f7e3373689073e001db033ae6feab8e5c07ad3dae04e6bf30be.go @@ -18,6 +18,8 @@ func NewItemTeamDefinitionChannelsItemDoesUserHaveAccessuserIdUserIdTenantIdTena } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemTeamDefinitionChannelsItemDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamtemplatedefinition/item_team_definition_archive_post_request_body.go b/teamtemplatedefinition/item_team_definition_archive_post_request_body.go index 4f04f742fc6..196f38a9628 100644 --- a/teamtemplatedefinition/item_team_definition_archive_post_request_body.go +++ b/teamtemplatedefinition/item_team_definition_archive_post_request_body.go @@ -18,6 +18,8 @@ func NewItemTeamDefinitionArchivePostRequestBody()(*ItemTeamDefinitionArchivePos } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + shouldSetSpoSiteReadOnlyForMembersValue := false + m.SetShouldSetSpoSiteReadOnlyForMembers(&shouldSetSpoSiteReadOnlyForMembersValue) return m } // CreateItemTeamDefinitionArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamtemplatedefinition/item_team_definition_channels_channel_item_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_channel_item_request_builder.go index 1bb93f0fe6d..f6390f1191e 100644 --- a/teamtemplatedefinition/item_team_definition_channels_channel_item_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_channel_item_request_builder.go @@ -123,6 +123,11 @@ func (m *ItemTeamDefinitionChannelsChannelItemRequestBuilder) Get(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Channelable), nil } +// JoinedUsers provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsChannelItemRequestBuilder) JoinedUsers()(*ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) { + return NewItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Members provides operations to manage the members property of the microsoft.graph.channel entity. // returns a *ItemTeamDefinitionChannelsItemMembersRequestBuilder when successful func (m *ItemTeamDefinitionChannelsChannelItemRequestBuilder) Members()(*ItemTeamDefinitionChannelsItemMembersRequestBuilder) { diff --git a/teamtemplatedefinition/item_team_definition_channels_item_archive_post_request_body.go b/teamtemplatedefinition/item_team_definition_channels_item_archive_post_request_body.go index 55d47a44a73..db0ce1f0e57 100644 --- a/teamtemplatedefinition/item_team_definition_channels_item_archive_post_request_body.go +++ b/teamtemplatedefinition/item_team_definition_channels_item_archive_post_request_body.go @@ -18,6 +18,8 @@ func NewItemTeamDefinitionChannelsItemArchivePostRequestBody()(*ItemTeamDefiniti } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + shouldSetSpoSiteReadOnlyForMembersValue := false + m.SetShouldSetSpoSiteReadOnlyForMembers(&shouldSetSpoSiteReadOnlyForMembersValue) return m } // CreateItemTeamDefinitionChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamtemplatedefinition/item_team_definition_channels_item_joined_users_add_post_request_body.go b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_add_post_request_body.go new file mode 100644 index 00000000000..c6f5f890978 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_add_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody()(*ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) { + m := &ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_joined_users_add_post_response.go b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_add_post_response.go new file mode 100644 index 00000000000..27a57c06e12 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_add_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse()(*ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse) { + m := &ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_joined_users_add_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_add_request_builder.go new file mode 100644 index 00000000000..a2f70a57ada --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_add_request_builder.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder provides operations to call the add method. +type ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderInternal instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) { + m := &ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/joinedUsers/add", pathParameters), + } + return m +} +// NewItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderInternal(urlParams, requestAdapter) +} +// Post add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// Deprecated: This method is obsolete. Use PostAsAddPostResponse instead. +// returns a ItemTeamDefinitionChannelsItemJoinedUsersAddResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) Post(ctx context.Context, body ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration)(ItemTeamDefinitionChannelsItemJoinedUsersAddResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamDefinitionChannelsItemJoinedUsersAddResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamDefinitionChannelsItemJoinedUsersAddResponseable), nil +} +// PostAsAddPostResponse add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) PostAsAddPostResponse(ctx context.Context, body ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration)(ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseable), nil +} +// ToPostRequestInformation add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) { + return NewItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_joined_users_add_response.go b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_add_response.go new file mode 100644 index 00000000000..04b843caed2 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_add_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseable instead. +type ItemTeamDefinitionChannelsItemJoinedUsersAddResponse struct { + ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse +} +// NewItemTeamDefinitionChannelsItemJoinedUsersAddResponse instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersAddResponse and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersAddResponse()(*ItemTeamDefinitionChannelsItemJoinedUsersAddResponse) { + m := &ItemTeamDefinitionChannelsItemJoinedUsersAddResponse{ + ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse: *NewItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse(), + } + return m +} +// CreateItemTeamDefinitionChannelsItemJoinedUsersAddResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamDefinitionChannelsItemJoinedUsersAddResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionChannelsItemJoinedUsersAddResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseable instead. +type ItemTeamDefinitionChannelsItemJoinedUsersAddResponseable interface { + ItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_joined_users_conversation_member_item_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_conversation_member_item_request_builder.go new file mode 100644 index 00000000000..e1824e33ff1 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_conversation_member_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters get joinedUsers from teamTemplateDefinition +type ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters +} +// ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + m := &ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/joinedUsers/{conversationMember%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property joinedUsers for teamTemplateDefinition +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get joinedUsers from teamTemplateDefinition +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Patch update the navigation property joinedUsers in teamTemplateDefinition +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// ToDeleteRequestInformation delete navigation property joinedUsers for teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get joinedUsers from teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property joinedUsers in teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + return NewItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_joined_users_count_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_count_request_builder.go new file mode 100644 index 00000000000..cf5f8be54d2 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder provides operations to count the resources in the collection. +type ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderGetQueryParameters get the number of the resource +type ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderGetQueryParameters +} +// NewItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderInternal instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder) { + m := &ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/joinedUsers/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder) { + return NewItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_joined_users_remove_post_request_body.go b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_remove_post_request_body.go new file mode 100644 index 00000000000..38773dca9b1 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_remove_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody()(*ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) { + m := &ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_joined_users_remove_post_response.go b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_remove_post_response.go new file mode 100644 index 00000000000..8aca87003ef --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_remove_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse()(*ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse) { + m := &ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_joined_users_remove_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_remove_request_builder.go new file mode 100644 index 00000000000..0119b6dae6b --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_remove_request_builder.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder provides operations to call the remove method. +type ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderInternal instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) { + m := &ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/joinedUsers/remove", pathParameters), + } + return m +} +// NewItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// Deprecated: This method is obsolete. Use PostAsRemovePostResponse instead. +// returns a ItemTeamDefinitionChannelsItemJoinedUsersRemoveResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) Post(ctx context.Context, body ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(ItemTeamDefinitionChannelsItemJoinedUsersRemoveResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamDefinitionChannelsItemJoinedUsersRemoveResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamDefinitionChannelsItemJoinedUsersRemoveResponseable), nil +} +// PostAsRemovePostResponse remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) PostAsRemovePostResponse(ctx context.Context, body ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseable), nil +} +// ToPostRequestInformation remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) { + return NewItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_joined_users_remove_response.go b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_remove_response.go new file mode 100644 index 00000000000..2957e651037 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_remove_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseable instead. +type ItemTeamDefinitionChannelsItemJoinedUsersRemoveResponse struct { + ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse +} +// NewItemTeamDefinitionChannelsItemJoinedUsersRemoveResponse instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersRemoveResponse and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersRemoveResponse()(*ItemTeamDefinitionChannelsItemJoinedUsersRemoveResponse) { + m := &ItemTeamDefinitionChannelsItemJoinedUsersRemoveResponse{ + ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse: *NewItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse(), + } + return m +} +// CreateItemTeamDefinitionChannelsItemJoinedUsersRemoveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamDefinitionChannelsItemJoinedUsersRemoveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionChannelsItemJoinedUsersRemoveResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseable instead. +type ItemTeamDefinitionChannelsItemJoinedUsersRemoveResponseable interface { + ItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_joined_users_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_request_builder.go new file mode 100644 index 00000000000..c4a48abc90f --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_joined_users_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderGetQueryParameters get joinedUsers from teamTemplateDefinition +type ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderGetQueryParameters +} +// ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Add provides operations to call the add method. +// returns a *ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) Add()(*ItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) { + return NewItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ByConversationMemberId provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) ByConversationMemberId(conversationMemberId string)(*ItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if conversationMemberId != "" { + urlTplParams["conversationMember%2Did"] = conversationMemberId + } + return NewItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderInternal instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) { + m := &ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/joinedUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder instantiates a new ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) Count()(*ItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder) { + return NewItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get joinedUsers from teamTemplateDefinition +// returns a ConversationMemberCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable), nil +} +// Post create new navigation property to joinedUsers for teamTemplateDefinition +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Remove provides operations to call the remove method. +// returns a *ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) Remove()(*ItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) { + return NewItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation get joinedUsers from teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to joinedUsers for teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) { + return NewItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_planner_plans_item_history_items_count_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_planner_plans_item_history_items_count_request_builder.go new file mode 100644 index 00000000000..19394c43742 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_planner_plans_item_history_items_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder provides operations to count the resources in the collection. +type ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters get the number of the resource +type ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters +} +// NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal instantiates a new ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + m := &ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/planner/plans/{plannerPlan%2Did}/historyItems/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder instantiates a new ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_planner_plans_item_history_items_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_planner_plans_item_history_items_request_builder.go new file mode 100644 index 00000000000..28a94f214f7 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_channels_item_planner_plans_item_history_items_request_builder.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters get historyItems from teamTemplateDefinition +type ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters +} +// ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByPlannerHistoryItemId provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) ByPlannerHistoryItemId(plannerHistoryItemId string)(*ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if plannerHistoryItemId != "" { + urlTplParams["plannerHistoryItem%2Did"] = plannerHistoryItemId + } + return NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal instantiates a new ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + m := &ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/planner/plans/{plannerPlan%2Did}/historyItems{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder instantiates a new ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) Count()(*ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get historyItems from teamTemplateDefinition +// returns a PlannerHistoryItemCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable), nil +} +// Post create new navigation property to historyItems for teamTemplateDefinition +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToGetRequestInformation get historyItems from teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to historyItems for teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_channels_item_planner_plans_planner_plan_item_request_builder.go b/teamtemplatedefinition/item_team_definition_channels_item_planner_plans_planner_plan_item_request_builder.go index afa68730fd7..cc340d348e2 100644 --- a/teamtemplatedefinition/item_team_definition_channels_item_planner_plans_planner_plan_item_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_channels_item_planner_plans_planner_plan_item_request_builder.go @@ -113,6 +113,11 @@ func (m *ItemTeamDefinitionChannelsItemPlannerPlansPlannerPlanItemRequestBuilder func (m *ItemTeamDefinitionChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) GetUsageRights()(*ItemTeamDefinitionChannelsItemPlannerPlansItemGetUsageRightsRequestBuilder) { return NewItemTeamDefinitionChannelsItemPlannerPlansItemGetUsageRightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// HistoryItems provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemTeamDefinitionChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) HistoryItems()(*ItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MoveToContainer provides operations to call the moveToContainer method. // returns a *ItemTeamDefinitionChannelsItemPlannerPlansItemMoveToContainerRequestBuilder when successful func (m *ItemTeamDefinitionChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) MoveToContainer()(*ItemTeamDefinitionChannelsItemPlannerPlansItemMoveToContainerRequestBuilder) { diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_archive_post_request_body.go b/teamtemplatedefinition/item_team_definition_primary_channel_archive_post_request_body.go index 75690120a50..7af983b0a03 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_archive_post_request_body.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_archive_post_request_body.go @@ -18,6 +18,8 @@ func NewItemTeamDefinitionPrimaryChannelArchivePostRequestBody()(*ItemTeamDefini } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + shouldSetSpoSiteReadOnlyForMembersValue := false + m.SetShouldSetSpoSiteReadOnlyForMembers(&shouldSetSpoSiteReadOnlyForMembersValue) return m } // CreateItemTeamDefinitionPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_add_post_request_body.go b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_add_post_request_body.go new file mode 100644 index 00000000000..71b49b2423b --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_add_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody()(*ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) { + m := &ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_add_post_response.go b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_add_post_response.go new file mode 100644 index 00000000000..bbb4a09652e --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_add_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse()(*ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse) { + m := &ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_add_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_add_request_builder.go new file mode 100644 index 00000000000..361ad83d1c9 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_add_request_builder.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder provides operations to call the add method. +type ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderInternal instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) { + m := &ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/joinedUsers/add", pathParameters), + } + return m +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderInternal(urlParams, requestAdapter) +} +// Post add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// Deprecated: This method is obsolete. Use PostAsAddPostResponse instead. +// returns a ItemTeamDefinitionPrimaryChannelJoinedUsersAddResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) Post(ctx context.Context, body ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration)(ItemTeamDefinitionPrimaryChannelJoinedUsersAddResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamDefinitionPrimaryChannelJoinedUsersAddResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamDefinitionPrimaryChannelJoinedUsersAddResponseable), nil +} +// PostAsAddPostResponse add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) PostAsAddPostResponse(ctx context.Context, body ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration)(ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseable), nil +} +// ToPostRequestInformation add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBodyable, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_add_response.go b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_add_response.go new file mode 100644 index 00000000000..80c99a74434 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_add_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseable instead. +type ItemTeamDefinitionPrimaryChannelJoinedUsersAddResponse struct { + ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersAddResponse instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersAddResponse and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersAddResponse()(*ItemTeamDefinitionPrimaryChannelJoinedUsersAddResponse) { + m := &ItemTeamDefinitionPrimaryChannelJoinedUsersAddResponse{ + ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse: *NewItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse(), + } + return m +} +// CreateItemTeamDefinitionPrimaryChannelJoinedUsersAddResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamDefinitionPrimaryChannelJoinedUsersAddResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionPrimaryChannelJoinedUsersAddResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseable instead. +type ItemTeamDefinitionPrimaryChannelJoinedUsersAddResponseable interface { + ItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_conversation_member_item_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_conversation_member_item_request_builder.go new file mode 100644 index 00000000000..c52767db8cc --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_conversation_member_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters get joinedUsers from teamTemplateDefinition +type ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters +} +// ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + m := &ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/joinedUsers/{conversationMember%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property joinedUsers for teamTemplateDefinition +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get joinedUsers from teamTemplateDefinition +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Patch update the navigation property joinedUsers in teamTemplateDefinition +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// ToDeleteRequestInformation delete navigation property joinedUsers for teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get joinedUsers from teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property joinedUsers in teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_count_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_count_request_builder.go new file mode 100644 index 00000000000..44c3a8b3c9e --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder provides operations to count the resources in the collection. +type ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderGetQueryParameters get the number of the resource +type ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderGetQueryParameters +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderInternal instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder) { + m := &ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/joinedUsers/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_remove_post_request_body.go b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_remove_post_request_body.go new file mode 100644 index 00000000000..a45c237023b --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_remove_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody()(*ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) { + m := &ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_remove_post_response.go b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_remove_post_response.go new file mode 100644 index 00000000000..9a25c431257 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_remove_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse()(*ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse) { + m := &ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_remove_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_remove_request_builder.go new file mode 100644 index 00000000000..ec9d1ff10a7 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_remove_request_builder.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder provides operations to call the remove method. +type ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderInternal instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) { + m := &ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/joinedUsers/remove", pathParameters), + } + return m +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// Deprecated: This method is obsolete. Use PostAsRemovePostResponse instead. +// returns a ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) Post(ctx context.Context, body ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponseable), nil +} +// PostAsRemovePostResponse remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) PostAsRemovePostResponse(ctx context.Context, body ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseable), nil +} +// ToPostRequestInformation remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBodyable, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_remove_response.go b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_remove_response.go new file mode 100644 index 00000000000..ed355e802ed --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_remove_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseable instead. +type ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponse struct { + ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponse instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponse and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponse()(*ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponse) { + m := &ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponse{ + ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse: *NewItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse(), + } + return m +} +// CreateItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseable instead. +type ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponseable interface { + ItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_request_builder.go new file mode 100644 index 00000000000..793ae0d74a2 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_joined_users_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderGetQueryParameters get joinedUsers from teamTemplateDefinition +type ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderGetQueryParameters +} +// ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Add provides operations to call the add method. +// returns a *ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) Add()(*ItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ByConversationMemberId provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) ByConversationMemberId(conversationMemberId string)(*ItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if conversationMemberId != "" { + urlTplParams["conversationMember%2Did"] = conversationMemberId + } + return NewItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderInternal instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) { + m := &ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/joinedUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder instantiates a new ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) Count()(*ItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get joinedUsers from teamTemplateDefinition +// returns a ConversationMemberCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable), nil +} +// Post create new navigation property to joinedUsers for teamTemplateDefinition +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Remove provides operations to call the remove method. +// returns a *ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) Remove()(*ItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation get joinedUsers from teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to joinedUsers for teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_planner_plans_item_history_items_count_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_planner_plans_item_history_items_count_request_builder.go new file mode 100644 index 00000000000..d5dc1aeb949 --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_planner_plans_item_history_items_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder provides operations to count the resources in the collection. +type ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters get the number of the resource +type ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters +} +// NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal instantiates a new ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + m := &ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/planner/plans/{plannerPlan%2Did}/historyItems/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder instantiates a new ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_planner_plans_item_history_items_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_planner_plans_item_history_items_request_builder.go new file mode 100644 index 00000000000..eaeba5a91be --- /dev/null +++ b/teamtemplatedefinition/item_team_definition_primary_channel_planner_plans_item_history_items_request_builder.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamtemplatedefinition + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters get historyItems from teamTemplateDefinition +type ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters +} +// ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByPlannerHistoryItemId provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) ByPlannerHistoryItemId(plannerHistoryItemId string)(*ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if plannerHistoryItemId != "" { + urlTplParams["plannerHistoryItem%2Did"] = plannerHistoryItemId + } + return NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal instantiates a new ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + m := &ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/planner/plans/{plannerPlan%2Did}/historyItems{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder instantiates a new ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) Count()(*ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get historyItems from teamTemplateDefinition +// returns a PlannerHistoryItemCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable), nil +} +// Post create new navigation property to historyItems for teamTemplateDefinition +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToGetRequestInformation get historyItems from teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to historyItems for teamTemplateDefinition +// returns a *RequestInformation when successful +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_planner_plans_planner_plan_item_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_planner_plans_planner_plan_item_request_builder.go index c5ca45cb279..7df58f61bb0 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_planner_plans_planner_plan_item_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_planner_plans_planner_plan_item_request_builder.go @@ -113,6 +113,11 @@ func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansPlannerPlanItemRequestBuild func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansPlannerPlanItemRequestBuilder) GetUsageRights()(*ItemTeamDefinitionPrimaryChannelPlannerPlansItemGetUsageRightsRequestBuilder) { return NewItemTeamDefinitionPrimaryChannelPlannerPlansItemGetUsageRightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// HistoryItems provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansPlannerPlanItemRequestBuilder) HistoryItems()(*ItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MoveToContainer provides operations to call the moveToContainer method. // returns a *ItemTeamDefinitionPrimaryChannelPlannerPlansItemMoveToContainerRequestBuilder when successful func (m *ItemTeamDefinitionPrimaryChannelPlannerPlansPlannerPlanItemRequestBuilder) MoveToContainer()(*ItemTeamDefinitionPrimaryChannelPlannerPlansItemMoveToContainerRequestBuilder) { diff --git a/teamtemplatedefinition/item_team_definition_primary_channel_request_builder.go b/teamtemplatedefinition/item_team_definition_primary_channel_request_builder.go index 657aaee97c3..17376b8b373 100644 --- a/teamtemplatedefinition/item_team_definition_primary_channel_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_primary_channel_request_builder.go @@ -123,6 +123,11 @@ func (m *ItemTeamDefinitionPrimaryChannelRequestBuilder) Get(ctx context.Context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Channelable), nil } +// JoinedUsers provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder when successful +func (m *ItemTeamDefinitionPrimaryChannelRequestBuilder) JoinedUsers()(*ItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) { + return NewItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Members provides operations to manage the members property of the microsoft.graph.channel entity. // returns a *ItemTeamDefinitionPrimaryChannelMembersRequestBuilder when successful func (m *ItemTeamDefinitionPrimaryChannelRequestBuilder) Members()(*ItemTeamDefinitionPrimaryChannelMembersRequestBuilder) { diff --git a/teamtemplatedefinition/item_team_definition_schedule_share_post_request_body.go b/teamtemplatedefinition/item_team_definition_schedule_share_post_request_body.go index 022c61f9f9f..114f67b3498 100644 --- a/teamtemplatedefinition/item_team_definition_schedule_share_post_request_body.go +++ b/teamtemplatedefinition/item_team_definition_schedule_share_post_request_body.go @@ -19,6 +19,8 @@ func NewItemTeamDefinitionScheduleSharePostRequestBody()(*ItemTeamDefinitionSche } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + notifyTeamValue := false + m.SetNotifyTeam(¬ifyTeamValue) return m } // CreateItemTeamDefinitionScheduleSharePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamtemplatedefinition/item_team_definition_schedule_time_cards_clock_in_post_request_body.go b/teamtemplatedefinition/item_team_definition_schedule_time_cards_clock_in_post_request_body.go index 5da2f3c3e90..8d70204f922 100644 --- a/teamtemplatedefinition/item_team_definition_schedule_time_cards_clock_in_post_request_body.go +++ b/teamtemplatedefinition/item_team_definition_schedule_time_cards_clock_in_post_request_body.go @@ -19,6 +19,10 @@ func NewItemTeamDefinitionScheduleTimeCardsClockInPostRequestBody()(*ItemTeamDef } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateItemTeamDefinitionScheduleTimeCardsClockInPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamtemplatedefinition/item_team_definition_schedule_time_cards_item_clock_out_post_request_body.go b/teamtemplatedefinition/item_team_definition_schedule_time_cards_item_clock_out_post_request_body.go index c55ad5d5bca..b43d06d85b8 100644 --- a/teamtemplatedefinition/item_team_definition_schedule_time_cards_item_clock_out_post_request_body.go +++ b/teamtemplatedefinition/item_team_definition_schedule_time_cards_item_clock_out_post_request_body.go @@ -19,6 +19,10 @@ func NewItemTeamDefinitionScheduleTimeCardsItemClockOutPostRequestBody()(*ItemTe } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateItemTeamDefinitionScheduleTimeCardsItemClockOutPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamtemplatedefinition/item_team_definition_schedule_time_cards_item_end_break_post_request_body.go b/teamtemplatedefinition/item_team_definition_schedule_time_cards_item_end_break_post_request_body.go index 1f04be4627e..79ecb02da95 100644 --- a/teamtemplatedefinition/item_team_definition_schedule_time_cards_item_end_break_post_request_body.go +++ b/teamtemplatedefinition/item_team_definition_schedule_time_cards_item_end_break_post_request_body.go @@ -19,6 +19,10 @@ func NewItemTeamDefinitionScheduleTimeCardsItemEndBreakPostRequestBody()(*ItemTe } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateItemTeamDefinitionScheduleTimeCardsItemEndBreakPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamtemplatedefinition/item_team_definition_schedule_time_cards_item_start_break_post_request_body.go b/teamtemplatedefinition/item_team_definition_schedule_time_cards_item_start_break_post_request_body.go index 6b7c5a7a0f2..6a119cc0574 100644 --- a/teamtemplatedefinition/item_team_definition_schedule_time_cards_item_start_break_post_request_body.go +++ b/teamtemplatedefinition/item_team_definition_schedule_time_cards_item_start_break_post_request_body.go @@ -19,6 +19,10 @@ func NewItemTeamDefinitionScheduleTimeCardsItemStartBreakPostRequestBody()(*Item } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateItemTeamDefinitionScheduleTimeCardsItemStartBreakPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamwork/04f6b9b9854324a598f426e9083ea478b3472e33a5bdc598bccc23c0a33160ed.go b/teamwork/04f6b9b9854324a598f426e9083ea478b3472e33a5bdc598bccc23c0a33160ed.go new file mode 100644 index 00000000000..b8117837cc8 --- /dev/null +++ b/teamwork/04f6b9b9854324a598f426e9083ea478b3472e33a5bdc598bccc23c0a33160ed.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/teamwork/0dad9dba49d1eebb5fc4e28cc0d05f18aa93eb3dff35bc8e45b2f0c200b80afb.go b/teamwork/0dad9dba49d1eebb5fc4e28cc0d05f18aa93eb3dff35bc8e45b2f0c200b80afb.go index 3cc432ff22d..e61cef6766e 100644 --- a/teamwork/0dad9dba49d1eebb5fc4e28cc0d05f18aa93eb3dff35bc8e45b2f0c200b80afb.go +++ b/teamwork/0dad9dba49d1eebb5fc4e28cc0d05f18aa93eb3dff35bc8e45b2f0c200b80afb.go @@ -113,6 +113,11 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlan func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansPlannerPlanItemRequestBuilder) GetUsageRights()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemGetUsageRightsRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemGetUsageRightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// HistoryItems provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansPlannerPlanItemRequestBuilder) HistoryItems()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MoveToContainer provides operations to call the moveToContainer method. // returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemMoveToContainerRequestBuilder when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansPlannerPlanItemRequestBuilder) MoveToContainer()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemMoveToContainerRequestBuilder) { diff --git a/teamwork/1a364884f91b30de1c9e8c9953a0f8ee21ceb1417556140b5024ae22f69558b2.go b/teamwork/1a364884f91b30de1c9e8c9953a0f8ee21ceb1417556140b5024ae22f69558b2.go index 90f10d354da..70c251a4710 100644 --- a/teamwork/1a364884f91b30de1c9e8c9953a0f8ee21ceb1417556140b5024ae22f69558b2.go +++ b/teamwork/1a364884f91b30de1c9e8c9953a0f8ee21ceb1417556140b5024ae22f69558b2.go @@ -19,6 +19,10 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeCardsItemEndBr } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeCardsItemEndBreakPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamwork/1cf83051b0be920d8535238ba6d8302799b5a91016c755606e6686aeeb5d523d.go b/teamwork/1cf83051b0be920d8535238ba6d8302799b5a91016c755606e6686aeeb5d523d.go index 10fefe1b818..b3cbf8ffd2e 100644 --- a/teamwork/1cf83051b0be920d8535238ba6d8302799b5a91016c755606e6686aeeb5d523d.go +++ b/teamwork/1cf83051b0be920d8535238ba6d8302799b5a91016c755606e6686aeeb5d523d.go @@ -18,6 +18,8 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemDoesUserHaveAc } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamwork/1d7beaafed46e9697964bbab080afd9063b8e46fcbfb95f9e287c4e941a80c06.go b/teamwork/1d7beaafed46e9697964bbab080afd9063b8e46fcbfb95f9e287c4e941a80c06.go new file mode 100644 index 00000000000..4acb23e19a9 --- /dev/null +++ b/teamwork/1d7beaafed46e9697964bbab080afd9063b8e46fcbfb95f9e287c4e941a80c06.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder provides operations to count the resources in the collection. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters get the number of the resource +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/planner/plans/{plannerPlan%2Did}/historyItems/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/246da085d601e6a052a96b6d3a403e4e0f2fcc6d715e10ec8f542b2d1b9c4041.go b/teamwork/246da085d601e6a052a96b6d3a403e4e0f2fcc6d715e10ec8f542b2d1b9c4041.go index 943d46c4c52..195b32cdc1c 100644 --- a/teamwork/246da085d601e6a052a96b6d3a403e4e0f2fcc6d715e10ec8f542b2d1b9c4041.go +++ b/teamwork/246da085d601e6a052a96b6d3a403e4e0f2fcc6d715e10ec8f542b2d1b9c4041.go @@ -19,6 +19,10 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeCardsItemStart } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeCardsItemStartBreakPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamwork/3545100444b0d18dffbff1169c9fbff78e9dbe2796f525e6f4846daa7b329a6f.go b/teamwork/3545100444b0d18dffbff1169c9fbff78e9dbe2796f525e6f4846daa7b329a6f.go new file mode 100644 index 00000000000..1e7b9eaf1dc --- /dev/null +++ b/teamwork/3545100444b0d18dffbff1169c9fbff78e9dbe2796f525e6f4846daa7b329a6f.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters get historyItems from teamwork +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByPlannerHistoryItemId provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) ByPlannerHistoryItemId(plannerHistoryItemId string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if plannerHistoryItemId != "" { + urlTplParams["plannerHistoryItem%2Did"] = plannerHistoryItemId + } + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/planner/plans/{plannerPlan%2Did}/historyItems{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) Count()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get historyItems from teamwork +// returns a PlannerHistoryItemCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable), nil +} +// Post create new navigation property to historyItems for teamwork +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToGetRequestInformation get historyItems from teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to historyItems for teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/389897e3040b9f39e5278d2218ad2abd4f6922896937651d4a40458ae1c3b254.go b/teamwork/389897e3040b9f39e5278d2218ad2abd4f6922896937651d4a40458ae1c3b254.go index f957196bb54..c57cbc9948c 100644 --- a/teamwork/389897e3040b9f39e5278d2218ad2abd4f6922896937651d4a40458ae1c3b254.go +++ b/teamwork/389897e3040b9f39e5278d2218ad2abd4f6922896937651d4a40458ae1c3b254.go @@ -18,6 +18,8 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelDoesUserHave } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamwork/3afedc217ca1bb3dfe8f4233202b901c5fbad7067ff6978ec047518f3ae740b4.go b/teamwork/3afedc217ca1bb3dfe8f4233202b901c5fbad7067ff6978ec047518f3ae740b4.go new file mode 100644 index 00000000000..23a4ebaccf6 --- /dev/null +++ b/teamwork/3afedc217ca1bb3dfe8f4233202b901c5fbad7067ff6978ec047518f3ae740b4.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder provides operations to count the resources in the collection. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters get the number of the resource +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/planner/plans/{plannerPlan%2Did}/historyItems/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/4274bfaddf47842f94bc981db687da28e0463acca9add7926e8ec21ab712782f.go b/teamwork/4274bfaddf47842f94bc981db687da28e0463acca9add7926e8ec21ab712782f.go new file mode 100644 index 00000000000..31ec59ee2d5 --- /dev/null +++ b/teamwork/4274bfaddf47842f94bc981db687da28e0463acca9add7926e8ec21ab712782f.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/teamwork/43ddfdfed1ed127a0ee7cc0cfb49cd63210c7979952a1a0c1b9aeedde3836e9b.go b/teamwork/43ddfdfed1ed127a0ee7cc0cfb49cd63210c7979952a1a0c1b9aeedde3836e9b.go new file mode 100644 index 00000000000..24173a5ed92 --- /dev/null +++ b/teamwork/43ddfdfed1ed127a0ee7cc0cfb49cd63210c7979952a1a0c1b9aeedde3836e9b.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/teamwork/5155db2faec1c1c730702b1631c67c39a56971e5d1b05814790530cb6b0b50a4.go b/teamwork/5155db2faec1c1c730702b1631c67c39a56971e5d1b05814790530cb6b0b50a4.go index a579a41d4ad..027b7effe79 100644 --- a/teamwork/5155db2faec1c1c730702b1631c67c39a56971e5d1b05814790530cb6b0b50a4.go +++ b/teamwork/5155db2faec1c1c730702b1631c67c39a56971e5d1b05814790530cb6b0b50a4.go @@ -113,6 +113,11 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansP func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) GetUsageRights()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemGetUsageRightsRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemGetUsageRightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// HistoryItems provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) HistoryItems()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MoveToContainer provides operations to call the moveToContainer method. // returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemMoveToContainerRequestBuilder when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) MoveToContainer()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemMoveToContainerRequestBuilder) { diff --git a/teamwork/5e7d9d62164826e8b739266b716dd5497d6472dc65e390fd80eb05226d858e9f.go b/teamwork/5e7d9d62164826e8b739266b716dd5497d6472dc65e390fd80eb05226d858e9f.go new file mode 100644 index 00000000000..a5a823d3fdd --- /dev/null +++ b/teamwork/5e7d9d62164826e8b739266b716dd5497d6472dc65e390fd80eb05226d858e9f.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/teamwork/6ff268a674650676b9767a52fdcd87b13e65a852510af81d0cebbae2afdcd498.go b/teamwork/6ff268a674650676b9767a52fdcd87b13e65a852510af81d0cebbae2afdcd498.go new file mode 100644 index 00000000000..9ee6b99a2fd --- /dev/null +++ b/teamwork/6ff268a674650676b9767a52fdcd87b13e65a852510af81d0cebbae2afdcd498.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder provides operations to count the resources in the collection. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderGetQueryParameters get the number of the resource +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderGetQueryParameters +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/joinedUsers/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/7d300c01ef864e6b6b7556d5fa77a3fd203345472ce2e96f08a6ec7422e7b4e7.go b/teamwork/7d300c01ef864e6b6b7556d5fa77a3fd203345472ce2e96f08a6ec7422e7b4e7.go new file mode 100644 index 00000000000..0ec51057c7b --- /dev/null +++ b/teamwork/7d300c01ef864e6b6b7556d5fa77a3fd203345472ce2e96f08a6ec7422e7b4e7.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder provides operations to call the add method. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/joinedUsers/add", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderInternal(urlParams, requestAdapter) +} +// Post add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// Deprecated: This method is obsolete. Use PostAsAddPostResponse instead. +// returns a TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) Post(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration)(TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddResponseable), nil +} +// PostAsAddPostResponse add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) PostAsAddPostResponse(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration)(TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseable), nil +} +// ToPostRequestInformation add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/939cefd7cba371473ccef98b79e88ab07f5dd0e5c38ec75cf8dbc488564d27ea.go b/teamwork/939cefd7cba371473ccef98b79e88ab07f5dd0e5c38ec75cf8dbc488564d27ea.go new file mode 100644 index 00000000000..1550a913dab --- /dev/null +++ b/teamwork/939cefd7cba371473ccef98b79e88ab07f5dd0e5c38ec75cf8dbc488564d27ea.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder provides operations to call the remove method. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/joinedUsers/remove", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// Deprecated: This method is obsolete. Use PostAsRemovePostResponse instead. +// returns a TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) Post(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponseable), nil +} +// PostAsRemovePostResponse remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) PostAsRemovePostResponse(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseable), nil +} +// ToPostRequestInformation remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/983a356ac86ca4349aa102bf9ce856b01457de16915da8e55f929a9351187d4a.go b/teamwork/983a356ac86ca4349aa102bf9ce856b01457de16915da8e55f929a9351187d4a.go new file mode 100644 index 00000000000..b5ff9892ffd --- /dev/null +++ b/teamwork/983a356ac86ca4349aa102bf9ce856b01457de16915da8e55f929a9351187d4a.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters get historyItems from teamwork +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/planner/plans/{plannerPlan%2Did}/historyItems/{plannerHistoryItem%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property historyItems for teamwork +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get historyItems from teamwork +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// Patch update the navigation property historyItems in teamwork +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToDeleteRequestInformation delete navigation property historyItems for teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get historyItems from teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property historyItems in teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/9d8088ca4f002c380e2caf1b7b013ddf314f8c9201a9b0314f1adefa164137d8.go b/teamwork/9d8088ca4f002c380e2caf1b7b013ddf314f8c9201a9b0314f1adefa164137d8.go index 75dd0ed0952..2540b3a70ea 100644 --- a/teamwork/9d8088ca4f002c380e2caf1b7b013ddf314f8c9201a9b0314f1adefa164137d8.go +++ b/teamwork/9d8088ca4f002c380e2caf1b7b013ddf314f8c9201a9b0314f1adefa164137d8.go @@ -18,6 +18,8 @@ func NewDeletedTeamsItemChannelsItemDoesUserHaveAccessuserIdUserIdTenantIdTenant } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateDeletedTeamsItemChannelsItemDoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamwork/a7a0d3482fea40b8df6996271c43da45c0368607b5d056b7dc35ffc950e9687d.go b/teamwork/a7a0d3482fea40b8df6996271c43da45c0368607b5d056b7dc35ffc950e9687d.go new file mode 100644 index 00000000000..aeadd0de40c --- /dev/null +++ b/teamwork/a7a0d3482fea40b8df6996271c43da45c0368607b5d056b7dc35ffc950e9687d.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters get joinedUsers from teamwork +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/joinedUsers/{conversationMember%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property joinedUsers for teamwork +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get joinedUsers from teamwork +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Patch update the navigation property joinedUsers in teamwork +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// ToDeleteRequestInformation delete navigation property joinedUsers for teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get joinedUsers from teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property joinedUsers in teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/ac2fc36db39bce8e06e8c7efe4b96f9fa4b451c077b66b2f5884dbbedebd0e56.go b/teamwork/ac2fc36db39bce8e06e8c7efe4b96f9fa4b451c077b66b2f5884dbbedebd0e56.go new file mode 100644 index 00000000000..0ca4959dd11 --- /dev/null +++ b/teamwork/ac2fc36db39bce8e06e8c7efe4b96f9fa4b451c077b66b2f5884dbbedebd0e56.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder provides operations to call the remove method. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/joinedUsers/remove", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// Deprecated: This method is obsolete. Use PostAsRemovePostResponse instead. +// returns a TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) Post(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveResponseable), nil +} +// PostAsRemovePostResponse remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) PostAsRemovePostResponse(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseable), nil +} +// ToPostRequestInformation remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/ad41252ae4052b35c8f0b5e7116a800b0928f92d288ecddfdaf75ac33890ca8d.go b/teamwork/ad41252ae4052b35c8f0b5e7116a800b0928f92d288ecddfdaf75ac33890ca8d.go new file mode 100644 index 00000000000..43626330fe3 --- /dev/null +++ b/teamwork/ad41252ae4052b35c8f0b5e7116a800b0928f92d288ecddfdaf75ac33890ca8d.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder provides operations to count the resources in the collection. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderGetQueryParameters get the number of the resource +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderGetQueryParameters +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/joinedUsers/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/ae54f1b9647f928635553395a9d19df26fcb06ec1d0bb00f8eff0a2d87e93df3.go b/teamwork/ae54f1b9647f928635553395a9d19df26fcb06ec1d0bb00f8eff0a2d87e93df3.go index 6040e377e10..e3c7efa74a0 100644 --- a/teamwork/ae54f1b9647f928635553395a9d19df26fcb06ec1d0bb00f8eff0a2d87e93df3.go +++ b/teamwork/ae54f1b9647f928635553395a9d19df26fcb06ec1d0bb00f8eff0a2d87e93df3.go @@ -19,6 +19,10 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeCardsItemClock } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeCardsItemClockOutPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamwork/b1d3c11d8df61e0bf4b25ffd47d2d78990ebf4464e3536452ffe4fe997f0cabc.go b/teamwork/b1d3c11d8df61e0bf4b25ffd47d2d78990ebf4464e3536452ffe4fe997f0cabc.go new file mode 100644 index 00000000000..92632ff1088 --- /dev/null +++ b/teamwork/b1d3c11d8df61e0bf4b25ffd47d2d78990ebf4464e3536452ffe4fe997f0cabc.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters get historyItems from teamwork +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/planner/plans/{plannerPlan%2Did}/historyItems/{plannerHistoryItem%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property historyItems for teamwork +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get historyItems from teamwork +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// Patch update the navigation property historyItems in teamwork +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToDeleteRequestInformation delete navigation property historyItems for teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get historyItems from teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property historyItems in teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/bbe569eea383eea265fddc3b10fbce5019d98c73c70ae5f747b9a3ea670a4d48.go b/teamwork/bbe569eea383eea265fddc3b10fbce5019d98c73c70ae5f747b9a3ea670a4d48.go new file mode 100644 index 00000000000..ffaae5700b2 --- /dev/null +++ b/teamwork/bbe569eea383eea265fddc3b10fbce5019d98c73c70ae5f747b9a3ea670a4d48.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters get joinedUsers from teamwork +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/joinedUsers/{conversationMember%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property joinedUsers for teamwork +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get joinedUsers from teamwork +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Patch update the navigation property joinedUsers in teamwork +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// ToDeleteRequestInformation delete navigation property joinedUsers for teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get joinedUsers from teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property joinedUsers in teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_channel_item_request_builder.go b/teamwork/deleted_teams_item_channels_channel_item_request_builder.go index e4aa9284e94..0b40f70f5e8 100644 --- a/teamwork/deleted_teams_item_channels_channel_item_request_builder.go +++ b/teamwork/deleted_teams_item_channels_channel_item_request_builder.go @@ -123,6 +123,11 @@ func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) Get(ctx context.Cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Channelable), nil } +// JoinedUsers provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder when successful +func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) JoinedUsers()(*DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder) { + return NewDeletedTeamsItemChannelsItemJoinedUsersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Members provides operations to manage the members property of the microsoft.graph.channel entity. // returns a *DeletedTeamsItemChannelsItemMembersRequestBuilder when successful func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) Members()(*DeletedTeamsItemChannelsItemMembersRequestBuilder) { diff --git a/teamwork/deleted_teams_item_channels_item_archive_post_request_body.go b/teamwork/deleted_teams_item_channels_item_archive_post_request_body.go index 50e495e0478..8104e2b8747 100644 --- a/teamwork/deleted_teams_item_channels_item_archive_post_request_body.go +++ b/teamwork/deleted_teams_item_channels_item_archive_post_request_body.go @@ -18,6 +18,8 @@ func NewDeletedTeamsItemChannelsItemArchivePostRequestBody()(*DeletedTeamsItemCh } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + shouldSetSpoSiteReadOnlyForMembersValue := false + m.SetShouldSetSpoSiteReadOnlyForMembers(&shouldSetSpoSiteReadOnlyForMembersValue) return m } // CreateDeletedTeamsItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamwork/deleted_teams_item_channels_item_joined_users_add_post_request_body.go b/teamwork/deleted_teams_item_channels_item_joined_users_add_post_request_body.go new file mode 100644 index 00000000000..f40349a9218 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_joined_users_add_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewDeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBody instantiates a new DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBody and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBody()(*DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBody) { + m := &DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateDeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/teamwork/deleted_teams_item_channels_item_joined_users_add_post_response.go b/teamwork/deleted_teams_item_channels_item_joined_users_add_post_response.go new file mode 100644 index 00000000000..87d6758e9f7 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_joined_users_add_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type DeletedTeamsItemChannelsItemJoinedUsersAddPostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewDeletedTeamsItemChannelsItemJoinedUsersAddPostResponse instantiates a new DeletedTeamsItemChannelsItemJoinedUsersAddPostResponse and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersAddPostResponse()(*DeletedTeamsItemChannelsItemJoinedUsersAddPostResponse) { + m := &DeletedTeamsItemChannelsItemJoinedUsersAddPostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateDeletedTeamsItemChannelsItemJoinedUsersAddPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDeletedTeamsItemChannelsItemJoinedUsersAddPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDeletedTeamsItemChannelsItemJoinedUsersAddPostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type DeletedTeamsItemChannelsItemJoinedUsersAddPostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/teamwork/deleted_teams_item_channels_item_joined_users_add_request_builder.go b/teamwork/deleted_teams_item_channels_item_joined_users_add_request_builder.go new file mode 100644 index 00000000000..c27d5ea5e2d --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_joined_users_add_request_builder.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder provides operations to call the add method. +type DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewDeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilderInternal instantiates a new DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder) { + m := &DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/joinedUsers/add", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder instantiates a new DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilderInternal(urlParams, requestAdapter) +} +// Post add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// Deprecated: This method is obsolete. Use PostAsAddPostResponse instead. +// returns a DeletedTeamsItemChannelsItemJoinedUsersAddResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder) Post(ctx context.Context, body DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBodyable, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration)(DeletedTeamsItemChannelsItemJoinedUsersAddResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateDeletedTeamsItemChannelsItemJoinedUsersAddResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(DeletedTeamsItemChannelsItemJoinedUsersAddResponseable), nil +} +// PostAsAddPostResponse add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a DeletedTeamsItemChannelsItemJoinedUsersAddPostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder) PostAsAddPostResponse(ctx context.Context, body DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBodyable, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration)(DeletedTeamsItemChannelsItemJoinedUsersAddPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateDeletedTeamsItemChannelsItemJoinedUsersAddPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(DeletedTeamsItemChannelsItemJoinedUsersAddPostResponseable), nil +} +// ToPostRequestInformation add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body DeletedTeamsItemChannelsItemJoinedUsersAddPostRequestBodyable, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder) { + return NewDeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_item_joined_users_add_response.go b/teamwork/deleted_teams_item_channels_item_joined_users_add_response.go new file mode 100644 index 00000000000..68ed56d9948 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_joined_users_add_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use DeletedTeamsItemChannelsItemJoinedUsersAddPostResponseable instead. +type DeletedTeamsItemChannelsItemJoinedUsersAddResponse struct { + DeletedTeamsItemChannelsItemJoinedUsersAddPostResponse +} +// NewDeletedTeamsItemChannelsItemJoinedUsersAddResponse instantiates a new DeletedTeamsItemChannelsItemJoinedUsersAddResponse and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersAddResponse()(*DeletedTeamsItemChannelsItemJoinedUsersAddResponse) { + m := &DeletedTeamsItemChannelsItemJoinedUsersAddResponse{ + DeletedTeamsItemChannelsItemJoinedUsersAddPostResponse: *NewDeletedTeamsItemChannelsItemJoinedUsersAddPostResponse(), + } + return m +} +// CreateDeletedTeamsItemChannelsItemJoinedUsersAddResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDeletedTeamsItemChannelsItemJoinedUsersAddResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDeletedTeamsItemChannelsItemJoinedUsersAddResponse(), nil +} +// Deprecated: This class is obsolete. Use DeletedTeamsItemChannelsItemJoinedUsersAddPostResponseable instead. +type DeletedTeamsItemChannelsItemJoinedUsersAddResponseable interface { + DeletedTeamsItemChannelsItemJoinedUsersAddPostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/teamwork/deleted_teams_item_channels_item_joined_users_conversation_member_item_request_builder.go b/teamwork/deleted_teams_item_channels_item_joined_users_conversation_member_item_request_builder.go new file mode 100644 index 00000000000..0ac6f6a23eb --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_joined_users_conversation_member_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters get joinedUsers from teamwork +type DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetQueryParameters +} +// DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewDeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal instantiates a new DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + m := &DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/joinedUsers/{conversationMember%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder instantiates a new DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property joinedUsers for teamwork +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get joinedUsers from teamwork +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Patch update the navigation property joinedUsers in teamwork +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// ToDeleteRequestInformation delete navigation property joinedUsers for teamwork +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get joinedUsers from teamwork +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property joinedUsers in teamwork +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + return NewDeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_item_joined_users_count_request_builder.go b/teamwork/deleted_teams_item_channels_item_joined_users_count_request_builder.go new file mode 100644 index 00000000000..5985c3ffe62 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_joined_users_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder provides operations to count the resources in the collection. +type DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilderGetQueryParameters get the number of the resource +type DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilderGetQueryParameters +} +// NewDeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilderInternal instantiates a new DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder) { + m := &DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/joinedUsers/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder instantiates a new DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder) { + return NewDeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_item_joined_users_remove_post_request_body.go b/teamwork/deleted_teams_item_channels_item_joined_users_remove_post_request_body.go new file mode 100644 index 00000000000..af5f1cc7e32 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_joined_users_remove_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewDeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBody instantiates a new DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBody and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBody()(*DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBody) { + m := &DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateDeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + } + m.SetValues(res) + } + return nil + } + return res +} +// GetValues gets the values property value. The values property +// returns a []ConversationMemberable when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBody) GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) { + val, err := m.GetBackingStore().Get("values") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + } + return nil +} +// Serialize serializes information the current object +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetValues() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValues())) + for i, v := range m.GetValues() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("values", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetValues sets the values property value. The values property +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBody) SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() { + err := m.GetBackingStore().Set("values", value) + if err != nil { + panic(err) + } +} +type DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetValues()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetValues(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable)() +} diff --git a/teamwork/deleted_teams_item_channels_item_joined_users_remove_post_response.go b/teamwork/deleted_teams_item_channels_item_joined_users_remove_post_response.go new file mode 100644 index 00000000000..546e5ec3ab1 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_joined_users_remove_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewDeletedTeamsItemChannelsItemJoinedUsersRemovePostResponse instantiates a new DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponse and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersRemovePostResponse()(*DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponse) { + m := &DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateDeletedTeamsItemChannelsItemJoinedUsersRemovePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDeletedTeamsItemChannelsItemJoinedUsersRemovePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDeletedTeamsItemChannelsItemJoinedUsersRemovePostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/teamwork/deleted_teams_item_channels_item_joined_users_remove_request_builder.go b/teamwork/deleted_teams_item_channels_item_joined_users_remove_request_builder.go new file mode 100644 index 00000000000..eb351d1a5a2 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_joined_users_remove_request_builder.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder provides operations to call the remove method. +type DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewDeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilderInternal instantiates a new DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder) { + m := &DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/joinedUsers/remove", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder instantiates a new DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// Deprecated: This method is obsolete. Use PostAsRemovePostResponse instead. +// returns a DeletedTeamsItemChannelsItemJoinedUsersRemoveResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder) Post(ctx context.Context, body DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBodyable, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(DeletedTeamsItemChannelsItemJoinedUsersRemoveResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateDeletedTeamsItemChannelsItemJoinedUsersRemoveResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(DeletedTeamsItemChannelsItemJoinedUsersRemoveResponseable), nil +} +// PostAsRemovePostResponse remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-beta +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder) PostAsRemovePostResponse(ctx context.Context, body DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBodyable, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateDeletedTeamsItemChannelsItemJoinedUsersRemovePostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponseable), nil +} +// ToPostRequestInformation remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body DeletedTeamsItemChannelsItemJoinedUsersRemovePostRequestBodyable, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder) { + return NewDeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_item_joined_users_remove_response.go b/teamwork/deleted_teams_item_channels_item_joined_users_remove_response.go new file mode 100644 index 00000000000..bae0190ffa4 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_joined_users_remove_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponseable instead. +type DeletedTeamsItemChannelsItemJoinedUsersRemoveResponse struct { + DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponse +} +// NewDeletedTeamsItemChannelsItemJoinedUsersRemoveResponse instantiates a new DeletedTeamsItemChannelsItemJoinedUsersRemoveResponse and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersRemoveResponse()(*DeletedTeamsItemChannelsItemJoinedUsersRemoveResponse) { + m := &DeletedTeamsItemChannelsItemJoinedUsersRemoveResponse{ + DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponse: *NewDeletedTeamsItemChannelsItemJoinedUsersRemovePostResponse(), + } + return m +} +// CreateDeletedTeamsItemChannelsItemJoinedUsersRemoveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDeletedTeamsItemChannelsItemJoinedUsersRemoveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDeletedTeamsItemChannelsItemJoinedUsersRemoveResponse(), nil +} +// Deprecated: This class is obsolete. Use DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponseable instead. +type DeletedTeamsItemChannelsItemJoinedUsersRemoveResponseable interface { + DeletedTeamsItemChannelsItemJoinedUsersRemovePostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/teamwork/deleted_teams_item_channels_item_joined_users_request_builder.go b/teamwork/deleted_teams_item_channels_item_joined_users_request_builder.go new file mode 100644 index 00000000000..a624cc7cc9a --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_joined_users_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsItemJoinedUsersRequestBuilderGetQueryParameters get joinedUsers from teamwork +type DeletedTeamsItemChannelsItemJoinedUsersRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// DeletedTeamsItemChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilderGetQueryParameters +} +// DeletedTeamsItemChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Add provides operations to call the add method. +// returns a *DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder) Add()(*DeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilder) { + return NewDeletedTeamsItemChannelsItemJoinedUsersAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ByConversationMemberId provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder) ByConversationMemberId(conversationMemberId string)(*DeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if conversationMemberId != "" { + urlTplParams["conversationMember%2Did"] = conversationMemberId + } + return NewDeletedTeamsItemChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewDeletedTeamsItemChannelsItemJoinedUsersRequestBuilderInternal instantiates a new DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder) { + m := &DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/joinedUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsItemJoinedUsersRequestBuilder instantiates a new DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemJoinedUsersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsItemJoinedUsersRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder) Count()(*DeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilder) { + return NewDeletedTeamsItemChannelsItemJoinedUsersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get joinedUsers from teamwork +// returns a ConversationMemberCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable), nil +} +// Post create new navigation property to joinedUsers for teamwork +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Remove provides operations to call the remove method. +// returns a *DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder) Remove()(*DeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilder) { + return NewDeletedTeamsItemChannelsItemJoinedUsersRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation get joinedUsers from teamwork +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to joinedUsers for teamwork +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsItemJoinedUsersRequestBuilder) { + return NewDeletedTeamsItemChannelsItemJoinedUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_item_planner_plans_item_history_items_count_request_builder.go b/teamwork/deleted_teams_item_channels_item_planner_plans_item_history_items_count_request_builder.go new file mode 100644 index 00000000000..66876ff3423 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_planner_plans_item_history_items_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder provides operations to count the resources in the collection. +type DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters get the number of the resource +type DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters +} +// NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal instantiates a new DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + m := &DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/planner/plans/{plannerPlan%2Did}/historyItems/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder instantiates a new DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_item_planner_plans_item_history_items_request_builder.go b/teamwork/deleted_teams_item_channels_item_planner_plans_item_history_items_request_builder.go new file mode 100644 index 00000000000..ce399418534 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_planner_plans_item_history_items_request_builder.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters get historyItems from teamwork +type DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters +} +// DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByPlannerHistoryItemId provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) ByPlannerHistoryItemId(plannerHistoryItemId string)(*DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if plannerHistoryItemId != "" { + urlTplParams["plannerHistoryItem%2Did"] = plannerHistoryItemId + } + return NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal instantiates a new DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + m := &DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/planner/plans/{plannerPlan%2Did}/historyItems{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder instantiates a new DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) Count()(*DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get historyItems from teamwork +// returns a PlannerHistoryItemCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable), nil +} +// Post create new navigation property to historyItems for teamwork +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToGetRequestInformation get historyItems from teamwork +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to historyItems for teamwork +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + return NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_item_planner_plans_planner_plan_item_request_builder.go b/teamwork/deleted_teams_item_channels_item_planner_plans_planner_plan_item_request_builder.go index ddecb74eaa8..aba3404f9f7 100644 --- a/teamwork/deleted_teams_item_channels_item_planner_plans_planner_plan_item_request_builder.go +++ b/teamwork/deleted_teams_item_channels_item_planner_plans_planner_plan_item_request_builder.go @@ -113,6 +113,11 @@ func (m *DeletedTeamsItemChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) func (m *DeletedTeamsItemChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) GetUsageRights()(*DeletedTeamsItemChannelsItemPlannerPlansItemGetUsageRightsRequestBuilder) { return NewDeletedTeamsItemChannelsItemPlannerPlansItemGetUsageRightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// HistoryItems provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) HistoryItems()(*DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + return NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MoveToContainer provides operations to call the moveToContainer method. // returns a *DeletedTeamsItemChannelsItemPlannerPlansItemMoveToContainerRequestBuilder when successful func (m *DeletedTeamsItemChannelsItemPlannerPlansPlannerPlanItemRequestBuilder) MoveToContainer()(*DeletedTeamsItemChannelsItemPlannerPlansItemMoveToContainerRequestBuilder) { diff --git a/teamwork/determine_if_interaction_is_allowed_post_response.go b/teamwork/determine_if_interaction_is_allowed_post_response.go index d99268fddc3..6771ee5d7dc 100644 --- a/teamwork/determine_if_interaction_is_allowed_post_response.go +++ b/teamwork/determine_if_interaction_is_allowed_post_response.go @@ -18,6 +18,8 @@ func NewDetermineIfInteractionIsAllowedPostResponse()(*DetermineIfInteractionIsA } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateDetermineIfInteractionIsAllowedPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamwork/e7db44bcd09828032f52579004fc75ea361008fe6ed2796f2850d7555d10caa2.go b/teamwork/e7db44bcd09828032f52579004fc75ea361008fe6ed2796f2850d7555d10caa2.go new file mode 100644 index 00000000000..b31fddce93f --- /dev/null +++ b/teamwork/e7db44bcd09828032f52579004fc75ea361008fe6ed2796f2850d7555d10caa2.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/teamwork/f3b061d0cc09ddb7058da2f43512a2b6ecbaf3167999659997b11cdfd970b2ba.go b/teamwork/f3b061d0cc09ddb7058da2f43512a2b6ecbaf3167999659997b11cdfd970b2ba.go new file mode 100644 index 00000000000..23843440c45 --- /dev/null +++ b/teamwork/f3b061d0cc09ddb7058da2f43512a2b6ecbaf3167999659997b11cdfd970b2ba.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters get historyItems from teamwork +type DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters +} +// DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal instantiates a new DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + m := &DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/planner/plans/{plannerPlan%2Did}/historyItems/{plannerHistoryItem%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder instantiates a new DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property historyItems for teamwork +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get historyItems from teamwork +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// Patch update the navigation property historyItems in teamwork +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToDeleteRequestInformation delete navigation property historyItems for teamwork +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get historyItems from teamwork +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property historyItems in teamwork +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + return NewDeletedTeamsItemChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/fc6489138afc2d8a783868cdfccab35ee848760be7cc4b69a1709db6f6eb2d61.go b/teamwork/fc6489138afc2d8a783868cdfccab35ee848760be7cc4b69a1709db6f6eb2d61.go new file mode 100644 index 00000000000..fd02172a713 --- /dev/null +++ b/teamwork/fc6489138afc2d8a783868cdfccab35ee848760be7cc4b69a1709db6f6eb2d61.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters get historyItems from teamwork +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByPlannerHistoryItemId provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) ByPlannerHistoryItemId(plannerHistoryItemId string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if plannerHistoryItemId != "" { + urlTplParams["plannerHistoryItem%2Did"] = plannerHistoryItemId + } + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/planner/plans/{plannerPlan%2Did}/historyItems{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) Count()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get historyItems from teamwork +// returns a PlannerHistoryItemCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable), nil +} +// Post create new navigation property to historyItems for teamwork +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToGetRequestInformation get historyItems from teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to historyItems for teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemPlannerPlansItemHistoryItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/messaging_custom_emojis_count_request_builder.go b/teamwork/messaging_custom_emojis_count_request_builder.go new file mode 100644 index 00000000000..73a8b9bef1d --- /dev/null +++ b/teamwork/messaging_custom_emojis_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MessagingCustomEmojisCountRequestBuilder provides operations to count the resources in the collection. +type MessagingCustomEmojisCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MessagingCustomEmojisCountRequestBuilderGetQueryParameters get the number of the resource +type MessagingCustomEmojisCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// MessagingCustomEmojisCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MessagingCustomEmojisCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *MessagingCustomEmojisCountRequestBuilderGetQueryParameters +} +// NewMessagingCustomEmojisCountRequestBuilderInternal instantiates a new MessagingCustomEmojisCountRequestBuilder and sets the default values. +func NewMessagingCustomEmojisCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MessagingCustomEmojisCountRequestBuilder) { + m := &MessagingCustomEmojisCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/messaging/customEmojis/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewMessagingCustomEmojisCountRequestBuilder instantiates a new MessagingCustomEmojisCountRequestBuilder and sets the default values. +func NewMessagingCustomEmojisCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MessagingCustomEmojisCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMessagingCustomEmojisCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MessagingCustomEmojisCountRequestBuilder) Get(ctx context.Context, requestConfiguration *MessagingCustomEmojisCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *MessagingCustomEmojisCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MessagingCustomEmojisCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *MessagingCustomEmojisCountRequestBuilder when successful +func (m *MessagingCustomEmojisCountRequestBuilder) WithUrl(rawUrl string)(*MessagingCustomEmojisCountRequestBuilder) { + return NewMessagingCustomEmojisCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/messaging_custom_emojis_request_builder.go b/teamwork/messaging_custom_emojis_request_builder.go new file mode 100644 index 00000000000..5d050470d35 --- /dev/null +++ b/teamwork/messaging_custom_emojis_request_builder.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MessagingCustomEmojisRequestBuilder provides operations to manage the customEmojis property of the microsoft.graph.teamworkMessaging entity. +type MessagingCustomEmojisRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MessagingCustomEmojisRequestBuilderGetQueryParameters get customEmojis from teamwork +type MessagingCustomEmojisRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// MessagingCustomEmojisRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MessagingCustomEmojisRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *MessagingCustomEmojisRequestBuilderGetQueryParameters +} +// MessagingCustomEmojisRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MessagingCustomEmojisRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByTeamworkCustomEmojiDisplayName provides operations to manage the customEmojis property of the microsoft.graph.teamworkMessaging entity. +// returns a *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder when successful +func (m *MessagingCustomEmojisRequestBuilder) ByTeamworkCustomEmojiDisplayName(teamworkCustomEmojiDisplayName string)(*MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if teamworkCustomEmojiDisplayName != "" { + urlTplParams["teamworkCustomEmoji%2DdisplayName"] = teamworkCustomEmojiDisplayName + } + return NewMessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewMessagingCustomEmojisRequestBuilderInternal instantiates a new MessagingCustomEmojisRequestBuilder and sets the default values. +func NewMessagingCustomEmojisRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MessagingCustomEmojisRequestBuilder) { + m := &MessagingCustomEmojisRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/messaging/customEmojis{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewMessagingCustomEmojisRequestBuilder instantiates a new MessagingCustomEmojisRequestBuilder and sets the default values. +func NewMessagingCustomEmojisRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MessagingCustomEmojisRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMessagingCustomEmojisRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *MessagingCustomEmojisCountRequestBuilder when successful +func (m *MessagingCustomEmojisRequestBuilder) Count()(*MessagingCustomEmojisCountRequestBuilder) { + return NewMessagingCustomEmojisCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get customEmojis from teamwork +// returns a TeamworkCustomEmojiCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MessagingCustomEmojisRequestBuilder) Get(ctx context.Context, requestConfiguration *MessagingCustomEmojisRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkCustomEmojiCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateTeamworkCustomEmojiCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkCustomEmojiCollectionResponseable), nil +} +// Post create new navigation property to customEmojis for teamwork +// returns a TeamworkCustomEmojiable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MessagingCustomEmojisRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkCustomEmojiable, requestConfiguration *MessagingCustomEmojisRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkCustomEmojiable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateTeamworkCustomEmojiFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkCustomEmojiable), nil +} +// ToGetRequestInformation get customEmojis from teamwork +// returns a *RequestInformation when successful +func (m *MessagingCustomEmojisRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MessagingCustomEmojisRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to customEmojis for teamwork +// returns a *RequestInformation when successful +func (m *MessagingCustomEmojisRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkCustomEmojiable, requestConfiguration *MessagingCustomEmojisRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *MessagingCustomEmojisRequestBuilder when successful +func (m *MessagingCustomEmojisRequestBuilder) WithUrl(rawUrl string)(*MessagingCustomEmojisRequestBuilder) { + return NewMessagingCustomEmojisRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/messaging_custom_emojis_teamwork_custom_emoji_display_name_item_request_builder.go b/teamwork/messaging_custom_emojis_teamwork_custom_emoji_display_name_item_request_builder.go new file mode 100644 index 00000000000..d9b281f2c30 --- /dev/null +++ b/teamwork/messaging_custom_emojis_teamwork_custom_emoji_display_name_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder provides operations to manage the customEmojis property of the microsoft.graph.teamworkMessaging entity. +type MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderGetQueryParameters get customEmojis from teamwork +type MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderGetQueryParameters +} +// MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderInternal instantiates a new MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder and sets the default values. +func NewMessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder) { + m := &MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/messaging/customEmojis/{teamworkCustomEmoji%2DdisplayName}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewMessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder instantiates a new MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder and sets the default values. +func NewMessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property customEmojis for teamwork +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get customEmojis from teamwork +// returns a TeamworkCustomEmojiable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkCustomEmojiable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateTeamworkCustomEmojiFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkCustomEmojiable), nil +} +// Patch update the navigation property customEmojis in teamwork +// returns a TeamworkCustomEmojiable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkCustomEmojiable, requestConfiguration *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkCustomEmojiable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateTeamworkCustomEmojiFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkCustomEmojiable), nil +} +// ToDeleteRequestInformation delete navigation property customEmojis for teamwork +// returns a *RequestInformation when successful +func (m *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get customEmojis from teamwork +// returns a *RequestInformation when successful +func (m *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property customEmojis in teamwork +// returns a *RequestInformation when successful +func (m *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkCustomEmojiable, requestConfiguration *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder when successful +func (m *MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder) WithUrl(rawUrl string)(*MessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder) { + return NewMessagingCustomEmojisTeamworkCustomEmojiDisplayNameItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/messaging_request_builder.go b/teamwork/messaging_request_builder.go new file mode 100644 index 00000000000..28706cf8836 --- /dev/null +++ b/teamwork/messaging_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// MessagingRequestBuilder provides operations to manage the messaging property of the microsoft.graph.teamwork entity. +type MessagingRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// MessagingRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MessagingRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// MessagingRequestBuilderGetQueryParameters get messaging from teamwork +type MessagingRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// MessagingRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MessagingRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *MessagingRequestBuilderGetQueryParameters +} +// MessagingRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type MessagingRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewMessagingRequestBuilderInternal instantiates a new MessagingRequestBuilder and sets the default values. +func NewMessagingRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MessagingRequestBuilder) { + m := &MessagingRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/messaging{?%24expand,%24select}", pathParameters), + } + return m +} +// NewMessagingRequestBuilder instantiates a new MessagingRequestBuilder and sets the default values. +func NewMessagingRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*MessagingRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewMessagingRequestBuilderInternal(urlParams, requestAdapter) +} +// CustomEmojis provides operations to manage the customEmojis property of the microsoft.graph.teamworkMessaging entity. +// returns a *MessagingCustomEmojisRequestBuilder when successful +func (m *MessagingRequestBuilder) CustomEmojis()(*MessagingCustomEmojisRequestBuilder) { + return NewMessagingCustomEmojisRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Delete delete navigation property messaging for teamwork +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MessagingRequestBuilder) Delete(ctx context.Context, requestConfiguration *MessagingRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get messaging from teamwork +// returns a TeamworkMessagingable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MessagingRequestBuilder) Get(ctx context.Context, requestConfiguration *MessagingRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkMessagingable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateTeamworkMessagingFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkMessagingable), nil +} +// Patch update the navigation property messaging in teamwork +// returns a TeamworkMessagingable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *MessagingRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkMessagingable, requestConfiguration *MessagingRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkMessagingable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateTeamworkMessagingFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkMessagingable), nil +} +// ToDeleteRequestInformation delete navigation property messaging for teamwork +// returns a *RequestInformation when successful +func (m *MessagingRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *MessagingRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get messaging from teamwork +// returns a *RequestInformation when successful +func (m *MessagingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MessagingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property messaging in teamwork +// returns a *RequestInformation when successful +func (m *MessagingRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamworkMessagingable, requestConfiguration *MessagingRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *MessagingRequestBuilder when successful +func (m *MessagingRequestBuilder) WithUrl(rawUrl string)(*MessagingRequestBuilder) { + return NewMessagingRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_archive_post_request_body.go b/teamwork/team_templates_item_definitions_item_team_definition_archive_post_request_body.go index 1cb916529fd..13f77638ca3 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_archive_post_request_body.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_archive_post_request_body.go @@ -18,6 +18,8 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionArchivePostRequestBody()(* } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + shouldSetSpoSiteReadOnlyForMembersValue := false + m.SetShouldSetSpoSiteReadOnlyForMembers(&shouldSetSpoSiteReadOnlyForMembersValue) return m } // CreateTeamTemplatesItemDefinitionsItemTeamDefinitionArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_channel_item_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_channel_item_request_builder.go index 09cafcfa35f..054a889e8ee 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_channel_item_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_channel_item_request_builder.go @@ -123,6 +123,11 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemReques } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Channelable), nil } +// JoinedUsers provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBuilder) JoinedUsers()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Members provides operations to manage the members property of the microsoft.graph.channel entity. // returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersRequestBuilder when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsChannelItemRequestBuilder) Members()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemMembersRequestBuilder) { diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_post_request_body.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_post_request_body.go index 9bf7a83b254..7134a7cde46 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_post_request_body.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_archive_post_request_body.go @@ -18,6 +18,8 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostReq } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + shouldSetSpoSiteReadOnlyForMembersValue := false + m.SetShouldSetSpoSiteReadOnlyForMembers(&shouldSetSpoSiteReadOnlyForMembersValue) return m } // CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_add_post_response.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_add_post_response.go new file mode 100644 index 00000000000..1c28a3ddbe2 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_add_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_add_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_add_request_builder.go new file mode 100644 index 00000000000..055497676de --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_add_request_builder.go @@ -0,0 +1,102 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder provides operations to call the add method. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/joinedUsers/add", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderInternal(urlParams, requestAdapter) +} +// Post add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// Deprecated: This method is obsolete. Use PostAsAddPostResponse instead. +// returns a TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) Post(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration)(TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddResponseable), nil +} +// PostAsAddPostResponse add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-beta +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) PostAsAddPostResponse(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration)(TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseable), nil +} +// ToPostRequestInformation add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostRequestBodyable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_add_response.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_add_response.go new file mode 100644 index 00000000000..2e6f19cb51a --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_add_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseable instead. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddResponse struct { + TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddResponse instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddResponse and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddResponse()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddResponse) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddResponse{ + TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse: *NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponse(), + } + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddResponse(), nil +} +// Deprecated: This class is obsolete. Use TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseable instead. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddPostResponseable +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_remove_post_response.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_remove_post_response.go new file mode 100644 index 00000000000..862e8ed53f4 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_remove_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_remove_response.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_remove_response.go new file mode 100644 index 00000000000..7f52fe35723 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_remove_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseable instead. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveResponse struct { + TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveResponse instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveResponse and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveResponse()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveResponse) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveResponse{ + TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse: *NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponse(), + } + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveResponse(), nil +} +// Deprecated: This class is obsolete. Use TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseable instead. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemovePostResponseable +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_request_builder.go new file mode 100644 index 00000000000..d070fe04e63 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_channels_item_joined_users_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderGetQueryParameters get joinedUsers from teamwork +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderGetQueryParameters +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Add provides operations to call the add method. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) Add()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ByConversationMemberId provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) ByConversationMemberId(conversationMemberId string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if conversationMemberId != "" { + urlTplParams["conversationMember%2Did"] = conversationMemberId + } + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersConversationMemberItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/joinedUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) Count()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get joinedUsers from teamwork +// returns a ConversationMemberCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable), nil +} +// Post create new navigation property to joinedUsers for teamwork +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Remove provides operations to call the remove method. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) Remove()(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation get joinedUsers from teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to joinedUsers for teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionChannelsItemJoinedUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_post_request_body.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_post_request_body.go index a8d0fcd2fb9..05533c87fe5 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_post_request_body.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_archive_post_request_body.go @@ -18,6 +18,8 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostR } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + shouldSetSpoSiteReadOnlyForMembersValue := false + m.SetShouldSetSpoSiteReadOnlyForMembers(&shouldSetSpoSiteReadOnlyForMembersValue) return m } // CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_joined_users_add_post_response.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_joined_users_add_post_response.go new file mode 100644 index 00000000000..b978be043f4 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_joined_users_add_post_response.go @@ -0,0 +1,92 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateActionResultPartFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ActionResultPartable when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + } + return nil +} +// Serialize serializes information the current object +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActionResultPartable)() +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_joined_users_add_response.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_joined_users_add_response.go new file mode 100644 index 00000000000..d1ddc07ee86 --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_joined_users_add_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseable instead. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddResponse struct { + TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddResponse instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddResponse and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddResponse()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddResponse) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddResponse{ + TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse: *NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponse(), + } + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddResponse(), nil +} +// Deprecated: This class is obsolete. Use TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseable instead. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddPostResponseable +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_joined_users_remove_response.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_joined_users_remove_response.go new file mode 100644 index 00000000000..d12dc19339b --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_joined_users_remove_response.go @@ -0,0 +1,30 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseable instead. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponse struct { + TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponse instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponse and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponse()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponse) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponse{ + TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse: *NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponse(), + } + return m +} +// CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponse(), nil +} +// Deprecated: This class is obsolete. Use TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseable instead. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemovePostResponseable +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_joined_users_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_joined_users_request_builder.go new file mode 100644 index 00000000000..3ab6e93ba2e --- /dev/null +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_joined_users_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderGetQueryParameters get joinedUsers from teamwork +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderGetQueryParameters +} +// TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Add provides operations to call the add method. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) Add()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ByConversationMemberId provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) ByConversationMemberId(conversationMemberId string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if conversationMemberId != "" { + urlTplParams["conversationMember%2Did"] = conversationMemberId + } + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersConversationMemberItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderInternal instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) { + m := &TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/joinedUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder instantiates a new TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder and sets the default values. +func NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) Count()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get joinedUsers from teamwork +// returns a ConversationMemberCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable), nil +} +// Post create new navigation property to joinedUsers for teamwork +// returns a ConversationMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateConversationMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil +} +// Remove provides operations to call the remove method. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) Remove()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation get joinedUsers from teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to joinedUsers for teamwork +// returns a *RequestInformation when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_request_builder.go index e4790b0ae5b..5993f2e37a7 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_primary_channel_request_builder.go @@ -123,6 +123,11 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuil } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Channelable), nil } +// JoinedUsers provides operations to manage the joinedUsers property of the microsoft.graph.channel entity. +// returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder when successful +func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilder) JoinedUsers()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilder) { + return NewTeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelJoinedUsersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Members provides operations to manage the members property of the microsoft.graph.channel entity. // returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersRequestBuilder when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelRequestBuilder) Members()(*TeamTemplatesItemDefinitionsItemTeamDefinitionPrimaryChannelMembersRequestBuilder) { diff --git a/teamwork/team_templates_item_definitions_item_team_definition_schedule_share_post_request_body.go b/teamwork/team_templates_item_definitions_item_team_definition_schedule_share_post_request_body.go index 79657b347de..255ef716ba8 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_schedule_share_post_request_body.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_schedule_share_post_request_body.go @@ -19,6 +19,8 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleSharePostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + notifyTeamValue := false + m.SetNotifyTeam(¬ifyTeamValue) return m } // CreateTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleSharePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamwork/team_templates_item_definitions_item_team_definition_schedule_time_cards_clock_in_post_request_body.go b/teamwork/team_templates_item_definitions_item_team_definition_schedule_time_cards_clock_in_post_request_body.go index 70d0a04371b..cf23075b270 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_schedule_time_cards_clock_in_post_request_body.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_schedule_time_cards_clock_in_post_request_body.go @@ -19,6 +19,10 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeCardsClockInPo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + atApprovedLocationValue := false + m.SetAtApprovedLocation(&atApprovedLocationValue) + isAtApprovedLocationValue := false + m.SetIsAtApprovedLocation(&isAtApprovedLocationValue) return m } // CreateTeamTemplatesItemDefinitionsItemTeamDefinitionScheduleTimeCardsClockInPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/teamwork/teamwork_request_builder.go b/teamwork/teamwork_request_builder.go index 88c712598f6..e733dc30ad7 100644 --- a/teamwork/teamwork_request_builder.go +++ b/teamwork/teamwork_request_builder.go @@ -93,6 +93,11 @@ func (m *TeamworkRequestBuilder) Get(ctx context.Context, requestConfiguration * } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Teamworkable), nil } +// Messaging provides operations to manage the messaging property of the microsoft.graph.teamwork entity. +// returns a *MessagingRequestBuilder when successful +func (m *TeamworkRequestBuilder) Messaging()(*MessagingRequestBuilder) { + return NewMessagingRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Patch update teamwork // returns a Teamworkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/templates/device_templates_item_create_device_from_template_post_request_body.go b/templates/device_templates_item_create_device_from_template_post_request_body.go index 9dbf08099c1..59afc800d5f 100644 --- a/templates/device_templates_item_create_device_from_template_post_request_body.go +++ b/templates/device_templates_item_create_device_from_template_post_request_body.go @@ -18,6 +18,8 @@ func NewDeviceTemplatesItemCreateDeviceFromTemplatePostRequestBody()(*DeviceTemp m := &DeviceTemplatesItemCreateDeviceFromTemplatePostRequestBody{ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + accountEnabledValue := false + m.SetAccountEnabled(&accountEnabledValue) m.SetAdditionalData(make(map[string]any)) return m } diff --git a/tenantrelationships/d71c2137acaca2791ff7549b2ac0a61a6306590dd4aeaa21fc0b51f7ba1d3947.go b/tenantrelationships/d71c2137acaca2791ff7549b2ac0a61a6306590dd4aeaa21fc0b51f7ba1d3947.go index d4df539d7ce..58913e6c0c2 100644 --- a/tenantrelationships/d71c2137acaca2791ff7549b2ac0a61a6306590dd4aeaa21fc0b51f7ba1d3947.go +++ b/tenantrelationships/d71c2137acaca2791ff7549b2ac0a61a6306590dd4aeaa21fc0b51f7ba1d3947.go @@ -18,6 +18,8 @@ func NewManagedTenantsManagementActionsItemMicrosoftGraphManagedTenantsApplyAppl } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + includeAllUsersValue := false + m.SetIncludeAllUsers(&includeAllUsersValue) return m } // CreateManagedTenantsManagementActionsItemMicrosoftGraphManagedTenantsApplyApplyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_adhoc_calls_item_transcripts_item_content_request_builder.go b/users/item_adhoc_calls_item_transcripts_item_content_request_builder.go index 25a6f211084..469ddc2662f 100644 --- a/users/item_adhoc_calls_item_transcripts_item_content_request_builder.go +++ b/users/item_adhoc_calls_item_transcripts_item_content_request_builder.go @@ -64,9 +64,12 @@ func (m *ItemAdhocCallsItemTranscriptsItemContentRequestBuilder) Delete(ctx cont } return nil } -// Get the content of the transcript. Read-only. +// Get retrieve a callTranscript object associated with a scheduled onlineMeeting and an ad hoc call. This API supports the retrieval of call transcripts from private chat meetings and channel meetings, and ad hoc calls including PSTN, 1:1, and group calls. Private channel meetings are not supported. Retrieving the transcript returns the metadata of the single transcript associated with an online meeting or an ad hoc call. Retrieving the content of the transcript returns the stream of text associated with the transcript. // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/calltranscript-get?view=graph-rest-beta func (m *ItemAdhocCallsItemTranscriptsItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAdhocCallsItemTranscriptsItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -115,7 +118,7 @@ func (m *ItemAdhocCallsItemTranscriptsItemContentRequestBuilder) ToDeleteRequest requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the content of the transcript. Read-only. +// ToGetRequestInformation retrieve a callTranscript object associated with a scheduled onlineMeeting and an ad hoc call. This API supports the retrieval of call transcripts from private chat meetings and channel meetings, and ad hoc calls including PSTN, 1:1, and group calls. Private channel meetings are not supported. Retrieving the transcript returns the metadata of the single transcript associated with an online meeting or an ad hoc call. Retrieving the content of the transcript returns the stream of text associated with the transcript. // returns a *RequestInformation when successful func (m *ItemAdhocCallsItemTranscriptsItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAdhocCallsItemTranscriptsItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/item_calendar_events_item_accept_post_request_body.go b/users/item_calendar_events_item_accept_post_request_body.go index d1a6ce728d4..7c1b7b0a963 100644 --- a/users/item_calendar_events_item_accept_post_request_body.go +++ b/users/item_calendar_events_item_accept_post_request_body.go @@ -18,6 +18,8 @@ func NewItemCalendarEventsItemAcceptPostRequestBody()(*ItemCalendarEventsItemAcc } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemCalendarEventsItemAcceptPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_calendar_events_item_decline_post_request_body.go b/users/item_calendar_events_item_decline_post_request_body.go index 386db1bbaa2..4677a48b6f6 100644 --- a/users/item_calendar_events_item_decline_post_request_body.go +++ b/users/item_calendar_events_item_decline_post_request_body.go @@ -19,6 +19,8 @@ func NewItemCalendarEventsItemDeclinePostRequestBody()(*ItemCalendarEventsItemDe } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemCalendarEventsItemDeclinePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_calendar_events_item_tentatively_accept_post_request_body.go b/users/item_calendar_events_item_tentatively_accept_post_request_body.go index 76607e369df..a75564b1002 100644 --- a/users/item_calendar_events_item_tentatively_accept_post_request_body.go +++ b/users/item_calendar_events_item_tentatively_accept_post_request_body.go @@ -19,6 +19,8 @@ func NewItemCalendarEventsItemTentativelyAcceptPostRequestBody()(*ItemCalendarEv } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemCalendarEventsItemTentativelyAcceptPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_calendar_groups_item_calendars_item_events_item_accept_post_request_body.go b/users/item_calendar_groups_item_calendars_item_events_item_accept_post_request_body.go index dcc0a06b50e..48ebb4ca644 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_accept_post_request_body.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_accept_post_request_body.go @@ -18,6 +18,8 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemAcceptPostRequestBody()(*It } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemCalendarGroupsItemCalendarsItemEventsItemAcceptPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_calendar_groups_item_calendars_item_events_item_decline_post_request_body.go b/users/item_calendar_groups_item_calendars_item_events_item_decline_post_request_body.go index 5bc3a9a8718..b6d49c92f5b 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_decline_post_request_body.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_decline_post_request_body.go @@ -19,6 +19,8 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemDeclinePostRequestBody()(*I } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemCalendarGroupsItemCalendarsItemEventsItemDeclinePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_calendar_groups_item_calendars_item_events_item_tentatively_accept_post_request_body.go b/users/item_calendar_groups_item_calendars_item_events_item_tentatively_accept_post_request_body.go index e52f6c5f786..a4ad09b512c 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_tentatively_accept_post_request_body.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_tentatively_accept_post_request_body.go @@ -19,6 +19,8 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemTentativelyAcceptPostReques } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemCalendarGroupsItemCalendarsItemEventsItemTentativelyAcceptPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_calendars_item_events_item_accept_post_request_body.go b/users/item_calendars_item_events_item_accept_post_request_body.go index 34e17fe42ad..802bdd542f9 100644 --- a/users/item_calendars_item_events_item_accept_post_request_body.go +++ b/users/item_calendars_item_events_item_accept_post_request_body.go @@ -18,6 +18,8 @@ func NewItemCalendarsItemEventsItemAcceptPostRequestBody()(*ItemCalendarsItemEve } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemCalendarsItemEventsItemAcceptPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_calendars_item_events_item_decline_post_request_body.go b/users/item_calendars_item_events_item_decline_post_request_body.go index 2b81a530192..a62b2c9feb3 100644 --- a/users/item_calendars_item_events_item_decline_post_request_body.go +++ b/users/item_calendars_item_events_item_decline_post_request_body.go @@ -19,6 +19,8 @@ func NewItemCalendarsItemEventsItemDeclinePostRequestBody()(*ItemCalendarsItemEv } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemCalendarsItemEventsItemDeclinePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_calendars_item_events_item_tentatively_accept_post_request_body.go b/users/item_calendars_item_events_item_tentatively_accept_post_request_body.go index c1e17c6d7c8..83e3f575c67 100644 --- a/users/item_calendars_item_events_item_tentatively_accept_post_request_body.go +++ b/users/item_calendars_item_events_item_tentatively_accept_post_request_body.go @@ -19,6 +19,8 @@ func NewItemCalendarsItemEventsItemTentativelyAcceptPostRequestBody()(*ItemCalen } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemCalendarsItemEventsItemTentativelyAcceptPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_cloud_pc_pools_cloud_pc_pool_item_request_builder.go b/users/item_cloud_pc_pools_cloud_pc_pool_item_request_builder.go index f87619c3c40..a7ee05f11b7 100644 --- a/users/item_cloud_pc_pools_cloud_pc_pool_item_request_builder.go +++ b/users/item_cloud_pc_pools_cloud_pc_pool_item_request_builder.go @@ -21,7 +21,7 @@ type ItemCloudPcPoolsCloudPcPoolItemRequestBuilderDeleteRequestConfiguration str // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemCloudPcPoolsCloudPcPoolItemRequestBuilderGetQueryParameters get cloudPcPools from users +// ItemCloudPcPoolsCloudPcPoolItemRequestBuilderGetQueryParameters the user's Cloud PC pools. Read-only. Nullable. type ItemCloudPcPoolsCloudPcPoolItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -78,7 +78,7 @@ func (m *ItemCloudPcPoolsCloudPcPoolItemRequestBuilder) Delete(ctx context.Conte } return nil } -// Get get cloudPcPools from users +// Get the user's Cloud PC pools. Read-only. Nullable. // returns a CloudPcPoolable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudPcPoolsCloudPcPoolItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudPcPoolsCloudPcPoolItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolable, error) { @@ -129,7 +129,7 @@ func (m *ItemCloudPcPoolsCloudPcPoolItemRequestBuilder) ToDeleteRequestInformati requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get cloudPcPools from users +// ToGetRequestInformation the user's Cloud PC pools. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCloudPcPoolsCloudPcPoolItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPcPoolsCloudPcPoolItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/item_cloud_pc_pools_item_assignments_cloud_pc_pool_assignment_item_request_builder.go b/users/item_cloud_pc_pools_item_assignments_cloud_pc_pool_assignment_item_request_builder.go index e56c85ad0e7..810ebcd356b 100644 --- a/users/item_cloud_pc_pools_item_assignments_cloud_pc_pool_assignment_item_request_builder.go +++ b/users/item_cloud_pc_pools_item_assignments_cloud_pc_pool_assignment_item_request_builder.go @@ -21,7 +21,7 @@ type ItemCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilderDelet // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilderGetQueryParameters get assignments from users +// ItemCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilderGetQueryParameters the collection of assignments that grant user or service principal identities access to this pool. type ItemCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string "uriparametername:\"%24expand\"" @@ -73,7 +73,7 @@ func (m *ItemCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilder) } return nil } -// Get get assignments from users +// Get the collection of assignments that grant user or service principal identities access to this pool. // returns a CloudPcPoolAssignmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolAssignmentable, error) { @@ -124,7 +124,7 @@ func (m *ItemCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get assignments from users +// ToGetRequestInformation the collection of assignments that grant user or service principal identities access to this pool. // returns a *RequestInformation when successful func (m *ItemCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPcPoolsItemAssignmentsCloudPcPoolAssignmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/item_cloud_pc_pools_item_assignments_request_builder.go b/users/item_cloud_pc_pools_item_assignments_request_builder.go index 3e327205178..d281efaa7c8 100644 --- a/users/item_cloud_pc_pools_item_assignments_request_builder.go +++ b/users/item_cloud_pc_pools_item_assignments_request_builder.go @@ -14,7 +14,7 @@ import ( type ItemCloudPcPoolsItemAssignmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCloudPcPoolsItemAssignmentsRequestBuilderGetQueryParameters get assignments from users +// ItemCloudPcPoolsItemAssignmentsRequestBuilderGetQueryParameters the collection of assignments that grant user or service principal identities access to this pool. type ItemCloudPcPoolsItemAssignmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,7 +79,7 @@ func NewItemCloudPcPoolsItemAssignmentsRequestBuilder(rawUrl string, requestAdap func (m *ItemCloudPcPoolsItemAssignmentsRequestBuilder) Count()(*ItemCloudPcPoolsItemAssignmentsCountRequestBuilder) { return NewItemCloudPcPoolsItemAssignmentsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get assignments from users +// Get the collection of assignments that grant user or service principal identities access to this pool. // returns a CloudPcPoolAssignmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudPcPoolsItemAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudPcPoolsItemAssignmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolAssignmentCollectionResponseable, error) { @@ -119,7 +119,7 @@ func (m *ItemCloudPcPoolsItemAssignmentsRequestBuilder) Post(ctx context.Context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolAssignmentable), nil } -// ToGetRequestInformation get assignments from users +// ToGetRequestInformation the collection of assignments that grant user or service principal identities access to this pool. // returns a *RequestInformation when successful func (m *ItemCloudPcPoolsItemAssignmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPcPoolsItemAssignmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/item_cloud_pc_pools_request_builder.go b/users/item_cloud_pc_pools_request_builder.go index d89b6185584..3bab6497de7 100644 --- a/users/item_cloud_pc_pools_request_builder.go +++ b/users/item_cloud_pc_pools_request_builder.go @@ -14,7 +14,7 @@ import ( type ItemCloudPcPoolsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCloudPcPoolsRequestBuilderGetQueryParameters get cloudPcPools from users +// ItemCloudPcPoolsRequestBuilderGetQueryParameters the user's Cloud PC pools. Read-only. Nullable. type ItemCloudPcPoolsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -79,7 +79,7 @@ func NewItemCloudPcPoolsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7d func (m *ItemCloudPcPoolsRequestBuilder) Count()(*ItemCloudPcPoolsCountRequestBuilder) { return NewItemCloudPcPoolsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get cloudPcPools from users +// Get the user's Cloud PC pools. Read-only. Nullable. // returns a CloudPcPoolCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudPcPoolsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudPcPoolsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolCollectionResponseable, error) { @@ -119,7 +119,7 @@ func (m *ItemCloudPcPoolsRequestBuilder) Post(ctx context.Context, body ie233ee7 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcPoolable), nil } -// ToGetRequestInformation get cloudPcPools from users +// ToGetRequestInformation the user's Cloud PC pools. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCloudPcPoolsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPcPoolsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/item_devices_item_registered_owners_ref_request_builder.go b/users/item_devices_item_registered_owners_ref_request_builder.go index 4072c729419..d85c9203ee5 100644 --- a/users/item_devices_item_registered_owners_ref_request_builder.go +++ b/users/item_devices_item_registered_owners_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemDevicesItemRegisteredOwnersRefRequestBuilderPostRequestConfiguration st // NewItemDevicesItemRegisteredOwnersRefRequestBuilderInternal instantiates a new ItemDevicesItemRegisteredOwnersRefRequestBuilder and sets the default values. func NewItemDevicesItemRegisteredOwnersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDevicesItemRegisteredOwnersRefRequestBuilder) { m := &ItemDevicesItemRegisteredOwnersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredOwners/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredOwners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) ToDeleteRequestInform // ToGetRequestInformation the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredOwners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) ToGetRequestInformati // ToPostRequestInformation create new navigation property ref to registeredOwners for users // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemDevicesItemRegisteredOwnersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredOwners/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/users/item_devices_item_registered_users_ref_request_builder.go b/users/item_devices_item_registered_users_ref_request_builder.go index 395f099bfcd..72be302bd16 100644 --- a/users/item_devices_item_registered_users_ref_request_builder.go +++ b/users/item_devices_item_registered_users_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemDevicesItemRegisteredUsersRefRequestBuilderPostRequestConfiguration str // NewItemDevicesItemRegisteredUsersRefRequestBuilderInternal instantiates a new ItemDevicesItemRegisteredUsersRefRequestBuilder and sets the default values. func NewItemDevicesItemRegisteredUsersRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDevicesItemRegisteredUsersRefRequestBuilder) { m := &ItemDevicesItemRegisteredUsersRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredUsers/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredUsers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -141,7 +141,7 @@ func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) ToDeleteRequestInforma // ToGetRequestInformation collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredUsers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -155,7 +155,7 @@ func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) ToGetRequestInformatio // ToPostRequestInformation create new navigation property ref to registeredUsers for users // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemDevicesItemRegisteredUsersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredUsers/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/users/item_distribution_lists_count_request_builder.go b/users/item_distribution_lists_count_request_builder.go new file mode 100644 index 00000000000..ed3c04a26e8 --- /dev/null +++ b/users/item_distribution_lists_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemDistributionListsCountRequestBuilder provides operations to count the resources in the collection. +type ItemDistributionListsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemDistributionListsCountRequestBuilderGetQueryParameters get the number of the resource +type ItemDistributionListsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemDistributionListsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDistributionListsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemDistributionListsCountRequestBuilderGetQueryParameters +} +// NewItemDistributionListsCountRequestBuilderInternal instantiates a new ItemDistributionListsCountRequestBuilder and sets the default values. +func NewItemDistributionListsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsCountRequestBuilder) { + m := &ItemDistributionListsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/distributionLists/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemDistributionListsCountRequestBuilder instantiates a new ItemDistributionListsCountRequestBuilder and sets the default values. +func NewItemDistributionListsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemDistributionListsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDistributionListsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDistributionListsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemDistributionListsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDistributionListsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemDistributionListsCountRequestBuilder when successful +func (m *ItemDistributionListsCountRequestBuilder) WithUrl(rawUrl string)(*ItemDistributionListsCountRequestBuilder) { + return NewItemDistributionListsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_distribution_lists_distribution_list_item_request_builder.go b/users/item_distribution_lists_distribution_list_item_request_builder.go new file mode 100644 index 00000000000..0f974326449 --- /dev/null +++ b/users/item_distribution_lists_distribution_list_item_request_builder.go @@ -0,0 +1,175 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemDistributionListsDistributionListItemRequestBuilder provides operations to manage the distributionLists property of the microsoft.graph.user entity. +type ItemDistributionListsDistributionListItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemDistributionListsDistributionListItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDistributionListsDistributionListItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemDistributionListsDistributionListItemRequestBuilderGetQueryParameters the personal distribution lists in the user's mailbox. Read-only. Nullable. +type ItemDistributionListsDistributionListItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemDistributionListsDistributionListItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDistributionListsDistributionListItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemDistributionListsDistributionListItemRequestBuilderGetQueryParameters +} +// ItemDistributionListsDistributionListItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDistributionListsDistributionListItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// AddMembers provides operations to call the addMembers method. +// returns a *ItemDistributionListsItemAddMembersRequestBuilder when successful +func (m *ItemDistributionListsDistributionListItemRequestBuilder) AddMembers()(*ItemDistributionListsItemAddMembersRequestBuilder) { + return NewItemDistributionListsItemAddMembersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemDistributionListsDistributionListItemRequestBuilderInternal instantiates a new ItemDistributionListsDistributionListItemRequestBuilder and sets the default values. +func NewItemDistributionListsDistributionListItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsDistributionListItemRequestBuilder) { + m := &ItemDistributionListsDistributionListItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/distributionLists/{distributionList%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemDistributionListsDistributionListItemRequestBuilder instantiates a new ItemDistributionListsDistributionListItemRequestBuilder and sets the default values. +func NewItemDistributionListsDistributionListItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsDistributionListItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemDistributionListsDistributionListItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property distributionLists for users +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDistributionListsDistributionListItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemDistributionListsDistributionListItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// DeleteMembers provides operations to call the deleteMembers method. +// returns a *ItemDistributionListsItemDeleteMembersRequestBuilder when successful +func (m *ItemDistributionListsDistributionListItemRequestBuilder) DeleteMembers()(*ItemDistributionListsItemDeleteMembersRequestBuilder) { + return NewItemDistributionListsItemDeleteMembersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// DistributionListMembers provides operations to manage the distributionListMembers property of the microsoft.graph.distributionList entity. +// returns a *ItemDistributionListsItemDistributionListMembersRequestBuilder when successful +func (m *ItemDistributionListsDistributionListItemRequestBuilder) DistributionListMembers()(*ItemDistributionListsItemDistributionListMembersRequestBuilder) { + return NewItemDistributionListsItemDistributionListMembersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the personal distribution lists in the user's mailbox. Read-only. Nullable. +// returns a DistributionListable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDistributionListsDistributionListItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDistributionListsDistributionListItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateDistributionListFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListable), nil +} +// Patch update the navigation property distributionLists in users +// returns a DistributionListable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDistributionListsDistributionListItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListable, requestConfiguration *ItemDistributionListsDistributionListItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateDistributionListFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListable), nil +} +// ToDeleteRequestInformation delete navigation property distributionLists for users +// returns a *RequestInformation when successful +func (m *ItemDistributionListsDistributionListItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemDistributionListsDistributionListItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation the personal distribution lists in the user's mailbox. Read-only. Nullable. +// returns a *RequestInformation when successful +func (m *ItemDistributionListsDistributionListItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDistributionListsDistributionListItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property distributionLists in users +// returns a *RequestInformation when successful +func (m *ItemDistributionListsDistributionListItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListable, requestConfiguration *ItemDistributionListsDistributionListItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemDistributionListsDistributionListItemRequestBuilder when successful +func (m *ItemDistributionListsDistributionListItemRequestBuilder) WithUrl(rawUrl string)(*ItemDistributionListsDistributionListItemRequestBuilder) { + return NewItemDistributionListsDistributionListItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_distribution_lists_item_add_members_post_request_body.go b/users/item_distribution_lists_item_add_members_post_request_body.go new file mode 100644 index 00000000000..bbec5324a27 --- /dev/null +++ b/users/item_distribution_lists_item_add_members_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemDistributionListsItemAddMembersPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemDistributionListsItemAddMembersPostRequestBody instantiates a new ItemDistributionListsItemAddMembersPostRequestBody and sets the default values. +func NewItemDistributionListsItemAddMembersPostRequestBody()(*ItemDistributionListsItemAddMembersPostRequestBody) { + m := &ItemDistributionListsItemAddMembersPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemDistributionListsItemAddMembersPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemDistributionListsItemAddMembersPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemDistributionListsItemAddMembersPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemDistributionListsItemAddMembersPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemDistributionListsItemAddMembersPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemDistributionListsItemAddMembersPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["members"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Memberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Memberable) + } + } + m.SetMembers(res) + } + return nil + } + return res +} +// GetMembers gets the members property value. The members property +// returns a []Memberable when successful +func (m *ItemDistributionListsItemAddMembersPostRequestBody) GetMembers()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Memberable) { + val, err := m.GetBackingStore().Get("members") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Memberable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemDistributionListsItemAddMembersPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetMembers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMembers())) + for i, v := range m.GetMembers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("members", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemDistributionListsItemAddMembersPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemDistributionListsItemAddMembersPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetMembers sets the members property value. The members property +func (m *ItemDistributionListsItemAddMembersPostRequestBody) SetMembers(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Memberable)() { + err := m.GetBackingStore().Set("members", value) + if err != nil { + panic(err) + } +} +type ItemDistributionListsItemAddMembersPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetMembers()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Memberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetMembers(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Memberable)() +} diff --git a/users/item_distribution_lists_item_add_members_request_builder.go b/users/item_distribution_lists_item_add_members_request_builder.go new file mode 100644 index 00000000000..e35f4a2fd80 --- /dev/null +++ b/users/item_distribution_lists_item_add_members_request_builder.go @@ -0,0 +1,76 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemDistributionListsItemAddMembersRequestBuilder provides operations to call the addMembers method. +type ItemDistributionListsItemAddMembersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemDistributionListsItemAddMembersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDistributionListsItemAddMembersRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemDistributionListsItemAddMembersRequestBuilderInternal instantiates a new ItemDistributionListsItemAddMembersRequestBuilder and sets the default values. +func NewItemDistributionListsItemAddMembersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsItemAddMembersRequestBuilder) { + m := &ItemDistributionListsItemAddMembersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/distributionLists/{distributionList%2Did}/addMembers", pathParameters), + } + return m +} +// NewItemDistributionListsItemAddMembersRequestBuilder instantiates a new ItemDistributionListsItemAddMembersRequestBuilder and sets the default values. +func NewItemDistributionListsItemAddMembersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsItemAddMembersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemDistributionListsItemAddMembersRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action addMembers +// returns a DistributionListable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDistributionListsItemAddMembersRequestBuilder) Post(ctx context.Context, body ItemDistributionListsItemAddMembersPostRequestBodyable, requestConfiguration *ItemDistributionListsItemAddMembersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateDistributionListFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListable), nil +} +// ToPostRequestInformation invoke action addMembers +// returns a *RequestInformation when successful +func (m *ItemDistributionListsItemAddMembersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemDistributionListsItemAddMembersPostRequestBodyable, requestConfiguration *ItemDistributionListsItemAddMembersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemDistributionListsItemAddMembersRequestBuilder when successful +func (m *ItemDistributionListsItemAddMembersRequestBuilder) WithUrl(rawUrl string)(*ItemDistributionListsItemAddMembersRequestBuilder) { + return NewItemDistributionListsItemAddMembersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_distribution_lists_item_delete_members_post_request_body.go b/users/item_distribution_lists_item_delete_members_post_request_body.go new file mode 100644 index 00000000000..be2cb53f286 --- /dev/null +++ b/users/item_distribution_lists_item_delete_members_post_request_body.go @@ -0,0 +1,129 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemDistributionListsItemDeleteMembersPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemDistributionListsItemDeleteMembersPostRequestBody instantiates a new ItemDistributionListsItemDeleteMembersPostRequestBody and sets the default values. +func NewItemDistributionListsItemDeleteMembersPostRequestBody()(*ItemDistributionListsItemDeleteMembersPostRequestBody) { + m := &ItemDistributionListsItemDeleteMembersPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemDistributionListsItemDeleteMembersPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemDistributionListsItemDeleteMembersPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemDistributionListsItemDeleteMembersPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemDistributionListsItemDeleteMembersPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemDistributionListsItemDeleteMembersPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemDistributionListsItemDeleteMembersPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["members"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateMemberFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Memberable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Memberable) + } + } + m.SetMembers(res) + } + return nil + } + return res +} +// GetMembers gets the members property value. The members property +// returns a []Memberable when successful +func (m *ItemDistributionListsItemDeleteMembersPostRequestBody) GetMembers()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Memberable) { + val, err := m.GetBackingStore().Get("members") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Memberable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemDistributionListsItemDeleteMembersPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetMembers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMembers())) + for i, v := range m.GetMembers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("members", cast) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemDistributionListsItemDeleteMembersPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemDistributionListsItemDeleteMembersPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetMembers sets the members property value. The members property +func (m *ItemDistributionListsItemDeleteMembersPostRequestBody) SetMembers(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Memberable)() { + err := m.GetBackingStore().Set("members", value) + if err != nil { + panic(err) + } +} +type ItemDistributionListsItemDeleteMembersPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetMembers()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Memberable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetMembers(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Memberable)() +} diff --git a/users/item_distribution_lists_item_delete_members_request_builder.go b/users/item_distribution_lists_item_delete_members_request_builder.go new file mode 100644 index 00000000000..67de5ffaa2f --- /dev/null +++ b/users/item_distribution_lists_item_delete_members_request_builder.go @@ -0,0 +1,76 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemDistributionListsItemDeleteMembersRequestBuilder provides operations to call the deleteMembers method. +type ItemDistributionListsItemDeleteMembersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemDistributionListsItemDeleteMembersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDistributionListsItemDeleteMembersRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemDistributionListsItemDeleteMembersRequestBuilderInternal instantiates a new ItemDistributionListsItemDeleteMembersRequestBuilder and sets the default values. +func NewItemDistributionListsItemDeleteMembersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsItemDeleteMembersRequestBuilder) { + m := &ItemDistributionListsItemDeleteMembersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/distributionLists/{distributionList%2Did}/deleteMembers", pathParameters), + } + return m +} +// NewItemDistributionListsItemDeleteMembersRequestBuilder instantiates a new ItemDistributionListsItemDeleteMembersRequestBuilder and sets the default values. +func NewItemDistributionListsItemDeleteMembersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsItemDeleteMembersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemDistributionListsItemDeleteMembersRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action deleteMembers +// returns a DistributionListable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDistributionListsItemDeleteMembersRequestBuilder) Post(ctx context.Context, body ItemDistributionListsItemDeleteMembersPostRequestBodyable, requestConfiguration *ItemDistributionListsItemDeleteMembersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateDistributionListFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListable), nil +} +// ToPostRequestInformation invoke action deleteMembers +// returns a *RequestInformation when successful +func (m *ItemDistributionListsItemDeleteMembersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemDistributionListsItemDeleteMembersPostRequestBodyable, requestConfiguration *ItemDistributionListsItemDeleteMembersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemDistributionListsItemDeleteMembersRequestBuilder when successful +func (m *ItemDistributionListsItemDeleteMembersRequestBuilder) WithUrl(rawUrl string)(*ItemDistributionListsItemDeleteMembersRequestBuilder) { + return NewItemDistributionListsItemDeleteMembersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_distribution_lists_item_distribution_list_members_count_request_builder.go b/users/item_distribution_lists_item_distribution_list_members_count_request_builder.go new file mode 100644 index 00000000000..7f18ea67b3b --- /dev/null +++ b/users/item_distribution_lists_item_distribution_list_members_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemDistributionListsItemDistributionListMembersCountRequestBuilder provides operations to count the resources in the collection. +type ItemDistributionListsItemDistributionListMembersCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemDistributionListsItemDistributionListMembersCountRequestBuilderGetQueryParameters get the number of the resource +type ItemDistributionListsItemDistributionListMembersCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemDistributionListsItemDistributionListMembersCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDistributionListsItemDistributionListMembersCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemDistributionListsItemDistributionListMembersCountRequestBuilderGetQueryParameters +} +// NewItemDistributionListsItemDistributionListMembersCountRequestBuilderInternal instantiates a new ItemDistributionListsItemDistributionListMembersCountRequestBuilder and sets the default values. +func NewItemDistributionListsItemDistributionListMembersCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsItemDistributionListMembersCountRequestBuilder) { + m := &ItemDistributionListsItemDistributionListMembersCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/distributionLists/{distributionList%2Did}/distributionListMembers/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemDistributionListsItemDistributionListMembersCountRequestBuilder instantiates a new ItemDistributionListsItemDistributionListMembersCountRequestBuilder and sets the default values. +func NewItemDistributionListsItemDistributionListMembersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsItemDistributionListMembersCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemDistributionListsItemDistributionListMembersCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDistributionListsItemDistributionListMembersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDistributionListsItemDistributionListMembersCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemDistributionListsItemDistributionListMembersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDistributionListsItemDistributionListMembersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemDistributionListsItemDistributionListMembersCountRequestBuilder when successful +func (m *ItemDistributionListsItemDistributionListMembersCountRequestBuilder) WithUrl(rawUrl string)(*ItemDistributionListsItemDistributionListMembersCountRequestBuilder) { + return NewItemDistributionListsItemDistributionListMembersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_distribution_lists_item_distribution_list_members_distribution_list_member_item_request_builder.go b/users/item_distribution_lists_item_distribution_list_members_distribution_list_member_item_request_builder.go new file mode 100644 index 00000000000..09de201d331 --- /dev/null +++ b/users/item_distribution_lists_item_distribution_list_members_distribution_list_member_item_request_builder.go @@ -0,0 +1,165 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder provides operations to manage the distributionListMembers property of the microsoft.graph.distributionList entity. +type ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderGetQueryParameters the expanded members of the distribution list. Each member contains detailed information including resolved email addresses. Read-only. +type ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderGetQueryParameters +} +// ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderInternal instantiates a new ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder and sets the default values. +func NewItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder) { + m := &ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/distributionLists/{distributionList%2Did}/distributionListMembers/{distributionListMember%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder instantiates a new ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder and sets the default values. +func NewItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Contact provides operations to manage the contact property of the microsoft.graph.distributionListMember entity. +// returns a *ItemDistributionListsItemDistributionListMembersItemContactRequestBuilder when successful +func (m *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder) Contact()(*ItemDistributionListsItemDistributionListMembersItemContactRequestBuilder) { + return NewItemDistributionListsItemDistributionListMembersItemContactRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Delete delete navigation property distributionListMembers for users +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the expanded members of the distribution list. Each member contains detailed information including resolved email addresses. Read-only. +// returns a DistributionListMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListMemberable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateDistributionListMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListMemberable), nil +} +// Patch update the navigation property distributionListMembers in users +// returns a DistributionListMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListMemberable, requestConfiguration *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListMemberable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateDistributionListMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListMemberable), nil +} +// ToDeleteRequestInformation delete navigation property distributionListMembers for users +// returns a *RequestInformation when successful +func (m *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation the expanded members of the distribution list. Each member contains detailed information including resolved email addresses. Read-only. +// returns a *RequestInformation when successful +func (m *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property distributionListMembers in users +// returns a *RequestInformation when successful +func (m *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListMemberable, requestConfiguration *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder when successful +func (m *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder) WithUrl(rawUrl string)(*ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder) { + return NewItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_distribution_lists_item_distribution_list_members_item_contact_request_builder.go b/users/item_distribution_lists_item_distribution_list_members_item_contact_request_builder.go new file mode 100644 index 00000000000..9132118c6b7 --- /dev/null +++ b/users/item_distribution_lists_item_distribution_list_members_item_contact_request_builder.go @@ -0,0 +1,84 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemDistributionListsItemDistributionListMembersItemContactRequestBuilder provides operations to manage the contact property of the microsoft.graph.distributionListMember entity. +type ItemDistributionListsItemDistributionListMembersItemContactRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemDistributionListsItemDistributionListMembersItemContactRequestBuilderGetQueryParameters get contact from users +type ItemDistributionListsItemDistributionListMembersItemContactRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemDistributionListsItemDistributionListMembersItemContactRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDistributionListsItemDistributionListMembersItemContactRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemDistributionListsItemDistributionListMembersItemContactRequestBuilderGetQueryParameters +} +// NewItemDistributionListsItemDistributionListMembersItemContactRequestBuilderInternal instantiates a new ItemDistributionListsItemDistributionListMembersItemContactRequestBuilder and sets the default values. +func NewItemDistributionListsItemDistributionListMembersItemContactRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsItemDistributionListMembersItemContactRequestBuilder) { + m := &ItemDistributionListsItemDistributionListMembersItemContactRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/distributionLists/{distributionList%2Did}/distributionListMembers/{distributionListMember%2Did}/contact{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemDistributionListsItemDistributionListMembersItemContactRequestBuilder instantiates a new ItemDistributionListsItemDistributionListMembersItemContactRequestBuilder and sets the default values. +func NewItemDistributionListsItemDistributionListMembersItemContactRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsItemDistributionListMembersItemContactRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemDistributionListsItemDistributionListMembersItemContactRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get contact from users +// returns a Contactable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDistributionListsItemDistributionListMembersItemContactRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDistributionListsItemDistributionListMembersItemContactRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateContactFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable), nil +} +// ToGetRequestInformation get contact from users +// returns a *RequestInformation when successful +func (m *ItemDistributionListsItemDistributionListMembersItemContactRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDistributionListsItemDistributionListMembersItemContactRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemDistributionListsItemDistributionListMembersItemContactRequestBuilder when successful +func (m *ItemDistributionListsItemDistributionListMembersItemContactRequestBuilder) WithUrl(rawUrl string)(*ItemDistributionListsItemDistributionListMembersItemContactRequestBuilder) { + return NewItemDistributionListsItemDistributionListMembersItemContactRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_distribution_lists_item_distribution_list_members_request_builder.go b/users/item_distribution_lists_item_distribution_list_members_request_builder.go new file mode 100644 index 00000000000..163039da094 --- /dev/null +++ b/users/item_distribution_lists_item_distribution_list_members_request_builder.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemDistributionListsItemDistributionListMembersRequestBuilder provides operations to manage the distributionListMembers property of the microsoft.graph.distributionList entity. +type ItemDistributionListsItemDistributionListMembersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemDistributionListsItemDistributionListMembersRequestBuilderGetQueryParameters the expanded members of the distribution list. Each member contains detailed information including resolved email addresses. Read-only. +type ItemDistributionListsItemDistributionListMembersRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemDistributionListsItemDistributionListMembersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDistributionListsItemDistributionListMembersRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemDistributionListsItemDistributionListMembersRequestBuilderGetQueryParameters +} +// ItemDistributionListsItemDistributionListMembersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDistributionListsItemDistributionListMembersRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByDistributionListMemberId provides operations to manage the distributionListMembers property of the microsoft.graph.distributionList entity. +// returns a *ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder when successful +func (m *ItemDistributionListsItemDistributionListMembersRequestBuilder) ByDistributionListMemberId(distributionListMemberId string)(*ItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if distributionListMemberId != "" { + urlTplParams["distributionListMember%2Did"] = distributionListMemberId + } + return NewItemDistributionListsItemDistributionListMembersDistributionListMemberItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemDistributionListsItemDistributionListMembersRequestBuilderInternal instantiates a new ItemDistributionListsItemDistributionListMembersRequestBuilder and sets the default values. +func NewItemDistributionListsItemDistributionListMembersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsItemDistributionListMembersRequestBuilder) { + m := &ItemDistributionListsItemDistributionListMembersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/distributionLists/{distributionList%2Did}/distributionListMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemDistributionListsItemDistributionListMembersRequestBuilder instantiates a new ItemDistributionListsItemDistributionListMembersRequestBuilder and sets the default values. +func NewItemDistributionListsItemDistributionListMembersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsItemDistributionListMembersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemDistributionListsItemDistributionListMembersRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemDistributionListsItemDistributionListMembersCountRequestBuilder when successful +func (m *ItemDistributionListsItemDistributionListMembersRequestBuilder) Count()(*ItemDistributionListsItemDistributionListMembersCountRequestBuilder) { + return NewItemDistributionListsItemDistributionListMembersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the expanded members of the distribution list. Each member contains detailed information including resolved email addresses. Read-only. +// returns a DistributionListMemberCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDistributionListsItemDistributionListMembersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDistributionListsItemDistributionListMembersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListMemberCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateDistributionListMemberCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListMemberCollectionResponseable), nil +} +// Post create new navigation property to distributionListMembers for users +// returns a DistributionListMemberable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDistributionListsItemDistributionListMembersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListMemberable, requestConfiguration *ItemDistributionListsItemDistributionListMembersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListMemberable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateDistributionListMemberFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListMemberable), nil +} +// ToGetRequestInformation the expanded members of the distribution list. Each member contains detailed information including resolved email addresses. Read-only. +// returns a *RequestInformation when successful +func (m *ItemDistributionListsItemDistributionListMembersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDistributionListsItemDistributionListMembersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to distributionListMembers for users +// returns a *RequestInformation when successful +func (m *ItemDistributionListsItemDistributionListMembersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListMemberable, requestConfiguration *ItemDistributionListsItemDistributionListMembersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemDistributionListsItemDistributionListMembersRequestBuilder when successful +func (m *ItemDistributionListsItemDistributionListMembersRequestBuilder) WithUrl(rawUrl string)(*ItemDistributionListsItemDistributionListMembersRequestBuilder) { + return NewItemDistributionListsItemDistributionListMembersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_distribution_lists_request_builder.go b/users/item_distribution_lists_request_builder.go new file mode 100644 index 00000000000..16624c2bd37 --- /dev/null +++ b/users/item_distribution_lists_request_builder.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemDistributionListsRequestBuilder provides operations to manage the distributionLists property of the microsoft.graph.user entity. +type ItemDistributionListsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemDistributionListsRequestBuilderGetQueryParameters the personal distribution lists in the user's mailbox. Read-only. Nullable. +type ItemDistributionListsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemDistributionListsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDistributionListsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemDistributionListsRequestBuilderGetQueryParameters +} +// ItemDistributionListsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemDistributionListsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByDistributionListId provides operations to manage the distributionLists property of the microsoft.graph.user entity. +// returns a *ItemDistributionListsDistributionListItemRequestBuilder when successful +func (m *ItemDistributionListsRequestBuilder) ByDistributionListId(distributionListId string)(*ItemDistributionListsDistributionListItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if distributionListId != "" { + urlTplParams["distributionList%2Did"] = distributionListId + } + return NewItemDistributionListsDistributionListItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemDistributionListsRequestBuilderInternal instantiates a new ItemDistributionListsRequestBuilder and sets the default values. +func NewItemDistributionListsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsRequestBuilder) { + m := &ItemDistributionListsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/distributionLists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemDistributionListsRequestBuilder instantiates a new ItemDistributionListsRequestBuilder and sets the default values. +func NewItemDistributionListsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDistributionListsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemDistributionListsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemDistributionListsCountRequestBuilder when successful +func (m *ItemDistributionListsRequestBuilder) Count()(*ItemDistributionListsCountRequestBuilder) { + return NewItemDistributionListsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the personal distribution lists in the user's mailbox. Read-only. Nullable. +// returns a DistributionListCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDistributionListsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDistributionListsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateDistributionListCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListCollectionResponseable), nil +} +// Post create new navigation property to distributionLists for users +// returns a DistributionListable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemDistributionListsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListable, requestConfiguration *ItemDistributionListsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateDistributionListFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListable), nil +} +// ToGetRequestInformation the personal distribution lists in the user's mailbox. Read-only. Nullable. +// returns a *RequestInformation when successful +func (m *ItemDistributionListsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDistributionListsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to distributionLists for users +// returns a *RequestInformation when successful +func (m *ItemDistributionListsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DistributionListable, requestConfiguration *ItemDistributionListsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemDistributionListsRequestBuilder when successful +func (m *ItemDistributionListsRequestBuilder) WithUrl(rawUrl string)(*ItemDistributionListsRequestBuilder) { + return NewItemDistributionListsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_events_item_accept_post_request_body.go b/users/item_events_item_accept_post_request_body.go index f7e5c2a8530..258128c8ee1 100644 --- a/users/item_events_item_accept_post_request_body.go +++ b/users/item_events_item_accept_post_request_body.go @@ -18,6 +18,8 @@ func NewItemEventsItemAcceptPostRequestBody()(*ItemEventsItemAcceptPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemEventsItemAcceptPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_events_item_decline_post_request_body.go b/users/item_events_item_decline_post_request_body.go index 27db6621594..6c0492d4f69 100644 --- a/users/item_events_item_decline_post_request_body.go +++ b/users/item_events_item_decline_post_request_body.go @@ -19,6 +19,8 @@ func NewItemEventsItemDeclinePostRequestBody()(*ItemEventsItemDeclinePostRequest } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemEventsItemDeclinePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_events_item_tentatively_accept_post_request_body.go b/users/item_events_item_tentatively_accept_post_request_body.go index 7c859ed3f4f..e0d7b337906 100644 --- a/users/item_events_item_tentatively_accept_post_request_body.go +++ b/users/item_events_item_tentatively_accept_post_request_body.go @@ -19,6 +19,8 @@ func NewItemEventsItemTentativelyAcceptPostRequestBody()(*ItemEventsItemTentativ } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + sendResponseValue := false + m.SetSendResponse(&sendResponseValue) return m } // CreateItemEventsItemTentativelyAcceptPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_find_meeting_locations_post_request_body.go b/users/item_find_meeting_locations_post_request_body.go index bf2fba8b916..1524a04d659 100644 --- a/users/item_find_meeting_locations_post_request_body.go +++ b/users/item_find_meeting_locations_post_request_body.go @@ -19,6 +19,8 @@ func NewItemFindMeetingLocationsPostRequestBody()(*ItemFindMeetingLocationsPostR } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + allowFreeOnlyValue := false + m.SetAllowFreeOnly(&allowFreeOnlyValue) return m } // CreateItemFindMeetingLocationsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_find_meeting_times_post_request_body.go b/users/item_find_meeting_times_post_request_body.go index 355f2b9c132..5e84b6ff2c3 100644 --- a/users/item_find_meeting_times_post_request_body.go +++ b/users/item_find_meeting_times_post_request_body.go @@ -19,6 +19,10 @@ func NewItemFindMeetingTimesPostRequestBody()(*ItemFindMeetingTimesPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + isOrganizerOptionalValue := false + m.SetIsOrganizerOptional(&isOrganizerOptionalValue) + returnSuggestionReasonsValue := false + m.SetReturnSuggestionReasons(&returnSuggestionReasonsValue) return m } // CreateItemFindMeetingTimesPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_get_member_groups_post_request_body.go b/users/item_get_member_groups_post_request_body.go index c388a4c3cfb..ed8987bc7e8 100644 --- a/users/item_get_member_groups_post_request_body.go +++ b/users/item_get_member_groups_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberGroupsPostRequestBody()(*ItemGetMemberGroupsPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberGroupsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_get_member_objects_post_request_body.go b/users/item_get_member_objects_post_request_body.go index fb5478381ae..9f5eaef813c 100644 --- a/users/item_get_member_objects_post_request_body.go +++ b/users/item_get_member_objects_post_request_body.go @@ -18,6 +18,8 @@ func NewItemGetMemberObjectsPostRequestBody()(*ItemGetMemberObjectsPostRequestBo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + securityEnabledOnlyValue := false + m.SetSecurityEnabledOnly(&securityEnabledOnlyValue) return m } // CreateItemGetMemberObjectsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_invalidate_all_refresh_tokens_post_response.go b/users/item_invalidate_all_refresh_tokens_post_response.go index 98a38837960..29714009711 100644 --- a/users/item_invalidate_all_refresh_tokens_post_response.go +++ b/users/item_invalidate_all_refresh_tokens_post_response.go @@ -18,6 +18,8 @@ func NewItemInvalidateAllRefreshTokensPostResponse()(*ItemInvalidateAllRefreshTo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemInvalidateAllRefreshTokensPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_is_managed_app_user_blocked_get_response.go b/users/item_is_managed_app_user_blocked_get_response.go index 6f80145e9c2..df0a693cdab 100644 --- a/users/item_is_managed_app_user_blocked_get_response.go +++ b/users/item_is_managed_app_user_blocked_get_response.go @@ -18,6 +18,8 @@ func NewItemIsManagedAppUserBlockedGetResponse()(*ItemIsManagedAppUserBlockedGet } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemIsManagedAppUserBlockedGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_junk_post_request_body.go b/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_junk_post_request_body.go index b137354e032..1b3569be3cb 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_junk_post_request_body.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_junk_post_request_body.go @@ -18,6 +18,8 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkPostRequestBody } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + moveToJunkValue := false + m.SetMoveToJunk(&moveToJunkValue) return m } // CreateItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_not_junk_post_request_body.go b/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_not_junk_post_request_body.go index 335b44223b7..49da073fde4 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_not_junk_post_request_body.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_not_junk_post_request_body.go @@ -18,6 +18,8 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkPostRequestB } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + moveToInboxValue := false + m.SetMoveToInbox(&moveToInboxValue) return m } // CreateItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_report_message_post_request_body.go b/users/item_mail_folders_item_child_folders_item_messages_item_report_message_post_request_body.go index 935d69e7ac5..b1f3ac9fd80 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_report_message_post_request_body.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_report_message_post_request_body.go @@ -19,6 +19,8 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemReportMessagePostRequestB } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + isMessageMoveRequestedValue := false + m.SetIsMessageMoveRequested(&isMessageMoveRequestedValue) return m } // CreateItemMailFoldersItemChildFoldersItemMessagesItemReportMessagePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_mail_folders_item_child_folders_item_update_all_messages_read_state_post_request_body.go b/users/item_mail_folders_item_child_folders_item_update_all_messages_read_state_post_request_body.go index b8c657e126c..aed463679f1 100644 --- a/users/item_mail_folders_item_child_folders_item_update_all_messages_read_state_post_request_body.go +++ b/users/item_mail_folders_item_child_folders_item_update_all_messages_read_state_post_request_body.go @@ -18,6 +18,10 @@ func NewItemMailFoldersItemChildFoldersItemUpdateAllMessagesReadStatePostRequest } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + isReadValue := false + m.SetIsRead(&isReadValue) + suppressReadReceiptsValue := false + m.SetSuppressReadReceipts(&suppressReadReceiptsValue) return m } // CreateItemMailFoldersItemChildFoldersItemUpdateAllMessagesReadStatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_mail_folders_item_messages_item_mark_as_junk_post_request_body.go b/users/item_mail_folders_item_messages_item_mark_as_junk_post_request_body.go index 64833578141..bfa99e349a0 100644 --- a/users/item_mail_folders_item_messages_item_mark_as_junk_post_request_body.go +++ b/users/item_mail_folders_item_messages_item_mark_as_junk_post_request_body.go @@ -18,6 +18,8 @@ func NewItemMailFoldersItemMessagesItemMarkAsJunkPostRequestBody()(*ItemMailFold } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + moveToJunkValue := false + m.SetMoveToJunk(&moveToJunkValue) return m } // CreateItemMailFoldersItemMessagesItemMarkAsJunkPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_mail_folders_item_messages_item_mark_as_not_junk_post_request_body.go b/users/item_mail_folders_item_messages_item_mark_as_not_junk_post_request_body.go index 8a02a672c9e..abaf740947b 100644 --- a/users/item_mail_folders_item_messages_item_mark_as_not_junk_post_request_body.go +++ b/users/item_mail_folders_item_messages_item_mark_as_not_junk_post_request_body.go @@ -18,6 +18,8 @@ func NewItemMailFoldersItemMessagesItemMarkAsNotJunkPostRequestBody()(*ItemMailF } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + moveToInboxValue := false + m.SetMoveToInbox(&moveToInboxValue) return m } // CreateItemMailFoldersItemMessagesItemMarkAsNotJunkPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_mail_folders_item_messages_item_report_message_post_request_body.go b/users/item_mail_folders_item_messages_item_report_message_post_request_body.go index 9d3824a585d..8adfaed83fa 100644 --- a/users/item_mail_folders_item_messages_item_report_message_post_request_body.go +++ b/users/item_mail_folders_item_messages_item_report_message_post_request_body.go @@ -19,6 +19,8 @@ func NewItemMailFoldersItemMessagesItemReportMessagePostRequestBody()(*ItemMailF } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + isMessageMoveRequestedValue := false + m.SetIsMessageMoveRequested(&isMessageMoveRequestedValue) return m } // CreateItemMailFoldersItemMessagesItemReportMessagePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_mail_folders_item_update_all_messages_read_state_post_request_body.go b/users/item_mail_folders_item_update_all_messages_read_state_post_request_body.go index 9a36f64e228..acfb0f61021 100644 --- a/users/item_mail_folders_item_update_all_messages_read_state_post_request_body.go +++ b/users/item_mail_folders_item_update_all_messages_read_state_post_request_body.go @@ -18,6 +18,10 @@ func NewItemMailFoldersItemUpdateAllMessagesReadStatePostRequestBody()(*ItemMail } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + isReadValue := false + m.SetIsRead(&isReadValue) + suppressReadReceiptsValue := false + m.SetSuppressReadReceipts(&suppressReadReceiptsValue) return m } // CreateItemMailFoldersItemUpdateAllMessagesReadStatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_managed_devices_execute_action_post_request_body.go b/users/item_managed_devices_execute_action_post_request_body.go index f1f645fbf49..7e0eba79844 100644 --- a/users/item_managed_devices_execute_action_post_request_body.go +++ b/users/item_managed_devices_execute_action_post_request_body.go @@ -19,6 +19,12 @@ func NewItemManagedDevicesExecuteActionPostRequestBody()(*ItemManagedDevicesExec } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + keepEnrollmentDataValue := false + m.SetKeepEnrollmentData(&keepEnrollmentDataValue) + keepUserDataValue := false + m.SetKeepUserData(&keepUserDataValue) + persistEsimDataPlanValue := false + m.SetPersistEsimDataPlan(&persistEsimDataPlanValue) return m } // CreateItemManagedDevicesExecuteActionPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_managed_devices_item_clean_windows_device_post_request_body.go b/users/item_managed_devices_item_clean_windows_device_post_request_body.go index baf562199ab..7ea7e3a7ead 100644 --- a/users/item_managed_devices_item_clean_windows_device_post_request_body.go +++ b/users/item_managed_devices_item_clean_windows_device_post_request_body.go @@ -18,6 +18,8 @@ func NewItemManagedDevicesItemCleanWindowsDevicePostRequestBody()(*ItemManagedDe } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + keepUserDataValue := false + m.SetKeepUserData(&keepUserDataValue) return m } // CreateItemManagedDevicesItemCleanWindowsDevicePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_managed_devices_item_windows_defender_scan_post_request_body.go b/users/item_managed_devices_item_windows_defender_scan_post_request_body.go index d5e5580132d..7fac8581446 100644 --- a/users/item_managed_devices_item_windows_defender_scan_post_request_body.go +++ b/users/item_managed_devices_item_windows_defender_scan_post_request_body.go @@ -18,6 +18,8 @@ func NewItemManagedDevicesItemWindowsDefenderScanPostRequestBody()(*ItemManagedD } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + quickScanValue := false + m.SetQuickScan(&quickScanValue) return m } // CreateItemManagedDevicesItemWindowsDefenderScanPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_managed_devices_item_wipe_post_request_body.go b/users/item_managed_devices_item_wipe_post_request_body.go index df1fd1318dc..9032cad04f1 100644 --- a/users/item_managed_devices_item_wipe_post_request_body.go +++ b/users/item_managed_devices_item_wipe_post_request_body.go @@ -19,6 +19,14 @@ func NewItemManagedDevicesItemWipePostRequestBody()(*ItemManagedDevicesItemWipeP } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + keepEnrollmentDataValue := false + m.SetKeepEnrollmentData(&keepEnrollmentDataValue) + keepUserDataValue := false + m.SetKeepUserData(&keepUserDataValue) + persistEsimDataPlanValue := false + m.SetPersistEsimDataPlan(&persistEsimDataPlanValue) + useProtectedWipeValue := false + m.SetUseProtectedWipe(&useProtectedWipeValue) return m } // CreateItemManagedDevicesItemWipePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_messages_item_mark_as_junk_post_request_body.go b/users/item_messages_item_mark_as_junk_post_request_body.go index 4c5f8855974..8de91f9637b 100644 --- a/users/item_messages_item_mark_as_junk_post_request_body.go +++ b/users/item_messages_item_mark_as_junk_post_request_body.go @@ -18,6 +18,8 @@ func NewItemMessagesItemMarkAsJunkPostRequestBody()(*ItemMessagesItemMarkAsJunkP } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + moveToJunkValue := false + m.SetMoveToJunk(&moveToJunkValue) return m } // CreateItemMessagesItemMarkAsJunkPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_messages_item_mark_as_not_junk_post_request_body.go b/users/item_messages_item_mark_as_not_junk_post_request_body.go index 01fff9364ea..311b33081cc 100644 --- a/users/item_messages_item_mark_as_not_junk_post_request_body.go +++ b/users/item_messages_item_mark_as_not_junk_post_request_body.go @@ -18,6 +18,8 @@ func NewItemMessagesItemMarkAsNotJunkPostRequestBody()(*ItemMessagesItemMarkAsNo } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + moveToInboxValue := false + m.SetMoveToInbox(&moveToInboxValue) return m } // CreateItemMessagesItemMarkAsNotJunkPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_messages_item_report_message_post_request_body.go b/users/item_messages_item_report_message_post_request_body.go index d59b919b9d7..afabef3e156 100644 --- a/users/item_messages_item_report_message_post_request_body.go +++ b/users/item_messages_item_report_message_post_request_body.go @@ -19,6 +19,8 @@ func NewItemMessagesItemReportMessagePostRequestBody()(*ItemMessagesItemReportMe } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + isMessageMoveRequestedValue := false + m.SetIsMessageMoveRequested(&isMessageMoveRequestedValue) return m } // CreateItemMessagesItemReportMessagePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_online_meetings_item_transcripts_request_builder.go b/users/item_online_meetings_item_transcripts_request_builder.go index 66cb66cc6e0..fda62c44c8d 100644 --- a/users/item_online_meetings_item_transcripts_request_builder.go +++ b/users/item_online_meetings_item_transcripts_request_builder.go @@ -14,7 +14,7 @@ import ( type ItemOnlineMeetingsItemTranscriptsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOnlineMeetingsItemTranscriptsRequestBuilderGetQueryParameters retrieve the list of callTranscript objects associated with a scheduled onlineMeeting. This API supports the retrieval of call transcripts from private chat meetings and channel meetings. However, private channel meetings are not supported at this time. +// ItemOnlineMeetingsItemTranscriptsRequestBuilderGetQueryParameters retrieve the list of callTranscript objects associated with a scheduled onlineMeeting. This API supports the retrieval of call transcripts from private chat meetings and channel meetings. Access to this API is governed by tenant administrator settings. See Error responses. type ItemOnlineMeetingsItemTranscriptsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool "uriparametername:\"%24count\"" @@ -84,7 +84,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsRequestBuilder) Count()(*ItemOnlineMee func (m *ItemOnlineMeetingsItemTranscriptsRequestBuilder) Delta()(*ItemOnlineMeetingsItemTranscriptsDeltaRequestBuilder) { return NewItemOnlineMeetingsItemTranscriptsDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve the list of callTranscript objects associated with a scheduled onlineMeeting. This API supports the retrieval of call transcripts from private chat meetings and channel meetings. However, private channel meetings are not supported at this time. +// Get retrieve the list of callTranscript objects associated with a scheduled onlineMeeting. This API supports the retrieval of call transcripts from private chat meetings and channel meetings. Access to this API is governed by tenant administrator settings. See Error responses. // returns a CallTranscriptCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -127,7 +127,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsRequestBuilder) Post(ctx context.Conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable), nil } -// ToGetRequestInformation retrieve the list of callTranscript objects associated with a scheduled onlineMeeting. This API supports the retrieval of call transcripts from private chat meetings and channel meetings. However, private channel meetings are not supported at this time. +// ToGetRequestInformation retrieve the list of callTranscript objects associated with a scheduled onlineMeeting. This API supports the retrieval of call transcripts from private chat meetings and channel meetings. Access to this API is governed by tenant administrator settings. See Error responses. // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemTranscriptsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemTranscriptsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/item_planner_plans_item_history_items_count_request_builder.go b/users/item_planner_plans_item_history_items_count_request_builder.go new file mode 100644 index 00000000000..86f5d016426 --- /dev/null +++ b/users/item_planner_plans_item_history_items_count_request_builder.go @@ -0,0 +1,83 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPlannerPlansItemHistoryItemsCountRequestBuilder provides operations to count the resources in the collection. +type ItemPlannerPlansItemHistoryItemsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters get the number of the resource +type ItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" +} +// ItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemPlannerPlansItemHistoryItemsCountRequestBuilderGetQueryParameters +} +// NewItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal instantiates a new ItemPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + m := &ItemPlannerPlansItemHistoryItemsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/planner/plans/{plannerPlan%2Did}/historyItems/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemPlannerPlansItemHistoryItemsCountRequestBuilder instantiates a new ItemPlannerPlansItemHistoryItemsCountRequestBuilder and sets the default values. +func NewItemPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPlannerPlansItemHistoryItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemPlannerPlansItemHistoryItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemPlannerPlansItemHistoryItemsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemPlannerPlansItemHistoryItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_planner_plans_item_history_items_planner_history_item_item_request_builder.go b/users/item_planner_plans_item_history_items_planner_history_item_item_request_builder.go new file mode 100644 index 00000000000..27fcfaeb0fb --- /dev/null +++ b/users/item_planner_plans_item_history_items_planner_history_item_item_request_builder.go @@ -0,0 +1,160 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters get historyItems from users +type ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" +} +// ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetQueryParameters +} +// ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal instantiates a new ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + m := &ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/planner/plans/{plannerPlan%2Did}/historyItems/{plannerHistoryItem%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder instantiates a new ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder and sets the default values. +func NewItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property historyItems for users +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get historyItems from users +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// Patch update the navigation property historyItems in users +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToDeleteRequestInformation delete navigation property historyItems for users +// returns a *RequestInformation when successful +func (m *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get historyItems from users +// returns a *RequestInformation when successful +func (m *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property historyItems in users +// returns a *RequestInformation when successful +func (m *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + return NewItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_planner_plans_item_history_items_request_builder.go b/users/item_planner_plans_item_history_items_request_builder.go new file mode 100644 index 00000000000..4b625d6c1a0 --- /dev/null +++ b/users/item_planner_plans_item_history_items_request_builder.go @@ -0,0 +1,155 @@ +// Code generated by Microsoft Kiota - DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemPlannerPlansItemHistoryItemsRequestBuilder provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +type ItemPlannerPlansItemHistoryItemsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters get historyItems from users +type ItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool "uriparametername:\"%24count\"" + // Expand related entities + Expand []string "uriparametername:\"%24expand\"" + // Filter items by property values + Filter *string "uriparametername:\"%24filter\"" + // Order items by property values + Orderby []string "uriparametername:\"%24orderby\"" + // Search items by search phrases + Search *string "uriparametername:\"%24search\"" + // Select properties to be returned + Select []string "uriparametername:\"%24select\"" + // Skip the first n items + Skip *int32 "uriparametername:\"%24skip\"" + // Show only the first n items + Top *int32 "uriparametername:\"%24top\"" +} +// ItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemPlannerPlansItemHistoryItemsRequestBuilderGetQueryParameters +} +// ItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByPlannerHistoryItemId provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder when successful +func (m *ItemPlannerPlansItemHistoryItemsRequestBuilder) ByPlannerHistoryItemId(plannerHistoryItemId string)(*ItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if plannerHistoryItemId != "" { + urlTplParams["plannerHistoryItem%2Did"] = plannerHistoryItemId + } + return NewItemPlannerPlansItemHistoryItemsPlannerHistoryItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemPlannerPlansItemHistoryItemsRequestBuilderInternal instantiates a new ItemPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemPlannerPlansItemHistoryItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemHistoryItemsRequestBuilder) { + m := &ItemPlannerPlansItemHistoryItemsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/planner/plans/{plannerPlan%2Did}/historyItems{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemPlannerPlansItemHistoryItemsRequestBuilder instantiates a new ItemPlannerPlansItemHistoryItemsRequestBuilder and sets the default values. +func NewItemPlannerPlansItemHistoryItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPlannerPlansItemHistoryItemsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPlannerPlansItemHistoryItemsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemPlannerPlansItemHistoryItemsCountRequestBuilder when successful +func (m *ItemPlannerPlansItemHistoryItemsRequestBuilder) Count()(*ItemPlannerPlansItemHistoryItemsCountRequestBuilder) { + return NewItemPlannerPlansItemHistoryItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get historyItems from users +// returns a PlannerHistoryItemCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPlannerPlansItemHistoryItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemCollectionResponseable), nil +} +// Post create new navigation property to historyItems for users +// returns a PlannerHistoryItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemPlannerPlansItemHistoryItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreatePlannerHistoryItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable), nil +} +// ToGetRequestInformation get historyItems from users +// returns a *RequestInformation when successful +func (m *ItemPlannerPlansItemHistoryItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemHistoryItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to historyItems for users +// returns a *RequestInformation when successful +func (m *ItemPlannerPlansItemHistoryItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerHistoryItemable, requestConfiguration *ItemPlannerPlansItemHistoryItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemPlannerPlansItemHistoryItemsRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemPlannerPlansItemHistoryItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_planner_plans_planner_plan_item_request_builder.go b/users/item_planner_plans_planner_plan_item_request_builder.go index 07c53d3b299..643628a01bf 100644 --- a/users/item_planner_plans_planner_plan_item_request_builder.go +++ b/users/item_planner_plans_planner_plan_item_request_builder.go @@ -113,6 +113,11 @@ func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Get(ctx context.Context, func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) GetUsageRights()(*ItemPlannerPlansItemGetUsageRightsRequestBuilder) { return NewItemPlannerPlansItemGetUsageRightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// HistoryItems provides operations to manage the historyItems property of the microsoft.graph.plannerPlan entity. +// returns a *ItemPlannerPlansItemHistoryItemsRequestBuilder when successful +func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) HistoryItems()(*ItemPlannerPlansItemHistoryItemsRequestBuilder) { + return NewItemPlannerPlansItemHistoryItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MoveToContainer provides operations to call the moveToContainer method. // returns a *ItemPlannerPlansItemMoveToContainerRequestBuilder when successful func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) MoveToContainer()(*ItemPlannerPlansItemMoveToContainerRequestBuilder) { diff --git a/users/item_revoke_sign_in_sessions_post_response.go b/users/item_revoke_sign_in_sessions_post_response.go index 73e0246054b..354c97ebc1d 100644 --- a/users/item_revoke_sign_in_sessions_post_response.go +++ b/users/item_revoke_sign_in_sessions_post_response.go @@ -18,6 +18,8 @@ func NewItemRevokeSignInSessionsPostResponse()(*ItemRevokeSignInSessionsPostResp } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + valueValue := false + m.SetValue(&valueValue) return m } // CreateItemRevokeSignInSessionsPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_send_mail_post_request_body.go b/users/item_send_mail_post_request_body.go index 5144ea729fb..2a144b602b4 100644 --- a/users/item_send_mail_post_request_body.go +++ b/users/item_send_mail_post_request_body.go @@ -19,6 +19,8 @@ func NewItemSendMailPostRequestBody()(*ItemSendMailPostRequestBody) { } m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); m.SetAdditionalData(make(map[string]any)) + saveToSentItemsValue := false + m.SetSaveToSentItems(&saveToSentItemsValue) return m } // CreateItemSendMailPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value diff --git a/users/item_sponsors_ref_request_builder.go b/users/item_sponsors_ref_request_builder.go index a5313b9ec82..d1bae7bfb14 100644 --- a/users/item_sponsors_ref_request_builder.go +++ b/users/item_sponsors_ref_request_builder.go @@ -62,7 +62,7 @@ type ItemSponsorsRefRequestBuilderPostRequestConfiguration struct { // NewItemSponsorsRefRequestBuilderInternal instantiates a new ItemSponsorsRefRequestBuilder and sets the default values. func NewItemSponsorsRefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSponsorsRefRequestBuilder) { m := &ItemSponsorsRefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/sponsors/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/sponsors/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters), } return m } @@ -150,7 +150,7 @@ func (m *ItemSponsorsRefRequestBuilder) ToDeleteRequestInformation(ctx context.C // ToGetRequestInformation get an agentUser's sponsors. Sponsors are users and groups that are responsible for this agent user's privileges in the tenant and for keeping the agent user's information and access up to date. // returns a *RequestInformation when successful func (m *ItemSponsorsRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSponsorsRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/users/{user%2Did}/sponsors/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { if requestConfiguration.QueryParameters != nil { requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) @@ -164,7 +164,7 @@ func (m *ItemSponsorsRefRequestBuilder) ToGetRequestInformation(ctx context.Cont // ToPostRequestInformation assign an agentUser a sponsor. Sponsors are users and groups that are responsible for this agent user's privileges in the tenant and for keeping the agent user's information and access up to date. // returns a *RequestInformation when successful func (m *ItemSponsorsRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemSponsorsRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/users/{user%2Did}/sponsors/$ref", m.BaseRequestBuilder.PathParameters) + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) requestInfo.AddRequestOptions(requestConfiguration.Options) diff --git a/users/user_item_request_builder.go b/users/user_item_request_builder.go index 52140088022..69cce7ef4c0 100644 --- a/users/user_item_request_builder.go +++ b/users/user_item_request_builder.go @@ -246,6 +246,11 @@ func (m *UserItemRequestBuilder) DevicesWithDeviceId(deviceId *string)(*ItemDevi func (m *UserItemRequestBuilder) DirectReports()(*ItemDirectReportsRequestBuilder) { return NewItemDirectReportsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// DistributionLists provides operations to manage the distributionLists property of the microsoft.graph.user entity. +// returns a *ItemDistributionListsRequestBuilder when successful +func (m *UserItemRequestBuilder) DistributionLists()(*ItemDistributionListsRequestBuilder) { + return NewItemDistributionListsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Drive provides operations to manage the drive property of the microsoft.graph.user entity. // returns a *ItemDriveRequestBuilder when successful func (m *UserItemRequestBuilder) Drive()(*ItemDriveRequestBuilder) {