From 136e38253fdd444bb4ec7789755f252440112e6e Mon Sep 17 00:00:00 2001 From: Peter Ombwa Date: Thu, 22 Apr 2021 10:41:09 -0700 Subject: [PATCH] Apply rename directive for *ById actions. --- src/Admin/Admin/Microsoft.Graph.Admin.psd1 | 186 +++++++++++++++++++++ src/Admin/Admin/readme.md | 85 ++++++++++ 2 files changed, 271 insertions(+) create mode 100644 src/Admin/Admin/Microsoft.Graph.Admin.psd1 create mode 100644 src/Admin/Admin/readme.md diff --git a/src/Admin/Admin/Microsoft.Graph.Admin.psd1 b/src/Admin/Admin/Microsoft.Graph.Admin.psd1 new file mode 100644 index 00000000000..0144b4f5c0d --- /dev/null +++ b/src/Admin/Admin/Microsoft.Graph.Admin.psd1 @@ -0,0 +1,186 @@ +# +# Module manifest for module 'Microsoft.Graph.Admin' +# +# Generated by: Microsoft Corporation +# +# Generated on: 4/22/2021 +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = './Microsoft.Graph.Admin.psm1' + +# Version number of this module. +ModuleVersion = '1.5.1' + +# Supported PSEditions +CompatiblePSEditions = 'Core', 'Desktop' + +# ID used to uniquely identify this module +GUID = 'be18d0ed-3043-4e4b-8a28-7e8fc427f083' + +# Author of this module +Author = 'Microsoft Corporation' + +# Company or vendor of this module +CompanyName = 'Microsoft Corporation' + +# Copyright statement for this module +Copyright = 'Microsoft Corporation. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'Microsoft Graph PowerShell Cmdlets' + +# Minimum version of the PowerShell engine required by this module +PowerShellVersion = '5.1' + +# Name of the PowerShell host required by this module +# PowerShellHostName = '' + +# Minimum version of the PowerShell host required by this module +# PowerShellHostVersion = '' + +# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +DotNetFrameworkVersion = '4.7.2' + +# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# ClrVersion = '' + +# Processor architecture (None, X86, Amd64) required by this module +# ProcessorArchitecture = '' + +# Modules that must be imported into the global environment prior to importing this module +RequiredModules = @(@{ModuleName = 'Microsoft.Graph.Authentication'; ModuleVersion = '1.5.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = './bin/Microsoft.Graph.Admin.private.dll' + +# Script files (.ps1) that are run in the caller's environment prior to importing this module. +# ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +# TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +FormatsToProcess = './Microsoft.Graph.Admin.format.ps1xml' + +# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess +# NestedModules = @() + +# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. +FunctionsToExport = 'Add-MgAdminWindowUpdateDeploymentAudienceExclusionMember', + 'Add-MgAdminWindowUpdateDeploymentAudienceExclusionMemberById', + 'Add-MgAdminWindowUpdateDeploymentAudienceMember', + 'Add-MgAdminWindowUpdateDeploymentAudienceMemberById', + 'Add-MgAdminWindowUpdateUpdatableAssetMember', + 'Add-MgAdminWindowUpdateUpdatableAssetMemberById', 'Get-MgAdmin', + 'Get-MgAdminWindow', 'Get-MgAdminWindowUpdate', + 'Get-MgAdminWindowUpdateCatalog', + 'Get-MgAdminWindowUpdateCatalogEntry', + 'Get-MgAdminWindowUpdateDeployment', + 'Get-MgAdminWindowUpdateDeploymentAudience', + 'Get-MgAdminWindowUpdateDeploymentAudienceExclusion', + 'Get-MgAdminWindowUpdateDeploymentAudienceMember', + 'Get-MgAdminWindowUpdateUpdatableAsset', + 'Invoke-MgEnrollAdminWindowUpdateDeploymentAudienceExclusionAsset', + 'Invoke-MgEnrollAdminWindowUpdateDeploymentAudienceExclusionAssetById', + 'Invoke-MgEnrollAdminWindowUpdateDeploymentAudienceMemberAsset', + 'Invoke-MgEnrollAdminWindowUpdateDeploymentAudienceMemberAssetById', + 'Invoke-MgEnrollAdminWindowUpdateUpdatableAsset', + 'Invoke-MgEnrollAdminWindowUpdateUpdatableAssetById', + 'Invoke-MgUnenrollAdminWindowUpdateDeploymentAudienceExclusionAsset', + 'Invoke-MgUnenrollAdminWindowUpdateDeploymentAudienceExclusionAssetById', + 'Invoke-MgUnenrollAdminWindowUpdateDeploymentAudienceMemberAsset', + 'Invoke-MgUnenrollAdminWindowUpdateDeploymentAudienceMemberAssetById', + 'Invoke-MgUnenrollAdminWindowUpdateUpdatableAsset', + 'Invoke-MgUnenrollAdminWindowUpdateUpdatableAssetById', + 'New-MgAdminWindowUpdateCatalogEntry', + 'New-MgAdminWindowUpdateDeployment', + 'New-MgAdminWindowUpdateDeploymentAudienceExclusion', + 'New-MgAdminWindowUpdateDeploymentAudienceMember', + 'New-MgAdminWindowUpdateUpdatableAsset', 'Remove-MgAdminWindow', + 'Remove-MgAdminWindowUpdate', 'Remove-MgAdminWindowUpdateCatalog', + 'Remove-MgAdminWindowUpdateCatalogEntry', + 'Remove-MgAdminWindowUpdateDeployment', + 'Remove-MgAdminWindowUpdateDeploymentAudience', + 'Remove-MgAdminWindowUpdateDeploymentAudienceExclusion', + 'Remove-MgAdminWindowUpdateDeploymentAudienceExclusionMember', + 'Remove-MgAdminWindowUpdateDeploymentAudienceExclusionMemberById', + 'Remove-MgAdminWindowUpdateDeploymentAudienceMember', + 'Remove-MgAdminWindowUpdateDeploymentAudienceMemberById', + 'Remove-MgAdminWindowUpdateUpdatableAsset', + 'Remove-MgAdminWindowUpdateUpdatableAssetMember', + 'Remove-MgAdminWindowUpdateUpdatableAssetMemberById', + 'Update-MgAdmin', 'Update-MgAdminWindow', + 'Update-MgAdminWindowUpdate', 'Update-MgAdminWindowUpdateCatalog', + 'Update-MgAdminWindowUpdateCatalogEntry', + 'Update-MgAdminWindowUpdateDeployment', + 'Update-MgAdminWindowUpdateDeploymentAudience', + 'Update-MgAdminWindowUpdateDeploymentAudienceById', + 'Update-MgAdminWindowUpdateDeploymentAudienceExclusion', + 'Update-MgAdminWindowUpdateDeploymentAudienceMember', + 'Update-MgAdminWindowUpdateUpdatableAsset' + +# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. +CmdletsToExport = @() + +# Variables to export from this module +# VariablesToExport = @() + +# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. +AliasesToExport = '*' + +# DSC resources to export from this module +# DscResourcesToExport = @() + +# List of all modules packaged with this module +# ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. +PrivateData = @{ + + #Profiles of this module + Profiles = 'v1.0-beta' + + PSData = @{ + + # Tags applied to this module. These help with module discovery in online galleries. + Tags = 'Microsoft','Office365','Graph','PowerShell' + + # A URL to the license for this module. + LicenseUri = 'https://aka.ms/devservicesagreement' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/microsoftgraph/msgraph-sdk-powershell' + + # A URL to an icon representing this module. + IconUri = 'https://raw.githubusercontent.com/microsoftgraph/msgraph-sdk-powershell/master/documentation/images/graph_color256.png' + + # ReleaseNotes of this module + ReleaseNotes = 'See https://aka.ms/GraphPowerShell-Release.' + + # Prerelease string of this module + # Prerelease = '' + + # Flag to indicate whether the module requires explicit user acceptance for install/update/save + # RequireLicenseAcceptance = $false + + # External dependent modules of this module + # ExternalModuleDependencies = @() + + } # End of PSData hashtable + +} # End of PrivateData hashtable + +# HelpInfo URI of this module +# HelpInfoURI = '' + +# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. +# DefaultCommandPrefix = '' + +} + diff --git a/src/Admin/Admin/readme.md b/src/Admin/Admin/readme.md new file mode 100644 index 00000000000..1a98a182a3b --- /dev/null +++ b/src/Admin/Admin/readme.md @@ -0,0 +1,85 @@ + +# Microsoft.Graph.Admin +This directory contains the PowerShell module for the Admin service. + +--- +## Status +[![Microsoft.Graph.Admin](https://img.shields.io/powershellgallery/v/Microsoft.Graph.Admin.svg?style=flat-square&label=Microsoft.Graph.Admin "Microsoft.Graph.Admin")](https://www.powershellgallery.com/packages/Microsoft.Graph.Admin/) + +## Info +- Modifiable: yes +- Generated: all +- Committed: yes +- Packaged: yes + +--- +## Detail +This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. + +## Development +For information on how to develop for `Microsoft.Graph.Admin`, see [how-to.md](how-to.md). + + +### AutoRest Configuration + +> see https://aka.ms/autorest + +``` yaml +require: + - $(this-folder)/../../readme.graph.md + - $(this-folder)/../../../profiles/$(title)/readme.md +title: $(service-name) +subject-prefix: '' +``` + +### Directives + +> see https://github.com/Azure/autorest/blob/master/docs/powershell/directives.md + +``` yaml +directive: +# Remove cmdlets + - where: + verb: Update + subject: ^AdminWindowUpdateDeploymentAudience$ + variant: ^Update$|^UpdateExpanded$|^UpdateViaIdentity$|^UpdateViaIdentityExpanded$ + remove: true +# Rename cmdlets + - where: + verb: Add + subject: ^(AdminWindowUpdate)(DeploymentAudienceExclusion|DeploymentAudience|UpdatableAsset)(Member)$ + variant: ^Add1$|^AddExpanded1$|^AddViaIdentity1$|^AddViaIdentityExpanded1$ + set: + subject: $1$2$3ById + - where: + verb: Remove + subject: ^(AdminWindowUpdate)(DeploymentAudienceExclusion|DeploymentAudience|UpdatableAsset)(Member)$ + variant: ^Remove1$|^RemoveExpanded1$|^RemoveViaIdentity1$|^RemoveViaIdentityExpanded1$ + set: + subject: $1$2$3ById + - where: + verb: Invoke + subject: ^(EnrollAdminWindowUpdate)(DeploymentAudienceExclusion|DeploymentAudienceMember|Updatable)(Asset)$ + variant: ^Enroll1$|^EnrollExpanded1$|^EnrollViaIdentity1$|^EnrollViaIdentityExpanded1$ + set: + subject: $1$2$3ById + - where: + verb: Invoke + subject: ^(UnenrollAdminWindowUpdate)(DeploymentAudienceExclusion|DeploymentAudienceMember|Updatable)(Asset)$ + variant: ^Unenroll1$|^UnenrollExpanded1$|^UnenrollViaIdentity1$|^UnenrollViaIdentityExpanded1$ + set: + subject: $1$2$3ById + - where: + verb: Update + subject: ^(AdminWindowUpdateDeploymentAudience)$ + variant: ^Update2$|^UpdateExpanded2$|^UpdateViaIdentity2$|^UpdateViaIdentityExpanded2$ + set: + subject: $1ById +``` + +### Versioning + +``` yaml +module-version: 1.5.1 +release-notes: See https://aka.ms/GraphPowerShell-Release. +```