class Google::Apis::QpxExpressV1::SliceInput

Criteria a desired slice must satisfy.

Attributes

alliance[RW]

Slices with only the carriers in this alliance should be returned; do not use this field with permittedCarrier. Allowed values are ONEWORLD, SKYTEAM, and STAR. Corresponds to the JSON property `alliance` @return [String]

date[RW]

Departure date in YYYY-MM-DD format. Corresponds to the JSON property `date` @return [String]

destination[RW]

Airport or city IATA designator of the destination. Corresponds to the JSON property `destination` @return [String]

kind[RW]

Identifies this as a slice input object, representing the criteria a desired slice must satisfy. Value: the fixed string qpxexpress#sliceInput. Corresponds to the JSON property `kind` @return [String]

max_connection_duration[RW]

The longest connection between two legs, in minutes, you are willing to accept. Corresponds to the JSON property `maxConnectionDuration` @return [Fixnum]

max_stops[RW]

The maximum number of stops you are willing to accept in this slice. Corresponds to the JSON property `maxStops` @return [Fixnum]

origin[RW]

Airport or city IATA designator of the origin. Corresponds to the JSON property `origin` @return [String]

permitted_carrier[RW]

A list of 2-letter IATA airline designators. Slices with only these carriers should be returned. Corresponds to the JSON property `permittedCarrier` @return [Array<String>]

permitted_departure_time[RW]

Two times in a single day defining a time range. Corresponds to the JSON property `permittedDepartureTime` @return [Google::Apis::QpxExpressV1::TimeOfDayRange]

preferred_cabin[RW]

Prefer solutions that book in this cabin for this slice. Allowed values are COACH, PREMIUM_COACH, BUSINESS, and FIRST. Corresponds to the JSON property `preferredCabin` @return [String]

prohibited_carrier[RW]

A list of 2-letter IATA airline designators. Exclude slices that use these carriers. Corresponds to the JSON property `prohibitedCarrier` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/qpx_express_v1/classes.rb, line 942
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/qpx_express_v1/classes.rb, line 947
def update!(**args)
  @alliance = args[:alliance] if args.key?(:alliance)
  @date = args[:date] if args.key?(:date)
  @destination = args[:destination] if args.key?(:destination)
  @kind = args[:kind] if args.key?(:kind)
  @max_connection_duration = args[:max_connection_duration] if args.key?(:max_connection_duration)
  @max_stops = args[:max_stops] if args.key?(:max_stops)
  @origin = args[:origin] if args.key?(:origin)
  @permitted_carrier = args[:permitted_carrier] if args.key?(:permitted_carrier)
  @permitted_departure_time = args[:permitted_departure_time] if args.key?(:permitted_departure_time)
  @preferred_cabin = args[:preferred_cabin] if args.key?(:preferred_cabin)
  @prohibited_carrier = args[:prohibited_carrier] if args.key?(:prohibited_carrier)
end