lemboy-google-api-client 0.9.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (555) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,31 @@
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
@@ -0,0 +1,1274 @@
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