Autogenerated update (2017-10-15)
Delete: - qpx_express_v1
This commit is contained in:
parent
1a1e0fff8c
commit
a4631910de
|
@ -1,31 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/qpx_express_v1/service.rb'
|
||||
require 'google/apis/qpx_express_v1/classes.rb'
|
||||
require 'google/apis/qpx_express_v1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# QPX Express API
|
||||
#
|
||||
# Finds the least expensive flights between an origin and a destination.
|
||||
#
|
||||
# @see http://developers.google.com/qpx-express
|
||||
module QpxExpressV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160708'
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
|
@ -1,473 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module QpxExpressV1
|
||||
|
||||
class AircraftData
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AirportData
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BagDescriptor
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CarrierData
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CityData
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Data
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FareInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FlightInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FreeBaggageAllowance
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LegInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PassengerCounts
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PricingInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SegmentInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SegmentPricing
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SliceInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SliceInput
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TaxData
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TaxInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TimeOfDayRange
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TripOption
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TripOptionsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TripOptionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SearchTripsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SearchTripsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AircraftData
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class AirportData
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :city, as: 'city'
|
||||
property :code, as: 'code'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class BagDescriptor
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :commercial_name, as: 'commercialName'
|
||||
property :count, as: 'count'
|
||||
collection :description, as: 'description'
|
||||
property :kind, as: 'kind'
|
||||
property :subcode, as: 'subcode'
|
||||
end
|
||||
end
|
||||
|
||||
class CarrierData
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class CityData
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
property :country, as: 'country'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class Data
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :aircraft, as: 'aircraft', class: Google::Apis::QpxExpressV1::AircraftData, decorator: Google::Apis::QpxExpressV1::AircraftData::Representation
|
||||
|
||||
collection :airport, as: 'airport', class: Google::Apis::QpxExpressV1::AirportData, decorator: Google::Apis::QpxExpressV1::AirportData::Representation
|
||||
|
||||
collection :carrier, as: 'carrier', class: Google::Apis::QpxExpressV1::CarrierData, decorator: Google::Apis::QpxExpressV1::CarrierData::Representation
|
||||
|
||||
collection :city, as: 'city', class: Google::Apis::QpxExpressV1::CityData, decorator: Google::Apis::QpxExpressV1::CityData::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
collection :tax, as: 'tax', class: Google::Apis::QpxExpressV1::TaxData, decorator: Google::Apis::QpxExpressV1::TaxData::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class FareInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :basis_code, as: 'basisCode'
|
||||
property :carrier, as: 'carrier'
|
||||
property :destination, as: 'destination'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :origin, as: 'origin'
|
||||
property :private, as: 'private'
|
||||
end
|
||||
end
|
||||
|
||||
class FlightInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :carrier, as: 'carrier'
|
||||
property :number, as: 'number'
|
||||
end
|
||||
end
|
||||
|
||||
class FreeBaggageAllowance
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :bag_descriptor, as: 'bagDescriptor', class: Google::Apis::QpxExpressV1::BagDescriptor, decorator: Google::Apis::QpxExpressV1::BagDescriptor::Representation
|
||||
|
||||
property :kilos, as: 'kilos'
|
||||
property :kilos_per_piece, as: 'kilosPerPiece'
|
||||
property :kind, as: 'kind'
|
||||
property :pieces, as: 'pieces'
|
||||
property :pounds, as: 'pounds'
|
||||
end
|
||||
end
|
||||
|
||||
class LegInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :aircraft, as: 'aircraft'
|
||||
property :arrival_time, as: 'arrivalTime'
|
||||
property :change_plane, as: 'changePlane'
|
||||
property :connection_duration, as: 'connectionDuration'
|
||||
property :departure_time, as: 'departureTime'
|
||||
property :destination, as: 'destination'
|
||||
property :destination_terminal, as: 'destinationTerminal'
|
||||
property :duration, as: 'duration'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :meal, as: 'meal'
|
||||
property :mileage, as: 'mileage'
|
||||
property :on_time_performance, as: 'onTimePerformance'
|
||||
property :operating_disclosure, as: 'operatingDisclosure'
|
||||
property :origin, as: 'origin'
|
||||
property :origin_terminal, as: 'originTerminal'
|
||||
property :secure, as: 'secure'
|
||||
end
|
||||
end
|
||||
|
||||
class PassengerCounts
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :adult_count, as: 'adultCount'
|
||||
property :child_count, as: 'childCount'
|
||||
property :infant_in_lap_count, as: 'infantInLapCount'
|
||||
property :infant_in_seat_count, as: 'infantInSeatCount'
|
||||
property :kind, as: 'kind'
|
||||
property :senior_count, as: 'seniorCount'
|
||||
end
|
||||
end
|
||||
|
||||
class PricingInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :base_fare_total, as: 'baseFareTotal'
|
||||
collection :fare, as: 'fare', class: Google::Apis::QpxExpressV1::FareInfo, decorator: Google::Apis::QpxExpressV1::FareInfo::Representation
|
||||
|
||||
property :fare_calculation, as: 'fareCalculation'
|
||||
property :kind, as: 'kind'
|
||||
property :latest_ticketing_time, as: 'latestTicketingTime'
|
||||
property :passengers, as: 'passengers', class: Google::Apis::QpxExpressV1::PassengerCounts, decorator: Google::Apis::QpxExpressV1::PassengerCounts::Representation
|
||||
|
||||
property :ptc, as: 'ptc'
|
||||
property :refundable, as: 'refundable'
|
||||
property :sale_fare_total, as: 'saleFareTotal'
|
||||
property :sale_tax_total, as: 'saleTaxTotal'
|
||||
property :sale_total, as: 'saleTotal'
|
||||
collection :segment_pricing, as: 'segmentPricing', class: Google::Apis::QpxExpressV1::SegmentPricing, decorator: Google::Apis::QpxExpressV1::SegmentPricing::Representation
|
||||
|
||||
collection :tax, as: 'tax', class: Google::Apis::QpxExpressV1::TaxInfo, decorator: Google::Apis::QpxExpressV1::TaxInfo::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SegmentInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :booking_code, as: 'bookingCode'
|
||||
property :booking_code_count, as: 'bookingCodeCount'
|
||||
property :cabin, as: 'cabin'
|
||||
property :connection_duration, as: 'connectionDuration'
|
||||
property :duration, as: 'duration'
|
||||
property :flight, as: 'flight', class: Google::Apis::QpxExpressV1::FlightInfo, decorator: Google::Apis::QpxExpressV1::FlightInfo::Representation
|
||||
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
collection :leg, as: 'leg', class: Google::Apis::QpxExpressV1::LegInfo, decorator: Google::Apis::QpxExpressV1::LegInfo::Representation
|
||||
|
||||
property :married_segment_group, as: 'marriedSegmentGroup'
|
||||
property :subject_to_government_approval, as: 'subjectToGovernmentApproval'
|
||||
end
|
||||
end
|
||||
|
||||
class SegmentPricing
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :fare_id, as: 'fareId'
|
||||
collection :free_baggage_option, as: 'freeBaggageOption', class: Google::Apis::QpxExpressV1::FreeBaggageAllowance, decorator: Google::Apis::QpxExpressV1::FreeBaggageAllowance::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :segment_id, as: 'segmentId'
|
||||
end
|
||||
end
|
||||
|
||||
class SliceInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :duration, as: 'duration'
|
||||
property :kind, as: 'kind'
|
||||
collection :segment, as: 'segment', class: Google::Apis::QpxExpressV1::SegmentInfo, decorator: Google::Apis::QpxExpressV1::SegmentInfo::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SliceInput
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :alliance, as: 'alliance'
|
||||
property :date, as: 'date'
|
||||
property :destination, as: 'destination'
|
||||
property :kind, as: 'kind'
|
||||
property :max_connection_duration, as: 'maxConnectionDuration'
|
||||
property :max_stops, as: 'maxStops'
|
||||
property :origin, as: 'origin'
|
||||
collection :permitted_carrier, as: 'permittedCarrier'
|
||||
property :permitted_departure_time, as: 'permittedDepartureTime', class: Google::Apis::QpxExpressV1::TimeOfDayRange, decorator: Google::Apis::QpxExpressV1::TimeOfDayRange::Representation
|
||||
|
||||
property :preferred_cabin, as: 'preferredCabin'
|
||||
collection :prohibited_carrier, as: 'prohibitedCarrier'
|
||||
end
|
||||
end
|
||||
|
||||
class TaxData
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class TaxInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :charge_type, as: 'chargeType'
|
||||
property :code, as: 'code'
|
||||
property :country, as: 'country'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :sale_price, as: 'salePrice'
|
||||
end
|
||||
end
|
||||
|
||||
class TimeOfDayRange
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :earliest_time, as: 'earliestTime'
|
||||
property :kind, as: 'kind'
|
||||
property :latest_time, as: 'latestTime'
|
||||
end
|
||||
end
|
||||
|
||||
class TripOption
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
collection :pricing, as: 'pricing', class: Google::Apis::QpxExpressV1::PricingInfo, decorator: Google::Apis::QpxExpressV1::PricingInfo::Representation
|
||||
|
||||
property :sale_total, as: 'saleTotal'
|
||||
collection :slice, as: 'slice', class: Google::Apis::QpxExpressV1::SliceInfo, decorator: Google::Apis::QpxExpressV1::SliceInfo::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class TripOptionsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :max_price, as: 'maxPrice'
|
||||
property :passengers, as: 'passengers', class: Google::Apis::QpxExpressV1::PassengerCounts, decorator: Google::Apis::QpxExpressV1::PassengerCounts::Representation
|
||||
|
||||
property :refundable, as: 'refundable'
|
||||
property :sale_country, as: 'saleCountry'
|
||||
collection :slice, as: 'slice', class: Google::Apis::QpxExpressV1::SliceInput, decorator: Google::Apis::QpxExpressV1::SliceInput::Representation
|
||||
|
||||
property :solutions, as: 'solutions'
|
||||
property :ticketing_country, as: 'ticketingCountry'
|
||||
end
|
||||
end
|
||||
|
||||
class TripOptionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :data, as: 'data', class: Google::Apis::QpxExpressV1::Data, decorator: Google::Apis::QpxExpressV1::Data::Representation
|
||||
|
||||
property :kind, as: 'kind'
|
||||
property :request_id, as: 'requestId'
|
||||
collection :trip_option, as: 'tripOption', class: Google::Apis::QpxExpressV1::TripOption, decorator: Google::Apis::QpxExpressV1::TripOption::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SearchTripsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :request, as: 'request', class: Google::Apis::QpxExpressV1::TripOptionsRequest, decorator: Google::Apis::QpxExpressV1::TripOptionsRequest::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SearchTripsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :trips, as: 'trips', class: Google::Apis::QpxExpressV1::TripOptionsResponse, decorator: Google::Apis::QpxExpressV1::TripOptionsResponse::Representation
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,101 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module QpxExpressV1
|
||||
# QPX Express API
|
||||
#
|
||||
# Finds the least expensive flights between an origin and a destination.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/qpx_express_v1'
|
||||
#
|
||||
# QpxExpress = Google::Apis::QpxExpressV1 # Alias the module
|
||||
# service = QpxExpress::QPXExpressService.new
|
||||
#
|
||||
# @see http://developers.google.com/qpx-express
|
||||
class QPXExpressService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
attr_accessor :quota_user
|
||||
|
||||
# @return [String]
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
attr_accessor :user_ip
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'qpxExpress/v1/trips/')
|
||||
@batch_path = 'batch/qpxExpress/v1'
|
||||
end
|
||||
|
||||
# Returns a list of flights.
|
||||
# @param [Google::Apis::QpxExpressV1::SearchTripsRequest] search_trips_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::QpxExpressV1::SearchTripsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::QpxExpressV1::SearchTripsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def search_trips(search_trips_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'search', options)
|
||||
command.request_representation = Google::Apis::QpxExpressV1::SearchTripsRequest::Representation
|
||||
command.request_object = search_trips_request_object
|
||||
command.response_representation = Google::Apis::QpxExpressV1::SearchTripsResponse::Representation
|
||||
command.response_class = Google::Apis::QpxExpressV1::SearchTripsResponse
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue