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:
vehicleState
supportedTripTypes
maximumCapacity
vehicleType
When creating a Vehicle, the following fields are ignored:
name
currentTrips
availableCapacity
current_route_segment
current_route_segment_end_point
current_route_segment_version
current_route_segment_traffic
route
waypoints
waypoints_version
remaining_distance_meters
remaining_time_seconds
eta_to_next_waypoint
navigation_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 |