Class CreateVehicleRequest
CreateVehicle request message.
Implements
Namespace: Google.Maps.FleetEngine.V1
Assembly: Google.Maps.FleetEngine.V1.dll
Syntax
public sealed class CreateVehicleRequest : IMessage<CreateVehicleRequest>, IEquatable<CreateVehicleRequest>, IDeepCloneable<CreateVehicleRequest>, IBufferMessage, IMessage
Constructors
CreateVehicleRequest()
Declaration
public CreateVehicleRequest()
CreateVehicleRequest(CreateVehicleRequest)
Declaration
public CreateVehicleRequest(CreateVehicleRequest other)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateVehicleRequest | other |
Properties
Header
The standard Fleet Engine request header.
Declaration
public RequestHeader Header { get; set; }
Property Value
| Type | Description |
|---|---|
| RequestHeader |
Parent
Required. Must be in the format providers/{provider}.
The provider must be the Project ID (for example, sample-cloud-project)
of the Google Cloud Project of which the service account making
this call is a member.
Declaration
public string Parent { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Vehicle
Required. The Vehicle entity to create. When creating a Vehicle, the following fields are required:
vehicleStatesupportedTripTypesmaximumCapacityvehicleType
When creating a Vehicle, the following fields are ignored:
namecurrentTripsavailableCapacitycurrent_route_segmentcurrent_route_segment_end_pointcurrent_route_segment_versioncurrent_route_segment_trafficroutewaypointswaypoints_versionremaining_distance_metersremaining_time_secondseta_to_next_waypointnavigation_status
All other fields are optional and used if provided.
Declaration
public Vehicle Vehicle { get; set; }
Property Value
| Type | Description |
|---|---|
| Vehicle |
VehicleId
Required. Unique Vehicle ID. Subject to the following restrictions:
- Must be a valid Unicode string.
- Limited to a maximum length of 64 characters.
- Normalized according to [Unicode Normalization Form C] (http://www.unicode.org/reports/tr15/).
- May not contain any of the following ASCII characters: '/', ':', '?', ',', or '#'.
Declaration
public string VehicleId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |