Class: Google::Apis::QpxExpressV1::SliceInput
- Inherits:
-
Object
- Object
- Google::Apis::QpxExpressV1::SliceInput
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/qpx_express_v1/classes.rb,
generated/google/apis/qpx_express_v1/representations.rb,
generated/google/apis/qpx_express_v1/representations.rb
Overview
Criteria a desired slice must satisfy.
Instance Attribute Summary collapse
-
#alliance ⇒ String
Slices with only the carriers in this alliance should be returned; do not use this field with permittedCarrier.
-
#date ⇒ String
Departure date in YYYY-MM-DD format.
-
#destination ⇒ String
Airport or city IATA designator of the destination.
-
#kind ⇒ String
Identifies this as a slice input object, representing the criteria a desired slice must satisfy.
-
#max_connection_duration ⇒ Fixnum
The longest connection between two legs, in minutes, you are willing to accept.
-
#max_stops ⇒ Fixnum
The maximum number of stops you are willing to accept in this slice.
-
#origin ⇒ String
Airport or city IATA designator of the origin.
-
#permitted_carrier ⇒ Array<String>
A list of 2-letter IATA airline designators.
-
#permitted_departure_time ⇒ Google::Apis::QpxExpressV1::TimeOfDayRange
Two times in a single day defining a time range.
-
#preferred_cabin ⇒ String
Prefer solutions that book in this cabin for this slice.
-
#prohibited_carrier ⇒ Array<String>
A list of 2-letter IATA airline designators.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SliceInput
constructor
A new instance of SliceInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SliceInput
Returns a new instance of SliceInput
942 943 944 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 942 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alliance ⇒ String
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
886 887 888 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 886 def alliance @alliance end |
#date ⇒ String
Departure date in YYYY-MM-DD format.
Corresponds to the JSON property date
891 892 893 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 891 def date @date end |
#destination ⇒ String
Airport or city IATA designator of the destination.
Corresponds to the JSON property destination
896 897 898 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 896 def destination @destination end |
#kind ⇒ String
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
902 903 904 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 902 def kind @kind end |
#max_connection_duration ⇒ Fixnum
The longest connection between two legs, in minutes, you are willing to accept.
Corresponds to the JSON property maxConnectionDuration
907 908 909 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 907 def max_connection_duration @max_connection_duration end |
#max_stops ⇒ Fixnum
The maximum number of stops you are willing to accept in this slice.
Corresponds to the JSON property maxStops
912 913 914 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 912 def max_stops @max_stops end |
#origin ⇒ String
Airport or city IATA designator of the origin.
Corresponds to the JSON property origin
917 918 919 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 917 def origin @origin end |
#permitted_carrier ⇒ Array<String>
A list of 2-letter IATA airline designators. Slices with only these carriers
should be returned.
Corresponds to the JSON property permittedCarrier
923 924 925 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 923 def permitted_carrier @permitted_carrier end |
#permitted_departure_time ⇒ Google::Apis::QpxExpressV1::TimeOfDayRange
Two times in a single day defining a time range.
Corresponds to the JSON property permittedDepartureTime
928 929 930 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 928 def permitted_departure_time @permitted_departure_time end |
#preferred_cabin ⇒ String
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
934 935 936 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 934 def preferred_cabin @preferred_cabin end |
#prohibited_carrier ⇒ Array<String>
A list of 2-letter IATA airline designators. Exclude slices that use these
carriers.
Corresponds to the JSON property prohibitedCarrier
940 941 942 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 940 def prohibited_carrier @prohibited_carrier end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
947 948 949 950 951 952 953 954 955 956 957 958 959 |
# 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 |