Skip to content

Commit 97f01cc

Browse files
authored
Merge pull request #2077 from microsoftgraph/dev
Sync Main with Dev
2 parents 1431600 + 1822073 commit 97f01cc

File tree

1,220 files changed

+120731
-115159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,220 files changed

+120731
-115159
lines changed

.azure-pipelines/weekly-examples-update.yml

+17-8
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
trigger: none # disable triggers based on commits.
44
pr: none # disable as a PR gate.
5-
name: 'PowerShellExamplesUpdate Check'
5+
name: 'PowerShellExamplesUpdateV1 Check'
66
schedules:
77
- cron: "0 3 * * FRI" # every Friday at 3AM UTC (off hours for Redmond, Nairobi and Montréal)
8-
displayName: 'PowerShellExamplesUpdate Check'
8+
displayName: 'PowerShellExamplesUpdateV1'
99
branches:
1010
include:
1111
- dev
@@ -28,12 +28,11 @@ resources:
2828
ref: dev
2929

3030
jobs:
31-
- job: PowerShellExamplesUpdate
31+
- job: PowerShellExamplesUpdateV1
3232
pool:
3333
name: ${{ parameters.BuildAgent }}
3434
timeoutInMinutes: ${{ parameters.PipelineTimeout }}
3535
steps:
36-
- template: ./common-templates/update-sdkversion.yml
3736

3837
- task: PowerShell@2
3938
name: "ComputeBranch"
@@ -56,13 +55,21 @@ jobs:
5655
git status
5756
5857
- task: PowerShell@2
59-
displayName: 'Update Examples From Graph Reference'
58+
displayName: 'Update Examples From API reference - V1'
6059
continueOnError: false
6160
inputs:
6261
targetType: 'filePath'
6362
pwsh: true
6463
filePath: tools\ExamplesGenerator.ps1
6564

65+
- task: PublishBuildArtifacts@1
66+
displayName: 'Publish Examples to be reviewed as artifact'
67+
inputs:
68+
PathtoPublish: 'examplesreport'
69+
ArtifactName: 'ExamplesToBeReviewed'
70+
publishLocation: 'Container'
71+
# StoreAsTar: true
72+
6673
- task: PowerShell@2
6774
displayName: Pushing to github
6875
env:
@@ -71,15 +78,17 @@ jobs:
7178
targetType: inline
7279
pwsh: true
7380
script: |
81+
git config --global user.email "[email protected]"
82+
git config --global user.name "Microsoft Graph DevX Tooling"
7483
git status
7584
git add .
76-
git commit -m "Updating examples"
77-
git push --set-upstream origin $(ComputeBranch.WeeklyExamplesBranch)
85+
git commit -m "Updating v1 examples"
86+
git push --set-upstream https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git $(ComputeBranch.WeeklyExamplesBranch)
7887
git status
7988
8089
- template: ./common-templates/create-pr.yml
8190
parameters:
8291
BaseBranch: "dev"
8392
TargetBranch: $(ComputeBranch.WeeklyExamplesBranch)
8493
Title: "[v1] Examples Update"
85-
Body: "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
94+
Body: "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @peombwa @ddyett @shemogumbe @timayabi2020
1+
* @microsoftgraph/msgraph-powershell-team
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
4+
# File initially created using https://github.com/MIchaelMainer/policyservicetoolkit/blob/main/branch_protection_export.ps1.
5+
6+
name: msgraph-sdk-powershell-branch-protection
7+
description: Branch protection policy for the msgraph-sdk-powershell repository
8+
resource: repository
9+
configuration:
10+
branchProtectionRules:
11+
12+
- branchNamePattern: main
13+
# This branch pattern applies to the following branches as of 06/12/2023 10:31:18:
14+
# main
15+
16+
# Specifies whether this branch can be deleted. boolean
17+
allowsDeletions: false
18+
# Specifies whether forced pushes are allowed on this branch. boolean
19+
allowsForcePushes: false
20+
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
21+
dismissStaleReviews: false
22+
# Specifies whether admins can overwrite branch protection. boolean
23+
isAdminEnforced: false
24+
# Indicates whether "Require a pull request before merging" is enabled. boolean
25+
requiresPullRequestBeforeMerging: true
26+
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
27+
requiredApprovingReviewsCount: 1
28+
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
29+
requireCodeOwnersReview: false
30+
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
31+
requiresCommitSignatures: false
32+
# Are conversations required to be resolved before merging? boolean
33+
requiresConversationResolution: false
34+
# Are merge commits prohibited from being pushed to this branch. boolean
35+
requiresLinearHistory: false
36+
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
37+
requiresStrictStatusChecks: true
38+
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
39+
restrictsPushes: false
40+
# Restrict who can dismiss pull request reviews. boolean
41+
restrictsReviewDismissals: false
42+
43+
- branchNamePattern: dev
44+
# This branch pattern applies to the following branches as of 06/12/2023 10:31:18:
45+
# dev
46+
47+
# Specifies whether this branch can be deleted. boolean
48+
allowsDeletions: false
49+
# Specifies whether forced pushes are allowed on this branch. boolean
50+
allowsForcePushes: false
51+
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
52+
dismissStaleReviews: true
53+
# Specifies whether admins can overwrite branch protection. boolean
54+
isAdminEnforced: false
55+
# Indicates whether "Require a pull request before merging" is enabled. boolean
56+
requiresPullRequestBeforeMerging: true
57+
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
58+
requiredApprovingReviewsCount: 1
59+
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
60+
requireCodeOwnersReview: true
61+
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
62+
requiresCommitSignatures: false
63+
# Are conversations required to be resolved before merging? boolean
64+
requiresConversationResolution: false
65+
# Are merge commits prohibited from being pushed to this branch. boolean
66+
requiresLinearHistory: false
67+
# Required status checks to pass before merging. Values can be any string, but if the value does not correspond to any existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status
68+
requiredStatusChecks:
69+
- license/cla
70+
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
71+
requiresStrictStatusChecks: true
72+
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
73+
restrictsPushes: false
74+
# Restrict who can dismiss pull request reviews. boolean
75+
restrictsReviewDismissals: false
76+
77+
- branchNamePattern: features/[0-9]*
78+
# This branch pattern applies to the following branches as of 06/12/2023 10:31:18:
79+
# features/2.0
80+
81+
# Specifies whether this branch can be deleted. boolean
82+
allowsDeletions: false
83+
# Specifies whether forced pushes are allowed on this branch. boolean
84+
allowsForcePushes: false
85+
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
86+
dismissStaleReviews: true
87+
# Specifies whether admins can overwrite branch protection. boolean
88+
isAdminEnforced: false
89+
# Indicates whether "Require a pull request before merging" is enabled. boolean
90+
requiresPullRequestBeforeMerging: true
91+
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
92+
requiredApprovingReviewsCount: 1
93+
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
94+
requireCodeOwnersReview: false
95+
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
96+
requiresCommitSignatures: false
97+
# Are conversations required to be resolved before merging? boolean
98+
requiresConversationResolution: false
99+
# Are merge commits prohibited from being pushed to this branch. boolean
100+
requiresLinearHistory: false
101+
# Required status checks to pass before merging. Values can be any string, but if the value does not correspond to any existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status
102+
requiredStatusChecks:
103+
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
104+
requiresStrictStatusChecks: true
105+
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
106+
restrictsPushes: false
107+
# Restrict who can dismiss pull request reviews. boolean
108+
restrictsReviewDismissals: false
109+

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -358,4 +358,7 @@ MigrationBackup/
358358
.vscode/
359359

360360
#Custom Environment Files
361-
localenv.json
361+
localenv.json
362+
363+
#Wrong Examples report Folder
364+
examplesreport/

config/ModuleMetadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
],
2626
"releaseNotes": "See https://aka.ms/GraphPowerShell-Release.",
2727
"assemblyOriginatorKeyFile": "35MSSharedLib1024.snk",
28-
"version": "1.27.0"
28+
"version": "1.28.0"
2929
}

config/ModulesMapping.jsonc

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"Education": "^education\\.",
1919
"Files": "^drives\\.|^shares\\.|^users.drive$|^groups.drive$",
2020
"Financials": "^financials\\.",
21-
"Groups": "^groups.group$|^groups.directoryObject$|^groups.conversation$|^groups.endpoint$|^groups.extension$|^groups.groupLifecyclePolicy$|^groups.resourceSpecificPermissionGrant$|^groups.profilePhoto$|^groups.conversationThread$|^groupLifecyclePolicies\\.|^users.group$|^groups.directorySetting$|^groups.Actions$|^groups.Functions$|^groupSettings\\.|^groups.groupSetting$",
21+
"Groups": "^groups.group$|^groups.directoryObject$|^groups.conversation$|^groups.endpoint$|^groups.extension$|^groups.groupLifecyclePolicy$|^groups.resourceSpecificPermissionGrant$|^groups.profilePhoto$|^groups.conversationThread$|^groupLifecyclePolicies\\.|^users.group$|^groups.directorySetting$|^groups.Actions$|^groups.Functions$|^groupSettings\\.|^groups.groupSetting$|^groupSettingTemplates\\.",
2222
"Identity.DirectoryManagement": "^administrativeUnits\\.|^contacts\\.|^devices\\.|^domains\\.|^directoryRoles\\.|^directoryRoleTemplates\\.|^directorySettingTemplates\\.|^settings\\.|^subscribedSkus\\.|^contracts\\.|^directory\\.|^users.scopedRoleMembership$|^organization.organization$|^organization.organizationalBranding$|^organization.organizationSettings$|^organization.Actions$|^organization.extension$",
2323
"Identity.Governance": "^accessReviews\\.|^businessFlowTemplates\\.|^programs\\.|^programControls\\.|^programControlTypes\\.|^privilegedRoles\\.|^privilegedRoleAssignments\\.|^privilegedRoleAssignmentRequests\\.|^privilegedApproval\\.|^privilegedOperationEvents\\.|^privilegedAccess\\.|^agreements\\.|^users.agreementAcceptance$|^identityGovernance\\.",
2424
"Identity.SignIns": "^organization.certificateBasedAuthConfiguration$|^invitations\\.|^identityProviders\\.|^oauth2PermissionGrants\\.|^identityProtection\\.|^dataPolicyOperations\\.|^identity\\.|^trustFramework\\.|^informationProtection\\.|^policies\\.|^users.authentication$|^users.informationProtection$",

openApiDocs/beta/Applications.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26390,11 +26390,11 @@ components:
2639026390
properties:
2639126391
key:
2639226392
type: string
26393-
description: 'Contains the name of the field that a value is associated with. When a sign in or domain hint is included in the sign-in request, corresponding fields are included as key-value pairs. Possible keys: Login hint present, Domain hint present.'
26393+
description: Key.
2639426394
nullable: true
2639526395
value:
2639626396
type: string
26397-
description: Contains the corresponding value for the specified key. The value is true if a sign in hint was included in the sign-in request; otherwise false. The value is true if a domain hint was included in the sign-in request; otherwise false.
26397+
description: Value.
2639826398
nullable: true
2639926399
additionalProperties:
2640026400
type: object
@@ -26882,11 +26882,11 @@ components:
2688226882
properties:
2688326883
displayName:
2688426884
type: string
26885-
description: The display name of the identity. This property is read-only.
26885+
description: 'The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won''t show up as having changed when using delta.'
2688626886
nullable: true
2688726887
id:
2688826888
type: string
26889-
description: The identifier of the identity. This property is read-only.
26889+
description: Unique identifier for the identity.
2689026890
nullable: true
2689126891
additionalProperties:
2689226892
type: object

openApiDocs/beta/Bookings.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5045,11 +5045,11 @@ components:
50455045
properties:
50465046
displayName:
50475047
type: string
5048-
description: The display name of the identity. This property is read-only.
5048+
description: 'The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won''t show up as having changed when using delta.'
50495049
nullable: true
50505050
id:
50515051
type: string
5052-
description: The identifier of the identity. This property is read-only.
5052+
description: Unique identifier for the identity.
50535053
nullable: true
50545054
additionalProperties:
50555055
type: object

openApiDocs/beta/CloudCommunications.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10768,11 +10768,11 @@ components:
1076810768
properties:
1076910769
displayName:
1077010770
type: string
10771-
description: The display name of the identity. This property is read-only.
10771+
description: 'The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won''t show up as having changed when using delta.'
1077210772
nullable: true
1077310773
id:
1077410774
type: string
10775-
description: The identifier of the identity. This property is read-only.
10775+
description: Unique identifier for the identity.
1077610776
nullable: true
1077710777
additionalProperties:
1077810778
type: object

openApiDocs/beta/Compliance.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10649,11 +10649,11 @@ components:
1064910649
properties:
1065010650
displayName:
1065110651
type: string
10652-
description: The display name of the identity. This property is read-only.
10652+
description: 'The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won''t show up as having changed when using delta.'
1065310653
nullable: true
1065410654
id:
1065510655
type: string
10656-
description: The identifier of the identity. This property is read-only.
10656+
description: Unique identifier for the identity.
1065710657
nullable: true
1065810658
additionalProperties:
1065910659
type: object
@@ -17857,11 +17857,11 @@ components:
1785717857
properties:
1785817858
key:
1785917859
type: string
17860-
description: 'Contains the name of the field that a value is associated with. When a sign in or domain hint is included in the sign-in request, corresponding fields are included as key-value pairs. Possible keys: Login hint present, Domain hint present.'
17860+
description: Key.
1786117861
nullable: true
1786217862
value:
1786317863
type: string
17864-
description: Contains the corresponding value for the specified key. The value is true if a sign in hint was included in the sign-in request; otherwise false. The value is true if a domain hint was included in the sign-in request; otherwise false.
17864+
description: Value.
1786517865
nullable: true
1786617866
additionalProperties:
1786717867
type: object

openApiDocs/beta/CrossDeviceExperiences.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10608,11 +10608,11 @@ components:
1060810608
properties:
1060910609
displayName:
1061010610
type: string
10611-
description: The display name of the identity. This property is read-only.
10611+
description: 'The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won''t show up as having changed when using delta.'
1061210612
nullable: true
1061310613
id:
1061410614
type: string
10615-
description: The identifier of the identity. This property is read-only.
10615+
description: Unique identifier for the identity.
1061610616
nullable: true
1061710617
additionalProperties:
1061810618
type: object
@@ -12483,11 +12483,11 @@ components:
1248312483
properties:
1248412484
key:
1248512485
type: string
12486-
description: 'Contains the name of the field that a value is associated with. When a sign in or domain hint is included in the sign-in request, corresponding fields are included as key-value pairs. Possible keys: Login hint present, Domain hint present.'
12486+
description: Key.
1248712487
nullable: true
1248812488
value:
1248912489
type: string
12490-
description: Contains the corresponding value for the specified key. The value is true if a sign in hint was included in the sign-in request; otherwise false. The value is true if a domain hint was included in the sign-in request; otherwise false.
12490+
description: Value.
1249112491
nullable: true
1249212492
additionalProperties:
1249312493
type: object

openApiDocs/beta/DeviceManagement.Actions.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -24253,11 +24253,11 @@ components:
2425324253
properties:
2425424254
displayName:
2425524255
type: string
24256-
description: The display name of the identity. This property is read-only.
24256+
description: 'The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won''t show up as having changed when using delta.'
2425724257
nullable: true
2425824258
id:
2425924259
type: string
24260-
description: The identifier of the identity. This property is read-only.
24260+
description: Unique identifier for the identity.
2426124261
nullable: true
2426224262
additionalProperties:
2426324263
type: object
@@ -30986,11 +30986,11 @@ components:
3098630986
properties:
3098730987
key:
3098830988
type: string
30989-
description: 'Contains the name of the field that a value is associated with. When a sign in or domain hint is included in the sign-in request, corresponding fields are included as key-value pairs. Possible keys: Login hint present, Domain hint present.'
30989+
description: Key.
3099030990
nullable: true
3099130991
value:
3099230992
type: string
30993-
description: Contains the corresponding value for the specified key. The value is true if a sign in hint was included in the sign-in request; otherwise false. The value is true if a domain hint was included in the sign-in request; otherwise false.
30993+
description: Value.
3099430994
nullable: true
3099530995
additionalProperties:
3099630996
type: object

0 commit comments

Comments
 (0)