Skip to content

Commit

Permalink
Move VMware to vidai/secrets-detection-autorest
Browse files Browse the repository at this point in the history
  • Loading branch information
azure-powershell-bot committed Mar 24, 2024
1 parent ea6e3c9 commit 3d89420
Show file tree
Hide file tree
Showing 362 changed files with 6,218 additions and 526 deletions.
24 changes: 14 additions & 10 deletions src/VMware/VMware.Autorest/Az.VMware.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -47,37 +47,41 @@

# Ask for the shared functionality table
$VTable = Register-AzModule

# Tweaks the pipeline on module load
$instance.OnModuleLoad = $VTable.OnModuleLoad

# Following two delegates are added for telemetry
$instance.GetTelemetryId = $VTable.GetTelemetryId
$instance.Telemetry = $VTable.Telemetry


# Delegate to sanitize the output object
$instance.SanitizeOutput = $VTable.SanitizerHandler

# Delegate to get the telemetry info
$instance.GetTelemetryInfo = $VTable.GetTelemetryInfo

# Tweaks the pipeline per call
$instance.OnNewRequest = $VTable.OnNewRequest

# Gets shared parameter values
$instance.GetParameterValue = $VTable.GetParameterValue

# Allows shared module to listen to events from this module
$instance.EventListener = $VTable.EventListener

# Gets shared argument completers
$instance.ArgumentCompleter = $VTable.ArgumentCompleter

# The name of the currently selected Azure profile
$instance.ProfileName = $VTable.ProfileName


# Load the custom module
$customModulePath = Join-Path $PSScriptRoot './custom/Az.VMware.custom.psm1'
if(Test-Path $customModulePath) {
$null = Import-Module -Name $customModulePath
}

# Export nothing to clear implicit exports
Export-ModuleMember

Expand All @@ -97,12 +101,12 @@
# Load the last folder if no profile is selected
$profileDirectory = $directories | Select-Object -Last 1
}

if($profileDirectory) {
Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'"
$exportsPath = $profileDirectory.FullName
}

if($exportsPath) {
Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
$cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath
Expand Down
11 changes: 6 additions & 5 deletions src/VMware/VMware.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
This directory contains the PowerShell module for the VMware service.

---

## Info
- Modifiable: yes
- Generated: all
Expand Down Expand Up @@ -48,17 +47,19 @@ In this directory, run AutoRest:
commit: 0baf811c3c76c87b3c127d098519bd97141222dd
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
input-file:
- $(repo)/specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/vmware.json

module-version: 0.4.0
title: VMware
subject-prefix: $(service-name)
disable-transform-identity-type: true
flatten-userassignedidentity: false

support-json-input: false

directive:
- from: swagger-document
- from: swagger-document
where: $.definitions.AdminCredentials.properties.nsxtPassword
transform: >-
return {
Expand All @@ -68,7 +69,7 @@ directive:
"x-ms-secret": true,
"format": "password"
}
- from: swagger-document
- from: swagger-document
where: $.definitions.AdminCredentials.properties.vcenterPassword
transform: >-
return {
Expand Down Expand Up @@ -136,7 +137,7 @@ directive:
# verb: Test
# subject: ^LocationTrialAvailability$
# hide: true
# Remove the list variant as the workloadNetwork only have one enum value
# Remove the list variant as the workloadNetwork only have one enum value
- where:
verb: Get
subject: WorkloadNetwork
Expand Down
2 changes: 1 addition & 1 deletion src/VMware/VMware.Autorest/exports/Get-AzVMwareAddon.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
INPUTOBJECT <IVMwareIdentity>: Identity Parameter
INPUTOBJECT <IVMwareIdentity>: Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
[AddonName <String>]: Name of the addon for the private cloud
[AuthorizationName <String>]: Name of the ExpressRoute Circuit Authorization in the private cloud
[CloudLinkName <String>]: Name of the cloud link resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table.
${PrivateCloudInputObject},

[Parameter()]
Expand Down
2 changes: 0 additions & 2 deletions src/VMware/VMware.Autorest/exports/Get-AzVMwareCloudLink.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table.
${PrivateCloudInputObject},

[Parameter()]
Expand Down
2 changes: 0 additions & 2 deletions src/VMware/VMware.Autorest/exports/Get-AzVMwareCluster.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table.
${PrivateCloudInputObject},

[Parameter()]
Expand Down
3 changes: 0 additions & 3 deletions src/VMware/VMware.Autorest/exports/Get-AzVMwareDatastore.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -167,21 +167,18 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='GetViaIdentityCluster', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table.
${ClusterInputObject},

[Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table.
${PrivateCloudInputObject},

[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table.
${PrivateCloudInputObject},

[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,21 +167,18 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='GetViaIdentityCluster', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table.
${ClusterInputObject},

[Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table.
${PrivateCloudInputObject},

[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,21 +167,18 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='GetViaIdentityCluster', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table.
${ClusterInputObject},

[Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table.
${PrivateCloudInputObject},

[Parameter()]
Expand Down
2 changes: 1 addition & 1 deletion src/VMware/VMware.Autorest/exports/New-AzVMwareAddon.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
PROPERTY <IAddonProperties>: The properties of an addon resource
PROPERTY <IAddonProperties>: The properties of an addon resource To construct, see NOTES section for PROPERTY properties and create a hash table.
AddonType <String>: The type of private cloud addon
.Link
https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareaddon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table.
${PrivateCloudInputObject},

[Parameter()]
Expand Down
2 changes: 0 additions & 2 deletions src/VMware/VMware.Autorest/exports/New-AzVMwareCloudLink.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table.
${PrivateCloudInputObject},

[Parameter()]
Expand Down
2 changes: 0 additions & 2 deletions src/VMware/VMware.Autorest/exports/New-AzVMwareCluster.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table.
${PrivateCloudInputObject},

[Parameter(Mandatory)]
Expand Down
3 changes: 0 additions & 3 deletions src/VMware/VMware.Autorest/exports/New-AzVMwareDatastore.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -161,21 +161,18 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table.
${ClusterInputObject},

[Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table.
${PrivateCloudInputObject},

[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,12 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table.
${PrivateCloudInputObject},

[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,28 +170,24 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for CLUSTERINPUTOBJECT properties and create a hash table.
${ClusterInputObject},

[Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for PRIVATECLOUDINPUTOBJECT properties and create a hash table.
${PrivateCloudInputObject},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties]
# placement policy properties
# To construct, see NOTES section for PROPERTY properties and create a hash table.
${Property},

[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
IDENTITYSOURCE <IIdentitySource[]>: vCenter Single Sign On Identity Sources
IDENTITYSOURCE <IIdentitySource[]>: vCenter Single Sign On Identity Sources To construct, see NOTES section for IDENTITYSOURCE properties and create a hash table.
[Alias <String>]: The domain's NetBIOS name
[BaseGroupDn <String>]: The base distinguished name for groups
[BaseUserDn <String>]: The base distinguished name for users
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter()]
Expand Down
Loading

0 comments on commit 3d89420

Please sign in to comment.