gfwapiclient.resources.vessels.base.models.response
¶
Global Fishing Watch (GFW) API Python Client - Vessels API Base Response Models.
This module defines base response models for the Vessels API, providing common data structures for vessel-related information.
Module Contents¶
Classes¶
Vessel registry extra information. |
|
Vessel registry information. |
|
Vessel registry owner. |
|
Vessel registry public authorization. |
|
Vessel combined source gear type. |
|
Vessel combined source ship type. |
|
Vessel combined source information. |
|
Vessel self reported information. |
|
Vessels API result item. |
Data¶
API¶
- gfwapiclient.resources.vessels.base.models.response.__all__ = ['VesselItem']¶
- class gfwapiclient.resources.vessels.base.models.response.ExtraField(/, **data: typing.Any)¶
Bases:
gfwapiclient.base.models.BaseModel
Vessel registry extra information.
- Attributes:
- registry_source (Optional[str]):
The source of the registry information.
- iuu_status (Optional[Any]):
The IUU (Illegal, Unreported, Unregulated) status.
- has_compliance_info (Optional[Any]):
Indicates if compliance information is available.
- images (Optional[Any]):
Images associated with the vessel.
- operator (Optional[Any]):
The operator of the vessel.
- built_year (Optional[Any]):
The year the vessel was built.
- depth_m (Optional[Any]):
The depth in meters.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- class gfwapiclient.resources.vessels.base.models.response.RegistryInfo(/, **data: typing.Any)¶
Bases:
gfwapiclient.base.models.BaseModel
Vessel registry information.
- Attributes:
- id (Optional[str]):
The registry ID.
- source_code (Optional[List[str]]):
List of source codes.
- ssvid (Optional[str]):
The Ship Static Voyage Identifier.
- flag (Optional[str]):
The vessel’s flag.
- ship_name (Optional[str]):
The vessel’s ship name.
- n_ship_name (Optional[str]):
Normalized ship name.
- call_sign (Optional[str]):
The vessel’s call sign.
- imo (Optional[str]):
The vessel’s IMO number.
- latest_vessel_info (Optional[bool]):
Indicates if it’s the latest vessel info.
- transmission_date_from (Optional[datetime.datetime]):
Transmission date from.
- transmission_date_to (Optional[datetime.datetime]):
Transmission date to.
- gear_types (Optional[List[str]]):
List of gear types.
- length_m (Optional[float]):
Length in meters.
- tonnage_gt (Optional[float]):
Tonnage in gross tons.
- vessel_info_reference (Optional[str]):
Vessel info reference.
- extra_fields (Optional[List[ExtraField]]):
List of extra fields.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- transmission_date_from: Optional[datetime.datetime] = 'Field(...)'¶
- transmission_date_to: Optional[datetime.datetime] = 'Field(...)'¶
- extra_fields: Optional[List[gfwapiclient.resources.vessels.base.models.response.ExtraField]] = 'Field(...)'¶
- class gfwapiclient.resources.vessels.base.models.response.RegistryOwner(/, **data: typing.Any)¶
Bases:
gfwapiclient.base.models.BaseModel
Vessel registry owner.
- Attributes:
- name (Optional[str]):
The owner’s name.
- flag (Optional[str]):
The owner’s flag.
- ssvid (Optional[str]):
The Ship Static Voyage Identifier.
- source_code (Optional[List[str]]):
List of source codes.
- date_from (Optional[datetime.datetime]):
Date from.
- date_to (Optional[datetime.datetime]):
Date to.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- date_from: Optional[datetime.datetime] = 'Field(...)'¶
- date_to: Optional[datetime.datetime] = 'Field(...)'¶
- class gfwapiclient.resources.vessels.base.models.response.RegistryPublicAuthorization(/, **data: typing.Any)¶
Bases:
gfwapiclient.base.models.BaseModel
Vessel registry public authorization.
- Attributes:
- date_from (Optional[datetime.datetime]):
Date from.
- date_to (Optional[datetime.datetime]):
Date to.
- ssvid (Optional[str]):
The Ship Static Voyage Identifier.
- source_code (Optional[List[str]]):
List of source codes.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- date_from: Optional[datetime.datetime] = 'Field(...)'¶
- date_to: Optional[datetime.datetime] = 'Field(...)'¶
- class gfwapiclient.resources.vessels.base.models.response.GearType(/, **data: typing.Any)¶
Bases:
gfwapiclient.base.models.BaseModel
Vessel combined source gear type.
- Attributes:
- name (Optional[str]):
The gear type name.
- source (Optional[str]):
The source of the gear type information.
- year_from (Optional[int]):
Year from.
- year_to (Optional[int]):
Year to.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- class gfwapiclient.resources.vessels.base.models.response.ShipType(/, **data: typing.Any)¶
Bases:
gfwapiclient.base.models.BaseModel
Vessel combined source ship type.
- Attributes:
- name (Optional[str]):
The ship type name.
- source (Optional[str]):
The source of the ship type information.
- year_from (Optional[int]):
Year from.
- year_to (Optional[int]):
Year to.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- class gfwapiclient.resources.vessels.base.models.response.CombinedSourceInfo(/, **data: typing.Any)¶
Bases:
gfwapiclient.base.models.BaseModel
Vessel combined source information.
- Attributes:
- vessel_id (Optional[str]):
The vessel ID.
- gear_types (Optional[List[GearType]]):
List of gear types.
- ship_types (Optional[List[ShipType]]):
List of ship types.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- gear_types: Optional[List[gfwapiclient.resources.vessels.base.models.response.GearType]] = 'Field(...)'¶
- ship_types: Optional[List[gfwapiclient.resources.vessels.base.models.response.ShipType]] = 'Field(...)'¶
- class gfwapiclient.resources.vessels.base.models.response.SelfReportedInfo(/, **data: typing.Any)¶
Bases:
gfwapiclient.base.models.BaseModel
Vessel self reported information.
- Attributes:
- id (Optional[str]):
The self-reported information ID.
- ssvid (Optional[str]):
The Ship Static Voyage Identifier.
- ship_name (Optional[str]):
The vessel’s ship name.
- n_ship_name (Optional[str]):
Normalized ship name.
- flag (Optional[str]):
The vessel’s flag.
- call_sign (Optional[str]):
The vessel’s call sign.
- imo (Optional[str]):
The vessel’s IMO number.
- messages_counter (Optional[int]):
Messages counter.
- positions_counter (Optional[int]):
Positions counter.
- source_code (Optional[List[str]]):
List of source codes.
- match_fields (Optional[str]):
Matched fields.
- transmission_date_from (Optional[datetime.datetime]):
Transmission date from.
- transmission_date_to (Optional[datetime.datetime]):
Transmission date to.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- transmission_date_from: Optional[datetime.datetime] = 'Field(...)'¶
- transmission_date_to: Optional[datetime.datetime] = 'Field(...)'¶
- class gfwapiclient.resources.vessels.base.models.response.VesselItem(/, **data: typing.Any)¶
Bases:
gfwapiclient.http.models.ResultItem
Vessels API result item.
- Attributes:
- dataset (Optional[str]):
The dataset used.
- registry_info_total_records (Optional[int]):
Total registry info records.
- registry_info (Optional[List[RegistryInfo]]):
List of registry information.
- registry_owners (Optional[List[RegistryOwner]]):
List of registry owners.
- registry_public_authorizations (Optional[List[RegistryPublicAuthorization]]):
List of registry public authorizations.
- combined_sources_info (Optional[List[CombinedSourceInfo]]):
List of combined source information.
- self_reported_info (Optional[List[SelfReportedInfo]]):
List of self-reported information.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- registry_info: Optional[List[gfwapiclient.resources.vessels.base.models.response.RegistryInfo]] = 'Field(...)'¶
- registry_owners: Optional[List[gfwapiclient.resources.vessels.base.models.response.RegistryOwner]] = 'Field(...)'¶
- registry_public_authorizations: Optional[List[gfwapiclient.resources.vessels.base.models.response.RegistryPublicAuthorization]] = 'Field(...)'¶
- combined_sources_info: Optional[List[gfwapiclient.resources.vessels.base.models.response.CombinedSourceInfo]] = 'Field(...)'¶
- self_reported_info: Optional[List[gfwapiclient.resources.vessels.base.models.response.SelfReportedInfo]] = 'Field(...)'¶