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,35 @@
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/appengine_v1beta4/service.rb'
16
+ require 'google/apis/appengine_v1beta4/classes.rb'
17
+ require 'google/apis/appengine_v1beta4/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google App Engine Admin API
22
+ #
23
+ # The Google App Engine Admin API enables developers to provision and manage
24
+ # their App Engine applications.
25
+ #
26
+ # @see https://cloud.google.com/appengine/docs/admin-api/
27
+ module AppengineV1beta4
28
+ VERSION = 'V1beta4'
29
+ REVISION = '20160121'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,1585 @@
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 AppengineV1beta4
24
+
25
+ # An Application contains the top-level configuration of an App Engine
26
+ # application.
27
+ class Application
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # The full path to the application in the API. Example: "apps/myapp". @
31
+ # OutputOnly
32
+ # Corresponds to the JSON property `name`
33
+ # @return [String]
34
+ attr_accessor :name
35
+
36
+ # The relative name/path of the application. Example: "myapp". @OutputOnly
37
+ # Corresponds to the JSON property `id`
38
+ # @return [String]
39
+ attr_accessor :id
40
+
41
+ # HTTP path dispatch rules for requests to the app that do not explicitly target
42
+ # a module or version. The rules are order-dependent.
43
+ # Corresponds to the JSON property `dispatchRules`
44
+ # @return [Array<Google::Apis::AppengineV1beta4::UrlDispatchRule>]
45
+ attr_accessor :dispatch_rules
46
+
47
+ # The location from which the application will be run. Choices are "us-central"
48
+ # for United States and "europe-west" for European Union. Application instances
49
+ # will run out of data centers in the chosen location and all of the application'
50
+ # s End User Content will be stored at rest in the chosen location. The default
51
+ # is "us-central".
52
+ # Corresponds to the JSON property `location`
53
+ # @return [String]
54
+ attr_accessor :location
55
+
56
+ # A Google Cloud Storage bucket which can be used for storing files associated
57
+ # with an application. This bucket is associated with the application and can be
58
+ # used by the gcloud deployment commands. @OutputOnly
59
+ # Corresponds to the JSON property `codeBucket`
60
+ # @return [String]
61
+ attr_accessor :code_bucket
62
+
63
+ # A Google Cloud Storage bucket which can be used by the application to store
64
+ # content. @OutputOnly
65
+ # Corresponds to the JSON property `defaultBucket`
66
+ # @return [String]
67
+ attr_accessor :default_bucket
68
+
69
+ def initialize(**args)
70
+ update!(**args)
71
+ end
72
+
73
+ # Update properties of this object
74
+ def update!(**args)
75
+ @name = args[:name] if args.key?(:name)
76
+ @id = args[:id] if args.key?(:id)
77
+ @dispatch_rules = args[:dispatch_rules] if args.key?(:dispatch_rules)
78
+ @location = args[:location] if args.key?(:location)
79
+ @code_bucket = args[:code_bucket] if args.key?(:code_bucket)
80
+ @default_bucket = args[:default_bucket] if args.key?(:default_bucket)
81
+ end
82
+ end
83
+
84
+ # Rules to match an HTTP request and dispatch that request to a module.
85
+ class UrlDispatchRule
86
+ include Google::Apis::Core::Hashable
87
+
88
+ # The domain name to match on. Supports '*' (glob) wildcarding on the left-hand
89
+ # side of a '.'. If empty, all domains will be matched (the same as '*').
90
+ # Corresponds to the JSON property `domain`
91
+ # @return [String]
92
+ attr_accessor :domain
93
+
94
+ # The pathname within the host. This must start with a '/'. A single '*' (glob)
95
+ # can be included at the end of the path. The sum of the lengths of the domain
96
+ # and path may not exceed 100 characters.
97
+ # Corresponds to the JSON property `path`
98
+ # @return [String]
99
+ attr_accessor :path
100
+
101
+ # The resource id of a Module in this application that should service the
102
+ # matched request. The Module must already exist. Example: "default".
103
+ # Corresponds to the JSON property `module`
104
+ # @return [String]
105
+ attr_accessor :module
106
+
107
+ def initialize(**args)
108
+ update!(**args)
109
+ end
110
+
111
+ # Update properties of this object
112
+ def update!(**args)
113
+ @domain = args[:domain] if args.key?(:domain)
114
+ @path = args[:path] if args.key?(:path)
115
+ @module = args[:module] if args.key?(:module)
116
+ end
117
+ end
118
+
119
+ # A Version is a specific set of source code and configuration files deployed to
120
+ # a module.
121
+ class Version
122
+ include Google::Apis::Core::Hashable
123
+
124
+ # The full path to the Version resource in the API. Example: "apps/myapp/modules/
125
+ # default/versions/v1". @OutputOnly
126
+ # Corresponds to the JSON property `name`
127
+ # @return [String]
128
+ attr_accessor :name
129
+
130
+ # The relative name/path of the Version within the module. Example: "v1".
131
+ # Version specifiers can contain lowercase letters, digits, and hyphens. It
132
+ # cannot begin with the prefix `ah-` and the names `default` and `latest` are
133
+ # reserved and cannot be used.
134
+ # Corresponds to the JSON property `id`
135
+ # @return [String]
136
+ attr_accessor :id
137
+
138
+ # Automatic scaling is the scaling policy that App Engine has used since its
139
+ # inception. It is based on request rate, response latencies, and other
140
+ # application metrics.
141
+ # Corresponds to the JSON property `automaticScaling`
142
+ # @return [Google::Apis::AppengineV1beta4::AutomaticScaling]
143
+ attr_accessor :automatic_scaling
144
+
145
+ # A module with basic scaling will create an instance when the application
146
+ # receives a request. The instance will be turned down when the app becomes idle.
147
+ # Basic scaling is ideal for work that is intermittent or driven by user
148
+ # activity.
149
+ # Corresponds to the JSON property `basicScaling`
150
+ # @return [Google::Apis::AppengineV1beta4::BasicScaling]
151
+ attr_accessor :basic_scaling
152
+
153
+ # A module with manual scaling runs continuously, allowing you to perform
154
+ # complex initialization and rely on the state of its memory over time.
155
+ # Corresponds to the JSON property `manualScaling`
156
+ # @return [Google::Apis::AppengineV1beta4::ManualScaling]
157
+ attr_accessor :manual_scaling
158
+
159
+ # Before an application can receive email or XMPP messages, the application must
160
+ # be configured to enable the service.
161
+ # Corresponds to the JSON property `inboundServices`
162
+ # @return [Array<String>]
163
+ attr_accessor :inbound_services
164
+
165
+ # The frontend instance class to use to run this app. Valid values are `[F1, F2,
166
+ # F4, F4_1G]`. Default: "F1"
167
+ # Corresponds to the JSON property `instanceClass`
168
+ # @return [String]
169
+ attr_accessor :instance_class
170
+
171
+ # Used to specify extra network settings (for VM runtimes only).
172
+ # Corresponds to the JSON property `network`
173
+ # @return [Google::Apis::AppengineV1beta4::Network]
174
+ attr_accessor :network
175
+
176
+ # Used to specify how many machine resources an app version needs.
177
+ # Corresponds to the JSON property `resources`
178
+ # @return [Google::Apis::AppengineV1beta4::Resources]
179
+ attr_accessor :resources
180
+
181
+ # The desired runtime. Values can include python27, java7, go, etc.
182
+ # Corresponds to the JSON property `runtime`
183
+ # @return [String]
184
+ attr_accessor :runtime
185
+
186
+ # If true, multiple requests can be dispatched to the app at once.
187
+ # Corresponds to the JSON property `threadsafe`
188
+ # @return [Boolean]
189
+ attr_accessor :threadsafe
190
+ alias_method :threadsafe?, :threadsafe
191
+
192
+ # Whether to deploy this app in a VM container.
193
+ # Corresponds to the JSON property `vm`
194
+ # @return [Boolean]
195
+ attr_accessor :vm
196
+ alias_method :vm?, :vm
197
+
198
+ # Beta settings supplied to the application via metadata.
199
+ # Corresponds to the JSON property `betaSettings`
200
+ # @return [Hash<String,String>]
201
+ attr_accessor :beta_settings
202
+
203
+ # The App Engine execution environment to use for this version. Default: "1"
204
+ # Corresponds to the JSON property `env`
205
+ # @return [String]
206
+ attr_accessor :env
207
+
208
+ # The current serving status of this version. Only `SERVING` versions will have
209
+ # instances created or billed for. If this field is unset when a version is
210
+ # created, `SERVING` status will be assumed. It is an error to explicitly set
211
+ # this field to `SERVING_STATUS_UNSPECIFIED`.
212
+ # Corresponds to the JSON property `servingStatus`
213
+ # @return [String]
214
+ attr_accessor :serving_status
215
+
216
+ # The email address of the user who created this version. @OutputOnly
217
+ # Corresponds to the JSON property `deployer`
218
+ # @return [String]
219
+ attr_accessor :deployer
220
+
221
+ # Creation time of this version. This will be between the start and end times of
222
+ # the operation that creates this version. @OutputOnly
223
+ # Corresponds to the JSON property `creationTime`
224
+ # @return [String]
225
+ attr_accessor :creation_time
226
+
227
+ # An ordered list of URL Matching patterns that should be applied to incoming
228
+ # requests. The first matching URL consumes the request, and subsequent handlers
229
+ # are not attempted. Only returned in `GET` requests if `view=FULL` is set. May
230
+ # only be set on create requests; once created, is immutable.
231
+ # Corresponds to the JSON property `handlers`
232
+ # @return [Array<Google::Apis::AppengineV1beta4::UrlMap>]
233
+ attr_accessor :handlers
234
+
235
+ # Custom static error pages instead of these generic error pages, (limit 10 KB/
236
+ # page) Only returned in `GET` requests if `view=FULL` is set. May only be set
237
+ # on create requests; once created, is immutable.
238
+ # Corresponds to the JSON property `errorHandlers`
239
+ # @return [Array<Google::Apis::AppengineV1beta4::ErrorHandler>]
240
+ attr_accessor :error_handlers
241
+
242
+ # Configuration for Python runtime third-party libraries required by the
243
+ # application. Only returned in `GET` requests if `view=FULL` is set. May only
244
+ # be set on create requests; once created, is immutable.
245
+ # Corresponds to the JSON property `libraries`
246
+ # @return [Array<Google::Apis::AppengineV1beta4::Library>]
247
+ attr_accessor :libraries
248
+
249
+ # API Serving configuration for Cloud Endpoints.
250
+ # Corresponds to the JSON property `apiConfig`
251
+ # @return [Google::Apis::AppengineV1beta4::ApiConfigHandler]
252
+ attr_accessor :api_config
253
+
254
+ # Environment variables made available to the application. Only returned in `GET`
255
+ # requests if `view=FULL` is set. May only be set on create requests; once
256
+ # created, is immutable.
257
+ # Corresponds to the JSON property `envVariables`
258
+ # @return [Hash<String,String>]
259
+ attr_accessor :env_variables
260
+
261
+ # The length of time a static file served by a static file handler ought to be
262
+ # cached by web proxies and browsers, if the handler does not specify its own
263
+ # expiration. Only returned in `GET` requests if `view=FULL` is set. May only be
264
+ # set on create requests; once created, is immutable.
265
+ # Corresponds to the JSON property `defaultExpiration`
266
+ # @return [String]
267
+ attr_accessor :default_expiration
268
+
269
+ # Configure health checking for the VM instances. Unhealthy VM instances will be
270
+ # killed and replaced with new instances.
271
+ # Corresponds to the JSON property `healthCheck`
272
+ # @return [Google::Apis::AppengineV1beta4::HealthCheck]
273
+ attr_accessor :health_check
274
+
275
+ # Go only. Files that match this pattern will not be built into the app. May
276
+ # only be set on create requests.
277
+ # Corresponds to the JSON property `nobuildFilesRegex`
278
+ # @return [String]
279
+ attr_accessor :nobuild_files_regex
280
+
281
+ # Code and application artifacts used to deploy a version to App Engine.
282
+ # Corresponds to the JSON property `deployment`
283
+ # @return [Google::Apis::AppengineV1beta4::Deployment]
284
+ attr_accessor :deployment
285
+
286
+ def initialize(**args)
287
+ update!(**args)
288
+ end
289
+
290
+ # Update properties of this object
291
+ def update!(**args)
292
+ @name = args[:name] if args.key?(:name)
293
+ @id = args[:id] if args.key?(:id)
294
+ @automatic_scaling = args[:automatic_scaling] if args.key?(:automatic_scaling)
295
+ @basic_scaling = args[:basic_scaling] if args.key?(:basic_scaling)
296
+ @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
297
+ @inbound_services = args[:inbound_services] if args.key?(:inbound_services)
298
+ @instance_class = args[:instance_class] if args.key?(:instance_class)
299
+ @network = args[:network] if args.key?(:network)
300
+ @resources = args[:resources] if args.key?(:resources)
301
+ @runtime = args[:runtime] if args.key?(:runtime)
302
+ @threadsafe = args[:threadsafe] if args.key?(:threadsafe)
303
+ @vm = args[:vm] if args.key?(:vm)
304
+ @beta_settings = args[:beta_settings] if args.key?(:beta_settings)
305
+ @env = args[:env] if args.key?(:env)
306
+ @serving_status = args[:serving_status] if args.key?(:serving_status)
307
+ @deployer = args[:deployer] if args.key?(:deployer)
308
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
309
+ @handlers = args[:handlers] if args.key?(:handlers)
310
+ @error_handlers = args[:error_handlers] if args.key?(:error_handlers)
311
+ @libraries = args[:libraries] if args.key?(:libraries)
312
+ @api_config = args[:api_config] if args.key?(:api_config)
313
+ @env_variables = args[:env_variables] if args.key?(:env_variables)
314
+ @default_expiration = args[:default_expiration] if args.key?(:default_expiration)
315
+ @health_check = args[:health_check] if args.key?(:health_check)
316
+ @nobuild_files_regex = args[:nobuild_files_regex] if args.key?(:nobuild_files_regex)
317
+ @deployment = args[:deployment] if args.key?(:deployment)
318
+ end
319
+ end
320
+
321
+ # Automatic scaling is the scaling policy that App Engine has used since its
322
+ # inception. It is based on request rate, response latencies, and other
323
+ # application metrics.
324
+ class AutomaticScaling
325
+ include Google::Apis::Core::Hashable
326
+
327
+ # The amount of time that the [Autoscaler](https://cloud.google.com/compute/docs/
328
+ # autoscaler/) should wait between changes to the number of virtual machines.
329
+ # Applies only to the VM runtime.
330
+ # Corresponds to the JSON property `coolDownPeriod`
331
+ # @return [String]
332
+ attr_accessor :cool_down_period
333
+
334
+ # Target scaling by CPU usage.
335
+ # Corresponds to the JSON property `cpuUtilization`
336
+ # @return [Google::Apis::AppengineV1beta4::CpuUtilization]
337
+ attr_accessor :cpu_utilization
338
+
339
+ # The number of concurrent requests an automatic scaling instance can accept
340
+ # before the scheduler spawns a new instance. Default value is chosen based on
341
+ # the runtime.
342
+ # Corresponds to the JSON property `maxConcurrentRequests`
343
+ # @return [Fixnum]
344
+ attr_accessor :max_concurrent_requests
345
+
346
+ # The maximum number of idle instances that App Engine should maintain for this
347
+ # version.
348
+ # Corresponds to the JSON property `maxIdleInstances`
349
+ # @return [Fixnum]
350
+ attr_accessor :max_idle_instances
351
+
352
+ # Max number of instances that App Engine should start to handle requests.
353
+ # Corresponds to the JSON property `maxTotalInstances`
354
+ # @return [Fixnum]
355
+ attr_accessor :max_total_instances
356
+
357
+ # The maximum amount of time that App Engine should allow a request to wait in
358
+ # the pending queue before starting a new instance to handle it.
359
+ # Corresponds to the JSON property `maxPendingLatency`
360
+ # @return [String]
361
+ attr_accessor :max_pending_latency
362
+
363
+ # The minimum number of idle instances that App Engine should maintain for this
364
+ # version. Only applies to the default version of a module, since other versions
365
+ # are not expected to receive significant traffic.
366
+ # Corresponds to the JSON property `minIdleInstances`
367
+ # @return [Fixnum]
368
+ attr_accessor :min_idle_instances
369
+
370
+ # Minimum number of instances that App Engine should maintain.
371
+ # Corresponds to the JSON property `minTotalInstances`
372
+ # @return [Fixnum]
373
+ attr_accessor :min_total_instances
374
+
375
+ # The minimum amount of time that App Engine should allow a request to wait in
376
+ # the pending queue before starting a new instance to handle it.
377
+ # Corresponds to the JSON property `minPendingLatency`
378
+ # @return [String]
379
+ attr_accessor :min_pending_latency
380
+
381
+ # Target scaling by request utilization (for VM runtimes only).
382
+ # Corresponds to the JSON property `requestUtilization`
383
+ # @return [Google::Apis::AppengineV1beta4::RequestUtilization]
384
+ attr_accessor :request_utilization
385
+
386
+ # Target scaling by disk usage (for VM runtimes only).
387
+ # Corresponds to the JSON property `diskUtilization`
388
+ # @return [Google::Apis::AppengineV1beta4::DiskUtilization]
389
+ attr_accessor :disk_utilization
390
+
391
+ # Target scaling by network usage (for VM runtimes only).
392
+ # Corresponds to the JSON property `networkUtilization`
393
+ # @return [Google::Apis::AppengineV1beta4::NetworkUtilization]
394
+ attr_accessor :network_utilization
395
+
396
+ def initialize(**args)
397
+ update!(**args)
398
+ end
399
+
400
+ # Update properties of this object
401
+ def update!(**args)
402
+ @cool_down_period = args[:cool_down_period] if args.key?(:cool_down_period)
403
+ @cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization)
404
+ @max_concurrent_requests = args[:max_concurrent_requests] if args.key?(:max_concurrent_requests)
405
+ @max_idle_instances = args[:max_idle_instances] if args.key?(:max_idle_instances)
406
+ @max_total_instances = args[:max_total_instances] if args.key?(:max_total_instances)
407
+ @max_pending_latency = args[:max_pending_latency] if args.key?(:max_pending_latency)
408
+ @min_idle_instances = args[:min_idle_instances] if args.key?(:min_idle_instances)
409
+ @min_total_instances = args[:min_total_instances] if args.key?(:min_total_instances)
410
+ @min_pending_latency = args[:min_pending_latency] if args.key?(:min_pending_latency)
411
+ @request_utilization = args[:request_utilization] if args.key?(:request_utilization)
412
+ @disk_utilization = args[:disk_utilization] if args.key?(:disk_utilization)
413
+ @network_utilization = args[:network_utilization] if args.key?(:network_utilization)
414
+ end
415
+ end
416
+
417
+ # Target scaling by CPU usage.
418
+ class CpuUtilization
419
+ include Google::Apis::Core::Hashable
420
+
421
+ # The period of time over which CPU utilization is calculated.
422
+ # Corresponds to the JSON property `aggregationWindowLength`
423
+ # @return [String]
424
+ attr_accessor :aggregation_window_length
425
+
426
+ # Target (0-1) CPU utilization ratio to maintain when scaling.
427
+ # Corresponds to the JSON property `targetUtilization`
428
+ # @return [Float]
429
+ attr_accessor :target_utilization
430
+
431
+ def initialize(**args)
432
+ update!(**args)
433
+ end
434
+
435
+ # Update properties of this object
436
+ def update!(**args)
437
+ @aggregation_window_length = args[:aggregation_window_length] if args.key?(:aggregation_window_length)
438
+ @target_utilization = args[:target_utilization] if args.key?(:target_utilization)
439
+ end
440
+ end
441
+
442
+ # Target scaling by request utilization (for VM runtimes only).
443
+ class RequestUtilization
444
+ include Google::Apis::Core::Hashable
445
+
446
+ # Target requests per second.
447
+ # Corresponds to the JSON property `targetRequestCountPerSec`
448
+ # @return [Fixnum]
449
+ attr_accessor :target_request_count_per_sec
450
+
451
+ # Target number of concurrent requests.
452
+ # Corresponds to the JSON property `targetConcurrentRequests`
453
+ # @return [Fixnum]
454
+ attr_accessor :target_concurrent_requests
455
+
456
+ def initialize(**args)
457
+ update!(**args)
458
+ end
459
+
460
+ # Update properties of this object
461
+ def update!(**args)
462
+ @target_request_count_per_sec = args[:target_request_count_per_sec] if args.key?(:target_request_count_per_sec)
463
+ @target_concurrent_requests = args[:target_concurrent_requests] if args.key?(:target_concurrent_requests)
464
+ end
465
+ end
466
+
467
+ # Target scaling by disk usage (for VM runtimes only).
468
+ class DiskUtilization
469
+ include Google::Apis::Core::Hashable
470
+
471
+ # Target bytes per second written.
472
+ # Corresponds to the JSON property `targetWriteBytesPerSec`
473
+ # @return [Fixnum]
474
+ attr_accessor :target_write_bytes_per_sec
475
+
476
+ # Target ops per second written.
477
+ # Corresponds to the JSON property `targetWriteOpsPerSec`
478
+ # @return [Fixnum]
479
+ attr_accessor :target_write_ops_per_sec
480
+
481
+ # Target bytes per second read.
482
+ # Corresponds to the JSON property `targetReadBytesPerSec`
483
+ # @return [Fixnum]
484
+ attr_accessor :target_read_bytes_per_sec
485
+
486
+ # Target ops per second read.
487
+ # Corresponds to the JSON property `targetReadOpsPerSec`
488
+ # @return [Fixnum]
489
+ attr_accessor :target_read_ops_per_sec
490
+
491
+ def initialize(**args)
492
+ update!(**args)
493
+ end
494
+
495
+ # Update properties of this object
496
+ def update!(**args)
497
+ @target_write_bytes_per_sec = args[:target_write_bytes_per_sec] if args.key?(:target_write_bytes_per_sec)
498
+ @target_write_ops_per_sec = args[:target_write_ops_per_sec] if args.key?(:target_write_ops_per_sec)
499
+ @target_read_bytes_per_sec = args[:target_read_bytes_per_sec] if args.key?(:target_read_bytes_per_sec)
500
+ @target_read_ops_per_sec = args[:target_read_ops_per_sec] if args.key?(:target_read_ops_per_sec)
501
+ end
502
+ end
503
+
504
+ # Target scaling by network usage (for VM runtimes only).
505
+ class NetworkUtilization
506
+ include Google::Apis::Core::Hashable
507
+
508
+ # Target bytes per second sent.
509
+ # Corresponds to the JSON property `targetSentBytesPerSec`
510
+ # @return [Fixnum]
511
+ attr_accessor :target_sent_bytes_per_sec
512
+
513
+ # Target packets per second sent.
514
+ # Corresponds to the JSON property `targetSentPacketsPerSec`
515
+ # @return [Fixnum]
516
+ attr_accessor :target_sent_packets_per_sec
517
+
518
+ # Target bytes per second received.
519
+ # Corresponds to the JSON property `targetReceivedBytesPerSec`
520
+ # @return [Fixnum]
521
+ attr_accessor :target_received_bytes_per_sec
522
+
523
+ # Target packets per second received.
524
+ # Corresponds to the JSON property `targetReceivedPacketsPerSec`
525
+ # @return [Fixnum]
526
+ attr_accessor :target_received_packets_per_sec
527
+
528
+ def initialize(**args)
529
+ update!(**args)
530
+ end
531
+
532
+ # Update properties of this object
533
+ def update!(**args)
534
+ @target_sent_bytes_per_sec = args[:target_sent_bytes_per_sec] if args.key?(:target_sent_bytes_per_sec)
535
+ @target_sent_packets_per_sec = args[:target_sent_packets_per_sec] if args.key?(:target_sent_packets_per_sec)
536
+ @target_received_bytes_per_sec = args[:target_received_bytes_per_sec] if args.key?(:target_received_bytes_per_sec)
537
+ @target_received_packets_per_sec = args[:target_received_packets_per_sec] if args.key?(:target_received_packets_per_sec)
538
+ end
539
+ end
540
+
541
+ # A module with basic scaling will create an instance when the application
542
+ # receives a request. The instance will be turned down when the app becomes idle.
543
+ # Basic scaling is ideal for work that is intermittent or driven by user
544
+ # activity.
545
+ class BasicScaling
546
+ include Google::Apis::Core::Hashable
547
+
548
+ # The instance will be shut down this amount of time after receiving its last
549
+ # request.
550
+ # Corresponds to the JSON property `idleTimeout`
551
+ # @return [String]
552
+ attr_accessor :idle_timeout
553
+
554
+ # The maximum number of instances for App Engine to create for this version.
555
+ # Corresponds to the JSON property `maxInstances`
556
+ # @return [Fixnum]
557
+ attr_accessor :max_instances
558
+
559
+ def initialize(**args)
560
+ update!(**args)
561
+ end
562
+
563
+ # Update properties of this object
564
+ def update!(**args)
565
+ @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
566
+ @max_instances = args[:max_instances] if args.key?(:max_instances)
567
+ end
568
+ end
569
+
570
+ # A module with manual scaling runs continuously, allowing you to perform
571
+ # complex initialization and rely on the state of its memory over time.
572
+ class ManualScaling
573
+ include Google::Apis::Core::Hashable
574
+
575
+ # The number of instances to assign to the module at the start. This number can
576
+ # later be altered by using the [Modules API](https://cloud.google.com/appengine/
577
+ # docs/python/modules/functions) `set_num_instances()` function.
578
+ # Corresponds to the JSON property `instances`
579
+ # @return [Fixnum]
580
+ attr_accessor :instances
581
+
582
+ def initialize(**args)
583
+ update!(**args)
584
+ end
585
+
586
+ # Update properties of this object
587
+ def update!(**args)
588
+ @instances = args[:instances] if args.key?(:instances)
589
+ end
590
+ end
591
+
592
+ # Used to specify extra network settings (for VM runtimes only).
593
+ class Network
594
+ include Google::Apis::Core::Hashable
595
+
596
+ # A list of ports (or port pairs) to forward from the VM into the app container.
597
+ # Corresponds to the JSON property `forwardedPorts`
598
+ # @return [Array<String>]
599
+ attr_accessor :forwarded_ports
600
+
601
+ # A tag to apply to the VM instance during creation.
602
+ # Corresponds to the JSON property `instanceTag`
603
+ # @return [String]
604
+ attr_accessor :instance_tag
605
+
606
+ # The Google Compute Engine network where the VMs will be created. If not
607
+ # specified, or empty, the network named "default" will be used. (The short name
608
+ # should be specified, not the resource path.)
609
+ # Corresponds to the JSON property `name`
610
+ # @return [String]
611
+ attr_accessor :name
612
+
613
+ def initialize(**args)
614
+ update!(**args)
615
+ end
616
+
617
+ # Update properties of this object
618
+ def update!(**args)
619
+ @forwarded_ports = args[:forwarded_ports] if args.key?(:forwarded_ports)
620
+ @instance_tag = args[:instance_tag] if args.key?(:instance_tag)
621
+ @name = args[:name] if args.key?(:name)
622
+ end
623
+ end
624
+
625
+ # Used to specify how many machine resources an app version needs.
626
+ class Resources
627
+ include Google::Apis::Core::Hashable
628
+
629
+ # How many CPU cores an app version needs.
630
+ # Corresponds to the JSON property `cpu`
631
+ # @return [Float]
632
+ attr_accessor :cpu
633
+
634
+ # How much disk size, in GB, an app version needs.
635
+ # Corresponds to the JSON property `diskGb`
636
+ # @return [Float]
637
+ attr_accessor :disk_gb
638
+
639
+ # How much memory, in GB, an app version needs.
640
+ # Corresponds to the JSON property `memoryGb`
641
+ # @return [Float]
642
+ attr_accessor :memory_gb
643
+
644
+ def initialize(**args)
645
+ update!(**args)
646
+ end
647
+
648
+ # Update properties of this object
649
+ def update!(**args)
650
+ @cpu = args[:cpu] if args.key?(:cpu)
651
+ @disk_gb = args[:disk_gb] if args.key?(:disk_gb)
652
+ @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
653
+ end
654
+ end
655
+
656
+ # A URL pattern and description of how it should be handled. App Engine can
657
+ # handle URLs by executing application code, or by serving static files uploaded
658
+ # with the code, such as images, CSS or JavaScript.
659
+ class UrlMap
660
+ include Google::Apis::Core::Hashable
661
+
662
+ # A URL prefix. This value uses regular expression syntax (and so regexp special
663
+ # characters must be escaped), but it should not contain groupings. All URLs
664
+ # that begin with this prefix are handled by this handler, using the portion of
665
+ # the URL after the prefix as part of the file path. This is always required.
666
+ # Corresponds to the JSON property `urlRegex`
667
+ # @return [String]
668
+ attr_accessor :url_regex
669
+
670
+ # Files served directly to the user for a given URL, such as images, CSS
671
+ # stylesheets, or JavaScript source files. Static file handlers describe which
672
+ # files in the application directory are static files, and which URLs serve them.
673
+ # Corresponds to the JSON property `staticFiles`
674
+ # @return [Google::Apis::AppengineV1beta4::StaticFilesHandler]
675
+ attr_accessor :static_files
676
+
677
+ # Files served directly to the user for a given URL, such as images, CSS
678
+ # stylesheets, or JavaScript source files. Static directory handlers make it
679
+ # easy to serve the entire contents of a directory as static files.
680
+ # Corresponds to the JSON property `staticDirectory`
681
+ # @return [Google::Apis::AppengineV1beta4::StaticDirectoryHandler]
682
+ attr_accessor :static_directory
683
+
684
+ # Executes a script to handle the request that matches the URL pattern.
685
+ # Corresponds to the JSON property `script`
686
+ # @return [Google::Apis::AppengineV1beta4::ScriptHandler]
687
+ attr_accessor :script
688
+
689
+ # Use Google Cloud Endpoints to handle requests.
690
+ # Corresponds to the JSON property `apiEndpoint`
691
+ # @return [Google::Apis::AppengineV1beta4::ApiEndpointHandler]
692
+ attr_accessor :api_endpoint
693
+
694
+ # Configures whether security (HTTPS) should be enforced for this URL.
695
+ # Corresponds to the JSON property `securityLevel`
696
+ # @return [String]
697
+ attr_accessor :security_level
698
+
699
+ # What level of login is required to access this resource.
700
+ # Corresponds to the JSON property `login`
701
+ # @return [String]
702
+ attr_accessor :login
703
+
704
+ # For users not logged in, how to handle access to resources with required login.
705
+ # Defaults to "redirect".
706
+ # Corresponds to the JSON property `authFailAction`
707
+ # @return [String]
708
+ attr_accessor :auth_fail_action
709
+
710
+ # `30x` code to use when performing redirects for the `secure` field. A `302` is
711
+ # used by default.
712
+ # Corresponds to the JSON property `redirectHttpResponseCode`
713
+ # @return [String]
714
+ attr_accessor :redirect_http_response_code
715
+
716
+ def initialize(**args)
717
+ update!(**args)
718
+ end
719
+
720
+ # Update properties of this object
721
+ def update!(**args)
722
+ @url_regex = args[:url_regex] if args.key?(:url_regex)
723
+ @static_files = args[:static_files] if args.key?(:static_files)
724
+ @static_directory = args[:static_directory] if args.key?(:static_directory)
725
+ @script = args[:script] if args.key?(:script)
726
+ @api_endpoint = args[:api_endpoint] if args.key?(:api_endpoint)
727
+ @security_level = args[:security_level] if args.key?(:security_level)
728
+ @login = args[:login] if args.key?(:login)
729
+ @auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action)
730
+ @redirect_http_response_code = args[:redirect_http_response_code] if args.key?(:redirect_http_response_code)
731
+ end
732
+ end
733
+
734
+ # Files served directly to the user for a given URL, such as images, CSS
735
+ # stylesheets, or JavaScript source files. Static file handlers describe which
736
+ # files in the application directory are static files, and which URLs serve them.
737
+ class StaticFilesHandler
738
+ include Google::Apis::Core::Hashable
739
+
740
+ # The path to the static files matched by the URL pattern, from the application
741
+ # root directory. The path can refer to text matched in groupings in the URL
742
+ # pattern.
743
+ # Corresponds to the JSON property `path`
744
+ # @return [String]
745
+ attr_accessor :path
746
+
747
+ # A regular expression that matches the file paths for all files that will be
748
+ # referenced by this handler.
749
+ # Corresponds to the JSON property `uploadPathRegex`
750
+ # @return [String]
751
+ attr_accessor :upload_path_regex
752
+
753
+ # HTTP headers to use for all responses from these URLs.
754
+ # Corresponds to the JSON property `httpHeaders`
755
+ # @return [Hash<String,String>]
756
+ attr_accessor :http_headers
757
+
758
+ # If specified, all files served by this handler will be served using the
759
+ # specified MIME type. If not specified, the MIME type for a file will be
760
+ # derived from the file's filename extension.
761
+ # Corresponds to the JSON property `mimeType`
762
+ # @return [String]
763
+ attr_accessor :mime_type
764
+
765
+ # The length of time a static file served by this handler ought to be cached by
766
+ # web proxies and browsers.
767
+ # Corresponds to the JSON property `expiration`
768
+ # @return [String]
769
+ attr_accessor :expiration
770
+
771
+ # If true, this UrlMap entry does not match the request unless the file
772
+ # referenced by the handler also exists. If no such file exists, processing will
773
+ # continue with the next UrlMap that matches the requested URL.
774
+ # Corresponds to the JSON property `requireMatchingFile`
775
+ # @return [Boolean]
776
+ attr_accessor :require_matching_file
777
+ alias_method :require_matching_file?, :require_matching_file
778
+
779
+ # By default, files declared in static file handlers are uploaded as static data
780
+ # and are only served to end users, they cannot be read by an application. If
781
+ # this field is set to true, the files are also uploaded as code data so your
782
+ # application can read them. Both uploads are charged against your code and
783
+ # static data storage resource quotas.
784
+ # Corresponds to the JSON property `applicationReadable`
785
+ # @return [Boolean]
786
+ attr_accessor :application_readable
787
+ alias_method :application_readable?, :application_readable
788
+
789
+ def initialize(**args)
790
+ update!(**args)
791
+ end
792
+
793
+ # Update properties of this object
794
+ def update!(**args)
795
+ @path = args[:path] if args.key?(:path)
796
+ @upload_path_regex = args[:upload_path_regex] if args.key?(:upload_path_regex)
797
+ @http_headers = args[:http_headers] if args.key?(:http_headers)
798
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
799
+ @expiration = args[:expiration] if args.key?(:expiration)
800
+ @require_matching_file = args[:require_matching_file] if args.key?(:require_matching_file)
801
+ @application_readable = args[:application_readable] if args.key?(:application_readable)
802
+ end
803
+ end
804
+
805
+ # Files served directly to the user for a given URL, such as images, CSS
806
+ # stylesheets, or JavaScript source files. Static directory handlers make it
807
+ # easy to serve the entire contents of a directory as static files.
808
+ class StaticDirectoryHandler
809
+ include Google::Apis::Core::Hashable
810
+
811
+ # The path to the directory containing the static files, from the application
812
+ # root directory. Everything after the end of the matched url pattern is
813
+ # appended to static_dir to form the full path to the requested file.
814
+ # Corresponds to the JSON property `directory`
815
+ # @return [String]
816
+ attr_accessor :directory
817
+
818
+ # HTTP headers to use for all responses from these URLs.
819
+ # Corresponds to the JSON property `httpHeaders`
820
+ # @return [Hash<String,String>]
821
+ attr_accessor :http_headers
822
+
823
+ # If specified, all files served by this handler will be served using the
824
+ # specified MIME type. If not specified, the MIME type for a file will be
825
+ # derived from the file's filename extension.
826
+ # Corresponds to the JSON property `mimeType`
827
+ # @return [String]
828
+ attr_accessor :mime_type
829
+
830
+ # The length of time a static file served by this handler ought to be cached by
831
+ # web proxies and browsers.
832
+ # Corresponds to the JSON property `expiration`
833
+ # @return [String]
834
+ attr_accessor :expiration
835
+
836
+ # If true, this UrlMap entry does not match the request unless the file
837
+ # referenced by the handler also exists. If no such file exists, processing will
838
+ # continue with the next UrlMap that matches the requested URL.
839
+ # Corresponds to the JSON property `requireMatchingFile`
840
+ # @return [Boolean]
841
+ attr_accessor :require_matching_file
842
+ alias_method :require_matching_file?, :require_matching_file
843
+
844
+ # By default, files declared in static file handlers are uploaded as static data
845
+ # and are only served to end users, they cannot be read by an application. If
846
+ # this field is set to true, the files are also uploaded as code data so your
847
+ # application can read them. Both uploads are charged against your code and
848
+ # static data storage resource quotas.
849
+ # Corresponds to the JSON property `applicationReadable`
850
+ # @return [Boolean]
851
+ attr_accessor :application_readable
852
+ alias_method :application_readable?, :application_readable
853
+
854
+ def initialize(**args)
855
+ update!(**args)
856
+ end
857
+
858
+ # Update properties of this object
859
+ def update!(**args)
860
+ @directory = args[:directory] if args.key?(:directory)
861
+ @http_headers = args[:http_headers] if args.key?(:http_headers)
862
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
863
+ @expiration = args[:expiration] if args.key?(:expiration)
864
+ @require_matching_file = args[:require_matching_file] if args.key?(:require_matching_file)
865
+ @application_readable = args[:application_readable] if args.key?(:application_readable)
866
+ end
867
+ end
868
+
869
+ # Executes a script to handle the request that matches the URL pattern.
870
+ class ScriptHandler
871
+ include Google::Apis::Core::Hashable
872
+
873
+ # Specifies the path to the script from the application root directory.
874
+ # Corresponds to the JSON property `scriptPath`
875
+ # @return [String]
876
+ attr_accessor :script_path
877
+
878
+ def initialize(**args)
879
+ update!(**args)
880
+ end
881
+
882
+ # Update properties of this object
883
+ def update!(**args)
884
+ @script_path = args[:script_path] if args.key?(:script_path)
885
+ end
886
+ end
887
+
888
+ # Use Google Cloud Endpoints to handle requests.
889
+ class ApiEndpointHandler
890
+ include Google::Apis::Core::Hashable
891
+
892
+ # Specifies the path to the script from the application root directory.
893
+ # Corresponds to the JSON property `scriptPath`
894
+ # @return [String]
895
+ attr_accessor :script_path
896
+
897
+ def initialize(**args)
898
+ update!(**args)
899
+ end
900
+
901
+ # Update properties of this object
902
+ def update!(**args)
903
+ @script_path = args[:script_path] if args.key?(:script_path)
904
+ end
905
+ end
906
+
907
+ # A custom static error page to be served when an error occurs.
908
+ class ErrorHandler
909
+ include Google::Apis::Core::Hashable
910
+
911
+ # The error condition this handler applies to.
912
+ # Corresponds to the JSON property `errorCode`
913
+ # @return [String]
914
+ attr_accessor :error_code
915
+
916
+ # Static file content to be served for this error.
917
+ # Corresponds to the JSON property `staticFile`
918
+ # @return [String]
919
+ attr_accessor :static_file
920
+
921
+ # MIME type of file. If unspecified, "text/html" is assumed.
922
+ # Corresponds to the JSON property `mimeType`
923
+ # @return [String]
924
+ attr_accessor :mime_type
925
+
926
+ def initialize(**args)
927
+ update!(**args)
928
+ end
929
+
930
+ # Update properties of this object
931
+ def update!(**args)
932
+ @error_code = args[:error_code] if args.key?(:error_code)
933
+ @static_file = args[:static_file] if args.key?(:static_file)
934
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
935
+ end
936
+ end
937
+
938
+ # A Python runtime third-party library required by the application.
939
+ class Library
940
+ include Google::Apis::Core::Hashable
941
+
942
+ # The name of the library, e.g. "PIL" or "django".
943
+ # Corresponds to the JSON property `name`
944
+ # @return [String]
945
+ attr_accessor :name
946
+
947
+ # The version of the library to select, or "latest".
948
+ # Corresponds to the JSON property `version`
949
+ # @return [String]
950
+ attr_accessor :version
951
+
952
+ def initialize(**args)
953
+ update!(**args)
954
+ end
955
+
956
+ # Update properties of this object
957
+ def update!(**args)
958
+ @name = args[:name] if args.key?(:name)
959
+ @version = args[:version] if args.key?(:version)
960
+ end
961
+ end
962
+
963
+ # API Serving configuration for Cloud Endpoints.
964
+ class ApiConfigHandler
965
+ include Google::Apis::Core::Hashable
966
+
967
+ # For users not logged in, how to handle access to resources with required login.
968
+ # Defaults to "redirect".
969
+ # Corresponds to the JSON property `authFailAction`
970
+ # @return [String]
971
+ attr_accessor :auth_fail_action
972
+
973
+ # What level of login is required to access this resource. Default is "optional".
974
+ # Corresponds to the JSON property `login`
975
+ # @return [String]
976
+ attr_accessor :login
977
+
978
+ # Specifies the path to the script from the application root directory.
979
+ # Corresponds to the JSON property `script`
980
+ # @return [String]
981
+ attr_accessor :script
982
+
983
+ # Configures whether security (HTTPS) should be enforced for this URL.
984
+ # Corresponds to the JSON property `securityLevel`
985
+ # @return [String]
986
+ attr_accessor :security_level
987
+
988
+ # URL to serve the endpoint at.
989
+ # Corresponds to the JSON property `url`
990
+ # @return [String]
991
+ attr_accessor :url
992
+
993
+ def initialize(**args)
994
+ update!(**args)
995
+ end
996
+
997
+ # Update properties of this object
998
+ def update!(**args)
999
+ @auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action)
1000
+ @login = args[:login] if args.key?(:login)
1001
+ @script = args[:script] if args.key?(:script)
1002
+ @security_level = args[:security_level] if args.key?(:security_level)
1003
+ @url = args[:url] if args.key?(:url)
1004
+ end
1005
+ end
1006
+
1007
+ # Configure health checking for the VM instances. Unhealthy VM instances will be
1008
+ # killed and replaced with new instances.
1009
+ class HealthCheck
1010
+ include Google::Apis::Core::Hashable
1011
+
1012
+ # Whether to explicitly disable health checks for this instance.
1013
+ # Corresponds to the JSON property `disableHealthCheck`
1014
+ # @return [Boolean]
1015
+ attr_accessor :disable_health_check
1016
+ alias_method :disable_health_check?, :disable_health_check
1017
+
1018
+ # The host header to send when performing an HTTP health check (e.g. myapp.
1019
+ # appspot.com)
1020
+ # Corresponds to the JSON property `host`
1021
+ # @return [String]
1022
+ attr_accessor :host
1023
+
1024
+ # The number of consecutive successful health checks before receiving traffic.
1025
+ # Corresponds to the JSON property `healthyThreshold`
1026
+ # @return [Fixnum]
1027
+ attr_accessor :healthy_threshold
1028
+
1029
+ # The number of consecutive failed health checks before removing traffic.
1030
+ # Corresponds to the JSON property `unhealthyThreshold`
1031
+ # @return [Fixnum]
1032
+ attr_accessor :unhealthy_threshold
1033
+
1034
+ # The number of consecutive failed health checks before an instance is restarted.
1035
+ # Corresponds to the JSON property `restartThreshold`
1036
+ # @return [Fixnum]
1037
+ attr_accessor :restart_threshold
1038
+
1039
+ # The interval between health checks.
1040
+ # Corresponds to the JSON property `checkInterval`
1041
+ # @return [String]
1042
+ attr_accessor :check_interval
1043
+
1044
+ # The amount of time before the health check is considered failed.
1045
+ # Corresponds to the JSON property `timeout`
1046
+ # @return [String]
1047
+ attr_accessor :timeout
1048
+
1049
+ def initialize(**args)
1050
+ update!(**args)
1051
+ end
1052
+
1053
+ # Update properties of this object
1054
+ def update!(**args)
1055
+ @disable_health_check = args[:disable_health_check] if args.key?(:disable_health_check)
1056
+ @host = args[:host] if args.key?(:host)
1057
+ @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
1058
+ @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
1059
+ @restart_threshold = args[:restart_threshold] if args.key?(:restart_threshold)
1060
+ @check_interval = args[:check_interval] if args.key?(:check_interval)
1061
+ @timeout = args[:timeout] if args.key?(:timeout)
1062
+ end
1063
+ end
1064
+
1065
+ # Code and application artifacts used to deploy a version to App Engine.
1066
+ class Deployment
1067
+ include Google::Apis::Core::Hashable
1068
+
1069
+ # A manifest of files stored in Google Cloud Storage which should be included as
1070
+ # part of this application. All files must be readable using the credentials
1071
+ # supplied with this call.
1072
+ # Corresponds to the JSON property `files`
1073
+ # @return [Hash<String,Google::Apis::AppengineV1beta4::FileInfo>]
1074
+ attr_accessor :files
1075
+
1076
+ # A Docker (container) image which should be used to start the application.
1077
+ # Corresponds to the JSON property `container`
1078
+ # @return [Google::Apis::AppengineV1beta4::ContainerInfo]
1079
+ attr_accessor :container
1080
+
1081
+ # The origin of the source code for this deployment. There can be more than one
1082
+ # source reference per Version if source code is distributed among multiple
1083
+ # repositories.
1084
+ # Corresponds to the JSON property `sourceReferences`
1085
+ # @return [Array<Google::Apis::AppengineV1beta4::SourceReference>]
1086
+ attr_accessor :source_references
1087
+
1088
+ def initialize(**args)
1089
+ update!(**args)
1090
+ end
1091
+
1092
+ # Update properties of this object
1093
+ def update!(**args)
1094
+ @files = args[:files] if args.key?(:files)
1095
+ @container = args[:container] if args.key?(:container)
1096
+ @source_references = args[:source_references] if args.key?(:source_references)
1097
+ end
1098
+ end
1099
+
1100
+ # A single source file which is part of the application to be deployed.
1101
+ class FileInfo
1102
+ include Google::Apis::Core::Hashable
1103
+
1104
+ # The URL source to use to fetch this file. Must be a URL to a resource in
1105
+ # Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\/\'.
1106
+ # Corresponds to the JSON property `sourceUrl`
1107
+ # @return [String]
1108
+ attr_accessor :source_url
1109
+
1110
+ # The SHA1 (160 bits) hash of the file in hex.
1111
+ # Corresponds to the JSON property `sha1Sum`
1112
+ # @return [String]
1113
+ attr_accessor :sha1_sum
1114
+
1115
+ # The MIME type of the file; if unspecified, the value from Google Cloud Storage
1116
+ # will be used.
1117
+ # Corresponds to the JSON property `mimeType`
1118
+ # @return [String]
1119
+ attr_accessor :mime_type
1120
+
1121
+ def initialize(**args)
1122
+ update!(**args)
1123
+ end
1124
+
1125
+ # Update properties of this object
1126
+ def update!(**args)
1127
+ @source_url = args[:source_url] if args.key?(:source_url)
1128
+ @sha1_sum = args[:sha1_sum] if args.key?(:sha1_sum)
1129
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
1130
+ end
1131
+ end
1132
+
1133
+ # A Docker (container) image which should be used to start the application.
1134
+ class ContainerInfo
1135
+ include Google::Apis::Core::Hashable
1136
+
1137
+ # Reference to a hosted container image. Must be a URI to a resource in a Docker
1138
+ # repository. Must be fully qualified, including tag or digest. e.g. gcr.io/my-
1139
+ # project/image:tag or gcr.io/my-project/image@digest
1140
+ # Corresponds to the JSON property `image`
1141
+ # @return [String]
1142
+ attr_accessor :image
1143
+
1144
+ def initialize(**args)
1145
+ update!(**args)
1146
+ end
1147
+
1148
+ # Update properties of this object
1149
+ def update!(**args)
1150
+ @image = args[:image] if args.key?(:image)
1151
+ end
1152
+ end
1153
+
1154
+ # A reference to a particular snapshot of the source tree used to build and
1155
+ # deploy the application.
1156
+ class SourceReference
1157
+ include Google::Apis::Core::Hashable
1158
+
1159
+ # Optional. A URI string identifying the repository. Example: "https://source.
1160
+ # developers.google.com/p/app-123/r/default"
1161
+ # Corresponds to the JSON property `repository`
1162
+ # @return [String]
1163
+ attr_accessor :repository
1164
+
1165
+ # The canonical (and persistent) identifier of the deployed revision, i.e. any
1166
+ # kind of aliases including tags or branch names are not allowed. Example (git):
1167
+ # "2198322f89e0bb2e25021667c2ed489d1fd34e6b"
1168
+ # Corresponds to the JSON property `revisionId`
1169
+ # @return [String]
1170
+ attr_accessor :revision_id
1171
+
1172
+ def initialize(**args)
1173
+ update!(**args)
1174
+ end
1175
+
1176
+ # Update properties of this object
1177
+ def update!(**args)
1178
+ @repository = args[:repository] if args.key?(:repository)
1179
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
1180
+ end
1181
+ end
1182
+
1183
+ # This resource represents a long-running operation that is the result of a
1184
+ # network API call.
1185
+ class Operation
1186
+ include Google::Apis::Core::Hashable
1187
+
1188
+ # The server-assigned name, which is only unique within the same service that
1189
+ # originally returns it. If you use the default HTTP mapping above, the `name`
1190
+ # should have the format of `operations/some/unique/name`.
1191
+ # Corresponds to the JSON property `name`
1192
+ # @return [String]
1193
+ attr_accessor :name
1194
+
1195
+ # Service-specific metadata associated with the operation. It typically contains
1196
+ # progress information and common metadata such as create time. Some services
1197
+ # might not provide such metadata. Any method that returns a long-running
1198
+ # operation should document the metadata type, if any.
1199
+ # Corresponds to the JSON property `metadata`
1200
+ # @return [Hash<String,Object>]
1201
+ attr_accessor :metadata
1202
+
1203
+ # If the value is `false`, it means the operation is still in progress. If true,
1204
+ # the operation is completed, and either `error` or `response` is available.
1205
+ # Corresponds to the JSON property `done`
1206
+ # @return [Boolean]
1207
+ attr_accessor :done
1208
+ alias_method :done?, :done
1209
+
1210
+ # The `Status` type defines a logical error model that is suitable for different
1211
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1212
+ # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
1213
+ # use and understand for most users - Flexible enough to meet unexpected needs #
1214
+ # Overview The `Status` message contains three pieces of data: error code, error
1215
+ # message, and error details. The error code should be an enum value of google.
1216
+ # rpc.Code, but it may accept additional error codes if needed. The error
1217
+ # message should be a developer-facing English message that helps developers *
1218
+ # understand* and *resolve* the error. If a localized user-facing error message
1219
+ # is needed, put the localized message in the error details or localize it in
1220
+ # the client. The optional error details may contain arbitrary information about
1221
+ # the error. There is a predefined set of error detail types in the package `
1222
+ # google.rpc` which can be used for common error conditions. # Language mapping
1223
+ # The `Status` message is the logical representation of the error model, but it
1224
+ # is not necessarily the actual wire format. When the `Status` message is
1225
+ # exposed in different client libraries and different wire protocols, it can be
1226
+ # mapped differently. For example, it will likely be mapped to some exceptions
1227
+ # in Java, but more likely mapped to some error codes in C. # Other uses The
1228
+ # error model and the `Status` message can be used in a variety of environments,
1229
+ # either with or without APIs, to provide a consistent developer experience
1230
+ # across different environments. Example uses of this error model include: -
1231
+ # Partial errors. If a service needs to return partial errors to the client, it
1232
+ # may embed the `Status` in the normal response to indicate the partial errors. -
1233
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a `
1234
+ # Status` message for error reporting purpose. - Batch operations. If a client
1235
+ # uses batch request and batch response, the `Status` message should be used
1236
+ # directly inside batch response, one for each error sub-response. -
1237
+ # Asynchronous operations. If an API call embeds asynchronous operation results
1238
+ # in its response, the status of those operations should be represented directly
1239
+ # using the `Status` message. - Logging. If some API errors are stored in logs,
1240
+ # the message `Status` could be used directly after any stripping needed for
1241
+ # security/privacy reasons.
1242
+ # Corresponds to the JSON property `error`
1243
+ # @return [Google::Apis::AppengineV1beta4::Status]
1244
+ attr_accessor :error
1245
+
1246
+ # The normal response of the operation in case of success. If the original
1247
+ # method returns no data on success, such as `Delete`, the response is `google.
1248
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1249
+ # the response should be the resource. For other methods, the response should
1250
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
1251
+ # example, if the original method name is `TakeSnapshot()`, the inferred
1252
+ # response type is `TakeSnapshotResponse`.
1253
+ # Corresponds to the JSON property `response`
1254
+ # @return [Hash<String,Object>]
1255
+ attr_accessor :response
1256
+
1257
+ def initialize(**args)
1258
+ update!(**args)
1259
+ end
1260
+
1261
+ # Update properties of this object
1262
+ def update!(**args)
1263
+ @name = args[:name] if args.key?(:name)
1264
+ @metadata = args[:metadata] if args.key?(:metadata)
1265
+ @done = args[:done] if args.key?(:done)
1266
+ @error = args[:error] if args.key?(:error)
1267
+ @response = args[:response] if args.key?(:response)
1268
+ end
1269
+ end
1270
+
1271
+ # The `Status` type defines a logical error model that is suitable for different
1272
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1273
+ # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
1274
+ # use and understand for most users - Flexible enough to meet unexpected needs #
1275
+ # Overview The `Status` message contains three pieces of data: error code, error
1276
+ # message, and error details. The error code should be an enum value of google.
1277
+ # rpc.Code, but it may accept additional error codes if needed. The error
1278
+ # message should be a developer-facing English message that helps developers *
1279
+ # understand* and *resolve* the error. If a localized user-facing error message
1280
+ # is needed, put the localized message in the error details or localize it in
1281
+ # the client. The optional error details may contain arbitrary information about
1282
+ # the error. There is a predefined set of error detail types in the package `
1283
+ # google.rpc` which can be used for common error conditions. # Language mapping
1284
+ # The `Status` message is the logical representation of the error model, but it
1285
+ # is not necessarily the actual wire format. When the `Status` message is
1286
+ # exposed in different client libraries and different wire protocols, it can be
1287
+ # mapped differently. For example, it will likely be mapped to some exceptions
1288
+ # in Java, but more likely mapped to some error codes in C. # Other uses The
1289
+ # error model and the `Status` message can be used in a variety of environments,
1290
+ # either with or without APIs, to provide a consistent developer experience
1291
+ # across different environments. Example uses of this error model include: -
1292
+ # Partial errors. If a service needs to return partial errors to the client, it
1293
+ # may embed the `Status` in the normal response to indicate the partial errors. -
1294
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a `
1295
+ # Status` message for error reporting purpose. - Batch operations. If a client
1296
+ # uses batch request and batch response, the `Status` message should be used
1297
+ # directly inside batch response, one for each error sub-response. -
1298
+ # Asynchronous operations. If an API call embeds asynchronous operation results
1299
+ # in its response, the status of those operations should be represented directly
1300
+ # using the `Status` message. - Logging. If some API errors are stored in logs,
1301
+ # the message `Status` could be used directly after any stripping needed for
1302
+ # security/privacy reasons.
1303
+ class Status
1304
+ include Google::Apis::Core::Hashable
1305
+
1306
+ # The status code, which should be an enum value of google.rpc.Code.
1307
+ # Corresponds to the JSON property `code`
1308
+ # @return [Fixnum]
1309
+ attr_accessor :code
1310
+
1311
+ # A developer-facing error message, which should be in English. Any user-facing
1312
+ # error message should be localized and sent in the google.rpc.Status.details
1313
+ # field, or localized by the client.
1314
+ # Corresponds to the JSON property `message`
1315
+ # @return [String]
1316
+ attr_accessor :message
1317
+
1318
+ # A list of messages that carry the error details. There will be a common set of
1319
+ # message types for APIs to use.
1320
+ # Corresponds to the JSON property `details`
1321
+ # @return [Array<Hash<String,Object>>]
1322
+ attr_accessor :details
1323
+
1324
+ def initialize(**args)
1325
+ update!(**args)
1326
+ end
1327
+
1328
+ # Update properties of this object
1329
+ def update!(**args)
1330
+ @code = args[:code] if args.key?(:code)
1331
+ @message = args[:message] if args.key?(:message)
1332
+ @details = args[:details] if args.key?(:details)
1333
+ end
1334
+ end
1335
+
1336
+ # Response message for `Versions.ListVersions`.
1337
+ class ListVersionsResponse
1338
+ include Google::Apis::Core::Hashable
1339
+
1340
+ # The versions belonging to the requested application module.
1341
+ # Corresponds to the JSON property `versions`
1342
+ # @return [Array<Google::Apis::AppengineV1beta4::Version>]
1343
+ attr_accessor :versions
1344
+
1345
+ # Continuation token for fetching the next page of results.
1346
+ # Corresponds to the JSON property `nextPageToken`
1347
+ # @return [String]
1348
+ attr_accessor :next_page_token
1349
+
1350
+ def initialize(**args)
1351
+ update!(**args)
1352
+ end
1353
+
1354
+ # Update properties of this object
1355
+ def update!(**args)
1356
+ @versions = args[:versions] if args.key?(:versions)
1357
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1358
+ end
1359
+ end
1360
+
1361
+ # A module is a component of an application that provides a single service or
1362
+ # configuration. A module has a collection of versions that define a specific
1363
+ # set of code used to implement the functionality of that module.
1364
+ class Module
1365
+ include Google::Apis::Core::Hashable
1366
+
1367
+ # The full path to the Module resource in the API. Example: "apps/myapp/modules/
1368
+ # default" @OutputOnly
1369
+ # Corresponds to the JSON property `name`
1370
+ # @return [String]
1371
+ attr_accessor :name
1372
+
1373
+ # The relative name/path of the module within the application. Example: "default"
1374
+ # @OutputOnly
1375
+ # Corresponds to the JSON property `id`
1376
+ # @return [String]
1377
+ attr_accessor :id
1378
+
1379
+ # Configuration for traffic splitting for versions within a single module.
1380
+ # Traffic splitting allows traffic directed to the module to be assigned to one
1381
+ # of several versions in a fractional way, enabling experiments and canarying
1382
+ # new builds, for example.
1383
+ # Corresponds to the JSON property `split`
1384
+ # @return [Google::Apis::AppengineV1beta4::TrafficSplit]
1385
+ attr_accessor :split
1386
+
1387
+ def initialize(**args)
1388
+ update!(**args)
1389
+ end
1390
+
1391
+ # Update properties of this object
1392
+ def update!(**args)
1393
+ @name = args[:name] if args.key?(:name)
1394
+ @id = args[:id] if args.key?(:id)
1395
+ @split = args[:split] if args.key?(:split)
1396
+ end
1397
+ end
1398
+
1399
+ # Configuration for traffic splitting for versions within a single module.
1400
+ # Traffic splitting allows traffic directed to the module to be assigned to one
1401
+ # of several versions in a fractional way, enabling experiments and canarying
1402
+ # new builds, for example.
1403
+ class TrafficSplit
1404
+ include Google::Apis::Core::Hashable
1405
+
1406
+ # Which mechanism should be used as a selector when choosing a version to send a
1407
+ # request to. The traffic selection algorithm will be stable for either type
1408
+ # until allocations are changed.
1409
+ # Corresponds to the JSON property `shardBy`
1410
+ # @return [String]
1411
+ attr_accessor :shard_by
1412
+
1413
+ # Mapping from module version IDs within the module to fractional (0.000, 1]
1414
+ # allocations of traffic for that version. Each version may only be specified
1415
+ # once, but some versions in the module may not have any traffic allocation.
1416
+ # Modules that have traffic allocated in this field may not be deleted until the
1417
+ # module is deleted, or their traffic allocation is removed. Allocations must
1418
+ # sum to 1. Supports precision up to two decimal places for IP-based splits and
1419
+ # up to three decimal places for cookie-based splits.
1420
+ # Corresponds to the JSON property `allocations`
1421
+ # @return [Hash<String,Float>]
1422
+ attr_accessor :allocations
1423
+
1424
+ def initialize(**args)
1425
+ update!(**args)
1426
+ end
1427
+
1428
+ # Update properties of this object
1429
+ def update!(**args)
1430
+ @shard_by = args[:shard_by] if args.key?(:shard_by)
1431
+ @allocations = args[:allocations] if args.key?(:allocations)
1432
+ end
1433
+ end
1434
+
1435
+ # Response message for `Modules.ListModules`.
1436
+ class ListModulesResponse
1437
+ include Google::Apis::Core::Hashable
1438
+
1439
+ # The modules belonging to the requested application.
1440
+ # Corresponds to the JSON property `modules`
1441
+ # @return [Array<Google::Apis::AppengineV1beta4::Module>]
1442
+ attr_accessor :modules
1443
+
1444
+ # Continuation token for fetching the next page of results.
1445
+ # Corresponds to the JSON property `nextPageToken`
1446
+ # @return [String]
1447
+ attr_accessor :next_page_token
1448
+
1449
+ def initialize(**args)
1450
+ update!(**args)
1451
+ end
1452
+
1453
+ # Update properties of this object
1454
+ def update!(**args)
1455
+ @modules = args[:modules] if args.key?(:modules)
1456
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1457
+ end
1458
+ end
1459
+
1460
+ # The response message for Operations.ListOperations.
1461
+ class ListOperationsResponse
1462
+ include Google::Apis::Core::Hashable
1463
+
1464
+ # A list of operations that matches the specified filter in the request.
1465
+ # Corresponds to the JSON property `operations`
1466
+ # @return [Array<Google::Apis::AppengineV1beta4::Operation>]
1467
+ attr_accessor :operations
1468
+
1469
+ # The standard List next-page token.
1470
+ # Corresponds to the JSON property `nextPageToken`
1471
+ # @return [String]
1472
+ attr_accessor :next_page_token
1473
+
1474
+ def initialize(**args)
1475
+ update!(**args)
1476
+ end
1477
+
1478
+ # Update properties of this object
1479
+ def update!(**args)
1480
+ @operations = args[:operations] if args.key?(:operations)
1481
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1482
+ end
1483
+ end
1484
+
1485
+ # Metadata for the given google.longrunning.Operation.
1486
+ class OperationMetadata
1487
+ include Google::Apis::Core::Hashable
1488
+
1489
+ # The type of the operation (deprecated, use method field instead). Example: "
1490
+ # create_version". @OutputOnly
1491
+ # Corresponds to the JSON property `operationType`
1492
+ # @return [String]
1493
+ attr_accessor :operation_type
1494
+
1495
+ # Timestamp that this operation was received. @OutputOnly
1496
+ # Corresponds to the JSON property `insertTime`
1497
+ # @return [String]
1498
+ attr_accessor :insert_time
1499
+
1500
+ # Timestamp that this operation was completed. (Not present if the operation is
1501
+ # still in progress.) @OutputOnly
1502
+ # Corresponds to the JSON property `endTime`
1503
+ # @return [String]
1504
+ attr_accessor :end_time
1505
+
1506
+ # The user who requested this operation. @OutputOnly
1507
+ # Corresponds to the JSON property `user`
1508
+ # @return [String]
1509
+ attr_accessor :user
1510
+
1511
+ # Resource that this operation is acting on. Example: "apps/myapp/modules/
1512
+ # default". @OutputOnly
1513
+ # Corresponds to the JSON property `target`
1514
+ # @return [String]
1515
+ attr_accessor :target
1516
+
1517
+ # API method name that initiated the operation. Example: "google.appengine.
1518
+ # v1beta4.Version.CreateVersion". @OutputOnly
1519
+ # Corresponds to the JSON property `method`
1520
+ # @return [String]
1521
+ attr_accessor :method_prop
1522
+
1523
+ def initialize(**args)
1524
+ update!(**args)
1525
+ end
1526
+
1527
+ # Update properties of this object
1528
+ def update!(**args)
1529
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
1530
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
1531
+ @end_time = args[:end_time] if args.key?(:end_time)
1532
+ @user = args[:user] if args.key?(:user)
1533
+ @target = args[:target] if args.key?(:target)
1534
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
1535
+ end
1536
+ end
1537
+
1538
+ # Metadata for the given google.longrunning.Operation.
1539
+ class OperationMetadataV1Beta5
1540
+ include Google::Apis::Core::Hashable
1541
+
1542
+ # API method name that initiated the operation. Example: "google.appengine.
1543
+ # v1beta5.Version.CreateVersion". @OutputOnly
1544
+ # Corresponds to the JSON property `method`
1545
+ # @return [String]
1546
+ attr_accessor :method_prop
1547
+
1548
+ # Timestamp that this operation was received. @OutputOnly
1549
+ # Corresponds to the JSON property `insertTime`
1550
+ # @return [String]
1551
+ attr_accessor :insert_time
1552
+
1553
+ # Timestamp that this operation was completed. (Not present if the operation is
1554
+ # still in progress.) @OutputOnly
1555
+ # Corresponds to the JSON property `endTime`
1556
+ # @return [String]
1557
+ attr_accessor :end_time
1558
+
1559
+ # The user who requested this operation. @OutputOnly
1560
+ # Corresponds to the JSON property `user`
1561
+ # @return [String]
1562
+ attr_accessor :user
1563
+
1564
+ # Resource that this operation is acting on. Example: "apps/myapp/services/
1565
+ # default". @OutputOnly
1566
+ # Corresponds to the JSON property `target`
1567
+ # @return [String]
1568
+ attr_accessor :target
1569
+
1570
+ def initialize(**args)
1571
+ update!(**args)
1572
+ end
1573
+
1574
+ # Update properties of this object
1575
+ def update!(**args)
1576
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
1577
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
1578
+ @end_time = args[:end_time] if args.key?(:end_time)
1579
+ @user = args[:user] if args.key?(:user)
1580
+ @target = args[:target] if args.key?(:target)
1581
+ end
1582
+ end
1583
+ end
1584
+ end
1585
+ end