@autorest/powershell 4.0.0-dev.8 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rush/temp/package-deps_build.json +214 -206
- package/.rush/temp/shrinkwrap-deps.json +253 -280
- package/autorest-configuration-for-sdk.md +9 -3
- package/autorest-configuration.md +1 -1
- package/dist/cmdlets/class.d.ts +27 -2
- package/dist/cmdlets/class.d.ts.map +1 -1
- package/dist/cmdlets/class.js +913 -549
- package/dist/cmdlets/class.js.map +1 -1
- package/dist/cmdlets/namespace.d.ts.map +1 -1
- package/dist/cmdlets/namespace.js +39 -5
- package/dist/cmdlets/namespace.js.map +1 -1
- package/dist/enums/namespace.js +5 -5
- package/dist/enums/namespace.js.map +1 -1
- package/dist/exports.d.ts +3 -0
- package/dist/exports.d.ts.map +1 -0
- package/dist/exports.js +19 -0
- package/dist/exports.js.map +1 -0
- package/dist/generators/gitignore.d.ts.map +1 -1
- package/dist/generators/gitignore.js +2 -0
- package/dist/generators/gitignore.js.map +1 -1
- package/dist/generators/psm1.custom.js +2 -2
- package/dist/generators/psm1.custom.js.map +1 -1
- package/dist/generators/psm1.d.ts.map +1 -1
- package/dist/generators/psm1.internal.js +2 -2
- package/dist/generators/psm1.internal.js.map +1 -1
- package/dist/generators/psm1.js +17 -11
- package/dist/generators/psm1.js.map +1 -1
- package/dist/generators/readme.d.ts.map +1 -1
- package/dist/generators/readme.js +0 -3
- package/dist/generators/readme.js.map +1 -1
- package/dist/generators/script-cmdlet.js +18 -18
- package/dist/generators/script-cmdlet.js.map +1 -1
- package/dist/internal/name-inferrer.d.ts +1 -1
- package/dist/internal/name-inferrer.d.ts.map +1 -1
- package/dist/internal/name-inferrer.js +12 -12
- package/dist/internal/name-inferrer.js.map +1 -1
- package/dist/internal/powershell-declarations.d.ts +3 -0
- package/dist/internal/powershell-declarations.d.ts.map +1 -1
- package/dist/internal/powershell-declarations.js +5 -2
- package/dist/internal/powershell-declarations.js.map +1 -1
- package/dist/internal/project.d.ts +14 -8
- package/dist/internal/project.d.ts.map +1 -1
- package/dist/internal/project.js +27 -20
- package/dist/internal/project.js.map +1 -1
- package/dist/internal/state.d.ts +3 -2
- package/dist/internal/state.d.ts.map +1 -1
- package/dist/internal/state.js.map +1 -1
- package/dist/llcsharp/clientruntime.d.ts +1 -0
- package/dist/llcsharp/clientruntime.d.ts.map +1 -1
- package/dist/llcsharp/clientruntime.js +12 -11
- package/dist/llcsharp/clientruntime.js.map +1 -1
- package/dist/llcsharp/code-model.d.ts +7 -7
- package/dist/llcsharp/code-model.d.ts.map +1 -1
- package/dist/llcsharp/enums/enum.d.ts +1 -1
- package/dist/llcsharp/enums/enum.d.ts.map +1 -1
- package/dist/llcsharp/enums/enum.js +42 -42
- package/dist/llcsharp/enums/enum.js.map +1 -1
- package/dist/llcsharp/exports.js +5 -1
- package/dist/llcsharp/exports.js.map +1 -1
- package/dist/llcsharp/generator.d.ts +3 -2
- package/dist/llcsharp/generator.d.ts.map +1 -1
- package/dist/llcsharp/generator.js.map +1 -1
- package/dist/llcsharp/model/idictionary.js +16 -16
- package/dist/llcsharp/model/idictionary.js.map +1 -1
- package/dist/llcsharp/model/interface.d.ts +1 -1
- package/dist/llcsharp/model/interface.d.ts.map +1 -1
- package/dist/llcsharp/model/interface.js +25 -11
- package/dist/llcsharp/model/interface.js.map +1 -1
- package/dist/llcsharp/model/model-class-dictionary.js +18 -18
- package/dist/llcsharp/model/model-class-dictionary.js.map +1 -1
- package/dist/llcsharp/model/model-class-json.js +20 -20
- package/dist/llcsharp/model/model-class-json.js.map +1 -1
- package/dist/llcsharp/model/model-class-serializer.d.ts +1 -1
- package/dist/llcsharp/model/model-class-serializer.d.ts.map +1 -1
- package/dist/llcsharp/model/model-class-serializer.js +6 -6
- package/dist/llcsharp/model/model-class-serializer.js.map +1 -1
- package/dist/llcsharp/model/model-class.d.ts +1 -1
- package/dist/llcsharp/model/model-class.d.ts.map +1 -1
- package/dist/llcsharp/model/model-class.js +108 -97
- package/dist/llcsharp/model/model-class.js.map +1 -1
- package/dist/llcsharp/model/namespace.d.ts +1 -1
- package/dist/llcsharp/model/namespace.d.ts.map +1 -1
- package/dist/llcsharp/model/namespace.js +4 -12
- package/dist/llcsharp/model/namespace.js.map +1 -1
- package/dist/llcsharp/model/property.d.ts +1 -1
- package/dist/llcsharp/model/property.d.ts.map +1 -1
- package/dist/llcsharp/model/property.js +20 -20
- package/dist/llcsharp/model/property.js.map +1 -1
- package/dist/llcsharp/operation/api-class.d.ts.map +1 -1
- package/dist/llcsharp/operation/api-class.js +26 -1
- package/dist/llcsharp/operation/api-class.js.map +1 -1
- package/dist/llcsharp/operation/method.d.ts +10 -5
- package/dist/llcsharp/operation/method.d.ts.map +1 -1
- package/dist/llcsharp/operation/method.js +287 -134
- package/dist/llcsharp/operation/method.js.map +1 -1
- package/dist/llcsharp/operation/parameter.d.ts +1 -1
- package/dist/llcsharp/operation/parameter.d.ts.map +1 -1
- package/dist/llcsharp/operation/parameter.js +10 -10
- package/dist/llcsharp/operation/parameter.js.map +1 -1
- package/dist/llcsharp/project.d.ts +10 -5
- package/dist/llcsharp/project.d.ts.map +1 -1
- package/dist/llcsharp/project.js +15 -4
- package/dist/llcsharp/project.js.map +1 -1
- package/dist/llcsharp/schema/Uuid.d.ts +1 -1
- package/dist/llcsharp/schema/Uuid.d.ts.map +1 -1
- package/dist/llcsharp/schema/Uuid.js +2 -2
- package/dist/llcsharp/schema/Uuid.js.map +1 -1
- package/dist/llcsharp/schema/array.d.ts +1 -1
- package/dist/llcsharp/schema/array.d.ts.map +1 -1
- package/dist/llcsharp/schema/array.js +45 -43
- package/dist/llcsharp/schema/array.js.map +1 -1
- package/dist/llcsharp/schema/binary.d.ts +1 -1
- package/dist/llcsharp/schema/binary.d.ts.map +1 -1
- package/dist/llcsharp/schema/binary.js +9 -9
- package/dist/llcsharp/schema/binary.js.map +1 -1
- package/dist/llcsharp/schema/boolean.d.ts +1 -1
- package/dist/llcsharp/schema/boolean.d.ts.map +1 -1
- package/dist/llcsharp/schema/byte-array.d.ts +1 -1
- package/dist/llcsharp/schema/byte-array.d.ts.map +1 -1
- package/dist/llcsharp/schema/byte-array.js +24 -24
- package/dist/llcsharp/schema/byte-array.js.map +1 -1
- package/dist/llcsharp/schema/char.d.ts +1 -1
- package/dist/llcsharp/schema/char.d.ts.map +1 -1
- package/dist/llcsharp/schema/char.js +1 -1
- package/dist/llcsharp/schema/char.js.map +1 -1
- package/dist/llcsharp/schema/date-time.d.ts +1 -1
- package/dist/llcsharp/schema/date-time.d.ts.map +1 -1
- package/dist/llcsharp/schema/date-time.js +45 -41
- package/dist/llcsharp/schema/date-time.js.map +1 -1
- package/dist/llcsharp/schema/date.d.ts +1 -1
- package/dist/llcsharp/schema/date.d.ts.map +1 -1
- package/dist/llcsharp/schema/duration.d.ts +1 -1
- package/dist/llcsharp/schema/duration.d.ts.map +1 -1
- package/dist/llcsharp/schema/duration.js +9 -7
- package/dist/llcsharp/schema/duration.js.map +1 -1
- package/dist/llcsharp/schema/enum.d.ts +6 -2
- package/dist/llcsharp/schema/enum.d.ts.map +1 -1
- package/dist/llcsharp/schema/enum.js +13 -4
- package/dist/llcsharp/schema/enum.js.map +1 -1
- package/dist/llcsharp/schema/extended-type-declaration.d.ts +1 -1
- package/dist/llcsharp/schema/extended-type-declaration.d.ts.map +1 -1
- package/dist/llcsharp/schema/fixed-array.d.ts +1 -1
- package/dist/llcsharp/schema/fixed-array.d.ts.map +1 -1
- package/dist/llcsharp/schema/fixed-array.js +44 -42
- package/dist/llcsharp/schema/fixed-array.js.map +1 -1
- package/dist/llcsharp/schema/integer.d.ts +1 -1
- package/dist/llcsharp/schema/integer.d.ts.map +1 -1
- package/dist/llcsharp/schema/integer.js +5 -5
- package/dist/llcsharp/schema/integer.js.map +1 -1
- package/dist/llcsharp/schema/object.d.ts +1 -1
- package/dist/llcsharp/schema/object.d.ts.map +1 -1
- package/dist/llcsharp/schema/object.js +28 -28
- package/dist/llcsharp/schema/object.js.map +1 -1
- package/dist/llcsharp/schema/password.d.ts +1 -1
- package/dist/llcsharp/schema/password.d.ts.map +1 -1
- package/dist/llcsharp/schema/password.js +13 -13
- package/dist/llcsharp/schema/password.js.map +1 -1
- package/dist/llcsharp/schema/primitive.d.ts +1 -1
- package/dist/llcsharp/schema/primitive.d.ts.map +1 -1
- package/dist/llcsharp/schema/primitive.js +40 -37
- package/dist/llcsharp/schema/primitive.js.map +1 -1
- package/dist/llcsharp/schema/schema-resolver.d.ts +1 -1
- package/dist/llcsharp/schema/schema-resolver.d.ts.map +1 -1
- package/dist/llcsharp/schema/schema-resolver.js +5 -9
- package/dist/llcsharp/schema/schema-resolver.js.map +1 -1
- package/dist/llcsharp/schema/string.d.ts +1 -1
- package/dist/llcsharp/schema/string.d.ts.map +1 -1
- package/dist/llcsharp/schema/string.js +48 -44
- package/dist/llcsharp/schema/string.js.map +1 -1
- package/dist/llcsharp/schema/uri.d.ts +1 -1
- package/dist/llcsharp/schema/uri.d.ts.map +1 -1
- package/dist/llcsharp/schema/uri.js +2 -2
- package/dist/llcsharp/schema/uri.js.map +1 -1
- package/dist/llcsharp/validations.js +2 -2
- package/dist/llcsharp/validations.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +5 -2
- package/dist/main.js.map +1 -1
- package/dist/models/model-extensions.d.ts +1 -1
- package/dist/models/model-extensions.d.ts.map +1 -1
- package/dist/models/model-extensions.js +39 -39
- package/dist/models/model-extensions.js.map +1 -1
- package/dist/module/module-class.d.ts.map +1 -1
- package/dist/module/module-class.js +45 -15
- package/dist/module/module-class.js.map +1 -1
- package/dist/module/module-namespace.js +3 -3
- package/dist/module/module-namespace.js.map +1 -1
- package/dist/plugins/add-azure-completers-v2.d.ts +6 -1
- package/dist/plugins/add-azure-completers-v2.d.ts.map +1 -1
- package/dist/plugins/add-azure-completers-v2.js +5 -4
- package/dist/plugins/add-azure-completers-v2.js.map +1 -1
- package/dist/plugins/create-commands-v2.d.ts +17 -7
- package/dist/plugins/create-commands-v2.d.ts.map +1 -1
- package/dist/plugins/create-commands-v2.js +302 -66
- package/dist/plugins/create-commands-v2.js.map +1 -1
- package/dist/plugins/cs-namer-v2.d.ts +6 -1
- package/dist/plugins/cs-namer-v2.d.ts.map +1 -1
- package/dist/plugins/cs-namer-v2.js +42 -41
- package/dist/plugins/cs-namer-v2.js.map +1 -1
- package/dist/plugins/llcsharp-v2.d.ts +5 -2
- package/dist/plugins/llcsharp-v2.d.ts.map +1 -1
- package/dist/plugins/llcsharp-v2.js +14 -9
- package/dist/plugins/llcsharp-v2.js.map +1 -1
- package/dist/plugins/modifiers-v2.d.ts +6 -1
- package/dist/plugins/modifiers-v2.d.ts.map +1 -1
- package/dist/plugins/modifiers-v2.js +135 -88
- package/dist/plugins/modifiers-v2.js.map +1 -1
- package/dist/plugins/plugin-create-inline-properties.d.ts +6 -1
- package/dist/plugins/plugin-create-inline-properties.d.ts.map +1 -1
- package/dist/plugins/plugin-create-inline-properties.js +44 -32
- package/dist/plugins/plugin-create-inline-properties.js.map +1 -1
- package/dist/plugins/plugin-tweak-m4-model.d.ts +7 -1
- package/dist/plugins/plugin-tweak-m4-model.d.ts.map +1 -1
- package/dist/plugins/plugin-tweak-m4-model.js +39 -10
- package/dist/plugins/plugin-tweak-m4-model.js.map +1 -1
- package/dist/plugins/plugin-tweak-model-azure-v2.d.ts +6 -1
- package/dist/plugins/plugin-tweak-model-azure-v2.d.ts.map +1 -1
- package/dist/plugins/plugin-tweak-model-azure-v2.js +32 -22
- package/dist/plugins/plugin-tweak-model-azure-v2.js.map +1 -1
- package/dist/plugins/plugin-tweak-model.d.ts +6 -1
- package/dist/plugins/plugin-tweak-model.d.ts.map +1 -1
- package/dist/plugins/plugin-tweak-model.js +33 -32
- package/dist/plugins/plugin-tweak-model.js.map +1 -1
- package/dist/plugins/powershell-v2.d.ts +5 -2
- package/dist/plugins/powershell-v2.d.ts.map +1 -1
- package/dist/plugins/powershell-v2.js +32 -28
- package/dist/plugins/powershell-v2.js.map +1 -1
- package/dist/plugins/ps-namer-v2.d.ts +6 -1
- package/dist/plugins/ps-namer-v2.d.ts.map +1 -1
- package/dist/plugins/ps-namer-v2.js +33 -32
- package/dist/plugins/ps-namer-v2.js.map +1 -1
- package/dist/plugins/sdk-create-inline-properties.d.ts +1 -1
- package/dist/plugins/sdk-create-inline-properties.d.ts.map +1 -1
- package/dist/plugins/sdk-create-inline-properties.js +129 -39
- package/dist/plugins/sdk-create-inline-properties.js.map +1 -1
- package/dist/plugins/sdk-cs-namer.d.ts +1 -1
- package/dist/plugins/sdk-cs-namer.d.ts.map +1 -1
- package/dist/plugins/sdk-cs-namer.js +59 -34
- package/dist/plugins/sdk-cs-namer.js.map +1 -1
- package/dist/plugins/sdk-cs-simplifier.d.ts +1 -1
- package/dist/plugins/sdk-cs-simplifier.d.ts.map +1 -1
- package/dist/plugins/sdk-cs-simplifier.js +3 -3
- package/dist/plugins/sdk-cs-simplifier.js.map +1 -1
- package/dist/plugins/sdk-generate.d.ts +1 -1
- package/dist/plugins/sdk-generate.d.ts.map +1 -1
- package/dist/plugins/sdk-generate.js +23 -18
- package/dist/plugins/sdk-generate.js.map +1 -1
- package/dist/plugins/sdk-modifiers.d.ts +4 -0
- package/dist/plugins/sdk-modifiers.d.ts.map +1 -0
- package/dist/plugins/sdk-modifiers.js +175 -0
- package/dist/plugins/sdk-modifiers.js.map +1 -0
- package/dist/plugins/sdk-tweak-model.d.ts +1 -1
- package/dist/plugins/sdk-tweak-model.d.ts.map +1 -1
- package/dist/plugins/sdk-tweak-model.js +140 -44
- package/dist/plugins/sdk-tweak-model.js.map +1 -1
- package/dist/sdk/project.d.ts +2 -2
- package/dist/sdk/project.d.ts.map +1 -1
- package/dist/sdk/project.js +10 -9
- package/dist/sdk/project.js.map +1 -1
- package/dist/sdk/state.d.ts +2 -2
- package/dist/sdk/state.d.ts.map +1 -1
- package/dist/sdk/utility.d.ts +12 -3
- package/dist/sdk/utility.d.ts.map +1 -1
- package/dist/sdk/utility.js +122 -30
- package/dist/sdk/utility.js.map +1 -1
- package/dist/utils/PwshModel.d.ts +1 -1
- package/dist/utils/PwshModel.d.ts.map +1 -1
- package/dist/utils/PwshModel.js +1 -1
- package/dist/utils/PwshModel.js.map +1 -1
- package/dist/utils/SdkModel.d.ts +1 -1
- package/dist/utils/SdkModel.d.ts.map +1 -1
- package/dist/utils/SdkModel.js +1 -1
- package/dist/utils/SdkModel.js.map +1 -1
- package/dist/utils/command-operation.d.ts +11 -3
- package/dist/utils/command-operation.d.ts.map +1 -1
- package/dist/utils/command-operation.js +26 -4
- package/dist/utils/command-operation.js.map +1 -1
- package/dist/utils/components.d.ts +1 -1
- package/dist/utils/components.d.ts.map +1 -1
- package/dist/utils/components.js +2 -2
- package/dist/utils/components.js.map +1 -1
- package/dist/utils/http-operation.d.ts +2 -0
- package/dist/utils/http-operation.d.ts.map +1 -1
- package/dist/utils/http-operation.js +16 -12
- package/dist/utils/http-operation.js.map +1 -1
- package/dist/utils/model-state.d.ts +7 -5
- package/dist/utils/model-state.d.ts.map +1 -1
- package/dist/utils/model-state.js +28 -20
- package/dist/utils/model-state.js.map +1 -1
- package/dist/utils/programatic-operation.d.ts +1 -1
- package/dist/utils/programatic-operation.d.ts.map +1 -1
- package/dist/utils/programatic-operation.js +1 -1
- package/dist/utils/programatic-operation.js.map +1 -1
- package/dist/utils/resolve-conflicts.js +8 -8
- package/dist/utils/resolve-conflicts.js.map +1 -1
- package/dist/utils/resourceName.d.ts +3 -0
- package/dist/utils/resourceName.d.ts.map +1 -0
- package/dist/utils/resourceName.js +29 -0
- package/dist/utils/resourceName.js.map +1 -0
- package/dist/utils/schema.d.ts +1 -1
- package/dist/utils/schema.d.ts.map +1 -1
- package/dist/utils/schema.js +11 -11
- package/dist/utils/schema.js.map +1 -1
- package/dist/utils/security-scheme.d.ts +2 -2
- package/dist/utils/security-scheme.d.ts.map +1 -1
- package/dist/utils/security-scheme.js +2 -2
- package/dist/utils/security-scheme.js.map +1 -1
- package/dist/utils/sort-parameters.d.ts +3 -0
- package/dist/utils/sort-parameters.d.ts.map +1 -0
- package/dist/utils/sort-parameters.js +33 -0
- package/dist/utils/sort-parameters.js.map +1 -0
- package/dist/utils/tsp-generator.d.ts +3 -0
- package/dist/utils/tsp-generator.d.ts.map +1 -0
- package/dist/utils/tsp-generator.js +65 -0
- package/dist/utils/tsp-generator.js.map +1 -0
- package/dist/utils/tsp-host.d.ts +42 -0
- package/dist/utils/tsp-host.d.ts.map +1 -0
- package/dist/utils/tsp-host.js +56 -0
- package/dist/utils/tsp-host.js.map +1 -0
- package/generators/readme.ts +0 -3
- package/package.json +11 -10
- package/resources/assets/build-module.ps1 +31 -4
- package/resources/assets/check-dependencies.ps1 +3 -3
- package/resources/assets/create-model-cmdlets.ps1 +34 -5
- package/resources/assets/export-surface.ps1 +3 -3
- package/resources/assets/generate-help.ps1 +5 -5
- package/resources/assets/generate-portal-ux.ps1 +9 -25
- package/resources/assets/run-module.ps1 +4 -4
- package/resources/assets/test/loadEnv.ps1 +1 -1
- package/resources/assets/test-module.ps1 +11 -7
- package/resources/assets/tools/Resources/README.md +0 -3
- package/resources/assets/tools/Resources/custom/New-AzDeployment.ps1 +2 -2
- package/resources/assets/tools/Resources/how-to.md +2 -0
- package/resources/built-time-cmdlets.csproj +1 -0
- package/resources/modules/Az.Accounts/2.13.1/Accounts.format.ps1xml +554 -0
- package/resources/modules/Az.Accounts/2.13.1/Accounts.generated.format.ps1xml +471 -0
- package/resources/modules/Az.Accounts/2.13.1/Accounts.types.ps1xml +306 -0
- package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Az.Accounts.nuspec +4 -5
- package/resources/modules/Az.Accounts/2.13.1/Az.Accounts.psd1 +389 -0
- package/resources/modules/Az.Accounts/2.13.1/Az.Accounts.psm1 +365 -0
- package/resources/modules/Az.Accounts/2.13.1/FuzzySharp.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/Microsoft.ApplicationInsights.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.AssemblyLoading.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authentication.Abstractions.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authentication.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authenticators.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Aks.dll +0 -0
- package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Microsoft.Azure.PowerShell.Clients.Authorization.dll +0 -0
- package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Microsoft.Azure.PowerShell.Clients.Compute.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll +0 -0
- package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Microsoft.Azure.PowerShell.Clients.KeyVault.dll +0 -0
- package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Microsoft.Azure.PowerShell.Clients.Monitor.dll +0 -0
- package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Microsoft.Azure.PowerShell.Clients.Network.dll +0 -0
- package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.ResourceManager.dll +0 -0
- package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Microsoft.Azure.PowerShell.Clients.Storage.Management.dll +0 -0
- package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Microsoft.Azure.PowerShell.Clients.Websites.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll +0 -0
- package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml +2510 -779
- package/resources/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Common.Share.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Common.dll +0 -0
- package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Microsoft.Azure.PowerShell.Storage.dll +0 -0
- package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Microsoft.Azure.PowerShell.Strategies.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/Microsoft.Rest.ClientRuntime.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/PostImportScripts/LoadAuthenticators.ps1 +222 -0
- package/resources/modules/Az.Accounts/2.13.1/StartupScripts/AzError.ps1 +281 -0
- package/resources/modules/Az.Accounts/2.13.1/StartupScripts/InitializeAssemblyResolver.ps1 +242 -0
- package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/[Content_Types].xml +2 -3
- package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/_rels/.rels +2 -2
- package/resources/modules/Az.Accounts/2.13.1/lib/netcoreapp2.1/Azure.Core.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netcoreapp2.1/Microsoft.Identity.Client.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netcoreapp3.1/Microsoft.Identity.Client.Extensions.Msal.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netfx/Azure.Core.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netfx/Microsoft.Identity.Client.Extensions.Msal.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netfx/Microsoft.Identity.Client.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netfx/Newtonsoft.Json.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netfx/System.Diagnostics.DiagnosticSource.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netfx/System.Reflection.DispatchProxy.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netfx/System.Runtime.CompilerServices.Unsafe.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Azure.Identity.BrokeredAuthentication.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Azure.Identity.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Microsoft.Identity.Client.Broker.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Microsoft.Identity.Client.NativeInterop.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Microsoft.IdentityModel.Abstractions.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Security.AccessControl.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Security.Permissions.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Security.Principal.Windows.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netstandard2.0/msalruntime.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netstandard2.0/msalruntime_arm64.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/lib/netstandard2.0/msalruntime_x86.dll +0 -0
- package/resources/modules/Az.Accounts/2.13.1/package/services/metadata/core-properties/f9ac9c2e40914e78a646a7b0b997403b.psmdcp +11 -0
- package/resources/psruntime/Attributes/PSArgumentCompleterAttribute.cs +52 -0
- package/resources/psruntime/BuildTime/Cmdlets/ExportHelpMarkdown.cs +4 -1
- package/resources/psruntime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +6 -3
- package/resources/psruntime/BuildTime/Cmdlets/ExportPsd1.cs +7 -4
- package/resources/psruntime/BuildTime/Cmdlets/ExportTestStub.cs +130 -81
- package/resources/psruntime/BuildTime/Cmdlets/NewAssemblyInfo.cs +64 -0
- package/resources/psruntime/BuildTime/MarkdownRenderer.cs +17 -9
- package/resources/psruntime/BuildTime/Models/PsProxyOutputs.cs +53 -8
- package/resources/psruntime/BuildTime/Models/PsProxyTypes.cs +35 -11
- package/resources/psruntime/BuildTime/PsAttributes.cs +5 -0
- package/resources/psruntime/BuildTime/PsHelpers.cs +4 -3
- package/resources/psruntime/MessageAttribute.cs +45 -55
- package/resources/psruntime/MessageAttributeHelper.cs +30 -7
- package/resources/psruntime/Properties/Resources.Designer.cs +25 -3
- package/resources/psruntime/Properties/Resources.resx +8 -2
- package/resources/runtime/csharp/pipeline/ISendAsync.cs +113 -0
- package/resources/runtime/csharp/pipeline/PipelineMocking.cs +1 -1
- package/resources/templates/azureMethod.ejs +2 -2
- package/resources/templates/azureMethodGroup.ejs +2 -2
- package/resources/templates/azureServiceClient.ejs +11 -4
- package/resources/templates/enum.ejs +3 -3
- package/resources/templates/extensionMethod.ejs +18 -12
- package/resources/templates/extensions.ejs +9 -2
- package/resources/templates/longRunningOperationMethod.ejs +10 -8
- package/resources/templates/method.ejs +10 -8
- package/resources/templates/methodBodyRestCall.ejs +77 -32
- package/resources/templates/methodGroupInterface.ejs +2 -61
- package/resources/templates/methodGroupInterfaceBody.ejs +60 -0
- package/resources/templates/model.ejs +15 -15
- package/resources/templates/serviceClientBody.ejs +8 -8
- package/resources/templates/serviceClientInterface.ejs +10 -4
- package/resources/utils/Get-SubscriptionIdTestSafe.ps1 +7 -0
- package/dist/utils/WrapComments.d.ts +0 -2
- package/dist/utils/WrapComments.d.ts.map +0 -1
- package/dist/utils/WrapComments.js +0 -46
- package/dist/utils/WrapComments.js.map +0 -1
- package/resources/modules/Az.Accounts/2.7.5/Accounts.format.ps1xml +0 -496
- package/resources/modules/Az.Accounts/2.7.5/Accounts.generated.format.ps1xml +0 -468
- package/resources/modules/Az.Accounts/2.7.5/Accounts.types.ps1xml +0 -303
- package/resources/modules/Az.Accounts/2.7.5/Az.Accounts.psd1 +0 -387
- package/resources/modules/Az.Accounts/2.7.5/Az.Accounts.psm1 +0 -375
- package/resources/modules/Az.Accounts/2.7.5/AzSharedAlcAssemblies/Azure.Core.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/AzSharedAlcAssemblies/Azure.Identity.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/AzSharedAlcAssemblies/Microsoft.Identity.Client.Extensions.Msal.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/AzSharedAlcAssemblies/Microsoft.Identity.Client.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.ApplicationInsights.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Authentication.Abstractions.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Authentication.ResourceManager.deps.json +0 -2309
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Authentication.deps.json +0 -2273
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Authentication.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.deps.json +0 -1316
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Authenticators.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Clients.Aks.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Clients.ResourceManager.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Cmdlets.Accounts.deps.json +0 -2413
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Common.Share.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Azure.PowerShell.Common.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/Microsoft.Rest.ClientRuntime.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PostImportScripts/LoadAuthenticators.ps1 +0 -219
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/Azure.Core.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/Azure.Identity.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/Microsoft.Azure.PowerShell.Authenticators.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/Microsoft.Identity.Client.Extensions.Msal.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/Microsoft.Identity.Client.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/Newtonsoft.Json.12.0.3.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/Newtonsoft.Json.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.Diagnostics.DiagnosticSource.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.Memory.Data.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.Reflection.DispatchProxy.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.Runtime.CompilerServices.Unsafe.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.Security.AccessControl.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.Security.Permissions.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.Security.Principal.Windows.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/PreloadAssemblies/System.Text.Json.dll +0 -0
- package/resources/modules/Az.Accounts/2.7.5/StartupScripts/AzError.ps1 +0 -278
- package/resources/modules/Az.Accounts/2.7.5/StartupScripts/InitializeAssemblyResolver.ps1 +0 -234
- package/resources/modules/Az.Accounts/2.7.5/package/services/metadata/core-properties/1aa0749a068a4238881858013f1a5b7f.psmdcp +0 -11
- /package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Hyak.Common.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Microsoft.Azure.Common.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Microsoft.Rest.ClientRuntime.Azure.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Microsoft.WindowsAzure.Storage.DataMovement.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/Microsoft.WindowsAzure.Storage.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5 → 2.13.1}/en-US/about_az.help.txt +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5/PreloadAssemblies → 2.13.1/lib/netfx}/System.Numerics.Vectors.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5/PreloadAssemblies → 2.13.1/lib/netfx}/System.Security.Cryptography.Cng.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5/PreloadAssemblies → 2.13.1/lib/netfx}/System.Text.Encodings.Web.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5/PreloadAssemblies → 2.13.1/lib/netfx}/System.Xml.ReaderWriter.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5/AzSharedAlcAssemblies → 2.13.1/lib/netstandard2.0}/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5/PreloadAssemblies → 2.13.1/lib/netstandard2.0}/System.Buffers.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5/AzSharedAlcAssemblies → 2.13.1/lib/netstandard2.0}/System.Memory.Data.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5/PreloadAssemblies → 2.13.1/lib/netstandard2.0}/System.Memory.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5/PreloadAssemblies → 2.13.1/lib/netstandard2.0}/System.Net.Http.WinHttpHandler.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5/PreloadAssemblies → 2.13.1/lib/netstandard2.0}/System.Private.ServiceModel.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5/PreloadAssemblies → 2.13.1/lib/netstandard2.0}/System.ServiceModel.Primitives.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5/AzSharedAlcAssemblies → 2.13.1/lib/netstandard2.0}/System.Text.Json.dll +0 -0
- /package/resources/modules/Az.Accounts/{2.7.5/PreloadAssemblies → 2.13.1/lib/netstandard2.0}/System.Threading.Tasks.Extensions.dll +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TspHostImpl = void 0;
|
|
4
|
+
const fs_1 = require("fs");
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
class TspHostImpl {
|
|
7
|
+
constructor(configurations) {
|
|
8
|
+
this.configurations = configurations;
|
|
9
|
+
}
|
|
10
|
+
protectFiles(path) {
|
|
11
|
+
// ToDo by xiaogang, skip this for now
|
|
12
|
+
return Promise.resolve();
|
|
13
|
+
}
|
|
14
|
+
readFile(filename) {
|
|
15
|
+
// ToDo by xiaogang, skip this for now
|
|
16
|
+
return Promise.resolve('');
|
|
17
|
+
}
|
|
18
|
+
getValue(key) {
|
|
19
|
+
return this.configurations[key];
|
|
20
|
+
}
|
|
21
|
+
listInputs(artifactType) {
|
|
22
|
+
// Shall not be called, so throw an exception
|
|
23
|
+
throw new Error('Method listInputs not implemented');
|
|
24
|
+
}
|
|
25
|
+
writeFile({ filename, content, sourceMap, artifactType }) {
|
|
26
|
+
const directoryPath = (0, path_1.dirname)(filename);
|
|
27
|
+
if (!(0, fs_1.existsSync)(directoryPath)) {
|
|
28
|
+
(0, fs_1.mkdirSync)(directoryPath, { recursive: true });
|
|
29
|
+
}
|
|
30
|
+
if (artifactType === 'binary-file') {
|
|
31
|
+
(0, fs_1.writeFileSync)(filename, Buffer.from(content, 'base64'));
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
(0, fs_1.writeFileSync)(filename, content);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
UpdateConfigurationFile(filename, content) {
|
|
38
|
+
// Shall not be called
|
|
39
|
+
throw new Error('Method UpdateConfigurationFile not implemented');
|
|
40
|
+
}
|
|
41
|
+
GetConfigurationFile(filename) {
|
|
42
|
+
throw new Error('Method GetConfigurationFile not implemented');
|
|
43
|
+
}
|
|
44
|
+
// WriteFile(filename: string, content: string): void {
|
|
45
|
+
// throw new Error('Method not implemented');
|
|
46
|
+
// }
|
|
47
|
+
// GetValue(key: string): any {
|
|
48
|
+
// throw new Error('Method not implemented');
|
|
49
|
+
// }
|
|
50
|
+
message(message) {
|
|
51
|
+
// ToDo by xiaogang, skip this for now
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.TspHostImpl = TspHostImpl;
|
|
56
|
+
//# sourceMappingURL=tsp-host.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tsp-host.js","sourceRoot":"","sources":["../../utils/tsp-host.ts"],"names":[],"mappings":";;;AACA,2BAA0D;AAC1D,+BAA+B;AAqC/B,MAAa,WAAW;IAEtB,YAAY,cAAmC;QAC7C,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IACD,YAAY,CAAC,IAAY;QACvB,sCAAsC;QACtC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IACD,QAAQ,CAAC,QAAgB;QACvB,sCAAsC;QACtC,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,QAAQ,CAAI,GAAW;QACrB,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IAClC,CAAC;IACD,UAAU,CAAC,YAAqB;QAC9B,6CAA6C;QAC7C,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACvD,CAAC;IACD,SAAS,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAuB;QAC3E,MAAM,aAAa,GAAG,IAAA,cAAO,EAAC,QAAQ,CAAC,CAAC;QACxC,IAAI,CAAC,IAAA,eAAU,EAAC,aAAa,CAAC,EAAE;YAC9B,IAAA,cAAS,EAAC,aAAa,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;SAC/C;QACD,IAAI,YAAY,KAAK,aAAa,EAAE;YAClC,IAAA,kBAAa,EAAC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;SACzD;aAAM;YACL,IAAA,kBAAa,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;SAClC;IACH,CAAC;IACD,uBAAuB,CAAC,QAAgB,EAAE,OAAe;QACvD,uBAAuB;QACvB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;IACpE,CAAC;IACD,oBAAoB,CAAC,QAAgB;QACnC,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;IACjE,CAAC;IACD,uDAAuD;IACvD,+CAA+C;IAC/C,IAAI;IACJ,+BAA+B;IAC/B,+CAA+C;IAC/C,IAAI;IACJ,OAAO,CAAC,OAAgB;QACtB,sCAAsC;QACtC,OAAO;IACT,CAAC;CACF;AAhDD,kCAgDC"}
|
package/generators/readme.ts
CHANGED
|
@@ -23,9 +23,6 @@ AutoRest does not generate authentication code for the module. Authentication is
|
|
|
23
23
|
This directory contains the PowerShell module for the ${project.serviceName} service.
|
|
24
24
|
|
|
25
25
|
---
|
|
26
|
-
## Status
|
|
27
|
-
[](https://www.powershellgallery.com/packages/${project.moduleName}/)
|
|
28
|
-
|
|
29
26
|
## Info
|
|
30
27
|
- Modifiable: yes
|
|
31
28
|
- Generated: all
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autorest/powershell",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "AutoRest PowerShell Cmdlet Generator",
|
|
5
5
|
"main": "dist/exports.js",
|
|
6
6
|
"typings": "dist/exports.d.ts",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/js-yaml": "3.12.1",
|
|
31
31
|
"@types/mocha": "5.2.5",
|
|
32
|
-
"@types/node": "
|
|
33
|
-
"mocha": "
|
|
34
|
-
"mocha
|
|
35
|
-
"typescript": "~
|
|
32
|
+
"@types/node": "~20.14.0",
|
|
33
|
+
"mocha": "10.2.0",
|
|
34
|
+
"@testdeck/mocha": "0.3.3",
|
|
35
|
+
"typescript": "~5.1.3",
|
|
36
36
|
"@types/xmlbuilder": "0.0.34",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "~5.
|
|
38
|
-
"@typescript-eslint/parser": "~5.
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "~5.62.0",
|
|
38
|
+
"@typescript-eslint/parser": "~5.62.0",
|
|
39
39
|
"@microsoft.azure/autorest.testserver": "~2.9.3",
|
|
40
|
-
"autorest": "~3.
|
|
40
|
+
"autorest": "~3.6.3",
|
|
41
41
|
"eslint": "~8.12.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
@@ -45,8 +45,9 @@
|
|
|
45
45
|
"@azure-tools/codegen": "~2.5.276",
|
|
46
46
|
"@azure-tools/codegen-csharp": "~3.0.0",
|
|
47
47
|
"@azure-tools/codemodel-v3": "~3.1.0",
|
|
48
|
-
"@azure-tools/
|
|
49
|
-
"@
|
|
48
|
+
"@azure-tools/uri": "~3.1.1",
|
|
49
|
+
"@autorest/extension-base": "~3.5.2",
|
|
50
|
+
"@autorest/codemodel": "~4.19.3",
|
|
50
51
|
"@azure-tools/linq": "~3.1.0",
|
|
51
52
|
"@azure-tools/tasks": "~3.0.0",
|
|
52
53
|
"@azure-tools/async-io": "~3.0.0",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# ----------------------------------------------------------------------------------
|
|
2
2
|
${$project.pwshCommentHeader}
|
|
3
3
|
# ----------------------------------------------------------------------------------
|
|
4
|
-
param([switch]$
|
|
4
|
+
param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX, [Switch]$DisableAfterBuildTasks)
|
|
5
5
|
$ErrorActionPreference = 'Stop'
|
|
6
6
|
|
|
7
7
|
if($PSEdition -ne 'Core') {
|
|
8
8
|
Write-Error 'This script requires PowerShell Core to execute. [Note] Generated cmdlets will work in both PowerShell Core or Windows PowerShell.'
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
if(-not $
|
|
11
|
+
if(-not $NotIsolated -and -not $Debugger) {
|
|
12
12
|
Write-Host -ForegroundColor Green 'Creating isolated process...'
|
|
13
13
|
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
|
|
14
|
-
& "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -
|
|
14
|
+
& "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
|
|
15
15
|
|
|
16
16
|
if($LastExitCode -ne 0) {
|
|
17
17
|
# Build failed. Don't attempt to run the module.
|
|
@@ -120,6 +120,10 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder
|
|
|
120
120
|
|
|
121
121
|
Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
|
|
122
122
|
$modelCmdlets = @(${$project.modelCmdletsInPS})
|
|
123
|
+
$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot '${$project.customFolder}') 'autogen-model-cmdlets'
|
|
124
|
+
if (Test-Path $modelCmdletFolder) {
|
|
125
|
+
$null = Remove-Item -Force -Recurse -Path $modelCmdletFolder
|
|
126
|
+
}
|
|
123
127
|
if ($modelCmdlets.Count -gt 0) {
|
|
124
128
|
. (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
|
|
125
129
|
CreateModelCmdlet($modelCmdlets)
|
|
@@ -136,7 +140,8 @@ if($NoDocs) {
|
|
|
136
140
|
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
|
|
137
141
|
}
|
|
138
142
|
$null = New-Item -ItemType Directory -Force -Path $docsFolder
|
|
139
|
-
|
|
143
|
+
$addComplexInterfaceInfo = ![System.Convert]::ToBoolean('${$project.azure}')
|
|
144
|
+
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo
|
|
140
145
|
}
|
|
141
146
|
|
|
142
147
|
Write-Host -ForegroundColor Green 'Creating format.ps1xml...'
|
|
@@ -155,4 +160,26 @@ Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFol
|
|
|
155
160
|
Write-Host -ForegroundColor Green 'Creating example stubs...'
|
|
156
161
|
Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
|
|
157
162
|
|
|
163
|
+
if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
|
|
164
|
+
{
|
|
165
|
+
Write-Host -ForegroundColor Green 'Creating ux metadata...'
|
|
166
|
+
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
$assemblyInfoPath = Join-Path $PSScriptRoot 'Properties' 'AssemblyInfo.cs'
|
|
170
|
+
if (-not (Test-Path $assemblyInfoPath) -And [System.Convert]::ToBoolean('${$project.azure}')) {
|
|
171
|
+
Write-Host -ForegroundColor Green 'Creating assembly info...'
|
|
172
|
+
New-AssemblyInfo
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (-not $DisableAfterBuildTasks){
|
|
176
|
+
$afterBuildTasksPath = Join-Path $PSScriptRoot '${$project.afterBuildTasksPath}'
|
|
177
|
+
$afterBuildTasksArgs = ConvertFrom-Json '${$project.afterBuildTasksArgs}' -AsHashtable
|
|
178
|
+
if(Test-Path -Path $afterBuildTasksPath -PathType leaf){
|
|
179
|
+
Write-Host -ForegroundColor Green 'Executing after build tasks...'
|
|
180
|
+
. $afterBuildTasksPath @afterBuildTasksArgs
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
|
|
158
185
|
Write-Host -ForegroundColor Green '-------------Done-------------'
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# ----------------------------------------------------------------------------------
|
|
2
2
|
${$project.pwshCommentHeader}
|
|
3
3
|
# ----------------------------------------------------------------------------------
|
|
4
|
-
param([switch]$
|
|
4
|
+
param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
|
|
5
5
|
$ErrorActionPreference = 'Stop'
|
|
6
6
|
|
|
7
|
-
if(-not $
|
|
7
|
+
if(-not $NotIsolated) {
|
|
8
8
|
Write-Host -ForegroundColor Green 'Creating isolated process...'
|
|
9
9
|
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
|
|
10
|
-
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -
|
|
10
|
+
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
|
|
11
11
|
return
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -151,11 +151,9 @@ function CreateModelCmdlet {
|
|
|
151
151
|
}
|
|
152
152
|
$ParameterDefineProperty = [System.String]::Join(", ", $ParameterDefinePropertyList)
|
|
153
153
|
# check whether completer is needed
|
|
154
|
-
$completer = '';
|
|
155
|
-
if($
|
|
156
|
-
|
|
157
|
-
$strippedType = $Type.Replace('[]', '')
|
|
158
|
-
$completer += "`n [ArgumentCompleter([${strippedType}])]"
|
|
154
|
+
$completer = '';
|
|
155
|
+
if(IsEnumType($Member)){
|
|
156
|
+
$completer += GetCompleter($Member)
|
|
159
157
|
}
|
|
160
158
|
$ParameterDefineScript = "
|
|
161
159
|
[Parameter($ParameterDefineProperty)]${completer}
|
|
@@ -175,6 +173,7 @@ function CreateModelCmdlet {
|
|
|
175
173
|
if ('' -ne $Model.cmdletName) {
|
|
176
174
|
$cmdletName = $Model.cmdletName
|
|
177
175
|
}
|
|
176
|
+
$OutputPath = Join-Path -ChildPath "${cmdletName}.ps1" -Path $OutputDir
|
|
178
177
|
$cmdletNameInLowerCase = $cmdletName.ToLower()
|
|
179
178
|
$Script = "
|
|
180
179
|
# ----------------------------------------------------------------------------------
|
|
@@ -209,3 +208,33 @@ ${ParameterAssignScript}
|
|
|
209
208
|
Set-Content -Path $OutputPath -Value $Script
|
|
210
209
|
}
|
|
211
210
|
}
|
|
211
|
+
|
|
212
|
+
function IsEnumType {
|
|
213
|
+
param (
|
|
214
|
+
[Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax]$property
|
|
215
|
+
)
|
|
216
|
+
$isEnum = $false
|
|
217
|
+
foreach ($attr in $property.AttributeLists) {
|
|
218
|
+
$attributeName = $attr.Attributes.Name.ToString()
|
|
219
|
+
if ($attributeName.Contains('ArgumentCompleter')) {
|
|
220
|
+
$isEnum = $true
|
|
221
|
+
break
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return $isEnum;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function GetCompleter {
|
|
228
|
+
param (
|
|
229
|
+
[Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax]$property
|
|
230
|
+
)
|
|
231
|
+
foreach ($attr in $property.AttributeLists) {
|
|
232
|
+
$attributeName = $attr.Attributes.Name.ToString()
|
|
233
|
+
if ($attributeName.Contains('ArgumentCompleter')) {
|
|
234
|
+
$attributeName = $attributeName.Split("::")[-1]
|
|
235
|
+
$possibleValues = [System.String]::Join(", ", $attr.Attributes.ArgumentList.Arguments)
|
|
236
|
+
$completer += "`n [${attributeName}(${possibleValues})]"
|
|
237
|
+
return $completer
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# ----------------------------------------------------------------------------------
|
|
2
2
|
${$project.pwshCommentHeader}
|
|
3
3
|
# ----------------------------------------------------------------------------------
|
|
4
|
-
param([switch]$
|
|
4
|
+
param([switch]$NotIsolated, [switch]$IncludeGeneralParameters, [switch]$UseExpandedFormat)
|
|
5
5
|
$ErrorActionPreference = 'Stop'
|
|
6
6
|
|
|
7
7
|
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
|
|
8
|
-
if(-not $
|
|
8
|
+
if(-not $NotIsolated) {
|
|
9
9
|
Write-Host -ForegroundColor Green 'Creating isolated process...'
|
|
10
|
-
& "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -
|
|
10
|
+
& "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
|
|
11
11
|
return
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# ----------------------------------------------------------------------------------
|
|
2
2
|
${$project.pwshCommentHeader}
|
|
3
3
|
# ----------------------------------------------------------------------------------
|
|
4
|
-
param([switch]$
|
|
4
|
+
param([switch]$NotIsolated)
|
|
5
5
|
$ErrorActionPreference = 'Stop'
|
|
6
6
|
|
|
7
7
|
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
|
|
8
|
-
if(-not $
|
|
8
|
+
if(-not $NotIsolated) {
|
|
9
9
|
Write-Host -ForegroundColor Green 'Creating isolated process...'
|
|
10
|
-
& "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -
|
|
10
|
+
& "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
|
|
11
11
|
return
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -55,8 +55,8 @@ foreach($directory in $directories)
|
|
|
55
55
|
$docsPath = Join-Path $docsFolder $directory.Name
|
|
56
56
|
$null = New-Item -ItemType Directory -Force -Path $docsPath -ErrorAction SilentlyContinue
|
|
57
57
|
$examplesPath = Join-Path $examplesFolder $directory.Name
|
|
58
|
-
|
|
59
|
-
Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath
|
|
58
|
+
$addComplexInterfaceInfo = ![System.Convert]::ToBoolean('${$project.azure}')
|
|
59
|
+
Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath -AddComplexInterfaceInfo:$addComplexInterfaceInfo
|
|
60
60
|
Write-Host -ForegroundColor Green "Created documentation in '$docsPath'"
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -1,33 +1,19 @@
|
|
|
1
1
|
# ----------------------------------------------------------------------------------
|
|
2
2
|
${$project.pwshCommentHeader}
|
|
3
|
+
#
|
|
4
|
+
# This Script will create a folder dedicated to Azure-specific content and includes metadata files essential for enhancing the user experience (UX) within the Azure portal.
|
|
5
|
+
# These files are utilized by the Azure portal to effectively present the usage of cmdlets related to specific resources on portal pages.
|
|
3
6
|
# ----------------------------------------------------------------------------------
|
|
4
|
-
param([switch]$
|
|
7
|
+
param([switch]$NotIsolated)
|
|
5
8
|
$ErrorActionPreference = 'Stop'
|
|
6
9
|
|
|
7
10
|
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
|
|
8
|
-
if(-not $
|
|
11
|
+
if(-not $NotIsolated) {
|
|
9
12
|
Write-Host -ForegroundColor Green 'Creating isolated process...'
|
|
10
|
-
& "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -
|
|
13
|
+
& "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
|
|
11
14
|
return
|
|
12
15
|
}
|
|
13
16
|
|
|
14
|
-
$exportsFolder = Join-Path $PSScriptRoot '${$lib.path.relative($project.baseFolder, $project.exportsFolder)}'
|
|
15
|
-
if(-not (Test-Path $exportsFolder)) {
|
|
16
|
-
Write-Error "Exports folder '$exportsFolder' was not found."
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
$directories = Get-ChildItem -Directory -Path $exportsFolder
|
|
20
|
-
$hasProfiles = ($directories | Measure-Object).Count -gt 0
|
|
21
|
-
if(-not $hasProfiles) {
|
|
22
|
-
$directories = Get-Item -Path $exportsFolder
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
$docsFolder = Join-Path $PSScriptRoot '${$lib.path.relative($project.baseFolder, $project.docsFolder)}'
|
|
26
|
-
if(Test-Path $docsFolder) {
|
|
27
|
-
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
|
|
28
|
-
}
|
|
29
|
-
$null = New-Item -ItemType Directory -Force -Path $docsFolder -ErrorAction SilentlyContinue
|
|
30
|
-
|
|
31
17
|
$moduleName = '${$project.moduleName}'
|
|
32
18
|
$rootModuleName = '${$project.rootModuleName}'
|
|
33
19
|
if ($rootModuleName -eq "")
|
|
@@ -45,8 +31,6 @@ $instance = [${$project.serviceNamespace.moduleClass.declaration}]::Instance
|
|
|
45
31
|
$moduleInfo = Get-Module -Name $moduleName
|
|
46
32
|
$parameterSetsInfo = Get-Module -Name "$moduleName.private"
|
|
47
33
|
|
|
48
|
-
$buildinFunctions = @("Export-CmdletSurface", "Export-ExampleStub", "Export-FormatPs1xml", "Export-HelpMarkdown", "Export-ModelSurface", "Export-ProxyCmdlet", "Export-Psd1", "Export-TestStub", "Get-CommonParameter", "Get-ModuleGuid", "Get-ScriptCmdlet")
|
|
49
|
-
|
|
50
34
|
function Test-FunctionSupported()
|
|
51
35
|
{
|
|
52
36
|
[CmdletBinding()]
|
|
@@ -56,12 +40,12 @@ function Test-FunctionSupported()
|
|
|
56
40
|
$FunctionName
|
|
57
41
|
)
|
|
58
42
|
|
|
59
|
-
If ($
|
|
43
|
+
If (-not $FunctionName.Contains("_")) {
|
|
60
44
|
return $false
|
|
61
45
|
}
|
|
62
46
|
|
|
63
47
|
$cmdletName, $parameterSetName = $FunctionName.Split("_")
|
|
64
|
-
If ($parameterSetName.Contains("List") -or $parameterSetName.Contains("ViaIdentity")) {
|
|
48
|
+
If ($parameterSetName.Contains("List") -or $parameterSetName.Contains("ViaIdentity") -or $parameterSetName.Contains("ViaJson")) {
|
|
65
49
|
return $false
|
|
66
50
|
}
|
|
67
51
|
If ($cmdletName.StartsWith("New") -or $cmdletName.StartsWith("Set") -or $cmdletName.StartsWith("Update")) {
|
|
@@ -314,7 +298,7 @@ function New-MetadataForCmdlet()
|
|
|
314
298
|
return $result
|
|
315
299
|
}
|
|
316
300
|
|
|
317
|
-
$parameterSets = $parameterSetsInfo.ExportedCmdlets.Keys | Where-Object { Test-
|
|
301
|
+
$parameterSets = $parameterSetsInfo.ExportedCmdlets.Keys | Where-Object { Test-FunctionSupported($_) }
|
|
318
302
|
$resourceTypes = @{}
|
|
319
303
|
foreach ($parameterSetName in $parameterSets)
|
|
320
304
|
{
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
# ----------------------------------------------------------------------------------
|
|
2
2
|
${$project.pwshCommentHeader}
|
|
3
3
|
# ----------------------------------------------------------------------------------
|
|
4
|
-
param([switch]$
|
|
4
|
+
param([switch]$NotIsolated, [switch]$Code)
|
|
5
5
|
$ErrorActionPreference = 'Stop'
|
|
6
6
|
|
|
7
|
-
if(-not $
|
|
7
|
+
if(-not $NotIsolated) {
|
|
8
8
|
Write-Host -ForegroundColor Green 'Creating isolated process...'
|
|
9
9
|
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
|
|
10
|
-
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -
|
|
10
|
+
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
|
|
11
11
|
return
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
$isAzure = $${$project.azure}
|
|
15
15
|
if($isAzure) {
|
|
16
|
-
. (Join-Path $PSScriptRoot 'check-dependencies.ps1') -
|
|
16
|
+
. (Join-Path $PSScriptRoot 'check-dependencies.ps1') -NotIsolated -Accounts
|
|
17
17
|
# Load the latest version of Az.Accounts installed
|
|
18
18
|
Import-Module -Name Az.Accounts -RequiredVersion (Get-Module -Name Az.Accounts -ListAvailable | Sort-Object -Property Version -Descending)[0].Version
|
|
19
19
|
}
|
|
@@ -14,5 +14,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) {
|
|
|
14
14
|
$env = @{}
|
|
15
15
|
if (Test-Path -Path $envFilePath) {
|
|
16
16
|
$env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json
|
|
17
|
-
$PSDefaultParameterValues=@{"*:
|
|
17
|
+
$PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant}
|
|
18
18
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# ----------------------------------------------------------------------------------
|
|
2
2
|
${$project.pwshCommentHeader}
|
|
3
3
|
# ----------------------------------------------------------------------------------
|
|
4
|
-
param([switch]$
|
|
4
|
+
param([switch]$NotIsolated, [switch]$Live, [switch]$Record, [switch]$Playback, [switch]$RegenerateSupportModule, [switch]$UsePreviousConfigForRecord, [string[]]$TestName)
|
|
5
5
|
$ErrorActionPreference = 'Stop'
|
|
6
6
|
|
|
7
|
-
if(-not $
|
|
7
|
+
if(-not $NotIsolated)
|
|
8
8
|
{
|
|
9
9
|
Write-Host -ForegroundColor Green 'Creating isolated process...'
|
|
10
10
|
if ($PSBoundParameters.ContainsKey("TestName")) {
|
|
11
11
|
$PSBoundParameters["TestName"] = $PSBoundParameters["TestName"] -join ","
|
|
12
12
|
}
|
|
13
13
|
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
|
|
14
|
-
& "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -
|
|
14
|
+
& "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
|
|
15
15
|
return
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ if ($PSBoundParameters.ContainsKey("TestName") -and ($TestName.count -eq 1) -and
|
|
|
23
23
|
$ProgressPreference = 'SilentlyContinue'
|
|
24
24
|
$baseName = $PSScriptRoot.BaseName
|
|
25
25
|
$requireResourceModule = (($baseName -ne "Resources") -and ($Record.IsPresent -or $Live.IsPresent))
|
|
26
|
-
. (Join-Path $PSScriptRoot 'check-dependencies.ps1') -
|
|
26
|
+
. (Join-Path $PSScriptRoot 'check-dependencies.ps1') -NotIsolated -Accounts:$false -Pester -Resources:$requireResourceModule -RegenerateSupportModule:$RegenerateSupportModule
|
|
27
27
|
. ("$PSScriptRoot\test\utils.ps1")
|
|
28
28
|
|
|
29
29
|
if ($requireResourceModule)
|
|
@@ -63,13 +63,14 @@ try
|
|
|
63
63
|
if ($TestMode -ne 'playback')
|
|
64
64
|
{
|
|
65
65
|
setupEnv
|
|
66
|
+
} else {
|
|
67
|
+
$env:AzPSAutorestTestPlaybackMode = $true
|
|
66
68
|
}
|
|
67
69
|
$testFolder = Join-Path $PSScriptRoot '${$lib.path.relative($project.baseFolder, $project.testFolder)}'
|
|
68
70
|
if ($null -ne $TestName)
|
|
69
71
|
{
|
|
70
72
|
Invoke-Pester -Script @{ Path = $testFolder } -TestName $TestName -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml")
|
|
71
|
-
} else
|
|
72
|
-
{
|
|
73
|
+
} else {
|
|
73
74
|
Invoke-Pester -Script @{ Path = $testFolder } -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml")
|
|
74
75
|
}
|
|
75
76
|
} Finally
|
|
@@ -78,6 +79,9 @@ try
|
|
|
78
79
|
{
|
|
79
80
|
cleanupEnv
|
|
80
81
|
}
|
|
82
|
+
else {
|
|
83
|
+
$env:AzPSAutorestTestPlaybackMode = ''
|
|
84
|
+
}
|
|
81
85
|
}
|
|
82
86
|
|
|
83
|
-
Write-Host -ForegroundColor Green '-------------Done-------------'
|
|
87
|
+
Write-Host -ForegroundColor Green '-------------Done-------------'
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
This directory contains the PowerShell module for the Resources service.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
|
-
## Status
|
|
7
|
-
[](https://www.powershellgallery.com/packages/Az.Resources.TestSupport/)
|
|
8
|
-
|
|
9
6
|
## Info
|
|
10
7
|
- Modifiable: yes
|
|
11
8
|
- Generated: all
|
|
@@ -116,12 +116,12 @@ function New-AzDeployment {
|
|
|
116
116
|
# The location to store the deployment data.
|
|
117
117
|
${Location},
|
|
118
118
|
|
|
119
|
-
[Parameter(HelpMessage='The
|
|
119
|
+
[Parameter(HelpMessage='The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.')]
|
|
120
120
|
[Alias('AzureRMContext', 'AzureCredential')]
|
|
121
121
|
[ValidateNotNull()]
|
|
122
122
|
[Microsoft.Azure.PowerShell.Cmdlets.Resources.Category('Azure')]
|
|
123
123
|
[System.Management.Automation.PSObject]
|
|
124
|
-
# The
|
|
124
|
+
# The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
|
|
125
125
|
${DefaultProfile},
|
|
126
126
|
|
|
127
127
|
[Parameter(HelpMessage='Run the command as a job')]
|
|
@@ -48,6 +48,8 @@ There are multiple scripts created for performing different actions for developi
|
|
|
48
48
|
- Generates the Markdown documents for the modules into the `docs` folder.
|
|
49
49
|
- Same as `-Docs` in `build-module.ps1`.
|
|
50
50
|
- This process is now integrated into `build-module.ps1` automatically. To disable, use `-NoDocs` when running `build-module.ps1`.
|
|
51
|
+
- `generate-portal-ux.ps1`
|
|
52
|
+
- Generates a folder dedicated to Azure-specific content and includes metadata files essential for enhancing the user experience (UX) within the Azure portal.
|
|
51
53
|
- `export-surface.ps1`
|
|
52
54
|
- Generates Markdown documents for both the cmdlet surface and the model (class) surface of the module.
|
|
53
55
|
- These files are placed into the `resources` folder.
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
<Compile Include="psruntime\BuildTime\Cmdlets\ExportExampleStub.cs" />
|
|
21
21
|
<Compile Include="psruntime\BuildTime\Cmdlets\GetModuleGuid.cs" />
|
|
22
22
|
<Compile Include="psruntime\BuildTime\Cmdlets\ExportPsd1.cs" />
|
|
23
|
+
<Compile Include="psruntime\BuildTime\Cmdlets\NewAssemblyInfo.cs" />
|
|
23
24
|
<Compile Include="psruntime\BuildTime\Cmdlets\GetCommonParameter.cs" />
|
|
24
25
|
<Compile Include="psruntime\BuildTime\Models\PsHelpMarkdownOutputs.cs" />
|
|
25
26
|
<Compile Include="psruntime\BuildTime\Models\PsMarkdownTypes.cs" />
|