William Cheng 29183e0280
[PowerShell] support default value in models (#6920)
* support default value in ps

* revert changes to the spec
2020-07-13 13:41:10 +08:00

813 B

Order

Properties

Name Type Description Notes
Id Int64 [optional]
PetId Int64 [optional]
Quantity Int32 [optional]
ShipDate System.DateTime [optional]
Status String Order Status [optional]
Complete Boolean [optional] [default to $false]

Examples

  • Prepare the resource
Initialize-PSPetstoreOrder  -Id null `
 -PetId null `
 -Quantity null `
 -ShipDate null `
 -Status null `
 -Complete null
  • Convert the resource to JSON
$ | Convert-ToJSON

[Back to Model list] [Back to API list] [Back to README]