[PowerShell] add more tests to powershell client (#12057)

* add more tests to powershell client

* update spec

* update method name

* add new file
This commit is contained in:
William Cheng 2022-04-06 10:24:32 +08:00 committed by GitHub
parent a596d5aec0
commit a7e92786df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
246 changed files with 16102 additions and 205 deletions

View File

@ -101,15 +101,8 @@ test_script:
# test ps petstore
- ps: |
$ErrorActionPreference = "Stop"
cd samples\client\petstore\powershell\
.\Build.ps1
Import-Module -Name '.\src\PSPetstore'
$Result = Invoke-Pester -PassThru
if ($Result.FailedCount -gt 0) {
$host.SetShouldExit($Result.FailedCount)
exit $Result.FailedCount
}
.\CIRunTest.ps1
cache:
- C:\maven\
- C:\gradle\

View File

@ -1,6 +1,6 @@
generatorName: powershell
outputDir: samples/client/petstore/powershell
inputSpec: modules/openapi-generator/src/test/resources/3_0/powershell/petstore.yaml
inputSpec: modules/openapi-generator/src/test/resources/3_0/powershell/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
templateDir: modules/openapi-generator/src/main/resources/powershell
additionalProperties:
packageGuid: a27b908d-2a20-467f-bc32-af6f3a654ac5

View File

@ -1,25 +1,159 @@
Build.ps1
README.md
appveyor.yml
docs/200Response.md
docs/AdditionalPropertiesClass.md
docs/Animal.md
docs/ApiResponse.md
docs/Apple.md
docs/AppleReq.md
docs/ArrayOfArrayOfNumberOnly.md
docs/ArrayOfNumberOnly.md
docs/ArrayTest.md
docs/Banana.md
docs/BananaReq.md
docs/BasquePig.md
docs/Capitalization.md
docs/Cat.md
docs/CatAllOf.md
docs/Category.md
docs/ClassModel.md
docs/Client.md
docs/ComplexQuadrilateral.md
docs/DanishPig.md
docs/DeprecatedObject.md
docs/Dog.md
docs/DogAllOf.md
docs/Drawing.md
docs/EnumArrays.md
docs/EquilateralTriangle.md
docs/File.md
docs/FileSchemaTestClass.md
docs/Foo.md
docs/FormatTest.md
docs/Fruit.md
docs/FruitReq.md
docs/GmFruit.md
docs/GrandparentAnimal.md
docs/HasOnlyReadOnly.md
docs/HealthCheckResult.md
docs/InlineResponseDefault.md
docs/IsoscelesTriangle.md
docs/List.md
docs/Mammal.md
docs/MapTest.md
docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Name.md
docs/NullableClass.md
docs/NullableShape.md
docs/NumberOnly.md
docs/ObjectWithDeprecatedFields.md
docs/Order.md
docs/OuterComposite.md
docs/PSAnotherFakeApi.md
docs/PSDefaultApi.md
docs/PSFakeApi.md
docs/PSFakeClassnameTags123Api.md
docs/PSPetApi.md
docs/PSStoreApi.md
docs/PSUserApi.md
docs/ParentPet.md
docs/Pet.md
docs/PetWithRequiredTags.md
docs/Pig.md
docs/Quadrilateral.md
docs/QuadrilateralInterface.md
docs/ReadOnlyFirst.md
docs/Return.md
docs/ScaleneTriangle.md
docs/Shape.md
docs/ShapeInterface.md
docs/ShapeOrNull.md
docs/SimpleQuadrilateral.md
docs/SpecialModelName.md
docs/Tag.md
docs/Triangle.md
docs/TriangleInterface.md
docs/User.md
docs/Whale.md
docs/Zebra.md
src/PSPetstore/Api/PSAnotherFakeApi.ps1
src/PSPetstore/Api/PSDefaultApi.ps1
src/PSPetstore/Api/PSFakeApi.ps1
src/PSPetstore/Api/PSFakeClassnameTags123Api.ps1
src/PSPetstore/Api/PSPetApi.ps1
src/PSPetstore/Api/PSStoreApi.ps1
src/PSPetstore/Api/PSUserApi.ps1
src/PSPetstore/Client/PSConfiguration.ps1
src/PSPetstore/Model/AdditionalPropertiesClass.ps1
src/PSPetstore/Model/Animal.ps1
src/PSPetstore/Model/ApiResponse.ps1
src/PSPetstore/Model/Apple.ps1
src/PSPetstore/Model/AppleReq.ps1
src/PSPetstore/Model/ArrayOfArrayOfNumberOnly.ps1
src/PSPetstore/Model/ArrayOfNumberOnly.ps1
src/PSPetstore/Model/ArrayTest.ps1
src/PSPetstore/Model/Banana.ps1
src/PSPetstore/Model/BananaReq.ps1
src/PSPetstore/Model/BasquePig.ps1
src/PSPetstore/Model/Capitalization.ps1
src/PSPetstore/Model/Cat.ps1
src/PSPetstore/Model/CatAllOf.ps1
src/PSPetstore/Model/Category.ps1
src/PSPetstore/Model/ClassModel.ps1
src/PSPetstore/Model/Client.ps1
src/PSPetstore/Model/ComplexQuadrilateral.ps1
src/PSPetstore/Model/DanishPig.ps1
src/PSPetstore/Model/DeprecatedObject.ps1
src/PSPetstore/Model/Dog.ps1
src/PSPetstore/Model/DogAllOf.ps1
src/PSPetstore/Model/Drawing.ps1
src/PSPetstore/Model/EnumArrays.ps1
src/PSPetstore/Model/EquilateralTriangle.ps1
src/PSPetstore/Model/File.ps1
src/PSPetstore/Model/FileSchemaTestClass.ps1
src/PSPetstore/Model/Foo.ps1
src/PSPetstore/Model/FormatTest.ps1
src/PSPetstore/Model/Fruit.ps1
src/PSPetstore/Model/FruitReq.ps1
src/PSPetstore/Model/GmFruit.ps1
src/PSPetstore/Model/GrandparentAnimal.ps1
src/PSPetstore/Model/HasOnlyReadOnly.ps1
src/PSPetstore/Model/HealthCheckResult.ps1
src/PSPetstore/Model/InlineResponseDefault.ps1
src/PSPetstore/Model/IsoscelesTriangle.ps1
src/PSPetstore/Model/List.ps1
src/PSPetstore/Model/Mammal.ps1
src/PSPetstore/Model/MapTest.ps1
src/PSPetstore/Model/MixedPropertiesAndAdditionalPropertiesClass.ps1
src/PSPetstore/Model/Model200Response.ps1
src/PSPetstore/Model/ModelReturn.ps1
src/PSPetstore/Model/Name.ps1
src/PSPetstore/Model/NullableClass.ps1
src/PSPetstore/Model/NullableShape.ps1
src/PSPetstore/Model/NumberOnly.ps1
src/PSPetstore/Model/ObjectWithDeprecatedFields.ps1
src/PSPetstore/Model/Order.ps1
src/PSPetstore/Model/OuterComposite.ps1
src/PSPetstore/Model/ParentPet.ps1
src/PSPetstore/Model/Pet.ps1
src/PSPetstore/Model/PetWithRequiredTags.ps1
src/PSPetstore/Model/Pig.ps1
src/PSPetstore/Model/Quadrilateral.ps1
src/PSPetstore/Model/QuadrilateralInterface.ps1
src/PSPetstore/Model/ReadOnlyFirst.ps1
src/PSPetstore/Model/ScaleneTriangle.ps1
src/PSPetstore/Model/Shape.ps1
src/PSPetstore/Model/ShapeInterface.ps1
src/PSPetstore/Model/ShapeOrNull.ps1
src/PSPetstore/Model/SimpleQuadrilateral.ps1
src/PSPetstore/Model/SpecialModelName.ps1
src/PSPetstore/Model/Tag.ps1
src/PSPetstore/Model/Triangle.ps1
src/PSPetstore/Model/TriangleInterface.ps1
src/PSPetstore/Model/User.ps1
src/PSPetstore/Model/Whale.ps1
src/PSPetstore/Model/Zebra.ps1
src/PSPetstore/PSPetstore.psm1
src/PSPetstore/Private/Get-CommonParameters.ps1
src/PSPetstore/Private/Out-DebugParameter.ps1

View File

@ -1,6 +1,6 @@
#
# OpenAPI Petstore
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#

View File

@ -0,0 +1,14 @@
# assuming the current directory is already set correctly
#cd samples\client\petstore\powershell\
$ErrorActionPreference = "Stop"
.\Build.ps1
Import-Module -Name '.\src\PSPetstore'
$Result = Invoke-Pester -PassThru
if ($Result.FailedCount -gt 0) {
$host.SetShouldExit($Result.FailedCount)
exit $Result.FailedCount
}

View File

@ -1,6 +1,6 @@
# PSPetstore - the PowerShell module for the OpenAPI Petstore
This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
This PowerShell module is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
@ -55,6 +55,24 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*PSAnotherFakeApi* | [**Invoke-PS123TestSpecialTags**](docs/PSAnotherFakeApi.md#Invoke-PS123TestSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
*PSDefaultApi* | [**Invoke-PSFooGet**](docs/PSDefaultApi.md#Invoke-PSFooGet) | **GET** /foo |
*PSFakeApi* | [**Invoke-PSFakeHealthGet**](docs/PSFakeApi.md#Invoke-PSFakeHealthGet) | **GET** /fake/health | Health check endpoint
*PSFakeApi* | [**Invoke-PSFakeOuterBooleanSerialize**](docs/PSFakeApi.md#Invoke-PSFakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
*PSFakeApi* | [**Invoke-PSFakeOuterCompositeSerialize**](docs/PSFakeApi.md#Invoke-PSFakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
*PSFakeApi* | [**Invoke-PSFakeOuterNumberSerialize**](docs/PSFakeApi.md#Invoke-PSFakeOuterNumberSerialize) | **POST** /fake/outer/number |
*PSFakeApi* | [**Invoke-PSFakeOuterStringSerialize**](docs/PSFakeApi.md#Invoke-PSFakeOuterStringSerialize) | **POST** /fake/outer/string |
*PSFakeApi* | [**Get-PSArrayOfEnums**](docs/PSFakeApi.md#Get-PSArrayOfEnums) | **GET** /fake/array-of-enums | Array of Enums
*PSFakeApi* | [**Test-PSBodyWithFileSchema**](docs/PSFakeApi.md#Test-PSBodyWithFileSchema) | **PUT** /fake/body-with-file-schema |
*PSFakeApi* | [**Test-PSBodyWithQueryParams**](docs/PSFakeApi.md#Test-PSBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
*PSFakeApi* | [**Test-PSClientModel**](docs/PSFakeApi.md#Test-PSClientModel) | **PATCH** /fake | To test ""client"" model
*PSFakeApi* | [**Test-PSEndpointParameters**](docs/PSFakeApi.md#Test-PSEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*PSFakeApi* | [**Test-PSEnumParameters**](docs/PSFakeApi.md#Test-PSEnumParameters) | **GET** /fake | To test enum parameters
*PSFakeApi* | [**Test-PSGroupParameters**](docs/PSFakeApi.md#Test-PSGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
*PSFakeApi* | [**Test-PSInlineAdditionalProperties**](docs/PSFakeApi.md#Test-PSInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
*PSFakeApi* | [**Test-PSJsonFormData**](docs/PSFakeApi.md#Test-PSJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
*PSFakeApi* | [**Test-PSQueryParameterCollectionFormat**](docs/PSFakeApi.md#Test-PSQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters |
*PSFakeClassnameTags123Api* | [**Test-PSClassname**](docs/PSFakeClassnameTags123Api.md#Test-PSClassname) | **PATCH** /fake_classname_test | To test class name in snake case
*PSPetApi* | [**Add-PSPet**](docs/PSPetApi.md#Add-PSPet) | **POST** /pet | Add a new pet to the store
*PSPetApi* | [**Remove-Pet**](docs/PSPetApi.md#remove-pet) | **DELETE** /pet/{petId} | Deletes a pet
*PSPetApi* | [**Find-PSPetsByStatus**](docs/PSPetApi.md#Find-PSPetsByStatus) | **GET** /pet/findByStatus | Finds Pets by status
@ -63,9 +81,10 @@ Class | Method | HTTP request | Description
*PSPetApi* | [**Update-PSPet**](docs/PSPetApi.md#Update-PSPet) | **PUT** /pet | Update an existing pet
*PSPetApi* | [**Update-PSPetWithForm**](docs/PSPetApi.md#Update-PSPetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
*PSPetApi* | [**Invoke-PSUploadFile**](docs/PSPetApi.md#Invoke-PSUploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
*PSStoreApi* | [**Remove-PSOrder**](docs/PSStoreApi.md#Remove-PSOrder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
*PSPetApi* | [**Invoke-PSUploadFileWithRequiredFile**](docs/PSPetApi.md#Invoke-PSUploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
*PSStoreApi* | [**Remove-PSOrder**](docs/PSStoreApi.md#Remove-PSOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
*PSStoreApi* | [**Get-PSInventory**](docs/PSStoreApi.md#Get-PSInventory) | **GET** /store/inventory | Returns pet inventories by status
*PSStoreApi* | [**Get-PSOrderById**](docs/PSStoreApi.md#Get-PSOrderById) | **GET** /store/order/{orderId} | Find purchase order by ID
*PSStoreApi* | [**Get-PSOrderById**](docs/PSStoreApi.md#Get-PSOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
*PSStoreApi* | [**Invoke-PSPlaceOrder**](docs/PSStoreApi.md#Invoke-PSPlaceOrder) | **POST** /store/order | Place an order for a pet
*PSUserApi* | [**New-PSUser**](docs/PSUserApi.md#New-PSUser) | **POST** /user | Create user
*PSUserApi* | [**New-PSUsersWithArrayInput**](docs/PSUserApi.md#New-PSUsersWithArrayInput) | **POST** /user/createWithArray | Creates list of users with given input array
@ -79,12 +98,75 @@ Class | Method | HTTP request | Description
## Documentation for Models
- [PSPetstore/Model.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
- [PSPetstore/Model.Animal](docs/Animal.md)
- [PSPetstore/Model.ApiResponse](docs/ApiResponse.md)
- [PSPetstore/Model.Apple](docs/Apple.md)
- [PSPetstore/Model.AppleReq](docs/AppleReq.md)
- [PSPetstore/Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
- [PSPetstore/Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
- [PSPetstore/Model.ArrayTest](docs/ArrayTest.md)
- [PSPetstore/Model.Banana](docs/Banana.md)
- [PSPetstore/Model.BananaReq](docs/BananaReq.md)
- [PSPetstore/Model.BasquePig](docs/BasquePig.md)
- [PSPetstore/Model.Capitalization](docs/Capitalization.md)
- [PSPetstore/Model.Cat](docs/Cat.md)
- [PSPetstore/Model.CatAllOf](docs/CatAllOf.md)
- [PSPetstore/Model.Category](docs/Category.md)
- [PSPetstore/Model.ClassModel](docs/ClassModel.md)
- [PSPetstore/Model.Client](docs/Client.md)
- [PSPetstore/Model.ComplexQuadrilateral](docs/ComplexQuadrilateral.md)
- [PSPetstore/Model.DanishPig](docs/DanishPig.md)
- [PSPetstore/Model.DeprecatedObject](docs/DeprecatedObject.md)
- [PSPetstore/Model.Dog](docs/Dog.md)
- [PSPetstore/Model.DogAllOf](docs/DogAllOf.md)
- [PSPetstore/Model.Drawing](docs/Drawing.md)
- [PSPetstore/Model.EnumArrays](docs/EnumArrays.md)
- [PSPetstore/Model.EquilateralTriangle](docs/EquilateralTriangle.md)
- [PSPetstore/Model.File](docs/File.md)
- [PSPetstore/Model.FileSchemaTestClass](docs/FileSchemaTestClass.md)
- [PSPetstore/Model.Foo](docs/Foo.md)
- [PSPetstore/Model.FormatTest](docs/FormatTest.md)
- [PSPetstore/Model.Fruit](docs/Fruit.md)
- [PSPetstore/Model.FruitReq](docs/FruitReq.md)
- [PSPetstore/Model.GmFruit](docs/GmFruit.md)
- [PSPetstore/Model.GrandparentAnimal](docs/GrandparentAnimal.md)
- [PSPetstore/Model.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
- [PSPetstore/Model.HealthCheckResult](docs/HealthCheckResult.md)
- [PSPetstore/Model.InlineResponseDefault](docs/InlineResponseDefault.md)
- [PSPetstore/Model.IsoscelesTriangle](docs/IsoscelesTriangle.md)
- [PSPetstore/Model.List](docs/List.md)
- [PSPetstore/Model.Mammal](docs/Mammal.md)
- [PSPetstore/Model.MapTest](docs/MapTest.md)
- [PSPetstore/Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
- [PSPetstore/Model.Model200Response](docs/Model200Response.md)
- [PSPetstore/Model.ModelReturn](docs/ModelReturn.md)
- [PSPetstore/Model.Name](docs/Name.md)
- [PSPetstore/Model.NullableClass](docs/NullableClass.md)
- [PSPetstore/Model.NullableShape](docs/NullableShape.md)
- [PSPetstore/Model.NumberOnly](docs/NumberOnly.md)
- [PSPetstore/Model.ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
- [PSPetstore/Model.Order](docs/Order.md)
- [PSPetstore/Model.OuterComposite](docs/OuterComposite.md)
- [PSPetstore/Model.ParentPet](docs/ParentPet.md)
- [PSPetstore/Model.Pet](docs/Pet.md)
- [PSPetstore/Model.PetWithRequiredTags](docs/PetWithRequiredTags.md)
- [PSPetstore/Model.Pig](docs/Pig.md)
- [PSPetstore/Model.Quadrilateral](docs/Quadrilateral.md)
- [PSPetstore/Model.QuadrilateralInterface](docs/QuadrilateralInterface.md)
- [PSPetstore/Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
- [PSPetstore/Model.ScaleneTriangle](docs/ScaleneTriangle.md)
- [PSPetstore/Model.Shape](docs/Shape.md)
- [PSPetstore/Model.ShapeInterface](docs/ShapeInterface.md)
- [PSPetstore/Model.ShapeOrNull](docs/ShapeOrNull.md)
- [PSPetstore/Model.SimpleQuadrilateral](docs/SimpleQuadrilateral.md)
- [PSPetstore/Model.SpecialModelName](docs/SpecialModelName.md)
- [PSPetstore/Model.Tag](docs/Tag.md)
- [PSPetstore/Model.Triangle](docs/Triangle.md)
- [PSPetstore/Model.TriangleInterface](docs/TriangleInterface.md)
- [PSPetstore/Model.User](docs/User.md)
- [PSPetstore/Model.Whale](docs/Whale.md)
- [PSPetstore/Model.Zebra](docs/Zebra.md)
## Documentation for Authorization
@ -98,12 +180,30 @@ Class | Method | HTTP request | Description
- **Location**: HTTP header
### auth_cookie
### api_key_query
- **Type**: API key
- **API key parameter name**: AUTH_KEY
- **Location**:
- **API key parameter name**: api_key_query
- **Location**: URL query string
### bearer_test
- **Type**: HTTP basic authentication
### http_basic_test
- **Type**: HTTP basic authentication
### http_signature_test
- **Type**: HTTP basic authentication
### petstore_auth

View File

@ -1,6 +1,6 @@
#
# OpenAPI Petstore
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#

View File

@ -0,0 +1,23 @@
# Model200Response
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **Int32** | | [optional]
**Class** | **String** | | [optional]
## Examples
- Prepare the resource
```powershell
$Model200Response = Initialize-PSPetstoreModel200Response -Name null `
-Class null
```
- Convert the resource to JSON
```powershell
$Model200Response | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,35 @@
# AdditionalPropertiesClass
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MapProperty** | **System.Collections.Hashtable** | | [optional]
**MapOfMapProperty** | [**System.Collections.Hashtable**](Map.md) | | [optional]
**Anytype1** | [**AnyType**](.md) | | [optional]
**MapWithUndeclaredPropertiesAnytype1** | [**SystemCollectionsHashtable**](.md) | | [optional]
**MapWithUndeclaredPropertiesAnytype2** | [**SystemCollectionsHashtable**](.md) | | [optional]
**MapWithUndeclaredPropertiesAnytype3** | [**System.Collections.Hashtable**](SystemCollectionsHashtable.md) | | [optional]
**EmptyMap** | [**SystemCollectionsHashtable**](.md) | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional]
**MapWithUndeclaredPropertiesString** | **System.Collections.Hashtable** | | [optional]
## Examples
- Prepare the resource
```powershell
$AdditionalPropertiesClass = Initialize-PSPetstoreAdditionalPropertiesClass -MapProperty null `
-MapOfMapProperty null `
-Anytype1 null `
-MapWithUndeclaredPropertiesAnytype1 null `
-MapWithUndeclaredPropertiesAnytype2 null `
-MapWithUndeclaredPropertiesAnytype3 null `
-EmptyMap null `
-MapWithUndeclaredPropertiesString null
```
- Convert the resource to JSON
```powershell
$AdditionalPropertiesClass | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# Animal
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ClassName** | **String** | |
**Color** | **String** | | [optional] [default to "red"]
## Examples
- Prepare the resource
```powershell
$Animal = Initialize-PSPetstoreAnimal -ClassName null `
-Color null
```
- Convert the resource to JSON
```powershell
$Animal | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# Apple
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Cultivar** | **String** | | [optional]
**Origin** | **String** | | [optional]
## Examples
- Prepare the resource
```powershell
$Apple = Initialize-PSPetstoreApple -Cultivar null `
-Origin null
```
- Convert the resource to JSON
```powershell
$Apple | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# AppleReq
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Cultivar** | **String** | |
**Mealy** | **Boolean** | | [optional]
## Examples
- Prepare the resource
```powershell
$AppleReq = Initialize-PSPetstoreAppleReq -Cultivar null `
-Mealy null
```
- Convert the resource to JSON
```powershell
$AppleReq | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# ArrayOfArrayOfNumberOnly
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ArrayArrayNumber** | [**Decimal[][]**](Array.md) | | [optional]
## Examples
- Prepare the resource
```powershell
$ArrayOfArrayOfNumberOnly = Initialize-PSPetstoreArrayOfArrayOfNumberOnly -ArrayArrayNumber null
```
- Convert the resource to JSON
```powershell
$ArrayOfArrayOfNumberOnly | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# ArrayOfNumberOnly
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ArrayNumber** | **Decimal[]** | | [optional]
## Examples
- Prepare the resource
```powershell
$ArrayOfNumberOnly = Initialize-PSPetstoreArrayOfNumberOnly -ArrayNumber null
```
- Convert the resource to JSON
```powershell
$ArrayOfNumberOnly | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,25 @@
# ArrayTest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ArrayOfString** | **String[]** | | [optional]
**ArrayArrayOfInteger** | [**Int64[][]**](Array.md) | | [optional]
**ArrayArrayOfModel** | [**ReadOnlyFirst[][]**](Array.md) | | [optional]
## Examples
- Prepare the resource
```powershell
$ArrayTest = Initialize-PSPetstoreArrayTest -ArrayOfString null `
-ArrayArrayOfInteger null `
-ArrayArrayOfModel null
```
- Convert the resource to JSON
```powershell
$ArrayTest | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# Banana
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**LengthCm** | **Decimal** | | [optional]
## Examples
- Prepare the resource
```powershell
$Banana = Initialize-PSPetstoreBanana -LengthCm null
```
- Convert the resource to JSON
```powershell
$Banana | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# BananaReq
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**LengthCm** | **Decimal** | |
**Sweet** | **Boolean** | | [optional]
## Examples
- Prepare the resource
```powershell
$BananaReq = Initialize-PSPetstoreBananaReq -LengthCm null `
-Sweet null
```
- Convert the resource to JSON
```powershell
$BananaReq | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# BasquePig
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ClassName** | **String** | |
## Examples
- Prepare the resource
```powershell
$BasquePig = Initialize-PSPetstoreBasquePig -ClassName null
```
- Convert the resource to JSON
```powershell
$BasquePig | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,31 @@
# Capitalization
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**SmallCamel** | **String** | | [optional]
**CapitalCamel** | **String** | | [optional]
**SmallSnake** | **String** | | [optional]
**CapitalSnake** | **String** | | [optional]
**SCAETHFlowPoints** | **String** | | [optional]
**ATTNAME** | **String** | Name of the pet | [optional]
## Examples
- Prepare the resource
```powershell
$Capitalization = Initialize-PSPetstoreCapitalization -SmallCamel null `
-CapitalCamel null `
-SmallSnake null `
-CapitalSnake null `
-SCAETHFlowPoints null `
-ATTNAME null
```
- Convert the resource to JSON
```powershell
$Capitalization | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,25 @@
# Cat
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ClassName** | **String** | |
**Color** | **String** | | [optional] [default to "red"]
**Declawed** | **Boolean** | | [optional]
## Examples
- Prepare the resource
```powershell
$Cat = Initialize-PSPetstoreCat -ClassName null `
-Color null `
-Declawed null
```
- Convert the resource to JSON
```powershell
$Cat | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# CatAllOf
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Declawed** | **Boolean** | | [optional]
## Examples
- Prepare the resource
```powershell
$CatAllOf = Initialize-PSPetstoreCatAllOf -Declawed null
```
- Convert the resource to JSON
```powershell
$CatAllOf | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **Int64** | | [optional]
**Name** | **String** | | [optional]
**Name** | **String** | | [default to "default-name"]
## Examples

View File

@ -0,0 +1,21 @@
# ClassModel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Class** | **String** | | [optional]
## Examples
- Prepare the resource
```powershell
$ClassModel = Initialize-PSPetstoreClassModel -Class null
```
- Convert the resource to JSON
```powershell
$ClassModel | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# Client
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Client** | **String** | | [optional]
## Examples
- Prepare the resource
```powershell
$Client = Initialize-PSPetstoreClient -Client null
```
- Convert the resource to JSON
```powershell
$Client | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# ComplexQuadrilateral
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ShapeType** | **String** | |
**QuadrilateralType** | **String** | |
## Examples
- Prepare the resource
```powershell
$ComplexQuadrilateral = Initialize-PSPetstoreComplexQuadrilateral -ShapeType null `
-QuadrilateralType null
```
- Convert the resource to JSON
```powershell
$ComplexQuadrilateral | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# DanishPig
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ClassName** | **String** | |
## Examples
- Prepare the resource
```powershell
$DanishPig = Initialize-PSPetstoreDanishPig -ClassName null
```
- Convert the resource to JSON
```powershell
$DanishPig | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# DeprecatedObject
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **String** | | [optional]
## Examples
- Prepare the resource
```powershell
$DeprecatedObject = Initialize-PSPetstoreDeprecatedObject -Name null
```
- Convert the resource to JSON
```powershell
$DeprecatedObject | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,25 @@
# Dog
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ClassName** | **String** | |
**Color** | **String** | | [optional] [default to "red"]
**Breed** | **String** | | [optional]
## Examples
- Prepare the resource
```powershell
$Dog = Initialize-PSPetstoreDog -ClassName null `
-Color null `
-Breed null
```
- Convert the resource to JSON
```powershell
$Dog | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# DogAllOf
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Breed** | **String** | | [optional]
## Examples
- Prepare the resource
```powershell
$DogAllOf = Initialize-PSPetstoreDogAllOf -Breed null
```
- Convert the resource to JSON
```powershell
$DogAllOf | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,27 @@
# Drawing
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MainShape** | [**Shape**](Shape.md) | | [optional]
**ShapeOrNull** | [**ShapeOrNull**](ShapeOrNull.md) | | [optional]
**NullableShape** | [**NullableShape**](NullableShape.md) | | [optional]
**Shapes** | [**Shape[]**](Shape.md) | | [optional]
## Examples
- Prepare the resource
```powershell
$Drawing = Initialize-PSPetstoreDrawing -MainShape null `
-ShapeOrNull null `
-NullableShape null `
-Shapes null
```
- Convert the resource to JSON
```powershell
$Drawing | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# EnumArrays
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**JustSymbol** | **String** | | [optional]
**ArrayEnum** | **String[]** | | [optional]
## Examples
- Prepare the resource
```powershell
$EnumArrays = Initialize-PSPetstoreEnumArrays -JustSymbol null `
-ArrayEnum null
```
- Convert the resource to JSON
```powershell
$EnumArrays | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,20 @@
# EnumClass
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
## Examples
- Prepare the resource
```powershell
$EnumClass = Initialize-PSPetstoreEnumClass
```
- Convert the resource to JSON
```powershell
$EnumClass | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,37 @@
# EnumTest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**EnumString** | **String** | | [optional]
**EnumStringRequired** | **String** | |
**EnumInteger** | **Int32** | | [optional]
**EnumIntegerOnly** | **Int32** | | [optional]
**EnumNumber** | **Double** | | [optional]
**OuterEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
**OuterEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional]
**OuterEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional]
**OuterEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional]
## Examples
- Prepare the resource
```powershell
$EnumTest = Initialize-PSPetstoreEnumTest -EnumString null `
-EnumStringRequired null `
-EnumInteger null `
-EnumIntegerOnly null `
-EnumNumber null `
-OuterEnum null `
-OuterEnumInteger null `
-OuterEnumDefaultValue null `
-OuterEnumIntegerDefaultValue null
```
- Convert the resource to JSON
```powershell
$EnumTest | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# EquilateralTriangle
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ShapeType** | **String** | |
**TriangleType** | **String** | |
## Examples
- Prepare the resource
```powershell
$EquilateralTriangle = Initialize-PSPetstoreEquilateralTriangle -ShapeType null `
-TriangleType null
```
- Convert the resource to JSON
```powershell
$EquilateralTriangle | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# File
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**SourceURI** | **String** | Test capitalization | [optional]
## Examples
- Prepare the resource
```powershell
$File = Initialize-PSPetstoreFile -SourceURI null
```
- Convert the resource to JSON
```powershell
$File | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# FileSchemaTestClass
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**File** | [**File**](File.md) | | [optional]
**Files** | [**File[]**](File.md) | | [optional]
## Examples
- Prepare the resource
```powershell
$FileSchemaTestClass = Initialize-PSPetstoreFileSchemaTestClass -File null `
-Files null
```
- Convert the resource to JSON
```powershell
$FileSchemaTestClass | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# Foo
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Bar** | **String** | | [optional] [default to "bar"]
## Examples
- Prepare the resource
```powershell
$Foo = Initialize-PSPetstoreFoo -Bar null
```
- Convert the resource to JSON
```powershell
$Foo | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,51 @@
# FormatTest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Integer** | **Int32** | | [optional]
**Int32** | **Int32** | | [optional]
**Int64** | **Int64** | | [optional]
**Number** | **Decimal** | |
**Float** | **Double** | | [optional]
**Double** | **Double** | | [optional]
**Decimal** | **Decimal** | | [optional]
**String** | **String** | | [optional]
**Byte** | [**SystemByte**](SystemByte.md) | |
**Binary** | **System.IO.FileInfo** | | [optional]
**Date** | **System.DateTime** | |
**DateTime** | **System.DateTime** | | [optional]
**Uuid** | **String** | | [optional]
**Password** | **String** | |
**PatternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional]
**PatternWithDigitsAndDelimiter** | **String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
## Examples
- Prepare the resource
```powershell
$FormatTest = Initialize-PSPetstoreFormatTest -Integer null `
-Int32 null `
-Int64 null `
-Number null `
-Float null `
-Double null `
-Decimal null `
-String null `
-Byte null `
-Binary null `
-Date Sun Feb 02 00:00:00 UTC 2020 `
-DateTime 2007-12-03T10:15:30+01:00 `
-Uuid 72f98069-206d-4f12-9f12-3d1e525a8e84 `
-Password null `
-PatternWithDigits null `
-PatternWithDigitsAndDelimiter null
```
- Convert the resource to JSON
```powershell
$FormatTest | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,27 @@
# Fruit
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Color** | **String** | | [optional]
**Cultivar** | **String** | | [optional]
**Origin** | **String** | | [optional]
**LengthCm** | **Decimal** | | [optional]
## Examples
- Prepare the resource
```powershell
$Fruit = Initialize-PSPetstoreFruit -Color null `
-Cultivar null `
-Origin null `
-LengthCm null
```
- Convert the resource to JSON
```powershell
$Fruit | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,27 @@
# FruitReq
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Cultivar** | **String** | |
**Mealy** | **Boolean** | | [optional]
**LengthCm** | **Decimal** | |
**Sweet** | **Boolean** | | [optional]
## Examples
- Prepare the resource
```powershell
$FruitReq = Initialize-PSPetstoreFruitReq -Cultivar null `
-Mealy null `
-LengthCm null `
-Sweet null
```
- Convert the resource to JSON
```powershell
$FruitReq | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,27 @@
# GmFruit
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Color** | **String** | | [optional]
**Cultivar** | **String** | | [optional]
**Origin** | **String** | | [optional]
**LengthCm** | **Decimal** | | [optional]
## Examples
- Prepare the resource
```powershell
$GmFruit = Initialize-PSPetstoreGmFruit -Color null `
-Cultivar null `
-Origin null `
-LengthCm null
```
- Convert the resource to JSON
```powershell
$GmFruit | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# GrandparentAnimal
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PetType** | **String** | |
## Examples
- Prepare the resource
```powershell
$GrandparentAnimal = Initialize-PSPetstoreGrandparentAnimal -PetType null
```
- Convert the resource to JSON
```powershell
$GrandparentAnimal | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# HasOnlyReadOnly
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Bar** | **String** | | [optional] [readonly]
**Foo** | **String** | | [optional] [readonly]
## Examples
- Prepare the resource
```powershell
$HasOnlyReadOnly = Initialize-PSPetstoreHasOnlyReadOnly -Bar null `
-Foo null
```
- Convert the resource to JSON
```powershell
$HasOnlyReadOnly | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# HealthCheckResult
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**NullableMessage** | **String** | | [optional]
## Examples
- Prepare the resource
```powershell
$HealthCheckResult = Initialize-PSPetstoreHealthCheckResult -NullableMessage null
```
- Convert the resource to JSON
```powershell
$HealthCheckResult | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# InlineResponseDefault
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**String** | [**Foo**](Foo.md) | | [optional]
## Examples
- Prepare the resource
```powershell
$InlineResponseDefault = Initialize-PSPetstoreInlineResponseDefault -String null
```
- Convert the resource to JSON
```powershell
$InlineResponseDefault | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# IsoscelesTriangle
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ShapeType** | **String** | |
**TriangleType** | **String** | |
## Examples
- Prepare the resource
```powershell
$IsoscelesTriangle = Initialize-PSPetstoreIsoscelesTriangle -ShapeType null `
-TriangleType null
```
- Convert the resource to JSON
```powershell
$IsoscelesTriangle | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# List
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Var123List** | **String** | | [optional]
## Examples
- Prepare the resource
```powershell
$List = Initialize-PSPetstoreList -Var123List null
```
- Convert the resource to JSON
```powershell
$List | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,27 @@
# Mammal
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**HasBaleen** | **Boolean** | | [optional]
**HasTeeth** | **Boolean** | | [optional]
**ClassName** | **String** | |
**Type** | **String** | | [optional]
## Examples
- Prepare the resource
```powershell
$Mammal = Initialize-PSPetstoreMammal -HasBaleen null `
-HasTeeth null `
-ClassName null `
-Type null
```
- Convert the resource to JSON
```powershell
$Mammal | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,27 @@
# MapTest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MapMapOfString** | [**System.Collections.Hashtable**](Map.md) | | [optional]
**MapOfEnumString** | **System.Collections.Hashtable** | | [optional]
**DirectMap** | **System.Collections.Hashtable** | | [optional]
**IndirectMap** | **System.Collections.Hashtable** | | [optional]
## Examples
- Prepare the resource
```powershell
$MapTest = Initialize-PSPetstoreMapTest -MapMapOfString null `
-MapOfEnumString null `
-DirectMap null `
-IndirectMap null
```
- Convert the resource to JSON
```powershell
$MapTest | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,25 @@
# MixedPropertiesAndAdditionalPropertiesClass
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Uuid** | **String** | | [optional]
**DateTime** | **System.DateTime** | | [optional]
**Map** | [**System.Collections.Hashtable**](Animal.md) | | [optional]
## Examples
- Prepare the resource
```powershell
$MixedPropertiesAndAdditionalPropertiesClass = Initialize-PSPetstoreMixedPropertiesAndAdditionalPropertiesClass -Uuid null `
-DateTime null `
-Map null
```
- Convert the resource to JSON
```powershell
$MixedPropertiesAndAdditionalPropertiesClass | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,27 @@
# Name
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **Int32** | |
**SnakeCase** | **Int32** | | [optional] [readonly]
**Property** | **String** | | [optional]
**Var123Number** | **Int32** | | [optional] [readonly]
## Examples
- Prepare the resource
```powershell
$Name = Initialize-PSPetstoreName -Name null `
-SnakeCase null `
-Property null `
-Var123Number null
```
- Convert the resource to JSON
```powershell
$Name | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,43 @@
# NullableClass
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**IntegerProp** | **Int32** | | [optional]
**NumberProp** | **Decimal** | | [optional]
**BooleanProp** | **Boolean** | | [optional]
**StringProp** | **String** | | [optional]
**DateProp** | **System.DateTime** | | [optional]
**DatetimeProp** | **System.DateTime** | | [optional]
**ArrayNullableProp** | [**SystemCollectionsHashtable[]**](SystemCollectionsHashtable.md) | | [optional]
**ArrayAndItemsNullableProp** | [**SystemCollectionsHashtable[]**](SystemCollectionsHashtable.md) | | [optional]
**ArrayItemsNullable** | [**SystemCollectionsHashtable[]**](SystemCollectionsHashtable.md) | | [optional]
**ObjectNullableProp** | [**System.Collections.Hashtable**](SystemCollectionsHashtable.md) | | [optional]
**ObjectAndItemsNullableProp** | [**System.Collections.Hashtable**](SystemCollectionsHashtable.md) | | [optional]
**ObjectItemsNullable** | [**System.Collections.Hashtable**](SystemCollectionsHashtable.md) | | [optional]
## Examples
- Prepare the resource
```powershell
$NullableClass = Initialize-PSPetstoreNullableClass -IntegerProp null `
-NumberProp null `
-BooleanProp null `
-StringProp null `
-DateProp null `
-DatetimeProp null `
-ArrayNullableProp null `
-ArrayAndItemsNullableProp null `
-ArrayItemsNullable null `
-ObjectNullableProp null `
-ObjectAndItemsNullableProp null `
-ObjectItemsNullable null
```
- Convert the resource to JSON
```powershell
$NullableClass | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,25 @@
# NullableShape
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ShapeType** | **String** | |
**TriangleType** | **String** | |
**QuadrilateralType** | **String** | |
## Examples
- Prepare the resource
```powershell
$NullableShape = Initialize-PSPetstoreNullableShape -ShapeType null `
-TriangleType null `
-QuadrilateralType null
```
- Convert the resource to JSON
```powershell
$NullableShape | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# NumberOnly
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**JustNumber** | **Decimal** | | [optional]
## Examples
- Prepare the resource
```powershell
$NumberOnly = Initialize-PSPetstoreNumberOnly -JustNumber null
```
- Convert the resource to JSON
```powershell
$NumberOnly | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,27 @@
# ObjectWithDeprecatedFields
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Uuid** | **String** | | [optional]
**Id** | **Decimal** | | [optional]
**DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional]
**Bars** | **String[]** | | [optional]
## Examples
- Prepare the resource
```powershell
$ObjectWithDeprecatedFields = Initialize-PSPetstoreObjectWithDeprecatedFields -Uuid null `
-Id null `
-DeprecatedRef null `
-Bars null
```
- Convert the resource to JSON
```powershell
$ObjectWithDeprecatedFields | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -17,7 +17,7 @@ Name | Type | Description | Notes
$Order = Initialize-PSPetstoreOrder -Id null `
-PetId null `
-Quantity null `
-ShipDate null `
-ShipDate 2020-02-02T20:20:20.000222Z `
-Status null `
-Complete null
```

View File

@ -0,0 +1,25 @@
# OuterComposite
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MyNumber** | **Decimal** | | [optional]
**MyString** | **String** | | [optional]
**MyBoolean** | **Boolean** | | [optional]
## Examples
- Prepare the resource
```powershell
$OuterComposite = Initialize-PSPetstoreOuterComposite -MyNumber null `
-MyString null `
-MyBoolean null
```
- Convert the resource to JSON
```powershell
$OuterComposite | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,20 @@
# OuterEnum
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
## Examples
- Prepare the resource
```powershell
$OuterEnum = Initialize-PSPetstoreOuterEnum
```
- Convert the resource to JSON
```powershell
$OuterEnum | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,20 @@
# OuterEnumDefaultValue
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
## Examples
- Prepare the resource
```powershell
$OuterEnumDefaultValue = Initialize-PSPetstoreOuterEnumDefaultValue
```
- Convert the resource to JSON
```powershell
$OuterEnumDefaultValue | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,20 @@
# OuterEnumInteger
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
## Examples
- Prepare the resource
```powershell
$OuterEnumInteger = Initialize-PSPetstoreOuterEnumInteger
```
- Convert the resource to JSON
```powershell
$OuterEnumInteger | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,20 @@
# OuterEnumIntegerDefaultValue
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
## Examples
- Prepare the resource
```powershell
$OuterEnumIntegerDefaultValue = Initialize-PSPetstoreOuterEnumIntegerDefaultValue
```
- Convert the resource to JSON
```powershell
$OuterEnumIntegerDefaultValue | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,52 @@
# PSPetstore.PSPetstore/Api.PSAnotherFakeApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**Invoke-PS123TestSpecialTags**](PSAnotherFakeApi.md#Invoke-PS123TestSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
<a name="Invoke-PS123TestSpecialTags"></a>
# **Invoke-PS123TestSpecialTags**
> Client Invoke-PS123TestSpecialTags<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Client] <PSCustomObject><br>
To test special tags
To test special tags and operation ID starting with number
### Example
```powershell
$Client = Initialize-Client -Client "MyClient" # Client | client model
# To test special tags
try {
$Result = Invoke-PS123TestSpecialTags -Client $Client
} catch {
Write-Host ("Exception occurred when calling Invoke-PS123TestSpecialTags: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**Client** | [**Client**](Client.md)| client model |
### Return type
[**Client**](Client.md) (PSCustomObject)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

View File

@ -0,0 +1,44 @@
# PSPetstore.PSPetstore/Api.PSDefaultApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**Invoke-PSFooGet**](PSDefaultApi.md#Invoke-PSFooGet) | **GET** /foo |
<a name="Invoke-PSFooGet"></a>
# **Invoke-PSFooGet**
> InlineResponseDefault Invoke-PSFooGet<br>
### Example
```powershell
try {
$Result = Invoke-PSFooGet
} catch {
Write-Host ("Exception occurred when calling Invoke-PSFooGet: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**InlineResponseDefault**](InlineResponseDefault.md) (PSCustomObject)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

View File

@ -0,0 +1,751 @@
# PSPetstore.PSPetstore/Api.PSFakeApi
All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**Invoke-PSFakeHealthGet**](PSFakeApi.md#Invoke-PSFakeHealthGet) | **GET** /fake/health | Health check endpoint
[**Invoke-PSFakeOuterBooleanSerialize**](PSFakeApi.md#Invoke-PSFakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
[**Invoke-PSFakeOuterCompositeSerialize**](PSFakeApi.md#Invoke-PSFakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
[**Invoke-PSFakeOuterNumberSerialize**](PSFakeApi.md#Invoke-PSFakeOuterNumberSerialize) | **POST** /fake/outer/number |
[**Invoke-PSFakeOuterStringSerialize**](PSFakeApi.md#Invoke-PSFakeOuterStringSerialize) | **POST** /fake/outer/string |
[**Get-PSArrayOfEnums**](PSFakeApi.md#Get-PSArrayOfEnums) | **GET** /fake/array-of-enums | Array of Enums
[**Test-PSBodyWithFileSchema**](PSFakeApi.md#Test-PSBodyWithFileSchema) | **PUT** /fake/body-with-file-schema |
[**Test-PSBodyWithQueryParams**](PSFakeApi.md#Test-PSBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
[**Test-PSClientModel**](PSFakeApi.md#Test-PSClientModel) | **PATCH** /fake | To test &quot;&quot;client&quot;&quot; model
[**Test-PSEndpointParameters**](PSFakeApi.md#Test-PSEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
[**Test-PSEnumParameters**](PSFakeApi.md#Test-PSEnumParameters) | **GET** /fake | To test enum parameters
[**Test-PSGroupParameters**](PSFakeApi.md#Test-PSGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
[**Test-PSInlineAdditionalProperties**](PSFakeApi.md#Test-PSInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
[**Test-PSJsonFormData**](PSFakeApi.md#Test-PSJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
[**Test-PSQueryParameterCollectionFormat**](PSFakeApi.md#Test-PSQueryParameterCollectionFormat) | **PUT** /fake/test-query-parameters |
<a name="Invoke-PSFakeHealthGet"></a>
# **Invoke-PSFakeHealthGet**
> HealthCheckResult Invoke-PSFakeHealthGet<br>
Health check endpoint
### Example
```powershell
# Health check endpoint
try {
$Result = Invoke-PSFakeHealthGet
} catch {
Write-Host ("Exception occurred when calling Invoke-PSFakeHealthGet: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**HealthCheckResult**](HealthCheckResult.md) (PSCustomObject)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
<a name="Invoke-PSFakeOuterBooleanSerialize"></a>
# **Invoke-PSFakeOuterBooleanSerialize**
> Boolean Invoke-PSFakeOuterBooleanSerialize<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Body] <System.Nullable[Boolean]><br>
Test serialization of outer boolean types
### Example
```powershell
$Body = $true # Boolean | Input boolean as post body (optional)
try {
$Result = Invoke-PSFakeOuterBooleanSerialize -Body $Body
} catch {
Write-Host ("Exception occurred when calling Invoke-PSFakeOuterBooleanSerialize: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**Body** | **Boolean**| Input boolean as post body | [optional]
### Return type
**Boolean**
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: */*
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
<a name="Invoke-PSFakeOuterCompositeSerialize"></a>
# **Invoke-PSFakeOuterCompositeSerialize**
> OuterComposite Invoke-PSFakeOuterCompositeSerialize<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-OuterComposite] <PSCustomObject><br>
Test serialization of object with outer number type
### Example
```powershell
$OuterComposite = Initialize-OuterComposite -MyNumber 0 -MyString "MyMyString" -MyBoolean $false # OuterComposite | Input composite as post body (optional)
try {
$Result = Invoke-PSFakeOuterCompositeSerialize -OuterComposite $OuterComposite
} catch {
Write-Host ("Exception occurred when calling Invoke-PSFakeOuterCompositeSerialize: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**OuterComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
### Return type
[**OuterComposite**](OuterComposite.md) (PSCustomObject)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: */*
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
<a name="Invoke-PSFakeOuterNumberSerialize"></a>
# **Invoke-PSFakeOuterNumberSerialize**
> Decimal Invoke-PSFakeOuterNumberSerialize<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Body] <System.Nullable[Decimal]><br>
Test serialization of outer number types
### Example
```powershell
$Body = 8.14 # Decimal | Input number as post body (optional)
try {
$Result = Invoke-PSFakeOuterNumberSerialize -Body $Body
} catch {
Write-Host ("Exception occurred when calling Invoke-PSFakeOuterNumberSerialize: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**Body** | **Decimal**| Input number as post body | [optional]
### Return type
**Decimal**
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: */*
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
<a name="Invoke-PSFakeOuterStringSerialize"></a>
# **Invoke-PSFakeOuterStringSerialize**
> String Invoke-PSFakeOuterStringSerialize<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Body] <String><br>
Test serialization of outer string types
### Example
```powershell
$Body = "MyBody" # String | Input string as post body (optional)
try {
$Result = Invoke-PSFakeOuterStringSerialize -Body $Body
} catch {
Write-Host ("Exception occurred when calling Invoke-PSFakeOuterStringSerialize: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**Body** | **String**| Input string as post body | [optional]
### Return type
**String**
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: */*
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
<a name="Get-PSArrayOfEnums"></a>
# **Get-PSArrayOfEnums**
> OuterEnum[] Get-PSArrayOfEnums<br>
Array of Enums
### Example
```powershell
# Array of Enums
try {
$Result = Get-PSArrayOfEnums
} catch {
Write-Host ("Exception occurred when calling Get-PSArrayOfEnums: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**OuterEnum[]**](OuterEnum.md) (PSCustomObject)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
<a name="Test-PSBodyWithFileSchema"></a>
# **Test-PSBodyWithFileSchema**
> void Test-PSBodyWithFileSchema<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-FileSchemaTestClass] <PSCustomObject><br>
For this test, the body for this request much reference a schema named `File`.
### Example
```powershell
$File = Initialize-File -SourceURI "MySourceURI"
$FileSchemaTestClass = Initialize-FileSchemaTestClass -File $File -Files $File # FileSchemaTestClass |
try {
$Result = Test-PSBodyWithFileSchema -FileSchemaTestClass $FileSchemaTestClass
} catch {
Write-Host ("Exception occurred when calling Test-PSBodyWithFileSchema: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**FileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type
void (empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
<a name="Test-PSBodyWithQueryParams"></a>
# **Test-PSBodyWithQueryParams**
> void Test-PSBodyWithQueryParams<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Query] <String><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-User] <PSCustomObject><br>
### Example
```powershell
$Query = "MyQuery" # String |
$User = Initialize-User -Id 0 -Username "MyUsername" -FirstName "MyFirstName" -LastName "MyLastName" -Email "MyEmail" -Password "MyPassword" -Phone "MyPhone" -UserStatus 0 -ObjectWithNoDeclaredProps -ObjectWithNoDeclaredPropsNullable -AnyTypeProp -AnyTypePropNullable # User |
try {
$Result = Test-PSBodyWithQueryParams -Query $Query -User $User
} catch {
Write-Host ("Exception occurred when calling Test-PSBodyWithQueryParams: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**Query** | **String**| |
**User** | [**User**](User.md)| |
### Return type
void (empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
<a name="Test-PSClientModel"></a>
# **Test-PSClientModel**
> Client Test-PSClientModel<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Client] <PSCustomObject><br>
To test ""client"" model
To test ""client"" model
### Example
```powershell
$Client = Initialize-Client -Client "MyClient" # Client | client model
# To test ""client"" model
try {
$Result = Test-PSClientModel -Client $Client
} catch {
Write-Host ("Exception occurred when calling Test-PSClientModel: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**Client** | [**Client**](Client.md)| client model |
### Return type
[**Client**](Client.md) (PSCustomObject)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
<a name="Test-PSEndpointParameters"></a>
# **Test-PSEndpointParameters**
> void Test-PSEndpointParameters<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Number] <Decimal><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Double] <Double><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-PatternWithoutDelimiter] <String><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Byte] <SystemByte><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Integer] <System.Nullable[Int32]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Int32] <System.Nullable[Int32]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Int64] <System.Nullable[Int64]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Float] <System.Nullable[Double]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-String] <String><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Binary] <System.IO.FileInfo><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Date] <System.Nullable[System.DateTime]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-DateTime] <System.Nullable[System.DateTime]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Password] <String><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Callback] <String><br>
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
### Example
```powershell
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure HTTP basic authorization: http_basic_test
$Configuration.Username = "YOUR_USERNAME"
$Configuration.Password = "YOUR_PASSWORD"
$Number = 8.14 # Decimal | None
$Double = 1.2 # Double | None
$PatternWithoutDelimiter = "MyPatternWithoutDelimiter" # String | None
$Byte = # SystemByte | None
$Integer = 56 # Int32 | None (optional)
$Int32 = 56 # Int32 | None (optional)
$Int64 = 789 # Int64 | None (optional)
$Float = 3.4 # Double | None (optional)
$String = "MyString" # String | None (optional)
$Binary = # System.IO.FileInfo | None (optional)
$Date = (Get-Date) # System.DateTime | None (optional)
$DateTime = (Get-Date) # System.DateTime | None (optional)
$Password = "MyPassword" # String | None (optional)
$Callback = "MyCallback" # String | None (optional)
# Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
try {
$Result = Test-PSEndpointParameters -Number $Number -Double $Double -PatternWithoutDelimiter $PatternWithoutDelimiter -Byte $Byte -Integer $Integer -Int32 $Int32 -Int64 $Int64 -Float $Float -String $String -Binary $Binary -Date $Date -DateTime $DateTime -Password $Password -Callback $Callback
} catch {
Write-Host ("Exception occurred when calling Test-PSEndpointParameters: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**Number** | **Decimal**| None |
**Double** | **Double**| None |
**PatternWithoutDelimiter** | **String**| None |
**Byte** | **SystemByte**| None |
**Integer** | **Int32**| None | [optional]
**Int32** | **Int32**| None | [optional]
**Int64** | **Int64**| None | [optional]
**Float** | **Double**| None | [optional]
**String** | **String**| None | [optional]
**Binary** | **System.IO.FileInfo****System.IO.FileInfo**| None | [optional]
**Date** | **System.DateTime**| None | [optional]
**DateTime** | **System.DateTime**| None | [optional]
**Password** | **String**| None | [optional]
**Callback** | **String**| None | [optional]
### Return type
void (empty response body)
### Authorization
[http_basic_test](../README.md#http_basic_test)
### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
<a name="Test-PSEnumParameters"></a>
# **Test-PSEnumParameters**
> void Test-PSEnumParameters<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-EnumHeaderStringArray] <String[]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-EnumHeaderString] <String><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-EnumQueryStringArray] <String[]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-EnumQueryString] <String><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-EnumQueryInteger] <System.Nullable[Int32]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-EnumQueryDouble] <System.Nullable[Double]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-EnumFormStringArray] <String[]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-EnumFormString] <String><br>
To test enum parameters
To test enum parameters
### Example
```powershell
$EnumHeaderStringArray = ">" # String[] | Header parameter enum test (string array) (optional)
$EnumHeaderString = "_abc" # String | Header parameter enum test (string) (optional) (default to "-efg")
$EnumQueryStringArray = ">" # String[] | Query parameter enum test (string array) (optional)
$EnumQueryString = "_abc" # String | Query parameter enum test (string) (optional) (default to "-efg")
$EnumQueryInteger = "1" # Int32 | Query parameter enum test (double) (optional)
$EnumQueryDouble = "1.1" # Double | Query parameter enum test (double) (optional)
$EnumFormStringArray = ">" # String[] | Form parameter enum test (string array) (optional) (default to "$")
$EnumFormString = "_abc" # String | Form parameter enum test (string) (optional) (default to "-efg")
# To test enum parameters
try {
$Result = Test-PSEnumParameters -EnumHeaderStringArray $EnumHeaderStringArray -EnumHeaderString $EnumHeaderString -EnumQueryStringArray $EnumQueryStringArray -EnumQueryString $EnumQueryString -EnumQueryInteger $EnumQueryInteger -EnumQueryDouble $EnumQueryDouble -EnumFormStringArray $EnumFormStringArray -EnumFormString $EnumFormString
} catch {
Write-Host ("Exception occurred when calling Test-PSEnumParameters: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**EnumHeaderStringArray** | [**String[]**](String.md)| Header parameter enum test (string array) | [optional]
**EnumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to &quot;-efg&quot;]
**EnumQueryStringArray** | [**String[]**](String.md)| Query parameter enum test (string array) | [optional]
**EnumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to &quot;-efg&quot;]
**EnumQueryInteger** | **Int32**| Query parameter enum test (double) | [optional]
**EnumQueryDouble** | **Double**| Query parameter enum test (double) | [optional]
**EnumFormStringArray** | [**String[]**](String.md)| Form parameter enum test (string array) | [optional] [default to &quot;$&quot;]
**EnumFormString** | **String**| Form parameter enum test (string) | [optional] [default to &quot;-efg&quot;]
### Return type
void (empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
<a name="Test-PSGroupParameters"></a>
# **Test-PSGroupParameters**
> void Test-PSGroupParameters<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-RequiredStringGroup] <Int32><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-RequiredBooleanGroup] <Boolean><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-RequiredInt64Group] <Int64><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-StringGroup] <System.Nullable[Int32]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-BooleanGroup] <System.Nullable[Boolean]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Int64Group] <System.Nullable[Int64]><br>
Fake endpoint to test group parameters (optional)
Fake endpoint to test group parameters (optional)
### Example
```powershell
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure HTTP basic authorization: bearer_test
$Configuration.Username = "YOUR_USERNAME"
$Configuration.Password = "YOUR_PASSWORD"
$RequiredStringGroup = 56 # Int32 | Required String in group parameters
$RequiredBooleanGroup = $true # Boolean | Required Boolean in group parameters
$RequiredInt64Group = 789 # Int64 | Required Integer in group parameters
$StringGroup = 56 # Int32 | String in group parameters (optional)
$BooleanGroup = $true # Boolean | Boolean in group parameters (optional)
$Int64Group = 789 # Int64 | Integer in group parameters (optional)
# Fake endpoint to test group parameters (optional)
try {
$Result = Test-PSGroupParameters -RequiredStringGroup $RequiredStringGroup -RequiredBooleanGroup $RequiredBooleanGroup -RequiredInt64Group $RequiredInt64Group -StringGroup $StringGroup -BooleanGroup $BooleanGroup -Int64Group $Int64Group
} catch {
Write-Host ("Exception occurred when calling Test-PSGroupParameters: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**RequiredStringGroup** | **Int32**| Required String in group parameters |
**RequiredBooleanGroup** | **Boolean**| Required Boolean in group parameters |
**RequiredInt64Group** | **Int64**| Required Integer in group parameters |
**StringGroup** | **Int32**| String in group parameters | [optional]
**BooleanGroup** | **Boolean**| Boolean in group parameters | [optional]
**Int64Group** | **Int64**| Integer in group parameters | [optional]
### Return type
void (empty response body)
### Authorization
[bearer_test](../README.md#bearer_test)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
<a name="Test-PSInlineAdditionalProperties"></a>
# **Test-PSInlineAdditionalProperties**
> void Test-PSInlineAdditionalProperties<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-RequestBody] <System.Collections.Hashtable><br>
test inline additionalProperties
### Example
```powershell
$RequestBody = @{ key_example = "MyInner" } # System.Collections.Hashtable | request body
# test inline additionalProperties
try {
$Result = Test-PSInlineAdditionalProperties -RequestBody $RequestBody
} catch {
Write-Host ("Exception occurred when calling Test-PSInlineAdditionalProperties: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**RequestBody** | [**System.Collections.Hashtable**](String.md)| request body |
### Return type
void (empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
<a name="Test-PSJsonFormData"></a>
# **Test-PSJsonFormData**
> void Test-PSJsonFormData<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Param] <String><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Param2] <String><br>
test json serialization of form data
### Example
```powershell
$Param = "MyParam" # String | field1
$Param2 = "MyParam2" # String | field2
# test json serialization of form data
try {
$Result = Test-PSJsonFormData -Param $Param -Param2 $Param2
} catch {
Write-Host ("Exception occurred when calling Test-PSJsonFormData: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**Param** | **String**| field1 |
**Param2** | **String**| field2 |
### Return type
void (empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
<a name="Test-PSQueryParameterCollectionFormat"></a>
# **Test-PSQueryParameterCollectionFormat**
> void Test-PSQueryParameterCollectionFormat<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Pipe] <String[]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Ioutil] <String[]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Http] <String[]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Url] <String[]><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Context] <String[]><br>
To test the collection format in query parameters
### Example
```powershell
$Pipe = "MyPipe" # String[] |
$Ioutil = "MyIoutil" # String[] |
$Http = "MyHttp" # String[] |
$Url = "MyUrl" # String[] |
$Context = "MyContext" # String[] |
try {
$Result = Test-PSQueryParameterCollectionFormat -Pipe $Pipe -Ioutil $Ioutil -Http $Http -Url $Url -Context $Context
} catch {
Write-Host ("Exception occurred when calling Test-PSQueryParameterCollectionFormat: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**Pipe** | [**String[]**](String.md)| |
**Ioutil** | [**String[]**](String.md)| |
**Http** | [**String[]**](String.md)| |
**Url** | [**String[]**](String.md)| |
**Context** | [**String[]**](String.md)| |
### Return type
void (empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

View File

@ -0,0 +1,59 @@
# PSPetstore.PSPetstore/Api.PSFakeClassnameTags123Api
All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**Test-PSClassname**](PSFakeClassnameTags123Api.md#Test-PSClassname) | **PATCH** /fake_classname_test | To test class name in snake case
<a name="Test-PSClassname"></a>
# **Test-PSClassname**
> Client Test-PSClassname<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Client] <PSCustomObject><br>
To test class name in snake case
To test class name in snake case
### Example
```powershell
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure API key authorization: api_key_query
$Configuration.ApiKey.api_key_query = "YOUR_API_KEY"
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$Configuration.ApiKeyPrefix.api_key_query = "Bearer"
$Client = Initialize-Client -Client "MyClient" # Client | client model
# To test class name in snake case
try {
$Result = Test-PSClassname -Client $Client
} catch {
Write-Host ("Exception occurred when calling Test-PSClassname: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**Client** | [**Client**](Client.md)| client model |
### Return type
[**Client**](Client.md) (PSCustomObject)
### Authorization
[api_key_query](../README.md#api_key_query)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

View File

@ -12,11 +12,12 @@ Method | HTTP request | Description
[**Update-PSPet**](PSPetApi.md#Update-PSPet) | **PUT** /pet | Update an existing pet
[**Update-PSPetWithForm**](PSPetApi.md#Update-PSPetWithForm) | **POST** /pet/{petId} | Updates a pet in the store with form data
[**Invoke-PSUploadFile**](PSPetApi.md#Invoke-PSUploadFile) | **POST** /pet/{petId}/uploadImage | uploads an image
[**Invoke-PSUploadFileWithRequiredFile**](PSPetApi.md#Invoke-PSUploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
<a name="Add-PSPet"></a>
# **Add-PSPet**
> Pet Add-PSPet<br>
> void Add-PSPet<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Pet] <PSCustomObject><br>
Add a new pet to the store
@ -27,6 +28,18 @@ Add a new pet to the store
```powershell
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure HTTP basic authorization: http_signature_test
$Configuration.Username = "YOUR_USERNAME"
$Configuration.Password = "YOUR_PASSWORD"
# Configure HttpSignature for authorization :http_signature_test
$httpSigningParams = @{
KeyId = "xxxxxx1776876789ac747/xxxxxxx564612d31a62c01/xxxxxxxa1d7564612d31a66ee8"
KeyFilePath = "C:\SecretKey.txt"
HttpSigningHeader = @("(request-target)","Host","Date","Digest")
HashAlgorithm = "sha256"
}
Set-ConfigurationHttpSigning $httpSigningParams
# Configure OAuth2 access token for authorization: petstore_auth
$Configuration.AccessToken = "YOUR_ACCESS_TOKEN"
@ -51,16 +64,16 @@ Name | Type | Description | Notes
### Return type
[**Pet**](Pet.md) (PSCustomObject)
void (empty response body)
### Authorization
[petstore_auth](../README.md#petstore_auth)
[http_signature_test](../README.md#http_signature_test), [petstore_auth](../README.md#petstore_auth)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/xml, application/json
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@ -128,6 +141,18 @@ Multiple status values can be provided with comma separated strings
```powershell
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure HTTP basic authorization: http_signature_test
$Configuration.Username = "YOUR_USERNAME"
$Configuration.Password = "YOUR_PASSWORD"
# Configure HttpSignature for authorization :http_signature_test
$httpSigningParams = @{
KeyId = "xxxxxx1776876789ac747/xxxxxxx564612d31a62c01/xxxxxxxa1d7564612d31a66ee8"
KeyFilePath = "C:\SecretKey.txt"
HttpSigningHeader = @("(request-target)","Host","Date","Digest")
HashAlgorithm = "sha256"
}
Set-ConfigurationHttpSigning $httpSigningParams
# Configure OAuth2 access token for authorization: petstore_auth
$Configuration.AccessToken = "YOUR_ACCESS_TOKEN"
@ -154,7 +179,7 @@ Name | Type | Description | Notes
### Authorization
[petstore_auth](../README.md#petstore_auth)
[http_signature_test](../README.md#http_signature_test), [petstore_auth](../README.md#petstore_auth)
### HTTP request headers
@ -176,6 +201,18 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
```powershell
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure HTTP basic authorization: http_signature_test
$Configuration.Username = "YOUR_USERNAME"
$Configuration.Password = "YOUR_PASSWORD"
# Configure HttpSignature for authorization :http_signature_test
$httpSigningParams = @{
KeyId = "xxxxxx1776876789ac747/xxxxxxx564612d31a62c01/xxxxxxxa1d7564612d31a66ee8"
KeyFilePath = "C:\SecretKey.txt"
HttpSigningHeader = @("(request-target)","Host","Date","Digest")
HashAlgorithm = "sha256"
}
Set-ConfigurationHttpSigning $httpSigningParams
# Configure OAuth2 access token for authorization: petstore_auth
$Configuration.AccessToken = "YOUR_ACCESS_TOKEN"
@ -202,7 +239,7 @@ Name | Type | Description | Notes
### Authorization
[petstore_auth](../README.md#petstore_auth)
[http_signature_test](../README.md#http_signature_test), [petstore_auth](../README.md#petstore_auth)
### HTTP request headers
@ -263,7 +300,7 @@ Name | Type | Description | Notes
<a name="Update-PSPet"></a>
# **Update-PSPet**
> Pet Update-PSPet<br>
> void Update-PSPet<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-Pet] <PSCustomObject><br>
Update an existing pet
@ -274,6 +311,18 @@ Update an existing pet
```powershell
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure HTTP basic authorization: http_signature_test
$Configuration.Username = "YOUR_USERNAME"
$Configuration.Password = "YOUR_PASSWORD"
# Configure HttpSignature for authorization :http_signature_test
$httpSigningParams = @{
KeyId = "xxxxxx1776876789ac747/xxxxxxx564612d31a62c01/xxxxxxxa1d7564612d31a66ee8"
KeyFilePath = "C:\SecretKey.txt"
HttpSigningHeader = @("(request-target)","Host","Date","Digest")
HashAlgorithm = "sha256"
}
Set-ConfigurationHttpSigning $httpSigningParams
# Configure OAuth2 access token for authorization: petstore_auth
$Configuration.AccessToken = "YOUR_ACCESS_TOKEN"
@ -298,16 +347,16 @@ Name | Type | Description | Notes
### Return type
[**Pet**](Pet.md) (PSCustomObject)
void (empty response body)
### Authorization
[petstore_auth](../README.md#petstore_auth)
[http_signature_test](../README.md#http_signature_test), [petstore_auth](../README.md#petstore_auth)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/xml, application/json
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@ -419,3 +468,57 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
<a name="Invoke-PSUploadFileWithRequiredFile"></a>
# **Invoke-PSUploadFileWithRequiredFile**
> ApiResponse Invoke-PSUploadFileWithRequiredFile<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-PetId] <Int64><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-RequiredFile] <System.IO.FileInfo><br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[-AdditionalMetadata] <String><br>
uploads an image (required)
### Example
```powershell
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure OAuth2 access token for authorization: petstore_auth
$Configuration.AccessToken = "YOUR_ACCESS_TOKEN"
$PetId = 789 # Int64 | ID of pet to update
$RequiredFile = # System.IO.FileInfo | file to upload
$AdditionalMetadata = "MyAdditionalMetadata" # String | Additional data to pass to server (optional)
# uploads an image (required)
try {
$Result = Invoke-PSUploadFileWithRequiredFile -PetId $PetId -RequiredFile $RequiredFile -AdditionalMetadata $AdditionalMetadata
} catch {
Write-Host ("Exception occurred when calling Invoke-PSUploadFileWithRequiredFile: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**PetId** | **Int64**| ID of pet to update |
**RequiredFile** | **System.IO.FileInfo****System.IO.FileInfo**| file to upload |
**AdditionalMetadata** | **String**| Additional data to pass to server | [optional]
### Return type
[**ApiResponse**](ApiResponse.md) (PSCustomObject)
### Authorization
[petstore_auth](../README.md#petstore_auth)
### HTTP request headers
- **Content-Type**: multipart/form-data
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

View File

@ -4,9 +4,9 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**Remove-PSOrder**](PSStoreApi.md#Remove-PSOrder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
[**Remove-PSOrder**](PSStoreApi.md#Remove-PSOrder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
[**Get-PSInventory**](PSStoreApi.md#Get-PSInventory) | **GET** /store/inventory | Returns pet inventories by status
[**Get-PSOrderById**](PSStoreApi.md#Get-PSOrderById) | **GET** /store/order/{orderId} | Find purchase order by ID
[**Get-PSOrderById**](PSStoreApi.md#Get-PSOrderById) | **GET** /store/order/{order_id} | Find purchase order by ID
[**Invoke-PSPlaceOrder**](PSStoreApi.md#Invoke-PSPlaceOrder) | **POST** /store/order | Place an order for a pet

View File

@ -25,14 +25,7 @@ This can only be done by the logged in user.
### Example
```powershell
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure API key authorization: auth_cookie
$Configuration.ApiKey.AUTH_KEY = "YOUR_API_KEY"
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$Configuration.ApiKeyPrefix.AUTH_KEY = "Bearer"
$User = Initialize-User -Id 0 -Username "MyUsername" -FirstName "MyFirstName" -LastName "MyLastName" -Email "MyEmail" -Password "MyPassword" -Phone "MyPhone" -UserStatus 0 # User | Created user object
$User = Initialize-User -Id 0 -Username "MyUsername" -FirstName "MyFirstName" -LastName "MyLastName" -Email "MyEmail" -Password "MyPassword" -Phone "MyPhone" -UserStatus 0 -ObjectWithNoDeclaredProps -ObjectWithNoDeclaredPropsNullable -AnyTypeProp -AnyTypePropNullable # User | Created user object
# Create user
try {
@ -55,7 +48,7 @@ void (empty response body)
### Authorization
[auth_cookie](../README.md#auth_cookie)
No authorization required
### HTTP request headers
@ -75,14 +68,7 @@ Creates list of users with given input array
### Example
```powershell
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure API key authorization: auth_cookie
$Configuration.ApiKey.AUTH_KEY = "YOUR_API_KEY"
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$Configuration.ApiKeyPrefix.AUTH_KEY = "Bearer"
$User = Initialize-User -Id 0 -Username "MyUsername" -FirstName "MyFirstName" -LastName "MyLastName" -Email "MyEmail" -Password "MyPassword" -Phone "MyPhone" -UserStatus 0 # User[] | List of user object
$User = Initialize-User -Id 0 -Username "MyUsername" -FirstName "MyFirstName" -LastName "MyLastName" -Email "MyEmail" -Password "MyPassword" -Phone "MyPhone" -UserStatus 0 -ObjectWithNoDeclaredProps -ObjectWithNoDeclaredPropsNullable -AnyTypeProp -AnyTypePropNullable # User[] | List of user object
# Creates list of users with given input array
try {
@ -105,7 +91,7 @@ void (empty response body)
### Authorization
[auth_cookie](../README.md#auth_cookie)
No authorization required
### HTTP request headers
@ -125,14 +111,7 @@ Creates list of users with given input array
### Example
```powershell
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure API key authorization: auth_cookie
$Configuration.ApiKey.AUTH_KEY = "YOUR_API_KEY"
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$Configuration.ApiKeyPrefix.AUTH_KEY = "Bearer"
$User = Initialize-User -Id 0 -Username "MyUsername" -FirstName "MyFirstName" -LastName "MyLastName" -Email "MyEmail" -Password "MyPassword" -Phone "MyPhone" -UserStatus 0 # User[] | List of user object
$User = Initialize-User -Id 0 -Username "MyUsername" -FirstName "MyFirstName" -LastName "MyLastName" -Email "MyEmail" -Password "MyPassword" -Phone "MyPhone" -UserStatus 0 -ObjectWithNoDeclaredProps -ObjectWithNoDeclaredPropsNullable -AnyTypeProp -AnyTypePropNullable # User[] | List of user object
# Creates list of users with given input array
try {
@ -155,7 +134,7 @@ void (empty response body)
### Authorization
[auth_cookie](../README.md#auth_cookie)
No authorization required
### HTTP request headers
@ -175,13 +154,6 @@ This can only be done by the logged in user.
### Example
```powershell
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure API key authorization: auth_cookie
$Configuration.ApiKey.AUTH_KEY = "YOUR_API_KEY"
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$Configuration.ApiKeyPrefix.AUTH_KEY = "Bearer"
$Username = "MyUsername" # String | The name that needs to be deleted
# Delete user
@ -205,7 +177,7 @@ void (empty response body)
### Authorization
[auth_cookie](../README.md#auth_cookie)
No authorization required
### HTTP request headers
@ -313,13 +285,6 @@ Logs out current logged in user session
### Example
```powershell
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure API key authorization: auth_cookie
$Configuration.ApiKey.AUTH_KEY = "YOUR_API_KEY"
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$Configuration.ApiKeyPrefix.AUTH_KEY = "Bearer"
# Logs out current logged in user session
try {
@ -339,7 +304,7 @@ void (empty response body)
### Authorization
[auth_cookie](../README.md#auth_cookie)
No authorization required
### HTTP request headers
@ -360,15 +325,8 @@ This can only be done by the logged in user.
### Example
```powershell
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure API key authorization: auth_cookie
$Configuration.ApiKey.AUTH_KEY = "YOUR_API_KEY"
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$Configuration.ApiKeyPrefix.AUTH_KEY = "Bearer"
$Username = "MyUsername" # String | name that need to be deleted
$User = Initialize-User -Id 0 -Username "MyUsername" -FirstName "MyFirstName" -LastName "MyLastName" -Email "MyEmail" -Password "MyPassword" -Phone "MyPhone" -UserStatus 0 # User | Updated user object
$User = Initialize-User -Id 0 -Username "MyUsername" -FirstName "MyFirstName" -LastName "MyLastName" -Email "MyEmail" -Password "MyPassword" -Phone "MyPhone" -UserStatus 0 -ObjectWithNoDeclaredProps -ObjectWithNoDeclaredPropsNullable -AnyTypeProp -AnyTypePropNullable # User | Updated user object
# Updated user
try {
@ -392,7 +350,7 @@ void (empty response body)
### Authorization
[auth_cookie](../README.md#auth_cookie)
No authorization required
### HTTP request headers

View File

@ -0,0 +1,21 @@
# ParentPet
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PetType** | **String** | |
## Examples
- Prepare the resource
```powershell
$ParentPet = Initialize-PSPetstoreParentPet -PetType null
```
- Convert the resource to JSON
```powershell
$ParentPet | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,31 @@
# PetWithRequiredTags
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **Int64** | | [optional]
**Category** | [**Category**](Category.md) | | [optional]
**Name** | **String** | |
**PhotoUrls** | **String[]** | |
**Tags** | [**Tag[]**](Tag.md) | |
**Status** | **String** | pet status in the store | [optional]
## Examples
- Prepare the resource
```powershell
$PetWithRequiredTags = Initialize-PSPetstorePetWithRequiredTags -Id null `
-Category null `
-Name doggie `
-PhotoUrls null `
-Tags null `
-Status null
```
- Convert the resource to JSON
```powershell
$PetWithRequiredTags | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# Pig
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ClassName** | **String** | |
## Examples
- Prepare the resource
```powershell
$Pig = Initialize-PSPetstorePig -ClassName null
```
- Convert the resource to JSON
```powershell
$Pig | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# Quadrilateral
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ShapeType** | **String** | |
**QuadrilateralType** | **String** | |
## Examples
- Prepare the resource
```powershell
$Quadrilateral = Initialize-PSPetstoreQuadrilateral -ShapeType null `
-QuadrilateralType null
```
- Convert the resource to JSON
```powershell
$Quadrilateral | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# QuadrilateralInterface
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**QuadrilateralType** | **String** | |
## Examples
- Prepare the resource
```powershell
$QuadrilateralInterface = Initialize-PSPetstoreQuadrilateralInterface -QuadrilateralType null
```
- Convert the resource to JSON
```powershell
$QuadrilateralInterface | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# ReadOnlyFirst
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Bar** | **String** | | [optional] [readonly]
**Baz** | **String** | | [optional]
## Examples
- Prepare the resource
```powershell
$ReadOnlyFirst = Initialize-PSPetstoreReadOnlyFirst -Bar null `
-Baz null
```
- Convert the resource to JSON
```powershell
$ReadOnlyFirst | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# ModelReturn
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**VarReturn** | **Int32** | | [optional]
## Examples
- Prepare the resource
```powershell
$ModelReturn = Initialize-PSPetstoreModelReturn -VarReturn null
```
- Convert the resource to JSON
```powershell
$ModelReturn | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# ScaleneTriangle
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ShapeType** | **String** | |
**TriangleType** | **String** | |
## Examples
- Prepare the resource
```powershell
$ScaleneTriangle = Initialize-PSPetstoreScaleneTriangle -ShapeType null `
-TriangleType null
```
- Convert the resource to JSON
```powershell
$ScaleneTriangle | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,25 @@
# Shape
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ShapeType** | **String** | |
**TriangleType** | **String** | |
**QuadrilateralType** | **String** | |
## Examples
- Prepare the resource
```powershell
$Shape = Initialize-PSPetstoreShape -ShapeType null `
-TriangleType null `
-QuadrilateralType null
```
- Convert the resource to JSON
```powershell
$Shape | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# ShapeInterface
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ShapeType** | **String** | |
## Examples
- Prepare the resource
```powershell
$ShapeInterface = Initialize-PSPetstoreShapeInterface -ShapeType null
```
- Convert the resource to JSON
```powershell
$ShapeInterface | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,25 @@
# ShapeOrNull
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ShapeType** | **String** | |
**TriangleType** | **String** | |
**QuadrilateralType** | **String** | |
## Examples
- Prepare the resource
```powershell
$ShapeOrNull = Initialize-PSPetstoreShapeOrNull -ShapeType null `
-TriangleType null `
-QuadrilateralType null
```
- Convert the resource to JSON
```powershell
$ShapeOrNull | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# SimpleQuadrilateral
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ShapeType** | **String** | |
**QuadrilateralType** | **String** | |
## Examples
- Prepare the resource
```powershell
$SimpleQuadrilateral = Initialize-PSPetstoreSimpleQuadrilateral -ShapeType null `
-QuadrilateralType null
```
- Convert the resource to JSON
```powershell
$SimpleQuadrilateral | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# SpecialModelName
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**SpecialPropertyName** | **Int64** | | [optional]
**SpecialModelName** | **String** | | [optional]
## Examples
- Prepare the resource
```powershell
$SpecialModelName = Initialize-PSPetstoreSpecialModelName -SpecialPropertyName null `
-SpecialModelName null
```
- Convert the resource to JSON
```powershell
$SpecialModelName | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# Triangle
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ShapeType** | **String** | |
**TriangleType** | **String** | |
## Examples
- Prepare the resource
```powershell
$Triangle = Initialize-PSPetstoreTriangle -ShapeType null `
-TriangleType null
```
- Convert the resource to JSON
```powershell
$Triangle | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,21 @@
# TriangleInterface
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TriangleType** | **String** | |
## Examples
- Prepare the resource
```powershell
$TriangleInterface = Initialize-PSPetstoreTriangleInterface -TriangleType null
```
- Convert the resource to JSON
```powershell
$TriangleInterface | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -11,6 +11,10 @@ Name | Type | Description | Notes
**Password** | **String** | | [optional]
**Phone** | **String** | | [optional]
**UserStatus** | **Int32** | User Status | [optional]
**ObjectWithNoDeclaredProps** | [**SystemCollectionsHashtable**](.md) | test code generation for objects Value must be a map of strings to values. It cannot be the &#39;null&#39; value. | [optional]
**ObjectWithNoDeclaredPropsNullable** | [**SystemCollectionsHashtable**](.md) | test code generation for nullable objects. Value must be a map of strings to values or the &#39;null&#39; value. | [optional]
**AnyTypeProp** | [**AnyType**](.md) | test code generation for any type Here the &#39;type&#39; attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional]
**AnyTypePropNullable** | [**AnyType**](.md) | test code generation for any type Here the &#39;type&#39; attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The &#39;nullable&#39; attribute does not change the allowed values. | [optional]
## Examples
@ -23,7 +27,11 @@ $User = Initialize-PSPetstoreUser -Id null `
-Email null `
-Password null `
-Phone null `
-UserStatus null
-UserStatus null `
-ObjectWithNoDeclaredProps null `
-ObjectWithNoDeclaredPropsNullable null `
-AnyTypeProp null `
-AnyTypePropNullable null
```
- Convert the resource to JSON

View File

@ -0,0 +1,25 @@
# Whale
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**HasBaleen** | **Boolean** | | [optional]
**HasTeeth** | **Boolean** | | [optional]
**ClassName** | **String** | |
## Examples
- Prepare the resource
```powershell
$Whale = Initialize-PSPetstoreWhale -HasBaleen null `
-HasTeeth null `
-ClassName null
```
- Convert the resource to JSON
```powershell
$Whale | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,23 @@
# Zebra
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Type** | **String** | | [optional]
**ClassName** | **String** | |
## Examples
- Prepare the resource
```powershell
$Zebra = Initialize-PSPetstoreZebra -Type null `
-ClassName null
```
- Convert the resource to JSON
```powershell
$Zebra | ConvertTo-JSON
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,85 @@
#
# OpenAPI Petstore
# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
<#
.SYNOPSIS
To test special tags
.DESCRIPTION
No description available.
.PARAMETER Client
client model
.PARAMETER WithHttpInfo
A switch when turned on will return a hash table of Response, StatusCode and Headers instead of just the Response
.OUTPUTS
Client
#>
function Invoke-PS123TestSpecialTags {
[CmdletBinding()]
Param (
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
[PSCustomObject]
${Client},
[Switch]
$WithHttpInfo
)
Process {
'Calling method: Invoke-PS123TestSpecialTags' | Write-Debug
$PSBoundParameters | Out-DebugParameter | Write-Debug
$LocalVarAccepts = @()
$LocalVarContentTypes = @()
$LocalVarQueryParameters = @{}
$LocalVarHeaderParameters = @{}
$LocalVarFormParameters = @{}
$LocalVarPathParameters = @{}
$LocalVarCookieParameters = @{}
$LocalVarBodyParameter = $null
$Configuration = Get-PSConfiguration
# HTTP header 'Accept' (if needed)
$LocalVarAccepts = @('application/json')
# HTTP header 'Content-Type'
$LocalVarContentTypes = @('application/json')
$LocalVarUri = '/another-fake/dummy'
if (!$Client) {
throw "Error! The required parameter `Client` missing when calling 123TestSpecialTags."
}
$LocalVarBodyParameter = $Client | ConvertTo-Json -Depth 100
$LocalVarResult = Invoke-PSApiClient -Method 'PATCH' `
-Uri $LocalVarUri `
-Accepts $LocalVarAccepts `
-ContentTypes $LocalVarContentTypes `
-Body $LocalVarBodyParameter `
-HeaderParameters $LocalVarHeaderParameters `
-QueryParameters $LocalVarQueryParameters `
-FormParameters $LocalVarFormParameters `
-CookieParameters $LocalVarCookieParameters `
-ReturnType "Client" `
-IsBodyNullable $false
if ($WithHttpInfo.IsPresent) {
return $LocalVarResult
} else {
return $LocalVarResult["Response"]
}
}
}

View File

@ -0,0 +1,70 @@
#
# OpenAPI Petstore
# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
<#
.SYNOPSIS
No summary available.
.DESCRIPTION
No description available.
.PARAMETER WithHttpInfo
A switch when turned on will return a hash table of Response, StatusCode and Headers instead of just the Response
.OUTPUTS
InlineResponseDefault
#>
function Invoke-PSFooGet {
[CmdletBinding()]
Param (
[Switch]
$WithHttpInfo
)
Process {
'Calling method: Invoke-PSFooGet' | Write-Debug
$PSBoundParameters | Out-DebugParameter | Write-Debug
$LocalVarAccepts = @()
$LocalVarContentTypes = @()
$LocalVarQueryParameters = @{}
$LocalVarHeaderParameters = @{}
$LocalVarFormParameters = @{}
$LocalVarPathParameters = @{}
$LocalVarCookieParameters = @{}
$LocalVarBodyParameter = $null
$Configuration = Get-PSConfiguration
# HTTP header 'Accept' (if needed)
$LocalVarAccepts = @('application/json')
$LocalVarUri = '/foo'
$LocalVarResult = Invoke-PSApiClient -Method 'GET' `
-Uri $LocalVarUri `
-Accepts $LocalVarAccepts `
-ContentTypes $LocalVarContentTypes `
-Body $LocalVarBodyParameter `
-HeaderParameters $LocalVarHeaderParameters `
-QueryParameters $LocalVarQueryParameters `
-FormParameters $LocalVarFormParameters `
-CookieParameters $LocalVarCookieParameters `
-ReturnType "InlineResponseDefault" `
-IsBodyNullable $false
if ($WithHttpInfo.IsPresent) {
return $LocalVarResult
} else {
return $LocalVarResult["Response"]
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,90 @@
#
# OpenAPI Petstore
# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
<#
.SYNOPSIS
To test class name in snake case
.DESCRIPTION
No description available.
.PARAMETER Client
client model
.PARAMETER WithHttpInfo
A switch when turned on will return a hash table of Response, StatusCode and Headers instead of just the Response
.OUTPUTS
Client
#>
function Test-PSClassname {
[CmdletBinding()]
Param (
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
[PSCustomObject]
${Client},
[Switch]
$WithHttpInfo
)
Process {
'Calling method: Test-PSClassname' | Write-Debug
$PSBoundParameters | Out-DebugParameter | Write-Debug
$LocalVarAccepts = @()
$LocalVarContentTypes = @()
$LocalVarQueryParameters = @{}
$LocalVarHeaderParameters = @{}
$LocalVarFormParameters = @{}
$LocalVarPathParameters = @{}
$LocalVarCookieParameters = @{}
$LocalVarBodyParameter = $null
$Configuration = Get-PSConfiguration
# HTTP header 'Accept' (if needed)
$LocalVarAccepts = @('application/json')
# HTTP header 'Content-Type'
$LocalVarContentTypes = @('application/json')
$LocalVarUri = '/fake_classname_test'
if (!$Client) {
throw "Error! The required parameter `Client` missing when calling testClassname."
}
$LocalVarBodyParameter = $Client | ConvertTo-Json -Depth 100
if ($Configuration["ApiKey"] -and $Configuration["ApiKey"]["api_key_query"]) {
$LocalVarQueryParameters['api_key_query'] = $Configuration["ApiKey"]["api_key_query"]
Write-Verbose ("Using API key `api_key_query` in the URL query for authentication in {0}" -f $MyInvocation.MyCommand)
}
$LocalVarResult = Invoke-PSApiClient -Method 'PATCH' `
-Uri $LocalVarUri `
-Accepts $LocalVarAccepts `
-ContentTypes $LocalVarContentTypes `
-Body $LocalVarBodyParameter `
-HeaderParameters $LocalVarHeaderParameters `
-QueryParameters $LocalVarQueryParameters `
-FormParameters $LocalVarFormParameters `
-CookieParameters $LocalVarCookieParameters `
-ReturnType "Client" `
-IsBodyNullable $false
if ($WithHttpInfo.IsPresent) {
return $LocalVarResult
} else {
return $LocalVarResult["Response"]
}
}
}

View File

@ -1,6 +1,6 @@
#
# OpenAPI Petstore
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
@ -17,17 +17,13 @@ No description available.
.PARAMETER Pet
Pet object that needs to be added to the store
.PARAMETER ReturnType
Select the return type (optional): application/xml, application/json
.PARAMETER WithHttpInfo
A switch when turned on will return a hash table of Response, StatusCode and Headers instead of just the Response
.OUTPUTS
Pet
None
#>
function Add-PSPet {
[CmdletBinding()]
@ -35,9 +31,6 @@ function Add-PSPet {
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
[PSCustomObject]
${Pet},
[String]
[ValidateSet("application/xml", "application/json")]
$ReturnType,
[Switch]
$WithHttpInfo
)
@ -56,14 +49,6 @@ function Add-PSPet {
$LocalVarBodyParameter = $null
$Configuration = Get-PSConfiguration
# HTTP header 'Accept' (if needed)
$LocalVarAccepts = @('application/xml', 'application/json')
if ($ReturnType) {
# use the return type (MIME) provided by the user
$LocalVarAccepts = @($ReturnType)
}
# HTTP header 'Content-Type'
$LocalVarContentTypes = @('application/json', 'application/xml')
@ -76,6 +61,7 @@ function Add-PSPet {
$LocalVarBodyParameter = $Pet | ConvertTo-Json -Depth 100
$LocalVarResult = Invoke-PSApiClient -Method 'POST' `
-Uri $LocalVarUri `
-Accepts $LocalVarAccepts `
@ -85,7 +71,7 @@ function Add-PSPet {
-QueryParameters $LocalVarQueryParameters `
-FormParameters $LocalVarFormParameters `
-CookieParameters $LocalVarCookieParameters `
-ReturnType "Pet" `
-ReturnType "" `
-IsBodyNullable $false
if ($WithHttpInfo.IsPresent) {
@ -245,6 +231,7 @@ function Find-PSPetsByStatus {
$LocalVarQueryParameters['status'] = $Status
$LocalVarResult = Invoke-PSApiClient -Method 'GET' `
-Uri $LocalVarUri `
-Accepts $LocalVarAccepts `
@ -332,6 +319,7 @@ function Find-PSPetsByTags {
$LocalVarQueryParameters['tags'] = $Tags
$LocalVarResult = Invoke-PSApiClient -Method 'GET' `
-Uri $LocalVarUri `
-Accepts $LocalVarAccepts `
@ -454,17 +442,13 @@ No description available.
.PARAMETER Pet
Pet object that needs to be added to the store
.PARAMETER ReturnType
Select the return type (optional): application/xml, application/json
.PARAMETER WithHttpInfo
A switch when turned on will return a hash table of Response, StatusCode and Headers instead of just the Response
.OUTPUTS
Pet
None
#>
function Update-PSPet {
[CmdletBinding()]
@ -472,9 +456,6 @@ function Update-PSPet {
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
[PSCustomObject]
${Pet},
[String]
[ValidateSet("application/xml", "application/json")]
$ReturnType,
[Switch]
$WithHttpInfo
)
@ -493,14 +474,6 @@ function Update-PSPet {
$LocalVarBodyParameter = $null
$Configuration = Get-PSConfiguration
# HTTP header 'Accept' (if needed)
$LocalVarAccepts = @('application/xml', 'application/json')
if ($ReturnType) {
# use the return type (MIME) provided by the user
$LocalVarAccepts = @($ReturnType)
}
# HTTP header 'Content-Type'
$LocalVarContentTypes = @('application/json', 'application/xml')
@ -513,6 +486,7 @@ function Update-PSPet {
$LocalVarBodyParameter = $Pet | ConvertTo-Json -Depth 100
$LocalVarResult = Invoke-PSApiClient -Method 'PUT' `
-Uri $LocalVarUri `
-Accepts $LocalVarAccepts `
@ -522,7 +496,7 @@ function Update-PSPet {
-QueryParameters $LocalVarQueryParameters `
-FormParameters $LocalVarFormParameters `
-CookieParameters $LocalVarCookieParameters `
-ReturnType "Pet" `
-ReturnType "" `
-IsBodyNullable $false
if ($WithHttpInfo.IsPresent) {
@ -724,3 +698,101 @@ function Invoke-PSUploadFile {
}
}
<#
.SYNOPSIS
uploads an image (required)
.DESCRIPTION
No description available.
.PARAMETER PetId
ID of pet to update
.PARAMETER RequiredFile
file to upload
.PARAMETER AdditionalMetadata
Additional data to pass to server
.PARAMETER WithHttpInfo
A switch when turned on will return a hash table of Response, StatusCode and Headers instead of just the Response
.OUTPUTS
ApiResponse
#>
function Invoke-PSUploadFileWithRequiredFile {
[CmdletBinding()]
Param (
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
[Int64]
${PetId},
[Parameter(Position = 1, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
[System.IO.FileInfo]
${RequiredFile},
[Parameter(Position = 2, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
[String]
${AdditionalMetadata},
[Switch]
$WithHttpInfo
)
Process {
'Calling method: Invoke-PSUploadFileWithRequiredFile' | Write-Debug
$PSBoundParameters | Out-DebugParameter | Write-Debug
$LocalVarAccepts = @()
$LocalVarContentTypes = @()
$LocalVarQueryParameters = @{}
$LocalVarHeaderParameters = @{}
$LocalVarFormParameters = @{}
$LocalVarPathParameters = @{}
$LocalVarCookieParameters = @{}
$LocalVarBodyParameter = $null
$Configuration = Get-PSConfiguration
# HTTP header 'Accept' (if needed)
$LocalVarAccepts = @('application/json')
# HTTP header 'Content-Type'
$LocalVarContentTypes = @('multipart/form-data')
$LocalVarUri = '/fake/{petId}/uploadImageWithRequiredFile'
if (!$PetId) {
throw "Error! The required parameter `PetId` missing when calling uploadFileWithRequiredFile."
}
$LocalVarUri = $LocalVarUri.replace('{petId}', [System.Web.HTTPUtility]::UrlEncode($PetId))
if ($AdditionalMetadata) {
$LocalVarFormParameters['additionalMetadata'] = $AdditionalMetadata
}
if (!$RequiredFile) {
throw "Error! The required parameter `RequiredFile` missing when calling uploadFileWithRequiredFile."
}
$LocalVarFormParameters['requiredFile'] = $RequiredFile
$LocalVarResult = Invoke-PSApiClient -Method 'POST' `
-Uri $LocalVarUri `
-Accepts $LocalVarAccepts `
-ContentTypes $LocalVarContentTypes `
-Body $LocalVarBodyParameter `
-HeaderParameters $LocalVarHeaderParameters `
-QueryParameters $LocalVarQueryParameters `
-FormParameters $LocalVarFormParameters `
-CookieParameters $LocalVarCookieParameters `
-ReturnType "ApiResponse" `
-IsBodyNullable $false
if ($WithHttpInfo.IsPresent) {
return $LocalVarResult
} else {
return $LocalVarResult["Response"]
}
}
}

View File

@ -1,6 +1,6 @@
#
# OpenAPI Petstore
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
@ -49,11 +49,11 @@ function Remove-PSOrder {
$LocalVarBodyParameter = $null
$Configuration = Get-PSConfiguration
$LocalVarUri = '/store/order/{orderId}'
$LocalVarUri = '/store/order/{order_id}'
if (!$OrderId) {
throw "Error! The required parameter `OrderId` missing when calling deleteOrder."
}
$LocalVarUri = $LocalVarUri.replace('{orderId}', [System.Web.HTTPUtility]::UrlEncode($OrderId))
$LocalVarUri = $LocalVarUri.replace('{order_id}', [System.Web.HTTPUtility]::UrlEncode($OrderId))
$LocalVarResult = Invoke-PSApiClient -Method 'DELETE' `
-Uri $LocalVarUri `
@ -202,11 +202,11 @@ function Get-PSOrderById {
$LocalVarAccepts = @($ReturnType)
}
$LocalVarUri = '/store/order/{orderId}'
$LocalVarUri = '/store/order/{order_id}'
if (!$OrderId) {
throw "Error! The required parameter `OrderId` missing when calling getOrderById."
}
$LocalVarUri = $LocalVarUri.replace('{orderId}', [System.Web.HTTPUtility]::UrlEncode($OrderId))
$LocalVarUri = $LocalVarUri.replace('{order_id}', [System.Web.HTTPUtility]::UrlEncode($OrderId))
$LocalVarResult = Invoke-PSApiClient -Method 'GET' `
-Uri $LocalVarUri `

View File

@ -1,6 +1,6 @@
#
# OpenAPI Petstore
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
@ -60,11 +60,6 @@ function New-PSUser {
$LocalVarBodyParameter = $User | ConvertTo-Json -Depth 100
if ($Configuration["Cookie"]) {
$LocalVarCookieParameters['auth_cookie'] = $Configuration["Cookie"]
Write-Verbose ("Using API key `auth_cookie` in the cookie for authentication in {0}" -f $MyInvocation.MyCommand)
}
$LocalVarResult = Invoke-PSApiClient -Method 'POST' `
-Uri $LocalVarUri `
-Accepts $LocalVarAccepts `
@ -140,11 +135,6 @@ function New-PSUsersWithArrayInput {
$LocalVarBodyParameter = $User | ConvertTo-Json -Depth 100
if ($Configuration["Cookie"]) {
$LocalVarCookieParameters['auth_cookie'] = $Configuration["Cookie"]
Write-Verbose ("Using API key `auth_cookie` in the cookie for authentication in {0}" -f $MyInvocation.MyCommand)
}
$LocalVarResult = Invoke-PSApiClient -Method 'POST' `
-Uri $LocalVarUri `
-Accepts $LocalVarAccepts `
@ -220,11 +210,6 @@ function New-PSUsersWithListInput {
$LocalVarBodyParameter = $User | ConvertTo-Json -Depth 100
if ($Configuration["Cookie"]) {
$LocalVarCookieParameters['auth_cookie'] = $Configuration["Cookie"]
Write-Verbose ("Using API key `auth_cookie` in the cookie for authentication in {0}" -f $MyInvocation.MyCommand)
}
$LocalVarResult = Invoke-PSApiClient -Method 'POST' `
-Uri $LocalVarUri `
-Accepts $LocalVarAccepts `
@ -295,11 +280,6 @@ function Remove-PSUser {
}
$LocalVarUri = $LocalVarUri.replace('{username}', [System.Web.HTTPUtility]::UrlEncode($Username))
if ($Configuration["Cookie"]) {
$LocalVarCookieParameters['auth_cookie'] = $Configuration["Cookie"]
Write-Verbose ("Using API key `auth_cookie` in the cookie for authentication in {0}" -f $MyInvocation.MyCommand)
}
$LocalVarResult = Invoke-PSApiClient -Method 'DELETE' `
-Uri $LocalVarUri `
-Accepts $LocalVarAccepts `
@ -542,11 +522,6 @@ function Invoke-PSLogoutUser {
$Configuration = Get-PSConfiguration
$LocalVarUri = '/user/logout'
if ($Configuration["Cookie"]) {
$LocalVarCookieParameters['auth_cookie'] = $Configuration["Cookie"]
Write-Verbose ("Using API key `auth_cookie` in the cookie for authentication in {0}" -f $MyInvocation.MyCommand)
}
$LocalVarResult = Invoke-PSApiClient -Method 'GET' `
-Uri $LocalVarUri `
-Accepts $LocalVarAccepts `
@ -632,11 +607,6 @@ function Update-PSUser {
$LocalVarBodyParameter = $User | ConvertTo-Json -Depth 100
if ($Configuration["Cookie"]) {
$LocalVarCookieParameters['auth_cookie'] = $Configuration["Cookie"]
Write-Verbose ("Using API key `auth_cookie` in the cookie for authentication in {0}" -f $MyInvocation.MyCommand)
}
$LocalVarResult = Invoke-PSApiClient -Method 'PUT' `
-Uri $LocalVarUri `
-Accepts $LocalVarAccepts `

View File

@ -1,6 +1,6 @@
#
# OpenAPI Petstore
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
@ -347,6 +347,10 @@ function Get-PSHostSetting {
)
}
}
},
@{
"Url" = "https://127.0.0.1/no_variable";
"Description" = "The local server without variables";
}
)

View File

@ -0,0 +1,188 @@
#
# OpenAPI Petstore
# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
<#
.SYNOPSIS
No summary available.
.DESCRIPTION
No description available.
.PARAMETER MapProperty
No description available.
.PARAMETER MapOfMapProperty
No description available.
.PARAMETER Anytype1
No description available.
.PARAMETER MapWithUndeclaredPropertiesAnytype1
No description available.
.PARAMETER MapWithUndeclaredPropertiesAnytype2
No description available.
.PARAMETER MapWithUndeclaredPropertiesAnytype3
No description available.
.PARAMETER EmptyMap
an object with no declared properties and no undeclared properties, hence it's an empty map.
.PARAMETER MapWithUndeclaredPropertiesString
No description available.
.OUTPUTS
AdditionalPropertiesClass<PSCustomObject>
#>
function Initialize-PSAdditionalPropertiesClass {
[CmdletBinding()]
Param (
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
[System.Collections.Hashtable]
${MapProperty},
[Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
[System.Collections.Hashtable]
${MapOfMapProperty},
[Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
[PSCustomObject]
${Anytype1},
[Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
[PSCustomObject]
${MapWithUndeclaredPropertiesAnytype1},
[Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
[PSCustomObject]
${MapWithUndeclaredPropertiesAnytype2},
[Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
[System.Collections.Hashtable]
${MapWithUndeclaredPropertiesAnytype3},
[Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
[PSCustomObject]
${EmptyMap},
[Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
[System.Collections.Hashtable]
${MapWithUndeclaredPropertiesString}
)
Process {
'Creating PSCustomObject: PSPetstore => PSAdditionalPropertiesClass' | Write-Debug
$PSBoundParameters | Out-DebugParameter | Write-Debug
$PSO = [PSCustomObject]@{
"map_property" = ${MapProperty}
"map_of_map_property" = ${MapOfMapProperty}
"anytype_1" = ${Anytype1}
"map_with_undeclared_properties_anytype_1" = ${MapWithUndeclaredPropertiesAnytype1}
"map_with_undeclared_properties_anytype_2" = ${MapWithUndeclaredPropertiesAnytype2}
"map_with_undeclared_properties_anytype_3" = ${MapWithUndeclaredPropertiesAnytype3}
"empty_map" = ${EmptyMap}
"map_with_undeclared_properties_string" = ${MapWithUndeclaredPropertiesString}
}
return $PSO
}
}
<#
.SYNOPSIS
Convert from JSON to AdditionalPropertiesClass<PSCustomObject>
.DESCRIPTION
Convert from JSON to AdditionalPropertiesClass<PSCustomObject>
.PARAMETER Json
Json object
.OUTPUTS
AdditionalPropertiesClass<PSCustomObject>
#>
function ConvertFrom-PSJsonToAdditionalPropertiesClass {
Param(
[AllowEmptyString()]
[string]$Json
)
Process {
'Converting JSON to PSCustomObject: PSPetstore => PSAdditionalPropertiesClass' | Write-Debug
$PSBoundParameters | Out-DebugParameter | Write-Debug
$JsonParameters = ConvertFrom-Json -InputObject $Json
# check if Json contains properties not defined in PSAdditionalPropertiesClass
$AllProperties = ("map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string")
foreach ($name in $JsonParameters.PsObject.Properties.Name) {
if (!($AllProperties.Contains($name))) {
throw "Error! JSON key '$name' not found in the properties: $($AllProperties)"
}
}
if (!([bool]($JsonParameters.PSobject.Properties.name -match "map_property"))) { #optional property not found
$MapProperty = $null
} else {
$MapProperty = $JsonParameters.PSobject.Properties["map_property"].value
}
if (!([bool]($JsonParameters.PSobject.Properties.name -match "map_of_map_property"))) { #optional property not found
$MapOfMapProperty = $null
} else {
$MapOfMapProperty = $JsonParameters.PSobject.Properties["map_of_map_property"].value
}
if (!([bool]($JsonParameters.PSobject.Properties.name -match "anytype_1"))) { #optional property not found
$Anytype1 = $null
} else {
$Anytype1 = $JsonParameters.PSobject.Properties["anytype_1"].value
}
if (!([bool]($JsonParameters.PSobject.Properties.name -match "map_with_undeclared_properties_anytype_1"))) { #optional property not found
$MapWithUndeclaredPropertiesAnytype1 = $null
} else {
$MapWithUndeclaredPropertiesAnytype1 = $JsonParameters.PSobject.Properties["map_with_undeclared_properties_anytype_1"].value
}
if (!([bool]($JsonParameters.PSobject.Properties.name -match "map_with_undeclared_properties_anytype_2"))) { #optional property not found
$MapWithUndeclaredPropertiesAnytype2 = $null
} else {
$MapWithUndeclaredPropertiesAnytype2 = $JsonParameters.PSobject.Properties["map_with_undeclared_properties_anytype_2"].value
}
if (!([bool]($JsonParameters.PSobject.Properties.name -match "map_with_undeclared_properties_anytype_3"))) { #optional property not found
$MapWithUndeclaredPropertiesAnytype3 = $null
} else {
$MapWithUndeclaredPropertiesAnytype3 = $JsonParameters.PSobject.Properties["map_with_undeclared_properties_anytype_3"].value
}
if (!([bool]($JsonParameters.PSobject.Properties.name -match "empty_map"))) { #optional property not found
$EmptyMap = $null
} else {
$EmptyMap = $JsonParameters.PSobject.Properties["empty_map"].value
}
if (!([bool]($JsonParameters.PSobject.Properties.name -match "map_with_undeclared_properties_string"))) { #optional property not found
$MapWithUndeclaredPropertiesString = $null
} else {
$MapWithUndeclaredPropertiesString = $JsonParameters.PSobject.Properties["map_with_undeclared_properties_string"].value
}
$PSO = [PSCustomObject]@{
"map_property" = ${MapProperty}
"map_of_map_property" = ${MapOfMapProperty}
"anytype_1" = ${Anytype1}
"map_with_undeclared_properties_anytype_1" = ${MapWithUndeclaredPropertiesAnytype1}
"map_with_undeclared_properties_anytype_2" = ${MapWithUndeclaredPropertiesAnytype2}
"map_with_undeclared_properties_anytype_3" = ${MapWithUndeclaredPropertiesAnytype3}
"empty_map" = ${EmptyMap}
"map_with_undeclared_properties_string" = ${MapWithUndeclaredPropertiesString}
}
return $PSO
}
}

View File

@ -0,0 +1,118 @@
#
# OpenAPI Petstore
# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
<#
.SYNOPSIS
No summary available.
.DESCRIPTION
No description available.
.PARAMETER ClassName
No description available.
.PARAMETER Color
No description available.
.OUTPUTS
Animal<PSCustomObject>
#>
function Initialize-PSAnimal {
[CmdletBinding()]
Param (
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
[String]
${ClassName},
[Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
[String]
${Color} = "red"
)
Process {
'Creating PSCustomObject: PSPetstore => PSAnimal' | Write-Debug
$PSBoundParameters | Out-DebugParameter | Write-Debug
if ($null -eq $ClassName) {
throw "invalid value for 'ClassName', 'ClassName' cannot be null."
}
$PSO = [PSCustomObject]@{
"className" = ${ClassName}
"color" = ${Color}
}
return $PSO
}
}
<#
.SYNOPSIS
Convert from JSON to Animal<PSCustomObject>
.DESCRIPTION
Convert from JSON to Animal<PSCustomObject>
.PARAMETER Json
Json object
.OUTPUTS
Animal<PSCustomObject>
#>
function ConvertFrom-PSJsonToAnimal {
Param(
[AllowEmptyString()]
[string]$Json
)
Process {
'Converting JSON to PSCustomObject: PSPetstore => PSAnimal' | Write-Debug
$PSBoundParameters | Out-DebugParameter | Write-Debug
$JsonParameters = ConvertFrom-Json -InputObject $Json
# check if Json contains properties not defined in PSAnimal
$AllProperties = ("className", "color")
foreach ($name in $JsonParameters.PsObject.Properties.Name) {
if (!($AllProperties.Contains($name))) {
throw "Error! JSON key '$name' not found in the properties: $($AllProperties)"
}
}
If ([string]::IsNullOrEmpty($Json) -or $Json -eq "{}") { # empty json
throw "Error! Empty JSON cannot be serialized due to the required property 'className' missing."
}
if (!([bool]($JsonParameters.PSobject.Properties.name -match "className"))) {
throw "Error! JSON cannot be serialized due to the required property 'className' missing."
} else {
$ClassName = $JsonParameters.PSobject.Properties["className"].value
}
if (!([bool]($JsonParameters.PSobject.Properties.name -match "color"))) { #optional property not found
$Color = $null
} else {
$Color = $JsonParameters.PSobject.Properties["color"].value
}
$PSO = [PSCustomObject]@{
"className" = ${ClassName}
"color" = ${Color}
}
return $PSO
}
}

View File

@ -1,6 +1,6 @@
#
# OpenAPI Petstore
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
@ -12,7 +12,7 @@ No summary available.
.DESCRIPTION
Describes the result of uploading an image resource
No description available.
.PARAMETER Code
No description available.

View File

@ -0,0 +1,112 @@
#
# OpenAPI Petstore
# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
<#
.SYNOPSIS
No summary available.
.DESCRIPTION
No description available.
.PARAMETER Cultivar
No description available.
.PARAMETER Origin
No description available.
.OUTPUTS
Apple<PSCustomObject>
#>
function Initialize-PSApple {
[CmdletBinding()]
Param (
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
[ValidatePattern("^[a-zA-Z\s]*$")]
[String]
${Cultivar},
[Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
[ValidatePattern("/^[A-Z\s]*$/i")]
[String]
${Origin}
)
Process {
'Creating PSCustomObject: PSPetstore => PSApple' | Write-Debug
$PSBoundParameters | Out-DebugParameter | Write-Debug
$PSO = [PSCustomObject]@{
"cultivar" = ${Cultivar}
"origin" = ${Origin}
}
return $PSO
}
}
<#
.SYNOPSIS
Convert from JSON to Apple<PSCustomObject>
.DESCRIPTION
Convert from JSON to Apple<PSCustomObject>
.PARAMETER Json
Json object
.OUTPUTS
Apple<PSCustomObject>
#>
function ConvertFrom-PSJsonToApple {
Param(
[AllowEmptyString()]
[string]$Json
)
Process {
'Converting JSON to PSCustomObject: PSPetstore => PSApple' | Write-Debug
$PSBoundParameters | Out-DebugParameter | Write-Debug
$JsonParameters = ConvertFrom-Json -InputObject $Json
# check if Json contains properties not defined in PSApple
$AllProperties = ("cultivar", "origin")
foreach ($name in $JsonParameters.PsObject.Properties.Name) {
if (!($AllProperties.Contains($name))) {
throw "Error! JSON key '$name' not found in the properties: $($AllProperties)"
}
}
if (!([bool]($JsonParameters.PSobject.Properties.name -match "cultivar"))) { #optional property not found
$Cultivar = $null
} else {
$Cultivar = $JsonParameters.PSobject.Properties["cultivar"].value
}
if (!([bool]($JsonParameters.PSobject.Properties.name -match "origin"))) { #optional property not found
$Origin = $null
} else {
$Origin = $JsonParameters.PSobject.Properties["origin"].value
}
$PSO = [PSCustomObject]@{
"cultivar" = ${Cultivar}
"origin" = ${Origin}
}
return $PSO
}
}

View File

@ -0,0 +1,118 @@
#
# OpenAPI Petstore
# This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: "" \
# Version: 1.0.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
<#
.SYNOPSIS
No summary available.
.DESCRIPTION
No description available.
.PARAMETER Cultivar
No description available.
.PARAMETER Mealy
No description available.
.OUTPUTS
AppleReq<PSCustomObject>
#>
function Initialize-PSAppleReq {
[CmdletBinding()]
Param (
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
[String]
${Cultivar},
[Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
[System.Nullable[Boolean]]
${Mealy}
)
Process {
'Creating PSCustomObject: PSPetstore => PSAppleReq' | Write-Debug
$PSBoundParameters | Out-DebugParameter | Write-Debug
if ($null -eq $Cultivar) {
throw "invalid value for 'Cultivar', 'Cultivar' cannot be null."
}
$PSO = [PSCustomObject]@{
"cultivar" = ${Cultivar}
"mealy" = ${Mealy}
}
return $PSO
}
}
<#
.SYNOPSIS
Convert from JSON to AppleReq<PSCustomObject>
.DESCRIPTION
Convert from JSON to AppleReq<PSCustomObject>
.PARAMETER Json
Json object
.OUTPUTS
AppleReq<PSCustomObject>
#>
function ConvertFrom-PSJsonToAppleReq {
Param(
[AllowEmptyString()]
[string]$Json
)
Process {
'Converting JSON to PSCustomObject: PSPetstore => PSAppleReq' | Write-Debug
$PSBoundParameters | Out-DebugParameter | Write-Debug
$JsonParameters = ConvertFrom-Json -InputObject $Json
# check if Json contains properties not defined in PSAppleReq
$AllProperties = ("cultivar", "mealy")
foreach ($name in $JsonParameters.PsObject.Properties.Name) {
if (!($AllProperties.Contains($name))) {
throw "Error! JSON key '$name' not found in the properties: $($AllProperties)"
}
}
If ([string]::IsNullOrEmpty($Json) -or $Json -eq "{}") { # empty json
throw "Error! Empty JSON cannot be serialized due to the required property 'cultivar' missing."
}
if (!([bool]($JsonParameters.PSobject.Properties.name -match "cultivar"))) {
throw "Error! JSON cannot be serialized due to the required property 'cultivar' missing."
} else {
$Cultivar = $JsonParameters.PSobject.Properties["cultivar"].value
}
if (!([bool]($JsonParameters.PSobject.Properties.name -match "mealy"))) { #optional property not found
$Mealy = $null
} else {
$Mealy = $JsonParameters.PSobject.Properties["mealy"].value
}
$PSO = [PSCustomObject]@{
"cultivar" = ${Cultivar}
"mealy" = ${Mealy}
}
return $PSO
}
}

Some files were not shown because too many files have changed in this diff Show More