William Cheng a7e92786df
[PowerShell] add more tests to powershell client (#12057)
* add more tests to powershell client

* update spec

* update method name

* add new file
2022-04-06 10:24:32 +08:00

1.7 KiB

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[] [optional]
ArrayAndItemsNullableProp SystemCollectionsHashtable[] [optional]
ArrayItemsNullable SystemCollectionsHashtable[] [optional]
ObjectNullableProp System.Collections.Hashtable [optional]
ObjectAndItemsNullableProp System.Collections.Hashtable [optional]
ObjectItemsNullable System.Collections.Hashtable [optional]

Examples

  • Prepare the resource
$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
$NullableClass | ConvertTo-JSON

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