Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
74e3fd9
Updated script to improve on example imports and updates
timayabi2020 Apr 17, 2023
03d1373
Added check for handwritten commands
timayabi2020 Apr 17, 2023
e5c0095
Updated script to support merging of hand written examples with those…
timayabi2020 Apr 19, 2023
2b3fda9
Merge branch 'dev' into 1791-help-for-get-mgusermanagerbyref-contains…
timayabi2020 Apr 19, 2023
47b0a5f
Add group settings templates coverage in v1. (#1991)
peombwa May 2, 2023
c7b7f23
Updated generator script
timayabi2020 May 3, 2023
180eb7e
[v1] Weekly OpenApiDocs Refresh (#1994)
peombwa May 4, 2023
c1eddd6
[v1] Weekly Help Docs Generation (#1995)
peombwa May 4, 2023
89423b0
Modified examples generator tool to resolve issue Help for Get-MgUser…
timayabi2020 May 22, 2023
d156f74
Deleted folder
timayabi2020 May 22, 2023
6f45aaa
Updated git ignore file
timayabi2020 May 22, 2023
8be4ab2
corrected indentation
timayabi2020 May 22, 2023
840fccb
Merge branch 'dev' of https://github.com/microsoftgraph/msgraph-sdk-p…
timayabi2020 May 22, 2023
1bb5052
Reviewed script
timayabi2020 May 22, 2023
ea45aa7
Renamed variables
timayabi2020 May 23, 2023
7839708
Merge pull request #1953 from microsoftgraph/1791-help-for-get-mguser…
timayabi2020 May 24, 2023
53682cb
Update CODEOWNERS
MIchaelMainer May 26, 2023
10644ef
Reviewed script by adding commands with corresponding path and method…
timayabi2020 May 27, 2023
65cf080
Reviewed script
timayabi2020 May 29, 2023
2a7c369
Updating v1 examples
May 29, 2023
f9ad012
Merge pull request #2051 from microsoftgraph/WeeklyExamplesUpdate/202…
timayabi2020 May 31, 2023
d186499
Merge branch 'dev' into codeowners
MIchaelMainer May 31, 2023
5a85ae4
Merge pull request #2045 from microsoftgraph/codeowners
MIchaelMainer May 31, 2023
cf32e80
Uncommented v1.0
timayabi2020 May 31, 2023
7b5a4e7
Merge branch 'dev' into 2047-v1-review-examples-generator-script
peombwa May 31, 2023
3281e50
Merge pull request #2055 from microsoftgraph/2047-v1-review-examples-…
timayabi2020 May 31, 2023
2ffd48a
Updating v1 examples
Jun 2, 2023
af18000
Merge pull request #2060 from microsoftgraph/WeeklyExamplesUpdate/202…
timayabi2020 Jun 4, 2023
73c3b19
Use authorityUrl instead of tenantId when initializing MSAL.
peombwa Jun 7, 2023
7abcd47
Merge pull request #2073 from microsoftgraph/bugfixes/UseAuthority
peombwa Jun 8, 2023
1822073
chore: capture initial branch policy settings (#2083)
MIchaelMainer Jun 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 17 additions & 8 deletions .azure-pipelines/weekly-examples-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

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

jobs:
- job: PowerShellExamplesUpdate
- job: PowerShellExamplesUpdateV1
pool:
name: ${{ parameters.BuildAgent }}
timeoutInMinutes: ${{ parameters.PipelineTimeout }}
steps:
- template: ./common-templates/update-sdkversion.yml

- task: PowerShell@2
name: "ComputeBranch"
Expand All @@ -56,13 +55,21 @@ jobs:
git status

- task: PowerShell@2
displayName: 'Update Examples From Graph Reference'
displayName: 'Update Examples From API reference - V1'
continueOnError: false
inputs:
targetType: 'filePath'
pwsh: true
filePath: tools\ExamplesGenerator.ps1

- task: PublishBuildArtifacts@1
displayName: 'Publish Examples to be reviewed as artifact'
inputs:
PathtoPublish: 'examplesreport'
ArtifactName: 'ExamplesToBeReviewed'
publishLocation: 'Container'
# StoreAsTar: true

- task: PowerShell@2
displayName: Pushing to github
env:
Expand All @@ -71,15 +78,17 @@ jobs:
targetType: inline
pwsh: true
script: |
git config --global user.email "GraphTooling@service.microsoft.com"
git config --global user.name "Microsoft Graph DevX Tooling"
git status
git add .
git commit -m "Updating examples"
git push --set-upstream origin $(ComputeBranch.WeeklyExamplesBranch)
git commit -m "Updating v1 examples"
git push --set-upstream https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git $(ComputeBranch.WeeklyExamplesBranch)
git status

- template: ./common-templates/create-pr.yml
parameters:
BaseBranch: "dev"
TargetBranch: $(ComputeBranch.WeeklyExamplesBranch)
Title: "[v1] Examples Update"
Body: "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
Body: "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @peombwa @ddyett @shemogumbe @timayabi2020
* @microsoftgraph/msgraph-powershell-team
109 changes: 109 additions & 0 deletions .github/policies/msgraph-sdk-powershell-branch-protection.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

# File initially created using https://github.com/MIchaelMainer/policyservicetoolkit/blob/main/branch_protection_export.ps1.

name: msgraph-sdk-powershell-branch-protection
description: Branch protection policy for the msgraph-sdk-powershell repository
resource: repository
configuration:
branchProtectionRules:

- branchNamePattern: main
# This branch pattern applies to the following branches as of 06/12/2023 10:31:18:
# main

# Specifies whether this branch can be deleted. boolean
allowsDeletions: false
# Specifies whether forced pushes are allowed on this branch. boolean
allowsForcePushes: false
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
dismissStaleReviews: false
# Specifies whether admins can overwrite branch protection. boolean
isAdminEnforced: false
# Indicates whether "Require a pull request before merging" is enabled. boolean
requiresPullRequestBeforeMerging: true
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
requiredApprovingReviewsCount: 1
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
requireCodeOwnersReview: false
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
requiresCommitSignatures: false
# Are conversations required to be resolved before merging? boolean
requiresConversationResolution: false
# Are merge commits prohibited from being pushed to this branch. boolean
requiresLinearHistory: false
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
requiresStrictStatusChecks: true
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
restrictsPushes: false
# Restrict who can dismiss pull request reviews. boolean
restrictsReviewDismissals: false

- branchNamePattern: dev
# This branch pattern applies to the following branches as of 06/12/2023 10:31:18:
# dev

# Specifies whether this branch can be deleted. boolean
allowsDeletions: false
# Specifies whether forced pushes are allowed on this branch. boolean
allowsForcePushes: false
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
dismissStaleReviews: true
# Specifies whether admins can overwrite branch protection. boolean
isAdminEnforced: false
# Indicates whether "Require a pull request before merging" is enabled. boolean
requiresPullRequestBeforeMerging: true
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
requiredApprovingReviewsCount: 1
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
requireCodeOwnersReview: true
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
requiresCommitSignatures: false
# Are conversations required to be resolved before merging? boolean
requiresConversationResolution: false
# Are merge commits prohibited from being pushed to this branch. boolean
requiresLinearHistory: false
# 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
requiredStatusChecks:
- license/cla
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
requiresStrictStatusChecks: true
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
restrictsPushes: false
# Restrict who can dismiss pull request reviews. boolean
restrictsReviewDismissals: false

- branchNamePattern: features/[0-9]*
# This branch pattern applies to the following branches as of 06/12/2023 10:31:18:
# features/2.0

# Specifies whether this branch can be deleted. boolean
allowsDeletions: false
# Specifies whether forced pushes are allowed on this branch. boolean
allowsForcePushes: false
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
dismissStaleReviews: true
# Specifies whether admins can overwrite branch protection. boolean
isAdminEnforced: false
# Indicates whether "Require a pull request before merging" is enabled. boolean
requiresPullRequestBeforeMerging: true
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
requiredApprovingReviewsCount: 1
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
requireCodeOwnersReview: false
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
requiresCommitSignatures: false
# Are conversations required to be resolved before merging? boolean
requiresConversationResolution: false
# Are merge commits prohibited from being pushed to this branch. boolean
requiresLinearHistory: false
# 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
requiredStatusChecks:
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
requiresStrictStatusChecks: true
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
restrictsPushes: false
# Restrict who can dismiss pull request reviews. boolean
restrictsReviewDismissals: false

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -358,4 +358,7 @@ MigrationBackup/
.vscode/

#Custom Environment Files
localenv.json
localenv.json

#Wrong Examples report Folder
examplesreport/
2 changes: 1 addition & 1 deletion config/ModuleMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
],
"releaseNotes": "See https://aka.ms/GraphPowerShell-Release.",
"assemblyOriginatorKeyFile": "35MSSharedLib1024.snk",
"version": "1.27.0"
"version": "1.28.0"
}
2 changes: 1 addition & 1 deletion config/ModulesMapping.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"Education": "^education\\.",
"Files": "^drives\\.|^shares\\.|^users.drive$|^groups.drive$",
"Financials": "^financials\\.",
"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$",
"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\\.",
"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$",
"Identity.Governance": "^accessReviews\\.|^businessFlowTemplates\\.|^programs\\.|^programControls\\.|^programControlTypes\\.|^privilegedRoles\\.|^privilegedRoleAssignments\\.|^privilegedRoleAssignmentRequests\\.|^privilegedApproval\\.|^privilegedOperationEvents\\.|^privilegedAccess\\.|^agreements\\.|^users.agreementAcceptance$|^identityGovernance\\.",
"Identity.SignIns": "^organization.certificateBasedAuthConfiguration$|^invitations\\.|^identityProviders\\.|^oauth2PermissionGrants\\.|^identityProtection\\.|^dataPolicyOperations\\.|^identity\\.|^trustFramework\\.|^informationProtection\\.|^policies\\.|^users.authentication$|^users.informationProtection$",
Expand Down
8 changes: 4 additions & 4 deletions openApiDocs/beta/Applications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26390,11 +26390,11 @@ components:
properties:
key:
type: string
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.'
description: Key.
nullable: true
value:
type: string
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.
description: Value.
nullable: true
additionalProperties:
type: object
Expand Down Expand Up @@ -26882,11 +26882,11 @@ components:
properties:
displayName:
type: string
description: The display name of the identity. This property is read-only.
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.'
nullable: true
id:
type: string
description: The identifier of the identity. This property is read-only.
description: Unique identifier for the identity.
nullable: true
additionalProperties:
type: object
Expand Down
4 changes: 2 additions & 2 deletions openApiDocs/beta/Bookings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5045,11 +5045,11 @@ components:
properties:
displayName:
type: string
description: The display name of the identity. This property is read-only.
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.'
nullable: true
id:
type: string
description: The identifier of the identity. This property is read-only.
description: Unique identifier for the identity.
nullable: true
additionalProperties:
type: object
Expand Down
4 changes: 2 additions & 2 deletions openApiDocs/beta/CloudCommunications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10768,11 +10768,11 @@ components:
properties:
displayName:
type: string
description: The display name of the identity. This property is read-only.
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.'
nullable: true
id:
type: string
description: The identifier of the identity. This property is read-only.
description: Unique identifier for the identity.
nullable: true
additionalProperties:
type: object
Expand Down
8 changes: 4 additions & 4 deletions openApiDocs/beta/Compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10649,11 +10649,11 @@ components:
properties:
displayName:
type: string
description: The display name of the identity. This property is read-only.
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.'
nullable: true
id:
type: string
description: The identifier of the identity. This property is read-only.
description: Unique identifier for the identity.
nullable: true
additionalProperties:
type: object
Expand Down Expand Up @@ -17857,11 +17857,11 @@ components:
properties:
key:
type: string
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.'
description: Key.
nullable: true
value:
type: string
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.
description: Value.
nullable: true
additionalProperties:
type: object
Expand Down
8 changes: 4 additions & 4 deletions openApiDocs/beta/CrossDeviceExperiences.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10608,11 +10608,11 @@ components:
properties:
displayName:
type: string
description: The display name of the identity. This property is read-only.
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.'
nullable: true
id:
type: string
description: The identifier of the identity. This property is read-only.
description: Unique identifier for the identity.
nullable: true
additionalProperties:
type: object
Expand Down Expand Up @@ -12483,11 +12483,11 @@ components:
properties:
key:
type: string
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.'
description: Key.
nullable: true
value:
type: string
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.
description: Value.
nullable: true
additionalProperties:
type: object
Expand Down
8 changes: 4 additions & 4 deletions openApiDocs/beta/DeviceManagement.Actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24253,11 +24253,11 @@ components:
properties:
displayName:
type: string
description: The display name of the identity. This property is read-only.
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.'
nullable: true
id:
type: string
description: The identifier of the identity. This property is read-only.
description: Unique identifier for the identity.
nullable: true
additionalProperties:
type: object
Expand Down Expand Up @@ -30986,11 +30986,11 @@ components:
properties:
key:
type: string
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.'
description: Key.
nullable: true
value:
type: string
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.
description: Value.
nullable: true
additionalProperties:
type: object
Expand Down
Loading