server.models package¶
Submodules¶
server.models.base_model_ module¶
- class server.models.base_model_.Model¶
Bases:
object
- attribute_map = {}¶
- classmethod from_dict(dikt) → server.models.base_model_.T¶
Returns the dict as a model
- swagger_types = {}¶
- to_dict()¶
Returns the model properties as a dict
- Return type
dict
- to_str()¶
Returns the string representation of the model
- Return type
str
server.models.host module¶
- class server.models.host.Host(id: Optional[int] = None, name: Optional[str] = None, num_of_listings: Optional[int] = None)¶
Bases:
server.models.base_model_.Model
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
- classmethod from_dict(dikt) → server.models.host.Host¶
Returns the dict as a model
- Parameters
dikt – A dict.
- Type
dict
- Returns
The Host of this Host. # noqa: E501
- Return type
- property id: int¶
Gets the id of this Host.
- Returns
The id of this Host.
- Return type
int
- property name: str¶
Gets the name of this Host.
- Returns
The name of this Host.
- Return type
str
- property num_of_listings: int¶
Gets the num_of_listings of this Host.
- Returns
The num_of_listings of this Host.
- Return type
int
server.models.layer module¶
- class server.models.layer.Layer(type: Optional[str] = None, entries: Optional[List[server.models.layer_entry.LayerEntry]] = None)¶
Bases:
server.models.base_model_.Model
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
- property entries: List[server.models.layer_entry.LayerEntry]¶
Gets the entries of this Layer.
- Returns
The entries of this Layer.
- Return type
List[LayerEntry]
- classmethod from_dict(dikt) → server.models.layer.Layer¶
Returns the dict as a model
- Parameters
dikt – A dict.
- Type
dict
- Returns
The Layer of this Layer. # noqa: E501
- Return type
- property type: str¶
Gets the type of this Layer.
- Returns
The type of this Layer.
- Return type
str
server.models.layer_entry module¶
- class server.models.layer_entry.LayerEntry(latitude: Optional[float] = None, longitude: Optional[float] = None)¶
Bases:
server.models.base_model_.Model
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
- classmethod from_dict(dikt) → server.models.layer_entry.LayerEntry¶
Returns the dict as a model
- Parameters
dikt – A dict.
- Type
dict
- Returns
The LayerEntry of this LayerEntry.
- Return type
- property latitude: float¶
Gets the latitude of this LayerEntry.
- Returns
The latitude of this LayerEntry.
- Return type
float
- property longitude: float¶
Gets the longitude of this LayerEntry.
- Returns
The longitude of this LayerEntry.
- Return type
float
server.models.layer_type module¶
server.models.listing module¶
- class server.models.listing.Listing(id: Optional[int] = None, name: Optional[str] = None, host: Optional[server.models.host.Host] = None, neighbourhood: Optional[str] = None, area: Optional[str] = None, latitude: Optional[float] = None, longitude: Optional[float] = None, room_type: Optional[str] = None, price: Optional[int] = None, min_nights: Optional[int] = None, num_of_reviews: Optional[int] = None, availability: Optional[int] = None, images: Optional[list] = None)¶
Bases:
server.models.base_model_.Model
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
- property area: str¶
Gets the area of this Listing.
- Returns
The area of this Listing.
- Return type
str
- property availability: int¶
Gets the availability of this Listing.
- Returns
The availability of this Listing.
- Return type
int
- classmethod from_dict(dikt) → server.models.listing.Listing¶
Returns the dict as a model
- Parameters
dikt – A dict.
- Type
dict
- Returns
The Listing of this Listing. # noqa: E501
- Return type
- property host: server.models.host.Host¶
Gets the host of this Listing.
- Returns
The host of this Listing.
- Return type
- property id: int¶
Gets the id of this Listing.
- Returns
The id of this Listing.
- Return type
int
- property images: list¶
Gets images of this listing.
- Returns
List of images.
- Return type
list
- property latitude: float¶
Gets the latitude of this Listing.
- Returns
The latitude of this Listing.
- Return type
float
- property longitude: float¶
Gets the longitude of this Listing.
- Returns
The longitude of this Listing.
- Return type
float
- property min_nights: int¶
Gets the min_nights of this Listing.
- Returns
The min_nights of this Listing.
- Return type
int
- property name: str¶
Gets the name of this Listing.
- Returns
The name of this Listing.
- Return type
str
- property neighbourhood: str¶
Gets the neighbourhood of this Listing.
- Returns
The neighbourhood of this Listing.
- Return type
str
- property num_of_reviews: int¶
Gets the num_of_reviews of this Listing.
- Returns
The num_of_reviews of this Listing.
- Return type
int
- property price: int¶
Gets the price of this Listing.
- Returns
The price of this Listing.
- Return type
int
- property room_type: str¶
Gets the room_type of this Listing.
- Returns
The room_type of this Listing.
- Return type
str
server.models.listings_filter module¶
- class server.models.listings_filter.ListingsFilter(listing_name=None, host_id=None, host_name=None, neighbourhood=None, area=None, price_min=None, price_max=None, min_nights=None, availability=None, listings_per_host=None, room_type=None)¶
Bases:
object
Defines all the available filter criteria to query Listings
server.models.review module¶
- class server.models.review.Review(id: Optional[int] = None, listing_id: Optional[int] = None, text: Optional[str] = None)¶
Bases:
server.models.base_model_.Model
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
- classmethod from_dict(dikt) → server.models.review.Review¶
Returns the dict as a model
- Parameters
dikt – A dict.
- Type
dict
- Returns
The Review of this Review. # noqa: E501
- Return type
- property id: int¶
Gets the id of this Review.
- Returns
The id of this Review.
- Return type
int
- property listing_id: int¶
Gets the listing_id of this Review.
- Returns
The listing_id of this Review.
- Return type
int
- property text: str¶
Gets the text of this Review.
- Returns
The text of this Review.
- Return type
str