google-api-client 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +75 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -35
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -2
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +958 -82
  7. data/generated/google/apis/admin_directory_v1.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1/classes.rb +147 -0
  9. data/generated/google/apis/admin_directory_v1/representations.rb +54 -0
  10. data/generated/google/apis/admin_directory_v1/service.rb +71 -1
  11. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  12. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -19
  13. data/generated/google/apis/androidenterprise_v1/service.rb +39 -0
  14. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  15. data/generated/google/apis/androidmanagement_v1/classes.rb +12 -11
  16. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  17. data/generated/google/apis/androidpublisher_v2/classes.rb +0 -189
  18. data/generated/google/apis/androidpublisher_v2/representations.rb +0 -120
  19. data/generated/google/apis/androidpublisher_v2/service.rb +0 -35
  20. data/generated/google/apis/appengine_v1.rb +1 -1
  21. data/generated/google/apis/appengine_v1/classes.rb +1 -46
  22. data/generated/google/apis/appengine_v1/representations.rb +0 -17
  23. data/generated/google/apis/appengine_v1/service.rb +5 -1
  24. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  25. data/generated/google/apis/appengine_v1alpha/classes.rb +0 -45
  26. data/generated/google/apis/appengine_v1alpha/representations.rb +0 -17
  27. data/generated/google/apis/appengine_v1alpha/service.rb +5 -1
  28. data/generated/google/apis/appengine_v1beta.rb +1 -1
  29. data/generated/google/apis/appengine_v1beta/classes.rb +5 -47
  30. data/generated/google/apis/appengine_v1beta/representations.rb +0 -17
  31. data/generated/google/apis/appengine_v1beta/service.rb +5 -1
  32. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  33. data/generated/google/apis/appengine_v1beta4/classes.rb +44 -45
  34. data/generated/google/apis/appengine_v1beta4/representations.rb +16 -17
  35. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  36. data/generated/google/apis/appengine_v1beta5/classes.rb +4 -46
  37. data/generated/google/apis/appengine_v1beta5/representations.rb +0 -17
  38. data/generated/google/apis/bigquery_v2.rb +1 -1
  39. data/generated/google/apis/bigquery_v2/classes.rb +41 -24
  40. data/generated/google/apis/bigquery_v2/representations.rb +3 -0
  41. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  42. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +3 -7
  43. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +0 -1
  44. data/generated/google/apis/calendar_v3.rb +1 -1
  45. data/generated/google/apis/calendar_v3/service.rb +15 -3
  46. data/generated/google/apis/classroom_v1.rb +4 -1
  47. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  48. data/generated/google/apis/cloudbuild_v1/classes.rb +26 -0
  49. data/generated/google/apis/cloudbuild_v1/representations.rb +14 -0
  50. data/generated/google/apis/cloudbuild_v1/service.rb +91 -0
  51. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  52. data/generated/google/apis/cloudfunctions_v1/classes.rb +482 -0
  53. data/generated/google/apis/cloudfunctions_v1/representations.rb +210 -0
  54. data/generated/google/apis/cloudfunctions_v1/service.rb +288 -0
  55. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  56. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +119 -0
  57. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +68 -0
  58. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +77 -0
  59. data/generated/google/apis/cloudiot_v1.rb +1 -1
  60. data/generated/google/apis/cloudiot_v1/service.rb +7 -3
  61. data/generated/google/apis/cloudiot_v1beta1.rb +1 -1
  62. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  63. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +2 -4
  64. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +2 -2
  65. data/generated/google/apis/cloudtasks_v2beta2/service.rb +4 -14
  66. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  67. data/generated/google/apis/cloudtrace_v2/classes.rb +10 -7
  68. data/generated/google/apis/cloudtrace_v2/representations.rb +2 -2
  69. data/generated/google/apis/compute_alpha.rb +1 -1
  70. data/generated/google/apis/compute_alpha/classes.rb +143 -83
  71. data/generated/google/apis/compute_alpha/representations.rb +50 -30
  72. data/generated/google/apis/compute_alpha/service.rb +171 -5
  73. data/generated/google/apis/compute_beta.rb +1 -1
  74. data/generated/google/apis/compute_beta/classes.rb +47 -43
  75. data/generated/google/apis/compute_beta/representations.rb +1 -2
  76. data/generated/google/apis/compute_beta/service.rb +60 -5
  77. data/generated/google/apis/compute_v1.rb +1 -1
  78. data/generated/google/apis/compute_v1/classes.rb +1326 -168
  79. data/generated/google/apis/compute_v1/representations.rb +402 -0
  80. data/generated/google/apis/compute_v1/service.rb +751 -5
  81. data/generated/google/apis/container_v1beta1.rb +1 -1
  82. data/generated/google/apis/content_v2.rb +1 -1
  83. data/generated/google/apis/content_v2/classes.rb +23 -16
  84. data/generated/google/apis/content_v2/service.rb +142 -162
  85. data/generated/google/apis/content_v2sandbox.rb +1 -1
  86. data/generated/google/apis/content_v2sandbox/service.rb +43 -43
  87. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  88. data/generated/google/apis/dataflow_v1b3/classes.rb +44 -35
  89. data/generated/google/apis/dataflow_v1b3/representations.rb +6 -17
  90. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  91. data/generated/google/apis/dataproc_v1beta2/classes.rb +39 -37
  92. data/generated/google/apis/dataproc_v1beta2/service.rb +30 -30
  93. data/generated/google/apis/datastore_v1.rb +1 -1
  94. data/generated/google/apis/datastore_v1/classes.rb +39 -60
  95. data/generated/google/apis/datastore_v1/representations.rb +27 -0
  96. data/generated/google/apis/datastore_v1/service.rb +34 -0
  97. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  98. data/generated/google/apis/datastore_v1beta3/classes.rb +39 -60
  99. data/generated/google/apis/datastore_v1beta3/representations.rb +27 -0
  100. data/generated/google/apis/datastore_v1beta3/service.rb +34 -0
  101. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  102. data/generated/google/apis/deploymentmanager_alpha/classes.rb +108 -0
  103. data/generated/google/apis/deploymentmanager_alpha/representations.rb +50 -0
  104. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  105. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +6 -0
  106. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1 -0
  107. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  108. data/generated/google/apis/dlp_v2beta1/classes.rb +116 -10
  109. data/generated/google/apis/dlp_v2beta1/representations.rb +45 -0
  110. data/generated/google/apis/dns_v1beta2.rb +43 -0
  111. data/generated/google/apis/dns_v1beta2/classes.rb +915 -0
  112. data/generated/google/apis/dns_v1beta2/representations.rb +368 -0
  113. data/generated/google/apis/dns_v1beta2/service.rb +769 -0
  114. data/generated/google/apis/drive_v2.rb +1 -1
  115. data/generated/google/apis/drive_v2/classes.rb +6 -0
  116. data/generated/google/apis/drive_v2/representations.rb +2 -0
  117. data/generated/google/apis/drive_v2/service.rb +51 -8
  118. data/generated/google/apis/drive_v3.rb +1 -1
  119. data/generated/google/apis/drive_v3/classes.rb +6 -0
  120. data/generated/google/apis/drive_v3/representations.rb +2 -0
  121. data/generated/google/apis/drive_v3/service.rb +45 -7
  122. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  123. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +25 -0
  124. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +15 -0
  125. data/generated/google/apis/firebaseremoteconfig_v1.rb +1 -1
  126. data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +21 -1
  127. data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +2 -0
  128. data/generated/google/apis/firebaserules_v1.rb +1 -1
  129. data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
  130. data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
  131. data/generated/google/apis/firebaserules_v1/service.rb +37 -0
  132. data/generated/google/apis/firestore_v1beta1/classes.rb +29 -146
  133. data/generated/google/apis/firestore_v1beta1/representations.rb +8 -27
  134. data/generated/google/apis/firestore_v1beta1/service.rb +4 -8
  135. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  136. data/generated/google/apis/genomics_v1alpha2/classes.rb +18 -0
  137. data/generated/google/apis/genomics_v1alpha2/representations.rb +2 -0
  138. data/generated/google/apis/iam_v1.rb +1 -1
  139. data/generated/google/apis/iam_v1/classes.rb +5 -7
  140. data/generated/google/apis/language_v1.rb +1 -1
  141. data/generated/google/apis/language_v1/classes.rb +78 -0
  142. data/generated/google/apis/language_v1/representations.rb +45 -0
  143. data/generated/google/apis/language_v1/service.rb +30 -0
  144. data/generated/google/apis/language_v1beta2.rb +1 -1
  145. data/generated/google/apis/language_v1beta2/classes.rb +3 -1
  146. data/generated/google/apis/logging_v2.rb +1 -1
  147. data/generated/google/apis/logging_v2/classes.rb +9 -0
  148. data/generated/google/apis/logging_v2/representations.rb +1 -0
  149. data/generated/google/apis/logging_v2/service.rb +517 -0
  150. data/generated/google/apis/logging_v2beta1.rb +1 -1
  151. data/generated/google/apis/logging_v2beta1/classes.rb +9 -0
  152. data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
  153. data/generated/google/apis/manufacturers_v1.rb +1 -1
  154. data/generated/google/apis/manufacturers_v1/classes.rb +6 -6
  155. data/generated/google/apis/manufacturers_v1/representations.rb +1 -1
  156. data/generated/google/apis/ml_v1.rb +1 -1
  157. data/generated/google/apis/ml_v1/classes.rb +22 -6
  158. data/generated/google/apis/ml_v1/service.rb +8 -2
  159. data/generated/google/apis/monitoring_v3.rb +1 -1
  160. data/generated/google/apis/monitoring_v3/classes.rb +358 -0
  161. data/generated/google/apis/monitoring_v3/representations.rb +145 -0
  162. data/generated/google/apis/monitoring_v3/service.rb +229 -0
  163. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  164. data/generated/google/apis/oslogin_v1alpha/classes.rb +13 -8
  165. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  166. data/generated/google/apis/oslogin_v1alpha/service.rb +36 -1
  167. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  168. data/generated/google/apis/oslogin_v1beta/classes.rb +9 -4
  169. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  170. data/generated/google/apis/oslogin_v1beta/service.rb +36 -1
  171. data/generated/google/apis/partners_v2.rb +1 -1
  172. data/generated/google/apis/partners_v2/classes.rb +7 -60
  173. data/generated/google/apis/partners_v2/representations.rb +1 -0
  174. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  175. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  176. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -4
  177. data/generated/google/apis/script_v1.rb +2 -2
  178. data/generated/google/apis/script_v1/classes.rb +57 -51
  179. data/generated/google/apis/script_v1/representations.rb +0 -1
  180. data/generated/google/apis/script_v1/service.rb +2 -2
  181. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  182. data/generated/google/apis/servicecontrol_v1/classes.rb +5 -2
  183. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  184. data/generated/google/apis/servicemanagement_v1/classes.rb +13 -31
  185. data/generated/google/apis/serviceuser_v1.rb +1 -1
  186. data/generated/google/apis/serviceuser_v1/classes.rb +13 -31
  187. data/generated/google/apis/sheets_v4.rb +1 -1
  188. data/generated/google/apis/sheets_v4/classes.rb +1 -2
  189. data/generated/google/apis/slides_v1.rb +1 -1
  190. data/generated/google/apis/slides_v1/classes.rb +505 -11
  191. data/generated/google/apis/slides_v1/representations.rb +220 -0
  192. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  193. data/generated/google/apis/sourcerepo_v1/classes.rb +1 -1
  194. data/generated/google/apis/speech_v1.rb +1 -1
  195. data/generated/google/apis/speech_v1/classes.rb +10 -1
  196. data/generated/google/apis/speech_v1/representations.rb +1 -0
  197. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  198. data/generated/google/apis/sqladmin_v1beta4/classes.rb +127 -0
  199. data/generated/google/apis/sqladmin_v1beta4/representations.rb +63 -0
  200. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  201. data/generated/google/apis/storage_v1.rb +1 -1
  202. data/generated/google/apis/storage_v1/service.rb +51 -72
  203. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  204. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -61
  205. data/generated/google/apis/streetviewpublish_v1/service.rb +2 -1
  206. data/generated/google/apis/testing_v1.rb +1 -1
  207. data/generated/google/apis/testing_v1/classes.rb +8 -3
  208. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  209. data/generated/google/apis/toolresults_v1beta3/classes.rb +17 -16
  210. data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
  211. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  212. data/generated/google/apis/youtube_partner_v1/classes.rb +108 -0
  213. data/generated/google/apis/youtube_partner_v1/representations.rb +49 -0
  214. data/generated/google/apis/youtube_partner_v1/service.rb +42 -0
  215. data/google-api-client.gemspec +1 -1
  216. data/lib/google/apis/generator/model.rb +9 -3
  217. data/lib/google/apis/generator/templates/_class.tmpl +1 -1
  218. data/lib/google/apis/version.rb +1 -1
  219. metadata +14 -12
  220. data/generated/google/apis/playmoviespartner_v1.rb +0 -34
  221. data/generated/google/apis/playmoviespartner_v1/classes.rb +0 -782
  222. data/generated/google/apis/playmoviespartner_v1/representations.rb +0 -191
  223. data/generated/google/apis/playmoviespartner_v1/service.rb +0 -354
  224. data/generated/google/apis/qpx_express_v1.rb +0 -31
  225. data/generated/google/apis/qpx_express_v1/classes.rb +0 -1274
  226. data/generated/google/apis/qpx_express_v1/representations.rb +0 -473
  227. data/generated/google/apis/qpx_express_v1/service.rb +0 -101
@@ -1,31 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'google/apis/qpx_express_v1/service.rb'
16
- require 'google/apis/qpx_express_v1/classes.rb'
17
- require 'google/apis/qpx_express_v1/representations.rb'
18
-
19
- module Google
20
- module Apis
21
- # QPX Express API
22
- #
23
- # Finds the least expensive flights between an origin and a destination.
24
- #
25
- # @see http://developers.google.com/qpx-express
26
- module QpxExpressV1
27
- VERSION = 'V1'
28
- REVISION = '20160708'
29
- end
30
- end
31
- end
@@ -1,1274 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'date'
16
- require 'google/apis/core/base_service'
17
- require 'google/apis/core/json_representation'
18
- require 'google/apis/core/hashable'
19
- require 'google/apis/errors'
20
-
21
- module Google
22
- module Apis
23
- module QpxExpressV1
24
-
25
- # The make, model, and type of an aircraft.
26
- class AircraftData
27
- include Google::Apis::Core::Hashable
28
-
29
- # The aircraft code. For example, for a Boeing 777 the code would be 777.
30
- # Corresponds to the JSON property `code`
31
- # @return [String]
32
- attr_accessor :code
33
-
34
- # Identifies this as an aircraftData object. Value: the fixed string qpxexpress#
35
- # aircraftData
36
- # Corresponds to the JSON property `kind`
37
- # @return [String]
38
- attr_accessor :kind
39
-
40
- # The name of an aircraft, for example Boeing 777.
41
- # Corresponds to the JSON property `name`
42
- # @return [String]
43
- attr_accessor :name
44
-
45
- def initialize(**args)
46
- update!(**args)
47
- end
48
-
49
- # Update properties of this object
50
- def update!(**args)
51
- @code = args[:code] if args.key?(:code)
52
- @kind = args[:kind] if args.key?(:kind)
53
- @name = args[:name] if args.key?(:name)
54
- end
55
- end
56
-
57
- # An airport.
58
- class AirportData
59
- include Google::Apis::Core::Hashable
60
-
61
- # The city code an airport is located in. For example, for JFK airport, this is
62
- # NYC.
63
- # Corresponds to the JSON property `city`
64
- # @return [String]
65
- attr_accessor :city
66
-
67
- # An airport's code. For example, for Boston Logan airport, this is BOS.
68
- # Corresponds to the JSON property `code`
69
- # @return [String]
70
- attr_accessor :code
71
-
72
- # Identifies this as an airport object. Value: the fixed string qpxexpress#
73
- # airportData.
74
- # Corresponds to the JSON property `kind`
75
- # @return [String]
76
- attr_accessor :kind
77
-
78
- # The name of an airport. For example, for airport BOS the name is "Boston Logan
79
- # International".
80
- # Corresponds to the JSON property `name`
81
- # @return [String]
82
- attr_accessor :name
83
-
84
- def initialize(**args)
85
- update!(**args)
86
- end
87
-
88
- # Update properties of this object
89
- def update!(**args)
90
- @city = args[:city] if args.key?(:city)
91
- @code = args[:code] if args.key?(:code)
92
- @kind = args[:kind] if args.key?(:kind)
93
- @name = args[:name] if args.key?(:name)
94
- end
95
- end
96
-
97
- # Information about an item of baggage.
98
- class BagDescriptor
99
- include Google::Apis::Core::Hashable
100
-
101
- # Provides the commercial name for an optional service.
102
- # Corresponds to the JSON property `commercialName`
103
- # @return [String]
104
- attr_accessor :commercial_name
105
-
106
- # How many of this type of bag will be checked on this flight.
107
- # Corresponds to the JSON property `count`
108
- # @return [Fixnum]
109
- attr_accessor :count
110
-
111
- # A description of the baggage.
112
- # Corresponds to the JSON property `description`
113
- # @return [Array<String>]
114
- attr_accessor :description
115
-
116
- # Identifies this as a baggage object. Value: the fixed string qpxexpress#
117
- # bagDescriptor.
118
- # Corresponds to the JSON property `kind`
119
- # @return [String]
120
- attr_accessor :kind
121
-
122
- # The standard IATA subcode used to identify this optional service.
123
- # Corresponds to the JSON property `subcode`
124
- # @return [String]
125
- attr_accessor :subcode
126
-
127
- def initialize(**args)
128
- update!(**args)
129
- end
130
-
131
- # Update properties of this object
132
- def update!(**args)
133
- @commercial_name = args[:commercial_name] if args.key?(:commercial_name)
134
- @count = args[:count] if args.key?(:count)
135
- @description = args[:description] if args.key?(:description)
136
- @kind = args[:kind] if args.key?(:kind)
137
- @subcode = args[:subcode] if args.key?(:subcode)
138
- end
139
- end
140
-
141
- # Information about a carrier (ie. an airline, bus line, railroad, etc) that
142
- # might be useful to display to an end-user.
143
- class CarrierData
144
- include Google::Apis::Core::Hashable
145
-
146
- # The IATA designator of a carrier (airline, etc). For example, for American
147
- # Airlines, the code is AA.
148
- # Corresponds to the JSON property `code`
149
- # @return [String]
150
- attr_accessor :code
151
-
152
- # Identifies this as a kind of carrier (ie. an airline, bus line, railroad, etc).
153
- # Value: the fixed string qpxexpress#carrierData.
154
- # Corresponds to the JSON property `kind`
155
- # @return [String]
156
- attr_accessor :kind
157
-
158
- # The long, full name of a carrier. For example: American Airlines.
159
- # Corresponds to the JSON property `name`
160
- # @return [String]
161
- attr_accessor :name
162
-
163
- def initialize(**args)
164
- update!(**args)
165
- end
166
-
167
- # Update properties of this object
168
- def update!(**args)
169
- @code = args[:code] if args.key?(:code)
170
- @kind = args[:kind] if args.key?(:kind)
171
- @name = args[:name] if args.key?(:name)
172
- end
173
- end
174
-
175
- # Information about a city that might be useful to an end-user; typically the
176
- # city of an airport.
177
- class CityData
178
- include Google::Apis::Core::Hashable
179
-
180
- # The IATA character ID of a city. For example, for Boston this is BOS.
181
- # Corresponds to the JSON property `code`
182
- # @return [String]
183
- attr_accessor :code
184
-
185
- # The two-character country code of the country the city is located in. For
186
- # example, US for the United States of America.
187
- # Corresponds to the JSON property `country`
188
- # @return [String]
189
- attr_accessor :country
190
-
191
- # Identifies this as a city, typically with one or more airports. Value: the
192
- # fixed string qpxexpress#cityData.
193
- # Corresponds to the JSON property `kind`
194
- # @return [String]
195
- attr_accessor :kind
196
-
197
- # The full name of a city. An example would be: New York.
198
- # Corresponds to the JSON property `name`
199
- # @return [String]
200
- attr_accessor :name
201
-
202
- def initialize(**args)
203
- update!(**args)
204
- end
205
-
206
- # Update properties of this object
207
- def update!(**args)
208
- @code = args[:code] if args.key?(:code)
209
- @country = args[:country] if args.key?(:country)
210
- @kind = args[:kind] if args.key?(:kind)
211
- @name = args[:name] if args.key?(:name)
212
- end
213
- end
214
-
215
- # Detailed information about components found in the solutions of this response,
216
- # including a trip's airport, city, taxes, airline, and aircraft.
217
- class Data
218
- include Google::Apis::Core::Hashable
219
-
220
- # The aircraft that is flying between an origin and destination.
221
- # Corresponds to the JSON property `aircraft`
222
- # @return [Array<Google::Apis::QpxExpressV1::AircraftData>]
223
- attr_accessor :aircraft
224
-
225
- # The airport of an origin or destination.
226
- # Corresponds to the JSON property `airport`
227
- # @return [Array<Google::Apis::QpxExpressV1::AirportData>]
228
- attr_accessor :airport
229
-
230
- # The airline carrier of the aircraft flying between an origin and destination.
231
- # Allowed values are IATA carrier codes.
232
- # Corresponds to the JSON property `carrier`
233
- # @return [Array<Google::Apis::QpxExpressV1::CarrierData>]
234
- attr_accessor :carrier
235
-
236
- # The city that is either the origin or destination of part of a trip.
237
- # Corresponds to the JSON property `city`
238
- # @return [Array<Google::Apis::QpxExpressV1::CityData>]
239
- attr_accessor :city
240
-
241
- # Identifies this as QPX Express response resource, including a trip's airport,
242
- # city, taxes, airline, and aircraft. Value: the fixed string qpxexpress#data.
243
- # Corresponds to the JSON property `kind`
244
- # @return [String]
245
- attr_accessor :kind
246
-
247
- # The taxes due for flying between an origin and a destination.
248
- # Corresponds to the JSON property `tax`
249
- # @return [Array<Google::Apis::QpxExpressV1::TaxData>]
250
- attr_accessor :tax
251
-
252
- def initialize(**args)
253
- update!(**args)
254
- end
255
-
256
- # Update properties of this object
257
- def update!(**args)
258
- @aircraft = args[:aircraft] if args.key?(:aircraft)
259
- @airport = args[:airport] if args.key?(:airport)
260
- @carrier = args[:carrier] if args.key?(:carrier)
261
- @city = args[:city] if args.key?(:city)
262
- @kind = args[:kind] if args.key?(:kind)
263
- @tax = args[:tax] if args.key?(:tax)
264
- end
265
- end
266
-
267
- # Complete information about a fare used in the solution to a low-fare search
268
- # query. In the airline industry a fare is a price an airline charges for one-
269
- # way travel between two points. A fare typically contains a carrier code, two
270
- # city codes, a price, and a fare basis. (A fare basis is a one-to-eight
271
- # character alphanumeric code used to identify a fare.)
272
- class FareInfo
273
- include Google::Apis::Core::Hashable
274
-
275
- #
276
- # Corresponds to the JSON property `basisCode`
277
- # @return [String]
278
- attr_accessor :basis_code
279
-
280
- # The carrier of the aircraft or other vehicle commuting between two points.
281
- # Corresponds to the JSON property `carrier`
282
- # @return [String]
283
- attr_accessor :carrier
284
-
285
- # The city code of the city the trip ends at.
286
- # Corresponds to the JSON property `destination`
287
- # @return [String]
288
- attr_accessor :destination
289
-
290
- # A unique identifier of the fare.
291
- # Corresponds to the JSON property `id`
292
- # @return [String]
293
- attr_accessor :id
294
-
295
- # Identifies this as a fare object. Value: the fixed string qpxexpress#fareInfo.
296
- # Corresponds to the JSON property `kind`
297
- # @return [String]
298
- attr_accessor :kind
299
-
300
- # The city code of the city the trip begins at.
301
- # Corresponds to the JSON property `origin`
302
- # @return [String]
303
- attr_accessor :origin
304
-
305
- # Whether this is a private fare, for example one offered only to select
306
- # customers rather than the general public.
307
- # Corresponds to the JSON property `private`
308
- # @return [Boolean]
309
- attr_accessor :private
310
- alias_method :private?, :private
311
-
312
- def initialize(**args)
313
- update!(**args)
314
- end
315
-
316
- # Update properties of this object
317
- def update!(**args)
318
- @basis_code = args[:basis_code] if args.key?(:basis_code)
319
- @carrier = args[:carrier] if args.key?(:carrier)
320
- @destination = args[:destination] if args.key?(:destination)
321
- @id = args[:id] if args.key?(:id)
322
- @kind = args[:kind] if args.key?(:kind)
323
- @origin = args[:origin] if args.key?(:origin)
324
- @private = args[:private] if args.key?(:private)
325
- end
326
- end
327
-
328
- # A flight is a sequence of legs with the same airline carrier and flight number.
329
- # (A leg is the smallest unit of travel, in the case of a flight a takeoff
330
- # immediately followed by a landing at two set points on a particular carrier
331
- # with a particular flight number.) The naive view is that a flight is scheduled
332
- # travel of an aircraft between two points, with possibly intermediate stops,
333
- # but carriers will frequently list flights that require a change of aircraft
334
- # between legs.
335
- class FlightInfo
336
- include Google::Apis::Core::Hashable
337
-
338
- #
339
- # Corresponds to the JSON property `carrier`
340
- # @return [String]
341
- attr_accessor :carrier
342
-
343
- # The flight number.
344
- # Corresponds to the JSON property `number`
345
- # @return [String]
346
- attr_accessor :number
347
-
348
- def initialize(**args)
349
- update!(**args)
350
- end
351
-
352
- # Update properties of this object
353
- def update!(**args)
354
- @carrier = args[:carrier] if args.key?(:carrier)
355
- @number = args[:number] if args.key?(:number)
356
- end
357
- end
358
-
359
- # Information about free baggage allowed on one segment of a trip.
360
- class FreeBaggageAllowance
361
- include Google::Apis::Core::Hashable
362
-
363
- # A representation of a type of bag, such as an ATPCo subcode, Commercial Name,
364
- # or other description.
365
- # Corresponds to the JSON property `bagDescriptor`
366
- # @return [Array<Google::Apis::QpxExpressV1::BagDescriptor>]
367
- attr_accessor :bag_descriptor
368
-
369
- # The maximum number of kilos all the free baggage together may weigh.
370
- # Corresponds to the JSON property `kilos`
371
- # @return [Fixnum]
372
- attr_accessor :kilos
373
-
374
- # The maximum number of kilos any one piece of baggage may weigh.
375
- # Corresponds to the JSON property `kilosPerPiece`
376
- # @return [Fixnum]
377
- attr_accessor :kilos_per_piece
378
-
379
- # Identifies this as free baggage object, allowed on one segment of a trip.
380
- # Value: the fixed string qpxexpress#freeBaggageAllowance.
381
- # Corresponds to the JSON property `kind`
382
- # @return [String]
383
- attr_accessor :kind
384
-
385
- # The number of free pieces of baggage allowed.
386
- # Corresponds to the JSON property `pieces`
387
- # @return [Fixnum]
388
- attr_accessor :pieces
389
-
390
- # The number of pounds of free baggage allowed.
391
- # Corresponds to the JSON property `pounds`
392
- # @return [Fixnum]
393
- attr_accessor :pounds
394
-
395
- def initialize(**args)
396
- update!(**args)
397
- end
398
-
399
- # Update properties of this object
400
- def update!(**args)
401
- @bag_descriptor = args[:bag_descriptor] if args.key?(:bag_descriptor)
402
- @kilos = args[:kilos] if args.key?(:kilos)
403
- @kilos_per_piece = args[:kilos_per_piece] if args.key?(:kilos_per_piece)
404
- @kind = args[:kind] if args.key?(:kind)
405
- @pieces = args[:pieces] if args.key?(:pieces)
406
- @pounds = args[:pounds] if args.key?(:pounds)
407
- end
408
- end
409
-
410
- # Information about a leg. (A leg is the smallest unit of travel, in the case of
411
- # a flight a takeoff immediately followed by a landing at two set points on a
412
- # particular carrier with a particular flight number.)
413
- class LegInfo
414
- include Google::Apis::Core::Hashable
415
-
416
- # The aircraft (or bus, ferry, railcar, etc) travelling between the two points
417
- # of this leg.
418
- # Corresponds to the JSON property `aircraft`
419
- # @return [String]
420
- attr_accessor :aircraft
421
-
422
- # The scheduled time of arrival at the destination of the leg, local to the
423
- # point of arrival.
424
- # Corresponds to the JSON property `arrivalTime`
425
- # @return [String]
426
- attr_accessor :arrival_time
427
-
428
- # Whether you have to change planes following this leg. Only applies to the next
429
- # leg.
430
- # Corresponds to the JSON property `changePlane`
431
- # @return [Boolean]
432
- attr_accessor :change_plane
433
- alias_method :change_plane?, :change_plane
434
-
435
- # Duration of a connection following this leg, in minutes.
436
- # Corresponds to the JSON property `connectionDuration`
437
- # @return [Fixnum]
438
- attr_accessor :connection_duration
439
-
440
- # The scheduled departure time of the leg, local to the point of departure.
441
- # Corresponds to the JSON property `departureTime`
442
- # @return [String]
443
- attr_accessor :departure_time
444
-
445
- # The leg destination as a city and airport.
446
- # Corresponds to the JSON property `destination`
447
- # @return [String]
448
- attr_accessor :destination
449
-
450
- # The terminal the flight is scheduled to arrive at.
451
- # Corresponds to the JSON property `destinationTerminal`
452
- # @return [String]
453
- attr_accessor :destination_terminal
454
-
455
- # The scheduled travelling time from the origin to the destination.
456
- # Corresponds to the JSON property `duration`
457
- # @return [Fixnum]
458
- attr_accessor :duration
459
-
460
- # An identifier that uniquely identifies this leg in the solution.
461
- # Corresponds to the JSON property `id`
462
- # @return [String]
463
- attr_accessor :id
464
-
465
- # Identifies this as a leg object. A leg is the smallest unit of travel, in the
466
- # case of a flight a takeoff immediately followed by a landing at two set points
467
- # on a particular carrier with a particular flight number. Value: the fixed
468
- # string qpxexpress#legInfo.
469
- # Corresponds to the JSON property `kind`
470
- # @return [String]
471
- attr_accessor :kind
472
-
473
- # A simple, general description of the meal(s) served on the flight, for example:
474
- # "Hot meal".
475
- # Corresponds to the JSON property `meal`
476
- # @return [String]
477
- attr_accessor :meal
478
-
479
- # The number of miles in this leg.
480
- # Corresponds to the JSON property `mileage`
481
- # @return [Fixnum]
482
- attr_accessor :mileage
483
-
484
- # In percent, the published on time performance on this leg.
485
- # Corresponds to the JSON property `onTimePerformance`
486
- # @return [Fixnum]
487
- attr_accessor :on_time_performance
488
-
489
- # Department of Transportation disclosure information on the actual operator of
490
- # a flight in a code share. (A code share refers to a marketing agreement
491
- # between two carriers, where one carrier will list in its schedules (and take
492
- # bookings for) flights that are actually operated by another carrier.)
493
- # Corresponds to the JSON property `operatingDisclosure`
494
- # @return [String]
495
- attr_accessor :operating_disclosure
496
-
497
- # The leg origin as a city and airport.
498
- # Corresponds to the JSON property `origin`
499
- # @return [String]
500
- attr_accessor :origin
501
-
502
- # The terminal the flight is scheduled to depart from.
503
- # Corresponds to the JSON property `originTerminal`
504
- # @return [String]
505
- attr_accessor :origin_terminal
506
-
507
- # Whether passenger information must be furnished to the United States
508
- # Transportation Security Administration (TSA) prior to departure.
509
- # Corresponds to the JSON property `secure`
510
- # @return [Boolean]
511
- attr_accessor :secure
512
- alias_method :secure?, :secure
513
-
514
- def initialize(**args)
515
- update!(**args)
516
- end
517
-
518
- # Update properties of this object
519
- def update!(**args)
520
- @aircraft = args[:aircraft] if args.key?(:aircraft)
521
- @arrival_time = args[:arrival_time] if args.key?(:arrival_time)
522
- @change_plane = args[:change_plane] if args.key?(:change_plane)
523
- @connection_duration = args[:connection_duration] if args.key?(:connection_duration)
524
- @departure_time = args[:departure_time] if args.key?(:departure_time)
525
- @destination = args[:destination] if args.key?(:destination)
526
- @destination_terminal = args[:destination_terminal] if args.key?(:destination_terminal)
527
- @duration = args[:duration] if args.key?(:duration)
528
- @id = args[:id] if args.key?(:id)
529
- @kind = args[:kind] if args.key?(:kind)
530
- @meal = args[:meal] if args.key?(:meal)
531
- @mileage = args[:mileage] if args.key?(:mileage)
532
- @on_time_performance = args[:on_time_performance] if args.key?(:on_time_performance)
533
- @operating_disclosure = args[:operating_disclosure] if args.key?(:operating_disclosure)
534
- @origin = args[:origin] if args.key?(:origin)
535
- @origin_terminal = args[:origin_terminal] if args.key?(:origin_terminal)
536
- @secure = args[:secure] if args.key?(:secure)
537
- end
538
- end
539
-
540
- # The number and type of passengers. Unfortunately the definition of an infant,
541
- # child, adult, and senior citizen varies across carriers and reservation
542
- # systems.
543
- class PassengerCounts
544
- include Google::Apis::Core::Hashable
545
-
546
- # The number of passengers that are adults.
547
- # Corresponds to the JSON property `adultCount`
548
- # @return [Fixnum]
549
- attr_accessor :adult_count
550
-
551
- # The number of passengers that are children.
552
- # Corresponds to the JSON property `childCount`
553
- # @return [Fixnum]
554
- attr_accessor :child_count
555
-
556
- # The number of passengers that are infants travelling in the lap of an adult.
557
- # Corresponds to the JSON property `infantInLapCount`
558
- # @return [Fixnum]
559
- attr_accessor :infant_in_lap_count
560
-
561
- # The number of passengers that are infants each assigned a seat.
562
- # Corresponds to the JSON property `infantInSeatCount`
563
- # @return [Fixnum]
564
- attr_accessor :infant_in_seat_count
565
-
566
- # Identifies this as a passenger count object, representing the number of
567
- # passengers. Value: the fixed string qpxexpress#passengerCounts.
568
- # Corresponds to the JSON property `kind`
569
- # @return [String]
570
- attr_accessor :kind
571
-
572
- # The number of passengers that are senior citizens.
573
- # Corresponds to the JSON property `seniorCount`
574
- # @return [Fixnum]
575
- attr_accessor :senior_count
576
-
577
- def initialize(**args)
578
- update!(**args)
579
- end
580
-
581
- # Update properties of this object
582
- def update!(**args)
583
- @adult_count = args[:adult_count] if args.key?(:adult_count)
584
- @child_count = args[:child_count] if args.key?(:child_count)
585
- @infant_in_lap_count = args[:infant_in_lap_count] if args.key?(:infant_in_lap_count)
586
- @infant_in_seat_count = args[:infant_in_seat_count] if args.key?(:infant_in_seat_count)
587
- @kind = args[:kind] if args.key?(:kind)
588
- @senior_count = args[:senior_count] if args.key?(:senior_count)
589
- end
590
- end
591
-
592
- # The price of one or more travel segments. The currency used to purchase
593
- # tickets is usually determined by the sale/ticketing city or the sale/ticketing
594
- # country, unless none are specified, in which case it defaults to that of the
595
- # journey origin country.
596
- class PricingInfo
597
- include Google::Apis::Core::Hashable
598
-
599
- # The total fare in the base fare currency (the currency of the country of
600
- # origin). This element is only present when the sales currency and the currency
601
- # of the country of commencement are different.
602
- # Corresponds to the JSON property `baseFareTotal`
603
- # @return [String]
604
- attr_accessor :base_fare_total
605
-
606
- # The fare used to price one or more segments.
607
- # Corresponds to the JSON property `fare`
608
- # @return [Array<Google::Apis::QpxExpressV1::FareInfo>]
609
- attr_accessor :fare
610
-
611
- # The horizontal fare calculation. This is a field on a ticket that displays all
612
- # of the relevant items that go into the calculation of the fare.
613
- # Corresponds to the JSON property `fareCalculation`
614
- # @return [String]
615
- attr_accessor :fare_calculation
616
-
617
- # Identifies this as a pricing object, representing the price of one or more
618
- # travel segments. Value: the fixed string qpxexpress#pricingInfo.
619
- # Corresponds to the JSON property `kind`
620
- # @return [String]
621
- attr_accessor :kind
622
-
623
- # The latest ticketing time for this pricing assuming the reservation occurs at
624
- # ticketing time and there is no change in fares/rules. The time is local to the
625
- # point of sale (POS).
626
- # Corresponds to the JSON property `latestTicketingTime`
627
- # @return [String]
628
- attr_accessor :latest_ticketing_time
629
-
630
- # The number and type of passengers. Unfortunately the definition of an infant,
631
- # child, adult, and senior citizen varies across carriers and reservation
632
- # systems.
633
- # Corresponds to the JSON property `passengers`
634
- # @return [Google::Apis::QpxExpressV1::PassengerCounts]
635
- attr_accessor :passengers
636
-
637
- # The passenger type code for this pricing. An alphanumeric code used by a
638
- # carrier to restrict fares to certain categories of passenger. For instance, a
639
- # fare might be valid only for senior citizens.
640
- # Corresponds to the JSON property `ptc`
641
- # @return [String]
642
- attr_accessor :ptc
643
-
644
- # Whether the fares on this pricing are refundable.
645
- # Corresponds to the JSON property `refundable`
646
- # @return [Boolean]
647
- attr_accessor :refundable
648
- alias_method :refundable?, :refundable
649
-
650
- # The total fare in the sale or equivalent currency.
651
- # Corresponds to the JSON property `saleFareTotal`
652
- # @return [String]
653
- attr_accessor :sale_fare_total
654
-
655
- # The taxes in the sale or equivalent currency.
656
- # Corresponds to the JSON property `saleTaxTotal`
657
- # @return [String]
658
- attr_accessor :sale_tax_total
659
-
660
- # Total per-passenger price (fare and tax) in the sale or equivalent currency.
661
- # Corresponds to the JSON property `saleTotal`
662
- # @return [String]
663
- attr_accessor :sale_total
664
-
665
- # The per-segment price and baggage information.
666
- # Corresponds to the JSON property `segmentPricing`
667
- # @return [Array<Google::Apis::QpxExpressV1::SegmentPricing>]
668
- attr_accessor :segment_pricing
669
-
670
- # The taxes used to calculate the tax total per ticket.
671
- # Corresponds to the JSON property `tax`
672
- # @return [Array<Google::Apis::QpxExpressV1::TaxInfo>]
673
- attr_accessor :tax
674
-
675
- def initialize(**args)
676
- update!(**args)
677
- end
678
-
679
- # Update properties of this object
680
- def update!(**args)
681
- @base_fare_total = args[:base_fare_total] if args.key?(:base_fare_total)
682
- @fare = args[:fare] if args.key?(:fare)
683
- @fare_calculation = args[:fare_calculation] if args.key?(:fare_calculation)
684
- @kind = args[:kind] if args.key?(:kind)
685
- @latest_ticketing_time = args[:latest_ticketing_time] if args.key?(:latest_ticketing_time)
686
- @passengers = args[:passengers] if args.key?(:passengers)
687
- @ptc = args[:ptc] if args.key?(:ptc)
688
- @refundable = args[:refundable] if args.key?(:refundable)
689
- @sale_fare_total = args[:sale_fare_total] if args.key?(:sale_fare_total)
690
- @sale_tax_total = args[:sale_tax_total] if args.key?(:sale_tax_total)
691
- @sale_total = args[:sale_total] if args.key?(:sale_total)
692
- @segment_pricing = args[:segment_pricing] if args.key?(:segment_pricing)
693
- @tax = args[:tax] if args.key?(:tax)
694
- end
695
- end
696
-
697
- # Details of a segment of a flight; a segment is one or more consecutive legs on
698
- # the same flight. For example a hypothetical flight ZZ001, from DFW to OGG,
699
- # would have one segment with two legs: DFW to HNL (leg 1), HNL to OGG (leg 2),
700
- # and DFW to OGG (legs 1 and 2).
701
- class SegmentInfo
702
- include Google::Apis::Core::Hashable
703
-
704
- # The booking code or class for this segment.
705
- # Corresponds to the JSON property `bookingCode`
706
- # @return [String]
707
- attr_accessor :booking_code
708
-
709
- # The number of seats available in this booking code on this segment.
710
- # Corresponds to the JSON property `bookingCodeCount`
711
- # @return [Fixnum]
712
- attr_accessor :booking_code_count
713
-
714
- # The cabin booked for this segment.
715
- # Corresponds to the JSON property `cabin`
716
- # @return [String]
717
- attr_accessor :cabin
718
-
719
- # In minutes, the duration of the connection following this segment.
720
- # Corresponds to the JSON property `connectionDuration`
721
- # @return [Fixnum]
722
- attr_accessor :connection_duration
723
-
724
- # The duration of the flight segment in minutes.
725
- # Corresponds to the JSON property `duration`
726
- # @return [Fixnum]
727
- attr_accessor :duration
728
-
729
- # A flight is a sequence of legs with the same airline carrier and flight number.
730
- # (A leg is the smallest unit of travel, in the case of a flight a takeoff
731
- # immediately followed by a landing at two set points on a particular carrier
732
- # with a particular flight number.) The naive view is that a flight is scheduled
733
- # travel of an aircraft between two points, with possibly intermediate stops,
734
- # but carriers will frequently list flights that require a change of aircraft
735
- # between legs.
736
- # Corresponds to the JSON property `flight`
737
- # @return [Google::Apis::QpxExpressV1::FlightInfo]
738
- attr_accessor :flight
739
-
740
- # An id uniquely identifying the segment in the solution.
741
- # Corresponds to the JSON property `id`
742
- # @return [String]
743
- attr_accessor :id
744
-
745
- # Identifies this as a segment object. A segment is one or more consecutive legs
746
- # on the same flight. For example a hypothetical flight ZZ001, from DFW to OGG,
747
- # could have one segment with two legs: DFW to HNL (leg 1), HNL to OGG (leg 2).
748
- # Value: the fixed string qpxexpress#segmentInfo.
749
- # Corresponds to the JSON property `kind`
750
- # @return [String]
751
- attr_accessor :kind
752
-
753
- # The legs composing this segment.
754
- # Corresponds to the JSON property `leg`
755
- # @return [Array<Google::Apis::QpxExpressV1::LegInfo>]
756
- attr_accessor :leg
757
-
758
- # The solution-based index of a segment in a married segment group. Married
759
- # segments can only be booked together. For example, an airline might report a
760
- # certain booking code as sold out from Boston to Pittsburgh, but as available
761
- # as part of two married segments Boston to Chicago connecting through
762
- # Pittsburgh. For example content of this field, consider the round-trip flight
763
- # ZZ1 PHX-PHL ZZ2 PHL-CLT ZZ3 CLT-PHX. This has three segments, with the two
764
- # outbound ones (ZZ1 ZZ2) married. In this case, the two outbound segments
765
- # belong to married segment group 0, and the return segment belongs to married
766
- # segment group 1.
767
- # Corresponds to the JSON property `marriedSegmentGroup`
768
- # @return [String]
769
- attr_accessor :married_segment_group
770
-
771
- # Whether the operation of this segment remains subject to government approval.
772
- # Corresponds to the JSON property `subjectToGovernmentApproval`
773
- # @return [Boolean]
774
- attr_accessor :subject_to_government_approval
775
- alias_method :subject_to_government_approval?, :subject_to_government_approval
776
-
777
- def initialize(**args)
778
- update!(**args)
779
- end
780
-
781
- # Update properties of this object
782
- def update!(**args)
783
- @booking_code = args[:booking_code] if args.key?(:booking_code)
784
- @booking_code_count = args[:booking_code_count] if args.key?(:booking_code_count)
785
- @cabin = args[:cabin] if args.key?(:cabin)
786
- @connection_duration = args[:connection_duration] if args.key?(:connection_duration)
787
- @duration = args[:duration] if args.key?(:duration)
788
- @flight = args[:flight] if args.key?(:flight)
789
- @id = args[:id] if args.key?(:id)
790
- @kind = args[:kind] if args.key?(:kind)
791
- @leg = args[:leg] if args.key?(:leg)
792
- @married_segment_group = args[:married_segment_group] if args.key?(:married_segment_group)
793
- @subject_to_government_approval = args[:subject_to_government_approval] if args.key?(:subject_to_government_approval)
794
- end
795
- end
796
-
797
- # The price of this segment.
798
- class SegmentPricing
799
- include Google::Apis::Core::Hashable
800
-
801
- # A segment identifier unique within a single solution. It is used to refer to
802
- # different parts of the same solution.
803
- # Corresponds to the JSON property `fareId`
804
- # @return [String]
805
- attr_accessor :fare_id
806
-
807
- # Details of the free baggage allowance on this segment.
808
- # Corresponds to the JSON property `freeBaggageOption`
809
- # @return [Array<Google::Apis::QpxExpressV1::FreeBaggageAllowance>]
810
- attr_accessor :free_baggage_option
811
-
812
- # Identifies this as a segment pricing object, representing the price of this
813
- # segment. Value: the fixed string qpxexpress#segmentPricing.
814
- # Corresponds to the JSON property `kind`
815
- # @return [String]
816
- attr_accessor :kind
817
-
818
- # Unique identifier in the response of this segment.
819
- # Corresponds to the JSON property `segmentId`
820
- # @return [String]
821
- attr_accessor :segment_id
822
-
823
- def initialize(**args)
824
- update!(**args)
825
- end
826
-
827
- # Update properties of this object
828
- def update!(**args)
829
- @fare_id = args[:fare_id] if args.key?(:fare_id)
830
- @free_baggage_option = args[:free_baggage_option] if args.key?(:free_baggage_option)
831
- @kind = args[:kind] if args.key?(:kind)
832
- @segment_id = args[:segment_id] if args.key?(:segment_id)
833
- end
834
- end
835
-
836
- # Information about a slice. A slice represents a traveller's intent, the
837
- # portion of a low-fare search corresponding to a traveler's request to get
838
- # between two points. One-way journeys are generally expressed using 1 slice,
839
- # round-trips using 2. For example, if a traveler specifies the following trip
840
- # in a user interface:
841
- # | Origin | Destination | Departure Date | | BOS | LAX | March 10, 2007 | | LAX
842
- # | SYD | March 17, 2007 | | SYD | BOS | March 22, 2007 |
843
- # then this is a three slice trip.
844
- class SliceInfo
845
- include Google::Apis::Core::Hashable
846
-
847
- # The duration of the slice in minutes.
848
- # Corresponds to the JSON property `duration`
849
- # @return [Fixnum]
850
- attr_accessor :duration
851
-
852
- # Identifies this as a slice object. A slice represents a traveller's intent,
853
- # the portion of a low-fare search corresponding to a traveler's request to get
854
- # between two points. One-way journeys are generally expressed using 1 slice,
855
- # round-trips using 2. Value: the fixed string qpxexpress#sliceInfo.
856
- # Corresponds to the JSON property `kind`
857
- # @return [String]
858
- attr_accessor :kind
859
-
860
- # The segment(s) constituting the slice.
861
- # Corresponds to the JSON property `segment`
862
- # @return [Array<Google::Apis::QpxExpressV1::SegmentInfo>]
863
- attr_accessor :segment
864
-
865
- def initialize(**args)
866
- update!(**args)
867
- end
868
-
869
- # Update properties of this object
870
- def update!(**args)
871
- @duration = args[:duration] if args.key?(:duration)
872
- @kind = args[:kind] if args.key?(:kind)
873
- @segment = args[:segment] if args.key?(:segment)
874
- end
875
- end
876
-
877
- # Criteria a desired slice must satisfy.
878
- class SliceInput
879
- include Google::Apis::Core::Hashable
880
-
881
- # Slices with only the carriers in this alliance should be returned; do not use
882
- # this field with permittedCarrier. Allowed values are ONEWORLD, SKYTEAM, and
883
- # STAR.
884
- # Corresponds to the JSON property `alliance`
885
- # @return [String]
886
- attr_accessor :alliance
887
-
888
- # Departure date in YYYY-MM-DD format.
889
- # Corresponds to the JSON property `date`
890
- # @return [String]
891
- attr_accessor :date
892
-
893
- # Airport or city IATA designator of the destination.
894
- # Corresponds to the JSON property `destination`
895
- # @return [String]
896
- attr_accessor :destination
897
-
898
- # Identifies this as a slice input object, representing the criteria a desired
899
- # slice must satisfy. Value: the fixed string qpxexpress#sliceInput.
900
- # Corresponds to the JSON property `kind`
901
- # @return [String]
902
- attr_accessor :kind
903
-
904
- # The longest connection between two legs, in minutes, you are willing to accept.
905
- # Corresponds to the JSON property `maxConnectionDuration`
906
- # @return [Fixnum]
907
- attr_accessor :max_connection_duration
908
-
909
- # The maximum number of stops you are willing to accept in this slice.
910
- # Corresponds to the JSON property `maxStops`
911
- # @return [Fixnum]
912
- attr_accessor :max_stops
913
-
914
- # Airport or city IATA designator of the origin.
915
- # Corresponds to the JSON property `origin`
916
- # @return [String]
917
- attr_accessor :origin
918
-
919
- # A list of 2-letter IATA airline designators. Slices with only these carriers
920
- # should be returned.
921
- # Corresponds to the JSON property `permittedCarrier`
922
- # @return [Array<String>]
923
- attr_accessor :permitted_carrier
924
-
925
- # Two times in a single day defining a time range.
926
- # Corresponds to the JSON property `permittedDepartureTime`
927
- # @return [Google::Apis::QpxExpressV1::TimeOfDayRange]
928
- attr_accessor :permitted_departure_time
929
-
930
- # Prefer solutions that book in this cabin for this slice. Allowed values are
931
- # COACH, PREMIUM_COACH, BUSINESS, and FIRST.
932
- # Corresponds to the JSON property `preferredCabin`
933
- # @return [String]
934
- attr_accessor :preferred_cabin
935
-
936
- # A list of 2-letter IATA airline designators. Exclude slices that use these
937
- # carriers.
938
- # Corresponds to the JSON property `prohibitedCarrier`
939
- # @return [Array<String>]
940
- attr_accessor :prohibited_carrier
941
-
942
- def initialize(**args)
943
- update!(**args)
944
- end
945
-
946
- # Update properties of this object
947
- def update!(**args)
948
- @alliance = args[:alliance] if args.key?(:alliance)
949
- @date = args[:date] if args.key?(:date)
950
- @destination = args[:destination] if args.key?(:destination)
951
- @kind = args[:kind] if args.key?(:kind)
952
- @max_connection_duration = args[:max_connection_duration] if args.key?(:max_connection_duration)
953
- @max_stops = args[:max_stops] if args.key?(:max_stops)
954
- @origin = args[:origin] if args.key?(:origin)
955
- @permitted_carrier = args[:permitted_carrier] if args.key?(:permitted_carrier)
956
- @permitted_departure_time = args[:permitted_departure_time] if args.key?(:permitted_departure_time)
957
- @preferred_cabin = args[:preferred_cabin] if args.key?(:preferred_cabin)
958
- @prohibited_carrier = args[:prohibited_carrier] if args.key?(:prohibited_carrier)
959
- end
960
- end
961
-
962
- # Tax data.
963
- class TaxData
964
- include Google::Apis::Core::Hashable
965
-
966
- # An identifier uniquely identifying a tax in a response.
967
- # Corresponds to the JSON property `id`
968
- # @return [String]
969
- attr_accessor :id
970
-
971
- # Identifies this as a tax data object, representing some tax. Value: the fixed
972
- # string qpxexpress#taxData.
973
- # Corresponds to the JSON property `kind`
974
- # @return [String]
975
- attr_accessor :kind
976
-
977
- # The name of a tax.
978
- # Corresponds to the JSON property `name`
979
- # @return [String]
980
- attr_accessor :name
981
-
982
- def initialize(**args)
983
- update!(**args)
984
- end
985
-
986
- # Update properties of this object
987
- def update!(**args)
988
- @id = args[:id] if args.key?(:id)
989
- @kind = args[:kind] if args.key?(:kind)
990
- @name = args[:name] if args.key?(:name)
991
- end
992
- end
993
-
994
- # Tax information.
995
- class TaxInfo
996
- include Google::Apis::Core::Hashable
997
-
998
- # Whether this is a government charge or a carrier surcharge.
999
- # Corresponds to the JSON property `chargeType`
1000
- # @return [String]
1001
- attr_accessor :charge_type
1002
-
1003
- # The code to enter in the ticket's tax box.
1004
- # Corresponds to the JSON property `code`
1005
- # @return [String]
1006
- attr_accessor :code
1007
-
1008
- # For government charges, the country levying the charge.
1009
- # Corresponds to the JSON property `country`
1010
- # @return [String]
1011
- attr_accessor :country
1012
-
1013
- # Identifier uniquely identifying this tax in a response. Not present for
1014
- # unnamed carrier surcharges.
1015
- # Corresponds to the JSON property `id`
1016
- # @return [String]
1017
- attr_accessor :id
1018
-
1019
- # Identifies this as a tax information object. Value: the fixed string
1020
- # qpxexpress#taxInfo.
1021
- # Corresponds to the JSON property `kind`
1022
- # @return [String]
1023
- attr_accessor :kind
1024
-
1025
- # The price of the tax in the sales or equivalent currency.
1026
- # Corresponds to the JSON property `salePrice`
1027
- # @return [String]
1028
- attr_accessor :sale_price
1029
-
1030
- def initialize(**args)
1031
- update!(**args)
1032
- end
1033
-
1034
- # Update properties of this object
1035
- def update!(**args)
1036
- @charge_type = args[:charge_type] if args.key?(:charge_type)
1037
- @code = args[:code] if args.key?(:code)
1038
- @country = args[:country] if args.key?(:country)
1039
- @id = args[:id] if args.key?(:id)
1040
- @kind = args[:kind] if args.key?(:kind)
1041
- @sale_price = args[:sale_price] if args.key?(:sale_price)
1042
- end
1043
- end
1044
-
1045
- # Two times in a single day defining a time range.
1046
- class TimeOfDayRange
1047
- include Google::Apis::Core::Hashable
1048
-
1049
- # The earliest time of day in HH:MM format.
1050
- # Corresponds to the JSON property `earliestTime`
1051
- # @return [String]
1052
- attr_accessor :earliest_time
1053
-
1054
- # Identifies this as a time of day range object, representing two times in a
1055
- # single day defining a time range. Value: the fixed string qpxexpress#
1056
- # timeOfDayRange.
1057
- # Corresponds to the JSON property `kind`
1058
- # @return [String]
1059
- attr_accessor :kind
1060
-
1061
- # The latest time of day in HH:MM format.
1062
- # Corresponds to the JSON property `latestTime`
1063
- # @return [String]
1064
- attr_accessor :latest_time
1065
-
1066
- def initialize(**args)
1067
- update!(**args)
1068
- end
1069
-
1070
- # Update properties of this object
1071
- def update!(**args)
1072
- @earliest_time = args[:earliest_time] if args.key?(:earliest_time)
1073
- @kind = args[:kind] if args.key?(:kind)
1074
- @latest_time = args[:latest_time] if args.key?(:latest_time)
1075
- end
1076
- end
1077
-
1078
- # Trip information.
1079
- class TripOption
1080
- include Google::Apis::Core::Hashable
1081
-
1082
- # Identifier uniquely identifying this trip in a response.
1083
- # Corresponds to the JSON property `id`
1084
- # @return [String]
1085
- attr_accessor :id
1086
-
1087
- # Identifies this as a trip information object. Value: the fixed string
1088
- # qpxexpress#tripOption.
1089
- # Corresponds to the JSON property `kind`
1090
- # @return [String]
1091
- attr_accessor :kind
1092
-
1093
- # Per passenger pricing information.
1094
- # Corresponds to the JSON property `pricing`
1095
- # @return [Array<Google::Apis::QpxExpressV1::PricingInfo>]
1096
- attr_accessor :pricing
1097
-
1098
- # The total price for all passengers on the trip, in the form of a currency
1099
- # followed by an amount, e.g. USD253.35.
1100
- # Corresponds to the JSON property `saleTotal`
1101
- # @return [String]
1102
- attr_accessor :sale_total
1103
-
1104
- # The slices that make up this trip's itinerary.
1105
- # Corresponds to the JSON property `slice`
1106
- # @return [Array<Google::Apis::QpxExpressV1::SliceInfo>]
1107
- attr_accessor :slice
1108
-
1109
- def initialize(**args)
1110
- update!(**args)
1111
- end
1112
-
1113
- # Update properties of this object
1114
- def update!(**args)
1115
- @id = args[:id] if args.key?(:id)
1116
- @kind = args[:kind] if args.key?(:kind)
1117
- @pricing = args[:pricing] if args.key?(:pricing)
1118
- @sale_total = args[:sale_total] if args.key?(:sale_total)
1119
- @slice = args[:slice] if args.key?(:slice)
1120
- end
1121
- end
1122
-
1123
- # A QPX Express search request, which will yield one or more solutions.
1124
- class TripOptionsRequest
1125
- include Google::Apis::Core::Hashable
1126
-
1127
- # Do not return solutions that cost more than this price. The alphabetical part
1128
- # of the price is in ISO 4217. The format, in regex, is [A-Z]`3`\d+(\.\d+)?
1129
- # Example: $102.07
1130
- # Corresponds to the JSON property `maxPrice`
1131
- # @return [String]
1132
- attr_accessor :max_price
1133
-
1134
- # The number and type of passengers. Unfortunately the definition of an infant,
1135
- # child, adult, and senior citizen varies across carriers and reservation
1136
- # systems.
1137
- # Corresponds to the JSON property `passengers`
1138
- # @return [Google::Apis::QpxExpressV1::PassengerCounts]
1139
- attr_accessor :passengers
1140
-
1141
- # Return only solutions with refundable fares.
1142
- # Corresponds to the JSON property `refundable`
1143
- # @return [Boolean]
1144
- attr_accessor :refundable
1145
- alias_method :refundable?, :refundable
1146
-
1147
- # IATA country code representing the point of sale. This determines the "
1148
- # equivalent amount paid" currency for the ticket.
1149
- # Corresponds to the JSON property `saleCountry`
1150
- # @return [String]
1151
- attr_accessor :sale_country
1152
-
1153
- # The slices that make up the itinerary of this trip. A slice represents a
1154
- # traveler's intent, the portion of a low-fare search corresponding to a
1155
- # traveler's request to get between two points. One-way journeys are generally
1156
- # expressed using one slice, round-trips using two. An example of a one slice
1157
- # trip with three segments might be BOS-SYD, SYD-LAX, LAX-BOS if the traveler
1158
- # only stopped in SYD and LAX just long enough to change planes.
1159
- # Corresponds to the JSON property `slice`
1160
- # @return [Array<Google::Apis::QpxExpressV1::SliceInput>]
1161
- attr_accessor :slice
1162
-
1163
- # The number of solutions to return, maximum 500.
1164
- # Corresponds to the JSON property `solutions`
1165
- # @return [Fixnum]
1166
- attr_accessor :solutions
1167
-
1168
- # IATA country code representing the point of ticketing.
1169
- # Corresponds to the JSON property `ticketingCountry`
1170
- # @return [String]
1171
- attr_accessor :ticketing_country
1172
-
1173
- def initialize(**args)
1174
- update!(**args)
1175
- end
1176
-
1177
- # Update properties of this object
1178
- def update!(**args)
1179
- @max_price = args[:max_price] if args.key?(:max_price)
1180
- @passengers = args[:passengers] if args.key?(:passengers)
1181
- @refundable = args[:refundable] if args.key?(:refundable)
1182
- @sale_country = args[:sale_country] if args.key?(:sale_country)
1183
- @slice = args[:slice] if args.key?(:slice)
1184
- @solutions = args[:solutions] if args.key?(:solutions)
1185
- @ticketing_country = args[:ticketing_country] if args.key?(:ticketing_country)
1186
- end
1187
- end
1188
-
1189
- # A QPX Express search response.
1190
- class TripOptionsResponse
1191
- include Google::Apis::Core::Hashable
1192
-
1193
- # Detailed information about components found in the solutions of this response,
1194
- # including a trip's airport, city, taxes, airline, and aircraft.
1195
- # Corresponds to the JSON property `data`
1196
- # @return [Google::Apis::QpxExpressV1::Data]
1197
- attr_accessor :data
1198
-
1199
- # Identifies this as a QPX Express trip response object, which consists of zero
1200
- # or more solutions. Value: the fixed string qpxexpress#tripOptions.
1201
- # Corresponds to the JSON property `kind`
1202
- # @return [String]
1203
- attr_accessor :kind
1204
-
1205
- # An identifier uniquely identifying this response.
1206
- # Corresponds to the JSON property `requestId`
1207
- # @return [String]
1208
- attr_accessor :request_id
1209
-
1210
- # A list of priced itinerary solutions to the QPX Express query.
1211
- # Corresponds to the JSON property `tripOption`
1212
- # @return [Array<Google::Apis::QpxExpressV1::TripOption>]
1213
- attr_accessor :trip_option
1214
-
1215
- def initialize(**args)
1216
- update!(**args)
1217
- end
1218
-
1219
- # Update properties of this object
1220
- def update!(**args)
1221
- @data = args[:data] if args.key?(:data)
1222
- @kind = args[:kind] if args.key?(:kind)
1223
- @request_id = args[:request_id] if args.key?(:request_id)
1224
- @trip_option = args[:trip_option] if args.key?(:trip_option)
1225
- end
1226
- end
1227
-
1228
- # A QPX Express search request.
1229
- class SearchTripsRequest
1230
- include Google::Apis::Core::Hashable
1231
-
1232
- # A QPX Express search request, which will yield one or more solutions.
1233
- # Corresponds to the JSON property `request`
1234
- # @return [Google::Apis::QpxExpressV1::TripOptionsRequest]
1235
- attr_accessor :request
1236
-
1237
- def initialize(**args)
1238
- update!(**args)
1239
- end
1240
-
1241
- # Update properties of this object
1242
- def update!(**args)
1243
- @request = args[:request] if args.key?(:request)
1244
- end
1245
- end
1246
-
1247
- # A QPX Express search response.
1248
- class SearchTripsResponse
1249
- include Google::Apis::Core::Hashable
1250
-
1251
- # Identifies this as a QPX Express API search response resource. Value: the
1252
- # fixed string qpxExpress#tripsSearch.
1253
- # Corresponds to the JSON property `kind`
1254
- # @return [String]
1255
- attr_accessor :kind
1256
-
1257
- # A QPX Express search response.
1258
- # Corresponds to the JSON property `trips`
1259
- # @return [Google::Apis::QpxExpressV1::TripOptionsResponse]
1260
- attr_accessor :trips
1261
-
1262
- def initialize(**args)
1263
- update!(**args)
1264
- end
1265
-
1266
- # Update properties of this object
1267
- def update!(**args)
1268
- @kind = args[:kind] if args.key?(:kind)
1269
- @trips = args[:trips] if args.key?(:trips)
1270
- end
1271
- end
1272
- end
1273
- end
1274
- end