Class UpdateVehicleRequest
`UpdateVehicle request message.
Implements
Namespace: Google.Maps.FleetEngine.V1
Assembly: Google.Maps.FleetEngine.V1.dll
Syntax
public sealed class UpdateVehicleRequest : IMessage<UpdateVehicleRequest>, IEquatable<UpdateVehicleRequest>, IDeepCloneable<UpdateVehicleRequest>, IBufferMessage, IMessage
Constructors
UpdateVehicleRequest()
Declaration
public UpdateVehicleRequest()
UpdateVehicleRequest(UpdateVehicleRequest)
Declaration
public UpdateVehicleRequest(UpdateVehicleRequest other)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateVehicleRequest | other |
Properties
Header
The standard Fleet Engine request header.
Declaration
public RequestHeader Header { get; set; }
Property Value
| Type | Description |
|---|---|
| RequestHeader |
Name
Required. Must be in the format
providers/{provider}/vehicles/{vehicle}.
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 Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UpdateMask
Required. A field mask indicating which fields of the Vehicle to update.
At least one field name must be provided.
Declaration
public FieldMask UpdateMask { get; set; }
Property Value
| Type | Description |
|---|---|
| FieldMask |
Vehicle
Required. The Vehicle entity values to apply. When updating a Vehicle,
the following fields may not be updated as they are managed by the
server.
available_capacitycurrent_route_segment_versioncurrent_tripsnamewaypoints_version
If the attributes field is updated, all the vehicle's attributes are
replaced with the attributes provided in the request. If you want to update
only some attributes, see the UpdateVehicleAttributes method.
Likewise, the waypoints field can be updated, but must contain all the
waypoints currently on the vehicle, and no other waypoints.
Declaration
public Vehicle Vehicle { get; set; }
Property Value
| Type | Description |
|---|---|
| Vehicle |