From a5ac2ee1a38dc7bdea2fbdfd542357933c788edf Mon Sep 17 00:00:00 2001 From: William Cheng Date: Thu, 4 Feb 2021 10:50:43 +0800 Subject: [PATCH] remove import as already stated in the installation instruction (#8608) --- .../main/resources/powershell/api_doc.mustache | 2 -- .../client/petstore/powershell/docs/PSPetApi.md | 16 ---------------- .../petstore/powershell/docs/PSStoreApi.md | 8 -------- .../client/petstore/powershell/docs/PSUserApi.md | 16 ---------------- 4 files changed, 42 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/powershell/api_doc.mustache b/modules/openapi-generator/src/main/resources/powershell/api_doc.mustache index 14f96341ead..c892573091e 100644 --- a/modules/openapi-generator/src/main/resources/powershell/api_doc.mustache +++ b/modules/openapi-generator/src/main/resources/powershell/api_doc.mustache @@ -23,8 +23,6 @@ Method | HTTP request | Description ### Example ```powershell -Import-Module -Name {{{packageName}}} - {{#hasAuthMethods}} # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration diff --git a/samples/client/petstore/powershell/docs/PSPetApi.md b/samples/client/petstore/powershell/docs/PSPetApi.md index 862d4898be7..3cebe2ba268 100644 --- a/samples/client/petstore/powershell/docs/PSPetApi.md +++ b/samples/client/petstore/powershell/docs/PSPetApi.md @@ -23,8 +23,6 @@ Add a new pet to the store ### Example ```powershell -Import-Module -Name PSPetstore - # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration # Configure OAuth2 access token for authorization: petstore_auth @@ -72,8 +70,6 @@ Deletes a pet ### Example ```powershell -Import-Module -Name PSPetstore - # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration # Configure OAuth2 access token for authorization: petstore_auth @@ -124,8 +120,6 @@ Multiple status values can be provided with comma separated strings ### Example ```powershell -Import-Module -Name PSPetstore - # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration # Configure OAuth2 access token for authorization: petstore_auth @@ -174,8 +168,6 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 ### Example ```powershell -Import-Module -Name PSPetstore - # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration # Configure OAuth2 access token for authorization: petstore_auth @@ -224,8 +216,6 @@ Returns a single pet ### Example ```powershell -Import-Module -Name PSPetstore - # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration # Configure API key authorization: api_key @@ -274,8 +264,6 @@ Update an existing pet ### Example ```powershell -Import-Module -Name PSPetstore - # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration # Configure OAuth2 access token for authorization: petstore_auth @@ -324,8 +312,6 @@ Updates a pet in the store with form data ### Example ```powershell -Import-Module -Name PSPetstore - # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration # Configure OAuth2 access token for authorization: petstore_auth @@ -378,8 +364,6 @@ uploads an image ### Example ```powershell -Import-Module -Name PSPetstore - # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration # Configure OAuth2 access token for authorization: petstore_auth diff --git a/samples/client/petstore/powershell/docs/PSStoreApi.md b/samples/client/petstore/powershell/docs/PSStoreApi.md index f12946fb546..65d14db7eb4 100644 --- a/samples/client/petstore/powershell/docs/PSStoreApi.md +++ b/samples/client/petstore/powershell/docs/PSStoreApi.md @@ -21,8 +21,6 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or non ### Example ```powershell -Import-Module -Name PSPetstore - $OrderId = "OrderId_example" # String | ID of the order that needs to be deleted # Delete purchase order by ID @@ -65,8 +63,6 @@ Returns a map of status codes to quantities ### Example ```powershell -Import-Module -Name PSPetstore - # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration # Configure API key authorization: api_key @@ -113,8 +109,6 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge ### Example ```powershell -Import-Module -Name PSPetstore - $OrderId = 987 # Int64 | ID of pet that needs to be fetched # Find purchase order by ID @@ -156,8 +150,6 @@ Place an order for a pet ### Example ```powershell -Import-Module -Name PSPetstore - $Order = (Initialize-Order -Id 123 -PetId 123 -Quantity 123 -ShipDate Get-Date -Status "placed" -Complete $false) # Order | order placed for purchasing the pet # Place an order for a pet diff --git a/samples/client/petstore/powershell/docs/PSUserApi.md b/samples/client/petstore/powershell/docs/PSUserApi.md index 1548935037c..be51a6c6f43 100644 --- a/samples/client/petstore/powershell/docs/PSUserApi.md +++ b/samples/client/petstore/powershell/docs/PSUserApi.md @@ -25,8 +25,6 @@ This can only be done by the logged in user. ### Example ```powershell -Import-Module -Name PSPetstore - # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration # Configure API key authorization: auth_cookie @@ -75,8 +73,6 @@ Creates list of users with given input array ### Example ```powershell -Import-Module -Name PSPetstore - # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration # Configure API key authorization: auth_cookie @@ -125,8 +121,6 @@ Creates list of users with given input array ### Example ```powershell -Import-Module -Name PSPetstore - # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration # Configure API key authorization: auth_cookie @@ -177,8 +171,6 @@ This can only be done by the logged in user. ### Example ```powershell -Import-Module -Name PSPetstore - # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration # Configure API key authorization: auth_cookie @@ -227,8 +219,6 @@ Get user by user name ### Example ```powershell -Import-Module -Name PSPetstore - $Username = "Username_example" # String | The name that needs to be fetched. Use user1 for testing. # Get user by user name @@ -271,8 +261,6 @@ Logs user into the system ### Example ```powershell -Import-Module -Name PSPetstore - $Username = "Username_example" # String | The user name for login $Password = "Password_example" # String | The password for login in clear text @@ -315,8 +303,6 @@ Logs out current logged in user session ### Example ```powershell -Import-Module -Name PSPetstore - # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration # Configure API key authorization: auth_cookie @@ -364,8 +350,6 @@ This can only be done by the logged in user. ### Example ```powershell -Import-Module -Name PSPetstore - # general setting of the PowerShell module, e.g. base URL, authentication, etc $Configuration = Get-Configuration # Configure API key authorization: auth_cookie