google-maps-fleet_engine-v1 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,6 +32,9 @@ module Google
32
32
  # Vehicle management service.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "fleetengine.$UNIVERSE_DOMAIN$"
37
40
 
@@ -301,12 +304,13 @@ module Google
301
304
  # Customize the options with defaults
302
305
  call_metadata = @config.rpcs.create_vehicle.metadata.to_h
303
306
 
304
- # Set x-goog-api-client and x-goog-user-project headers
307
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
305
308
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
306
309
  lib_name: @config.lib_name, lib_version: @config.lib_version,
307
310
  gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
308
311
  transports_version_send: [:rest]
309
312
 
313
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
310
314
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
311
315
 
312
316
  options.apply_defaults timeout: @config.rpcs.create_vehicle.timeout,
@@ -396,12 +400,13 @@ module Google
396
400
  # Customize the options with defaults
397
401
  call_metadata = @config.rpcs.get_vehicle.metadata.to_h
398
402
 
399
- # Set x-goog-api-client and x-goog-user-project headers
403
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
400
404
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
401
405
  lib_name: @config.lib_name, lib_version: @config.lib_version,
402
406
  gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
403
407
  transports_version_send: [:rest]
404
408
 
409
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
405
410
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
406
411
 
407
412
  options.apply_defaults timeout: @config.rpcs.get_vehicle.timeout,
@@ -516,12 +521,13 @@ module Google
516
521
  # Customize the options with defaults
517
522
  call_metadata = @config.rpcs.update_vehicle.metadata.to_h
518
523
 
519
- # Set x-goog-api-client and x-goog-user-project headers
524
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
520
525
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
521
526
  lib_name: @config.lib_name, lib_version: @config.lib_version,
522
527
  gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
523
528
  transports_version_send: [:rest]
524
529
 
530
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
525
531
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
526
532
 
527
533
  options.apply_defaults timeout: @config.rpcs.update_vehicle.timeout,
@@ -540,97 +546,6 @@ module Google
540
546
  raise ::Google::Cloud::Error.from_error(e)
541
547
  end
542
548
 
543
- ##
544
- # Deprecated: Use the `UpdateVehicle` method instead.
545
- # UpdateVehicleLocation updates the location of the vehicle.
546
- #
547
- # @overload update_vehicle_location(request, options = nil)
548
- # Pass arguments to `update_vehicle_location` via a request object, either of type
549
- # {::Google::Maps::FleetEngine::V1::UpdateVehicleLocationRequest} or an equivalent Hash.
550
- #
551
- # @param request [::Google::Maps::FleetEngine::V1::UpdateVehicleLocationRequest, ::Hash]
552
- # A request object representing the call parameters. Required. To specify no
553
- # parameters, or to keep all the default parameter values, pass an empty Hash.
554
- # @param options [::Gapic::CallOptions, ::Hash]
555
- # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
556
- #
557
- # @overload update_vehicle_location(header: nil, name: nil, current_location: nil, current_state: nil)
558
- # Pass arguments to `update_vehicle_location` via keyword arguments. Note that at
559
- # least one keyword argument is required. To specify no parameters, or to keep all
560
- # the default parameter values, pass an empty Hash as a request object (see above).
561
- #
562
- # @param header [::Google::Maps::FleetEngine::V1::RequestHeader, ::Hash]
563
- # The standard Fleet Engine request header.
564
- # @param name [::String]
565
- # Required. Must be in the format
566
- # `providers/{provider}/vehicles/{vehicle}`.
567
- # The \\{provider} must be the Project ID (for example, `sample-cloud-project`)
568
- # of the Google Cloud Project of which the service account making
569
- # this call is a member.
570
- # @param current_location [::Google::Maps::FleetEngine::V1::VehicleLocation, ::Hash]
571
- # Required. The vehicle's most recent location. The `location` and
572
- # `update_time` subfields are required.
573
- # @param current_state [::Google::Maps::FleetEngine::V1::VehicleState]
574
- # Set the vehicle's state to either `ONLINE` or `OFFLINE`.
575
- # If set to `UNKNOWN_VEHICLE_STATE`, the vehicle's state will not be altered.
576
- # @yield [result, operation] Access the result along with the TransportOperation object
577
- # @yieldparam result [::Google::Maps::FleetEngine::V1::VehicleLocation]
578
- # @yieldparam operation [::Gapic::Rest::TransportOperation]
579
- #
580
- # @return [::Google::Maps::FleetEngine::V1::VehicleLocation]
581
- #
582
- # @raise [::Google::Cloud::Error] if the REST call is aborted.
583
- #
584
- # @example Basic example
585
- # require "google/maps/fleet_engine/v1"
586
- #
587
- # # Create a client object. The client can be reused for multiple calls.
588
- # client = Google::Maps::FleetEngine::V1::VehicleService::Rest::Client.new
589
- #
590
- # # Create a request. To set request fields, pass in keyword arguments.
591
- # request = Google::Maps::FleetEngine::V1::UpdateVehicleLocationRequest.new
592
- #
593
- # # Call the update_vehicle_location method.
594
- # result = client.update_vehicle_location request
595
- #
596
- # # The returned object is of type Google::Maps::FleetEngine::V1::VehicleLocation.
597
- # p result
598
- #
599
- def update_vehicle_location request, options = nil
600
- raise ::ArgumentError, "request must be provided" if request.nil?
601
-
602
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::V1::UpdateVehicleLocationRequest
603
-
604
- # Converts hash and nil to an options object
605
- options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
606
-
607
- # Customize the options with defaults
608
- call_metadata = @config.rpcs.update_vehicle_location.metadata.to_h
609
-
610
- # Set x-goog-api-client and x-goog-user-project headers
611
- call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
612
- lib_name: @config.lib_name, lib_version: @config.lib_version,
613
- gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
614
- transports_version_send: [:rest]
615
-
616
- call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
617
-
618
- options.apply_defaults timeout: @config.rpcs.update_vehicle_location.timeout,
619
- metadata: call_metadata,
620
- retry_policy: @config.rpcs.update_vehicle_location.retry_policy
621
-
622
- options.apply_defaults timeout: @config.timeout,
623
- metadata: @config.metadata,
624
- retry_policy: @config.retry_policy
625
-
626
- @vehicle_service_stub.update_vehicle_location request, options do |result, operation|
627
- yield result, operation if block_given?
628
- return result
629
- end
630
- rescue ::Gapic::Rest::Error => e
631
- raise ::Google::Cloud::Error.from_error(e)
632
- end
633
-
634
549
  ##
635
550
  # Partially updates a vehicle's attributes.
636
551
  # Only the attributes mentioned in the request will be updated, other
@@ -697,12 +612,13 @@ module Google
697
612
  # Customize the options with defaults
698
613
  call_metadata = @config.rpcs.update_vehicle_attributes.metadata.to_h
699
614
 
700
- # Set x-goog-api-client and x-goog-user-project headers
615
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
701
616
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
702
617
  lib_name: @config.lib_name, lib_version: @config.lib_version,
703
618
  gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
704
619
  transports_version_send: [:rest]
705
620
 
621
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
706
622
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
707
623
 
708
624
  options.apply_defaults timeout: @config.rpcs.update_vehicle_attributes.timeout,
@@ -896,12 +812,13 @@ module Google
896
812
  # Customize the options with defaults
897
813
  call_metadata = @config.rpcs.list_vehicles.metadata.to_h
898
814
 
899
- # Set x-goog-api-client and x-goog-user-project headers
815
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
900
816
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
901
817
  lib_name: @config.lib_name, lib_version: @config.lib_version,
902
818
  gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
903
819
  transports_version_send: [:rest]
904
820
 
821
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
905
822
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
906
823
 
907
824
  options.apply_defaults timeout: @config.rpcs.list_vehicles.timeout,
@@ -1106,12 +1023,13 @@ module Google
1106
1023
  # Customize the options with defaults
1107
1024
  call_metadata = @config.rpcs.search_vehicles.metadata.to_h
1108
1025
 
1109
- # Set x-goog-api-client and x-goog-user-project headers
1026
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1110
1027
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1111
1028
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1112
1029
  gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
1113
1030
  transports_version_send: [:rest]
1114
1031
 
1032
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1115
1033
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1116
1034
 
1117
1035
  options.apply_defaults timeout: @config.rpcs.search_vehicles.timeout,
@@ -1130,215 +1048,6 @@ module Google
1130
1048
  raise ::Google::Cloud::Error.from_error(e)
1131
1049
  end
1132
1050
 
1133
- ##
1134
- # Deprecated: Use `SearchVehicles` instead.
1135
- #
1136
- # @overload search_fuzzed_vehicles(request, options = nil)
1137
- # Pass arguments to `search_fuzzed_vehicles` via a request object, either of type
1138
- # {::Google::Maps::FleetEngine::V1::SearchVehiclesRequest} or an equivalent Hash.
1139
- #
1140
- # @param request [::Google::Maps::FleetEngine::V1::SearchVehiclesRequest, ::Hash]
1141
- # A request object representing the call parameters. Required. To specify no
1142
- # parameters, or to keep all the default parameter values, pass an empty Hash.
1143
- # @param options [::Gapic::CallOptions, ::Hash]
1144
- # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1145
- #
1146
- # @overload search_fuzzed_vehicles(header: nil, parent: nil, pickup_point: nil, dropoff_point: nil, pickup_radius_meters: nil, count: nil, minimum_capacity: nil, trip_types: nil, maximum_staleness: nil, vehicle_types: nil, required_attributes: nil, required_one_of_attributes: nil, required_one_of_attribute_sets: nil, order_by: nil, include_back_to_back: nil, trip_id: nil, current_trips_present: nil, filter: nil)
1147
- # Pass arguments to `search_fuzzed_vehicles` via keyword arguments. Note that at
1148
- # least one keyword argument is required. To specify no parameters, or to keep all
1149
- # the default parameter values, pass an empty Hash as a request object (see above).
1150
- #
1151
- # @param header [::Google::Maps::FleetEngine::V1::RequestHeader, ::Hash]
1152
- # The standard Fleet Engine request header.
1153
- # @param parent [::String]
1154
- # Required. Must be in the format `providers/{provider}`.
1155
- # The provider must be the Project ID (for example, `sample-cloud-project`)
1156
- # of the Google Cloud Project of which the service account making
1157
- # this call is a member.
1158
- # @param pickup_point [::Google::Maps::FleetEngine::V1::TerminalLocation, ::Hash]
1159
- # Required. The pickup point to search near.
1160
- # @param dropoff_point [::Google::Maps::FleetEngine::V1::TerminalLocation, ::Hash]
1161
- # The customer's intended dropoff location. The field is required if
1162
- # `trip_types` contains `TripType.SHARED`.
1163
- # @param pickup_radius_meters [::Integer]
1164
- # Required. Defines the vehicle search radius around the pickup point. Only
1165
- # vehicles within the search radius will be returned. Value must be between
1166
- # 400 and 10000 meters (inclusive).
1167
- # @param count [::Integer]
1168
- # Required. Specifies the maximum number of vehicles to return. The value
1169
- # must be between 1 and 50 (inclusive).
1170
- # @param minimum_capacity [::Integer]
1171
- # Required. Specifies the number of passengers being considered for a trip.
1172
- # The value must be greater than or equal to one. The driver is not
1173
- # considered in the capacity value.
1174
- # @param trip_types [::Array<::Google::Maps::FleetEngine::V1::TripType>]
1175
- # Required. Represents the type of proposed trip. Must include exactly one
1176
- # type. `UNKNOWN_TRIP_TYPE` is not allowed. Restricts the search to only
1177
- # those vehicles that can support that trip type.
1178
- # @param maximum_staleness [::Google::Protobuf::Duration, ::Hash]
1179
- # Restricts the search to only those vehicles that have sent location updates
1180
- # to Fleet Engine within the specified duration. Stationary vehicles still
1181
- # transmitting their locations are not considered stale. If this field is not
1182
- # set, the server uses five minutes as the default value.
1183
- # @param vehicle_types [::Array<::Google::Maps::FleetEngine::V1::Vehicle::VehicleType, ::Hash>]
1184
- # Required. Restricts the search to vehicles with one of the specified types.
1185
- # At least one vehicle type must be specified. VehicleTypes with a category
1186
- # of `UNKNOWN` are not allowed.
1187
- # @param required_attributes [::Array<::Google::Maps::FleetEngine::V1::VehicleAttribute, ::Hash>]
1188
- # Callers can form complex logical operations using any combination of the
1189
- # `required_attributes`, `required_one_of_attributes`, and
1190
- # `required_one_of_attribute_sets` fields.
1191
- #
1192
- # `required_attributes` is a list; `required_one_of_attributes` uses a
1193
- # message which allows a list of lists. In combination, the two fields allow
1194
- # the composition of this expression:
1195
- #
1196
- # ```
1197
- # (required_attributes[0] AND required_attributes[1] AND ...)
1198
- # AND
1199
- # (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR
1200
- # ...)
1201
- # AND
1202
- # (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR
1203
- # ...)
1204
- # ```
1205
- #
1206
- # Restricts the search to only those vehicles with the specified attributes.
1207
- # This field is a conjunction/AND operation. A max of 50 required_attributes
1208
- # is allowed. This matches the maximum number of attributes allowed on a
1209
- # vehicle.
1210
- # @param required_one_of_attributes [::Array<::Google::Maps::FleetEngine::V1::VehicleAttributeList, ::Hash>]
1211
- # Restricts the search to only those vehicles with at least one of
1212
- # the specified attributes in each `VehicleAttributeList`. Within each
1213
- # list, a vehicle must match at least one of the attributes. This field is an
1214
- # inclusive disjunction/OR operation in each `VehicleAttributeList` and a
1215
- # conjunction/AND operation across the collection of `VehicleAttributeList`.
1216
- # @param required_one_of_attribute_sets [::Array<::Google::Maps::FleetEngine::V1::VehicleAttributeList, ::Hash>]
1217
- # `required_one_of_attribute_sets` provides additional functionality.
1218
- #
1219
- # Similar to `required_one_of_attributes`, `required_one_of_attribute_sets`
1220
- # uses a message which allows a list of lists, allowing expressions such as
1221
- # this one:
1222
- #
1223
- # ```
1224
- # (required_attributes[0] AND required_attributes[1] AND ...)
1225
- # AND
1226
- # (
1227
- # (required_one_of_attribute_sets[0][0] AND
1228
- # required_one_of_attribute_sets[0][1] AND
1229
- # ...)
1230
- # OR
1231
- # (required_one_of_attribute_sets[1][0] AND
1232
- # required_one_of_attribute_sets[1][1] AND
1233
- # ...)
1234
- # )
1235
- # ```
1236
- #
1237
- # Restricts the search to only those vehicles with all the attributes in a
1238
- # `VehicleAttributeList`. Within each list, a
1239
- # vehicle must match all of the attributes. This field is a conjunction/AND
1240
- # operation in each `VehicleAttributeList` and inclusive disjunction/OR
1241
- # operation across the collection of `VehicleAttributeList`.
1242
- # @param order_by [::Google::Maps::FleetEngine::V1::SearchVehiclesRequest::VehicleMatchOrder]
1243
- # Required. Specifies the desired ordering criterion for results.
1244
- # @param include_back_to_back [::Boolean]
1245
- # This indicates if vehicles with a single active trip are eligible for this
1246
- # search. This field is only used when `current_trips_present` is
1247
- # unspecified. When `current_trips_present` is unspecified and this field
1248
- # is `false`, vehicles with assigned trips are excluded from the search
1249
- # results. When `current_trips_present` is unspecified and this field is
1250
- # `true`, search results can include vehicles with one active trip that has a
1251
- # status of `ENROUTE_TO_DROPOFF`. When `current_trips_present` is specified,
1252
- # this field cannot be set to true.
1253
- #
1254
- # The default value is `false`.
1255
- # @param trip_id [::String]
1256
- # Indicates the trip associated with this `SearchVehicleRequest`.
1257
- # @param current_trips_present [::Google::Maps::FleetEngine::V1::SearchVehiclesRequest::CurrentTripsPresent]
1258
- # This indicates if vehicles with active trips are eligible for this search.
1259
- # This must be set to something other than
1260
- # `CURRENT_TRIPS_PRESENT_UNSPECIFIED` if `trip_type` includes `SHARED`.
1261
- # @param filter [::String]
1262
- # Optional. A filter query to apply when searching vehicles. See
1263
- # http://aip.dev/160 for examples of the filter syntax.
1264
- #
1265
- # This field is designed to replace the `required_attributes`,
1266
- # `required_one_of_attributes`, and `required_one_of_attributes_sets` fields.
1267
- # If a non-empty value is specified here, the following fields must be empty:
1268
- # `required_attributes`, `required_one_of_attributes`, and
1269
- # `required_one_of_attributes_sets`.
1270
- #
1271
- # This filter functions as an AND clause with other constraints,
1272
- # such as `minimum_capacity` or `vehicle_types`.
1273
- #
1274
- # Note that the only queries supported are on vehicle attributes (for
1275
- # example, `attributes.<key> = <value>` or `attributes.<key1> = <value1> AND
1276
- # attributes.<key2> = <value2>`). The maximum number of restrictions allowed
1277
- # in a filter query is 50.
1278
- #
1279
- # Also, all attributes are stored as strings, so the only supported
1280
- # comparisons against attributes are string comparisons. In order to compare
1281
- # against number or boolean values, the values must be explicitly quoted to
1282
- # be treated as strings (for example, `attributes.<key> = "10"` or
1283
- # `attributes.<key> = "true"`).
1284
- # @yield [result, operation] Access the result along with the TransportOperation object
1285
- # @yieldparam result [::Google::Maps::FleetEngine::V1::SearchVehiclesResponse]
1286
- # @yieldparam operation [::Gapic::Rest::TransportOperation]
1287
- #
1288
- # @return [::Google::Maps::FleetEngine::V1::SearchVehiclesResponse]
1289
- #
1290
- # @raise [::Google::Cloud::Error] if the REST call is aborted.
1291
- #
1292
- # @example Basic example
1293
- # require "google/maps/fleet_engine/v1"
1294
- #
1295
- # # Create a client object. The client can be reused for multiple calls.
1296
- # client = Google::Maps::FleetEngine::V1::VehicleService::Rest::Client.new
1297
- #
1298
- # # Create a request. To set request fields, pass in keyword arguments.
1299
- # request = Google::Maps::FleetEngine::V1::SearchVehiclesRequest.new
1300
- #
1301
- # # Call the search_fuzzed_vehicles method.
1302
- # result = client.search_fuzzed_vehicles request
1303
- #
1304
- # # The returned object is of type Google::Maps::FleetEngine::V1::SearchVehiclesResponse.
1305
- # p result
1306
- #
1307
- def search_fuzzed_vehicles request, options = nil
1308
- raise ::ArgumentError, "request must be provided" if request.nil?
1309
-
1310
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Maps::FleetEngine::V1::SearchVehiclesRequest
1311
-
1312
- # Converts hash and nil to an options object
1313
- options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1314
-
1315
- # Customize the options with defaults
1316
- call_metadata = @config.rpcs.search_fuzzed_vehicles.metadata.to_h
1317
-
1318
- # Set x-goog-api-client and x-goog-user-project headers
1319
- call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1320
- lib_name: @config.lib_name, lib_version: @config.lib_version,
1321
- gapic_version: ::Google::Maps::FleetEngine::V1::VERSION,
1322
- transports_version_send: [:rest]
1323
-
1324
- call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1325
-
1326
- options.apply_defaults timeout: @config.rpcs.search_fuzzed_vehicles.timeout,
1327
- metadata: call_metadata,
1328
- retry_policy: @config.rpcs.search_fuzzed_vehicles.retry_policy
1329
-
1330
- options.apply_defaults timeout: @config.timeout,
1331
- metadata: @config.metadata,
1332
- retry_policy: @config.retry_policy
1333
-
1334
- @vehicle_service_stub.search_fuzzed_vehicles request, options do |result, operation|
1335
- yield result, operation if block_given?
1336
- return result
1337
- end
1338
- rescue ::Gapic::Rest::Error => e
1339
- raise ::Google::Cloud::Error.from_error(e)
1340
- end
1341
-
1342
1051
  ##
1343
1052
  # Configuration class for the VehicleService REST API.
1344
1053
  #
@@ -1488,11 +1197,6 @@ module Google
1488
1197
  #
1489
1198
  attr_reader :update_vehicle
1490
1199
  ##
1491
- # RPC-specific configuration for `update_vehicle_location`
1492
- # @return [::Gapic::Config::Method]
1493
- #
1494
- attr_reader :update_vehicle_location
1495
- ##
1496
1200
  # RPC-specific configuration for `update_vehicle_attributes`
1497
1201
  # @return [::Gapic::Config::Method]
1498
1202
  #
@@ -1507,11 +1211,6 @@ module Google
1507
1211
  # @return [::Gapic::Config::Method]
1508
1212
  #
1509
1213
  attr_reader :search_vehicles
1510
- ##
1511
- # RPC-specific configuration for `search_fuzzed_vehicles`
1512
- # @return [::Gapic::Config::Method]
1513
- #
1514
- attr_reader :search_fuzzed_vehicles
1515
1214
 
1516
1215
  # @private
1517
1216
  def initialize parent_rpcs = nil
@@ -1521,16 +1220,12 @@ module Google
1521
1220
  @get_vehicle = ::Gapic::Config::Method.new get_vehicle_config
1522
1221
  update_vehicle_config = parent_rpcs.update_vehicle if parent_rpcs.respond_to? :update_vehicle
1523
1222
  @update_vehicle = ::Gapic::Config::Method.new update_vehicle_config
1524
- update_vehicle_location_config = parent_rpcs.update_vehicle_location if parent_rpcs.respond_to? :update_vehicle_location
1525
- @update_vehicle_location = ::Gapic::Config::Method.new update_vehicle_location_config
1526
1223
  update_vehicle_attributes_config = parent_rpcs.update_vehicle_attributes if parent_rpcs.respond_to? :update_vehicle_attributes
1527
1224
  @update_vehicle_attributes = ::Gapic::Config::Method.new update_vehicle_attributes_config
1528
1225
  list_vehicles_config = parent_rpcs.list_vehicles if parent_rpcs.respond_to? :list_vehicles
1529
1226
  @list_vehicles = ::Gapic::Config::Method.new list_vehicles_config
1530
1227
  search_vehicles_config = parent_rpcs.search_vehicles if parent_rpcs.respond_to? :search_vehicles
1531
1228
  @search_vehicles = ::Gapic::Config::Method.new search_vehicles_config
1532
- search_fuzzed_vehicles_config = parent_rpcs.search_fuzzed_vehicles if parent_rpcs.respond_to? :search_fuzzed_vehicles
1533
- @search_fuzzed_vehicles = ::Gapic::Config::Method.new search_fuzzed_vehicles_config
1534
1229
 
1535
1230
  yield self if block_given?
1536
1231
  end
@@ -175,44 +175,6 @@ module Google
175
175
  result
176
176
  end
177
177
 
178
- ##
179
- # Baseline implementation for the update_vehicle_location REST call
180
- #
181
- # @param request_pb [::Google::Maps::FleetEngine::V1::UpdateVehicleLocationRequest]
182
- # A request object representing the call parameters. Required.
183
- # @param options [::Gapic::CallOptions]
184
- # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
185
- #
186
- # @yield [result, operation] Access the result along with the TransportOperation object
187
- # @yieldparam result [::Google::Maps::FleetEngine::V1::VehicleLocation]
188
- # @yieldparam operation [::Gapic::Rest::TransportOperation]
189
- #
190
- # @return [::Google::Maps::FleetEngine::V1::VehicleLocation]
191
- # A result object deserialized from the server's reply
192
- def update_vehicle_location request_pb, options = nil
193
- raise ::ArgumentError, "request must be provided" if request_pb.nil?
194
-
195
- verb, uri, query_string_params, body = ServiceStub.transcode_update_vehicle_location_request request_pb
196
- query_string_params = if query_string_params.any?
197
- query_string_params.to_h { |p| p.split "=", 2 }
198
- else
199
- {}
200
- end
201
-
202
- response = @client_stub.make_http_request(
203
- verb,
204
- uri: uri,
205
- body: body || "",
206
- params: query_string_params,
207
- options: options
208
- )
209
- operation = ::Gapic::Rest::TransportOperation.new response
210
- result = ::Google::Maps::FleetEngine::V1::VehicleLocation.decode_json response.body, ignore_unknown_fields: true
211
-
212
- yield result, operation if block_given?
213
- result
214
- end
215
-
216
178
  ##
217
179
  # Baseline implementation for the update_vehicle_attributes REST call
218
180
  #
@@ -327,44 +289,6 @@ module Google
327
289
  result
328
290
  end
329
291
 
330
- ##
331
- # Baseline implementation for the search_fuzzed_vehicles REST call
332
- #
333
- # @param request_pb [::Google::Maps::FleetEngine::V1::SearchVehiclesRequest]
334
- # A request object representing the call parameters. Required.
335
- # @param options [::Gapic::CallOptions]
336
- # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
337
- #
338
- # @yield [result, operation] Access the result along with the TransportOperation object
339
- # @yieldparam result [::Google::Maps::FleetEngine::V1::SearchVehiclesResponse]
340
- # @yieldparam operation [::Gapic::Rest::TransportOperation]
341
- #
342
- # @return [::Google::Maps::FleetEngine::V1::SearchVehiclesResponse]
343
- # A result object deserialized from the server's reply
344
- def search_fuzzed_vehicles request_pb, options = nil
345
- raise ::ArgumentError, "request must be provided" if request_pb.nil?
346
-
347
- verb, uri, query_string_params, body = ServiceStub.transcode_search_fuzzed_vehicles_request request_pb
348
- query_string_params = if query_string_params.any?
349
- query_string_params.to_h { |p| p.split "=", 2 }
350
- else
351
- {}
352
- end
353
-
354
- response = @client_stub.make_http_request(
355
- verb,
356
- uri: uri,
357
- body: body || "",
358
- params: query_string_params,
359
- options: options
360
- )
361
- operation = ::Gapic::Rest::TransportOperation.new response
362
- result = ::Google::Maps::FleetEngine::V1::SearchVehiclesResponse.decode_json response.body, ignore_unknown_fields: true
363
-
364
- yield result, operation if block_given?
365
- result
366
- end
367
-
368
292
  ##
369
293
  # @private
370
294
  #
@@ -430,28 +354,6 @@ module Google
430
354
  transcoder.transcode request_pb
431
355
  end
432
356
 
433
- ##
434
- # @private
435
- #
436
- # GRPC transcoding helper method for the update_vehicle_location REST call
437
- #
438
- # @param request_pb [::Google::Maps::FleetEngine::V1::UpdateVehicleLocationRequest]
439
- # A request object representing the call parameters. Required.
440
- # @return [Array(String, [String, nil], Hash{String => String})]
441
- # Uri, Body, Query string parameters
442
- def self.transcode_update_vehicle_location_request request_pb
443
- transcoder = Gapic::Rest::GrpcTranscoder.new
444
- .with_bindings(
445
- uri_method: :put,
446
- uri_template: "/v1/{name}:updateLocation",
447
- body: "*",
448
- matches: [
449
- ["name", %r{^providers/[^/]+/vehicles/[^/]+/?$}, false]
450
- ]
451
- )
452
- transcoder.transcode request_pb
453
- end
454
-
455
357
  ##
456
358
  # @private
457
359
  #
@@ -516,28 +418,6 @@ module Google
516
418
  )
517
419
  transcoder.transcode request_pb
518
420
  end
519
-
520
- ##
521
- # @private
522
- #
523
- # GRPC transcoding helper method for the search_fuzzed_vehicles REST call
524
- #
525
- # @param request_pb [::Google::Maps::FleetEngine::V1::SearchVehiclesRequest]
526
- # A request object representing the call parameters. Required.
527
- # @return [Array(String, [String, nil], Hash{String => String})]
528
- # Uri, Body, Query string parameters
529
- def self.transcode_search_fuzzed_vehicles_request request_pb
530
- transcoder = Gapic::Rest::GrpcTranscoder.new
531
- .with_bindings(
532
- uri_method: :post,
533
- uri_template: "/v1/{parent}/vehicles:searchFuzzed",
534
- body: "*",
535
- matches: [
536
- ["parent", %r{^providers/[^/]+/?$}, false]
537
- ]
538
- )
539
- transcoder.transcode request_pb
540
- end
541
421
  end
542
422
  end
543
423
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Maps
22
22
  module FleetEngine
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end