Class: Google::Maps::FleetEngine::V1::CreateVehicleRequest
- Inherits:
-
Object
- Object
- Google::Maps::FleetEngine::V1::CreateVehicleRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/maps/fleetengine/v1/vehicle_api.rb
Overview
CreateVehicle request message.
Instance Attribute Summary collapse
-
#header ⇒ ::Google::Maps::FleetEngine::V1::RequestHeader
The standard Fleet Engine request header.
-
#parent ⇒ ::String
Required.
-
#vehicle ⇒ ::Google::Maps::FleetEngine::V1::Vehicle
Required.
-
#vehicle_id ⇒ ::String
Required.
Instance Attribute Details
#header ⇒ ::Google::Maps::FleetEngine::V1::RequestHeader
Returns The standard Fleet Engine request header.
73 74 75 76 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicle_api.rb', line 73 class CreateVehicleRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#parent ⇒ ::String
Returns 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.
73 74 75 76 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicle_api.rb', line 73 class CreateVehicleRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#vehicle ⇒ ::Google::Maps::FleetEngine::V1::Vehicle
Returns 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.
73 74 75 76 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicle_api.rb', line 73 class CreateVehicleRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#vehicle_id ⇒ ::String
Returns 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.
- May not contain any of the following ASCII characters: '/', ':', '?', ',', or '#'.
73 74 75 76 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicle_api.rb', line 73 class CreateVehicleRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |