petstore_api.components.schema.pet
Pet object that needs to be added to the store
type: typing.Mapping[str, schemas.INPUT_TYPES_ALL]
Key |
Type |
Description |
Notes |
name |
str |
|
|
photoUrls |
PhotoUrlsTupleInput, PhotoUrlsTuple |
|
|
id |
int |
|
[optional] value must be a 64 bit integer |
category |
category.CategoryDictInput, category.CategoryDict |
|
[optional] |
tags |
TagsTupleInput, TagsTuple |
|
[optional] |
status |
typing.Literal["available", "pending", "sold"] |
pet status in the store |
[optional] must be one of ["available", "pending", "sold"] |
any_string_name |
dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO |
any string name can be used but the value must be the correct type |
[optional] |
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]
Keyword Argument |
Type |
Description |
Notes |
name |
str |
|
|
photoUrls |
PhotoUrlsTupleInput, PhotoUrlsTuple |
|
|
id |
int, schemas.Unset |
|
[optional] value must be a 64 bit integer |
category |
category.CategoryDictInput, category.CategoryDict, schemas.Unset |
|
[optional] |
tags |
TagsTupleInput, TagsTuple, schemas.Unset |
|
[optional] |
status |
typing.Literal["available", "pending", "sold"], schemas.Unset |
pet status in the store |
[optional] must be one of ["available", "pending", "sold"] |
kwargs |
schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO |
any string name can be used but the value must be the correct type Pet object that needs to be added to the store |
[optional] typed value is accessed with the get_additional_property_ method |
Property |
Type |
Description |
Notes |
name |
str |
|
|
photoUrls |
PhotoUrlsTuple |
|
|
id |
int, schemas.Unset |
|
[optional] value must be a 64 bit integer |
category |
category.CategoryDict, schemas.Unset |
|
[optional] |
tags |
TagsTuple, schemas.Unset |
|
[optional] |
status |
typing.Literal["available", "pending", "sold"], schemas.Unset |
pet status in the store |
[optional] must be one of ["available", "pending", "sold"] |
Method |
Input Type |
Return Type |
Notes |
from_dict_ |
PetDictInput, PetDict |
PetDict |
a constructor |
get_additional_property_ |
str |
schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset |
provides type safety for additional properties |
type: typing.Union[
typing.List[
str,
],
typing.Tuple[
str,
...
]
]
List/Tuple Item Type |
Description |
Notes |
str |
|
|
base class: typing.Tuple[
str,
...
]
Method |
Input Type |
Return Type |
Notes |
__getitem__ |
int |
str |
This method is used under the hood when instance[0] is called |
type: typing.Union[
typing.List[
typing.Union[
tag.TagDictInput,
tag.TagDict,
],
],
typing.Tuple[
typing.Union[
tag.TagDictInput,
tag.TagDict,
],
...
]
]
base class: typing.Tuple[
tag.TagDict,
...
]
Argument |
Type |
arg |
TagsTupleInput, TagsTuple |
configuration |
typing.Optional[schema_configuration.SchemaConfiguration] = None |
Method |
Input Type |
Return Type |
Notes |
__getitem__ |
int |
tag.TagDict |
This method is used under the hood when instance[0] is called |
[Back to top] [Back to Component Schemas] [Back to README]