google-api-client 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/api_names.yaml +945 -41609
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  12. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  13. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  14. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  17. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  18. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  21. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  22. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  23. data/generated/google/apis/analytics_v3/service.rb +82 -82
  24. data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
  25. data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
  26. data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  29. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  30. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  32. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  33. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  34. data/generated/google/apis/appengine_v1.rb +4 -4
  35. data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
  36. data/generated/google/apis/appengine_v1/representations.rb +362 -343
  37. data/generated/google/apis/appengine_v1/service.rb +220 -220
  38. data/generated/google/apis/appstate_v1.rb +1 -1
  39. data/generated/google/apis/bigquery_v2.rb +1 -1
  40. data/generated/google/apis/bigquery_v2/classes.rb +5 -5
  41. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  42. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  43. data/generated/google/apis/blogger_v3/service.rb +3 -3
  44. data/generated/google/apis/books_v1/classes.rb +55 -55
  45. data/generated/google/apis/books_v1/representations.rb +67 -67
  46. data/generated/google/apis/books_v1/service.rb +82 -82
  47. data/generated/google/apis/calendar_v3.rb +1 -1
  48. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  49. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  50. data/generated/google/apis/calendar_v3/service.rb +2 -2
  51. data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
  52. data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
  53. data/generated/google/apis/civicinfo_v2/service.rb +12 -12
  54. data/generated/google/apis/classroom_v1.rb +7 -7
  55. data/generated/google/apis/classroom_v1/classes.rb +1013 -991
  56. data/generated/google/apis/classroom_v1/representations.rb +207 -204
  57. data/generated/google/apis/classroom_v1/service.rb +709 -709
  58. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  59. data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
  60. data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
  61. data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
  62. data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
  63. data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
  64. data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
  65. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  66. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
  67. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
  68. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
  69. data/generated/google/apis/cloudkms_v1.rb +1 -1
  70. data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
  71. data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
  72. data/generated/google/apis/cloudkms_v1/service.rb +267 -267
  73. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  74. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
  75. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
  76. data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
  77. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
  80. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
  81. data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
  82. data/generated/google/apis/compute_beta.rb +1 -1
  83. data/generated/google/apis/compute_beta/classes.rb +163 -15
  84. data/generated/google/apis/compute_beta/representations.rb +54 -14
  85. data/generated/google/apis/compute_beta/service.rb +2258 -482
  86. data/generated/google/apis/compute_v1.rb +1 -1
  87. data/generated/google/apis/compute_v1/classes.rb +465 -13
  88. data/generated/google/apis/compute_v1/representations.rb +202 -16
  89. data/generated/google/apis/compute_v1/service.rb +573 -309
  90. data/generated/google/apis/container_v1.rb +1 -1
  91. data/generated/google/apis/container_v1/classes.rb +635 -589
  92. data/generated/google/apis/container_v1/representations.rb +139 -111
  93. data/generated/google/apis/container_v1/service.rb +272 -227
  94. data/generated/google/apis/content_v2.rb +1 -1
  95. data/generated/google/apis/content_v2/classes.rb +86 -74
  96. data/generated/google/apis/content_v2/representations.rb +107 -105
  97. data/generated/google/apis/content_v2/service.rb +131 -130
  98. data/generated/google/apis/customsearch_v1.rb +2 -2
  99. data/generated/google/apis/customsearch_v1/classes.rb +0 -6
  100. data/generated/google/apis/customsearch_v1/representations.rb +0 -1
  101. data/generated/google/apis/customsearch_v1/service.rb +2 -5
  102. data/generated/google/apis/dataflow_v1b3.rb +7 -4
  103. data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
  104. data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
  105. data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
  106. data/generated/google/apis/dataproc_v1.rb +1 -1
  107. data/generated/google/apis/dataproc_v1/classes.rb +543 -691
  108. data/generated/google/apis/dataproc_v1/representations.rb +129 -185
  109. data/generated/google/apis/dataproc_v1/service.rb +347 -347
  110. data/generated/google/apis/datastore_v1.rb +4 -4
  111. data/generated/google/apis/datastore_v1/classes.rb +833 -833
  112. data/generated/google/apis/datastore_v1/representations.rb +182 -182
  113. data/generated/google/apis/datastore_v1/service.rb +45 -45
  114. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  115. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  116. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  117. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  118. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  119. data/generated/google/apis/discovery_v1/service.rb +1 -1
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +3 -3
  122. data/generated/google/apis/dns_v1/representations.rb +6 -6
  123. data/generated/google/apis/dns_v1/service.rb +12 -12
  124. data/generated/google/apis/dns_v2beta1.rb +1 -1
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +1 -1
  129. data/generated/google/apis/drive_v2/service.rb +1 -1
  130. data/generated/google/apis/drive_v3.rb +1 -1
  131. data/generated/google/apis/drive_v3/service.rb +1 -1
  132. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  133. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +160 -110
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
  136. data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
  137. data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
  138. data/generated/google/apis/firebaserules_v1/service.rb +103 -103
  139. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  140. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  141. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  142. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  143. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  144. data/generated/google/apis/games_management_v1management.rb +1 -1
  145. data/generated/google/apis/games_v1.rb +1 -1
  146. data/generated/google/apis/games_v1/classes.rb +23 -23
  147. data/generated/google/apis/games_v1/representations.rb +43 -43
  148. data/generated/google/apis/games_v1/service.rb +72 -72
  149. data/generated/google/apis/genomics_v1.rb +1 -1
  150. data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
  151. data/generated/google/apis/genomics_v1/representations.rb +291 -291
  152. data/generated/google/apis/genomics_v1/service.rb +821 -821
  153. data/generated/google/apis/gmail_v1.rb +1 -1
  154. data/generated/google/apis/groupsmigration_v1.rb +1 -1
  155. data/generated/google/apis/groupssettings_v1.rb +1 -1
  156. data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
  157. data/generated/google/apis/groupssettings_v1/service.rb +3 -0
  158. data/generated/google/apis/iam_v1/classes.rb +338 -338
  159. data/generated/google/apis/iam_v1/representations.rb +98 -98
  160. data/generated/google/apis/iam_v1/service.rb +35 -35
  161. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  162. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  163. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  164. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  165. data/generated/google/apis/language_v1.rb +1 -1
  166. data/generated/google/apis/language_v1/classes.rb +374 -374
  167. data/generated/google/apis/language_v1/representations.rb +97 -97
  168. data/generated/google/apis/language_v1/service.rb +16 -16
  169. data/generated/google/apis/language_v1beta1.rb +1 -1
  170. data/generated/google/apis/language_v1beta1/classes.rb +441 -441
  171. data/generated/google/apis/language_v1beta1/representations.rb +108 -108
  172. data/generated/google/apis/language_v1beta1/service.rb +30 -30
  173. data/generated/google/apis/licensing_v1/service.rb +2 -2
  174. data/generated/google/apis/logging_v2.rb +1 -1
  175. data/generated/google/apis/logging_v2/classes.rb +712 -712
  176. data/generated/google/apis/logging_v2/representations.rb +109 -109
  177. data/generated/google/apis/logging_v2/service.rb +543 -539
  178. data/generated/google/apis/logging_v2beta1.rb +1 -1
  179. data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
  180. data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
  181. data/generated/google/apis/logging_v2beta1/service.rb +257 -256
  182. data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
  183. data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
  184. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  185. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  186. data/generated/google/apis/mirror_v1/service.rb +20 -20
  187. data/generated/google/apis/ml_v1.rb +1 -1
  188. data/generated/google/apis/ml_v1/classes.rb +1830 -1210
  189. data/generated/google/apis/ml_v1/representations.rb +342 -120
  190. data/generated/google/apis/ml_v1/service.rb +365 -258
  191. data/generated/google/apis/monitoring_v3.rb +4 -4
  192. data/generated/google/apis/monitoring_v3/classes.rb +889 -889
  193. data/generated/google/apis/monitoring_v3/representations.rb +174 -174
  194. data/generated/google/apis/monitoring_v3/service.rb +119 -119
  195. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  196. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  197. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  198. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  199. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  200. data/generated/google/apis/partners_v2.rb +1 -1
  201. data/generated/google/apis/partners_v2/classes.rb +550 -536
  202. data/generated/google/apis/partners_v2/representations.rb +118 -116
  203. data/generated/google/apis/partners_v2/service.rb +439 -439
  204. data/generated/google/apis/people_v1.rb +4 -4
  205. data/generated/google/apis/people_v1/classes.rb +414 -413
  206. data/generated/google/apis/people_v1/representations.rb +85 -85
  207. data/generated/google/apis/people_v1/service.rb +111 -18
  208. data/generated/google/apis/plus_domains_v1.rb +1 -1
  209. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  210. data/generated/google/apis/plus_v1.rb +1 -1
  211. data/generated/google/apis/plus_v1/service.rb +1 -1
  212. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  213. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  214. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
  215. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
  216. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
  217. data/generated/google/apis/pubsub_v1/classes.rb +249 -249
  218. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  219. data/generated/google/apis/pubsub_v1/service.rb +415 -415
  220. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  221. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  222. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  223. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  226. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  227. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  228. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  230. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  231. data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
  232. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  233. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  234. data/generated/google/apis/script_v1.rb +17 -17
  235. data/generated/google/apis/script_v1/classes.rb +27 -27
  236. data/generated/google/apis/script_v1/representations.rb +5 -5
  237. data/generated/google/apis/script_v1/service.rb +4 -4
  238. data/generated/google/apis/searchconsole_v1.rb +1 -1
  239. data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
  240. data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
  241. data/generated/google/apis/searchconsole_v1/service.rb +4 -4
  242. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  243. data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
  244. data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
  245. data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
  246. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  247. data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
  248. data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
  249. data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
  250. data/generated/google/apis/serviceuser_v1.rb +1 -1
  251. data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
  252. data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
  253. data/generated/google/apis/serviceuser_v1/service.rb +37 -37
  254. data/generated/google/apis/sheets_v4.rb +1 -1
  255. data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
  256. data/generated/google/apis/sheets_v4/representations.rb +994 -824
  257. data/generated/google/apis/sheets_v4/service.rb +80 -80
  258. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  259. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  260. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  261. data/generated/google/apis/slides_v1.rb +1 -1
  262. data/generated/google/apis/slides_v1/classes.rb +2885 -2885
  263. data/generated/google/apis/slides_v1/representations.rb +310 -310
  264. data/generated/google/apis/slides_v1/service.rb +54 -54
  265. data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
  266. data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
  267. data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
  268. data/generated/google/apis/spanner_v1.rb +1 -1
  269. data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
  270. data/generated/google/apis/spanner_v1/representations.rb +174 -174
  271. data/generated/google/apis/spanner_v1/service.rb +497 -497
  272. data/generated/google/apis/speech_v1beta1.rb +1 -1
  273. data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
  274. data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
  275. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  276. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  277. data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
  278. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
  279. data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
  280. data/generated/google/apis/storage_v1.rb +1 -1
  281. data/generated/google/apis/storage_v1/classes.rb +40 -6
  282. data/generated/google/apis/storage_v1/representations.rb +20 -4
  283. data/generated/google/apis/storage_v1/service.rb +61 -46
  284. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  285. data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
  286. data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
  287. data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
  288. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  289. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  290. data/generated/google/apis/translate_v2/classes.rb +12 -12
  291. data/generated/google/apis/translate_v2/representations.rb +10 -10
  292. data/generated/google/apis/translate_v2/service.rb +62 -62
  293. data/generated/google/apis/vision_v1.rb +1 -1
  294. data/generated/google/apis/vision_v1/classes.rb +1267 -1267
  295. data/generated/google/apis/vision_v1/representations.rb +200 -200
  296. data/generated/google/apis/vision_v1/service.rb +10 -10
  297. data/generated/google/apis/webmasters_v3.rb +1 -1
  298. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  299. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  300. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  301. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  302. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  303. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  304. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  305. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  306. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  307. data/generated/google/apis/youtube_v3/service.rb +80 -80
  308. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  309. data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
  310. data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
  311. data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
  312. data/lib/google/apis/generator/annotator.rb +2 -2
  313. data/lib/google/apis/generator/model.rb +2 -2
  314. data/lib/google/apis/version.rb +1 -1
  315. metadata +2 -2
@@ -26,16 +26,16 @@ module Google
26
26
  # @see https://cloud.google.com/appengine/docs/admin-api/
27
27
  module AppengineV1
28
28
  VERSION = 'V1'
29
- REVISION = '20170525'
29
+ REVISION = '20170601'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
30
33
 
31
34
  # View and manage your applications deployed on Google App Engine
32
35
  AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
33
36
 
34
37
  # View your data across Google Cloud Platform services
35
38
  AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
36
-
37
- # View and manage your data across Google Cloud Platform services
38
- AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
39
39
  end
40
40
  end
41
41
  end
@@ -22,17 +22,47 @@ module Google
22
22
  module Apis
23
23
  module AppengineV1
24
24
 
25
- # A service with manual scaling runs continuously, allowing you to perform
26
- # complex initialization and rely on the state of its memory over time.
27
- class ManualScaling
25
+ # Metadata for the given google.longrunning.Operation.
26
+ class OperationMetadataV1Alpha
28
27
  include Google::Apis::Core::Hashable
29
28
 
30
- # Number of instances to assign to the service at the start. This number can
31
- # later be altered by using the Modules API (https://cloud.google.com/appengine/
32
- # docs/python/modules/functions) set_num_instances() function.
33
- # Corresponds to the JSON property `instances`
34
- # @return [Fixnum]
35
- attr_accessor :instances
29
+ # Time that this operation completed.@OutputOnly
30
+ # Corresponds to the JSON property `endTime`
31
+ # @return [String]
32
+ attr_accessor :end_time
33
+
34
+ # Durable messages that persist on every operation poll. @OutputOnly
35
+ # Corresponds to the JSON property `warning`
36
+ # @return [Array<String>]
37
+ attr_accessor :warning
38
+
39
+ # Time that this operation was created.@OutputOnly
40
+ # Corresponds to the JSON property `insertTime`
41
+ # @return [String]
42
+ attr_accessor :insert_time
43
+
44
+ # User who requested this operation.@OutputOnly
45
+ # Corresponds to the JSON property `user`
46
+ # @return [String]
47
+ attr_accessor :user
48
+
49
+ # Name of the resource that this operation is acting on. Example: apps/myapp/
50
+ # services/default.@OutputOnly
51
+ # Corresponds to the JSON property `target`
52
+ # @return [String]
53
+ attr_accessor :target
54
+
55
+ # Ephemeral message that may change every time the operation is polled. @
56
+ # OutputOnly
57
+ # Corresponds to the JSON property `ephemeralMessage`
58
+ # @return [String]
59
+ attr_accessor :ephemeral_message
60
+
61
+ # API method that initiated this operation. Example: google.appengine.v1alpha.
62
+ # Versions.CreateVersion.@OutputOnly
63
+ # Corresponds to the JSON property `method`
64
+ # @return [String]
65
+ attr_accessor :method_prop
36
66
 
37
67
  def initialize(**args)
38
68
  update!(**args)
@@ -40,25 +70,38 @@ module Google
40
70
 
41
71
  # Update properties of this object
42
72
  def update!(**args)
43
- @instances = args[:instances] if args.key?(:instances)
73
+ @end_time = args[:end_time] if args.key?(:end_time)
74
+ @warning = args[:warning] if args.key?(:warning)
75
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
76
+ @user = args[:user] if args.key?(:user)
77
+ @target = args[:target] if args.key?(:target)
78
+ @ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message)
79
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
44
80
  end
45
81
  end
46
82
 
47
- # Metadata for the given google.cloud.location.Location.
48
- class LocationMetadata
83
+ # Rules to match an HTTP request and dispatch that request to a service.
84
+ class UrlDispatchRule
49
85
  include Google::Apis::Core::Hashable
50
86
 
51
- # App Engine Flexible Environment is available in the given location.@OutputOnly
52
- # Corresponds to the JSON property `flexibleEnvironmentAvailable`
53
- # @return [Boolean]
54
- attr_accessor :flexible_environment_available
55
- alias_method :flexible_environment_available?, :flexible_environment_available
87
+ # Domain name to match against. The wildcard "*" is supported if specified
88
+ # before a period: "*.".Defaults to matching all domains: "*".
89
+ # Corresponds to the JSON property `domain`
90
+ # @return [String]
91
+ attr_accessor :domain
56
92
 
57
- # App Engine Standard Environment is available in the given location.@OutputOnly
58
- # Corresponds to the JSON property `standardEnvironmentAvailable`
59
- # @return [Boolean]
60
- attr_accessor :standard_environment_available
61
- alias_method :standard_environment_available?, :standard_environment_available
93
+ # Resource ID of a service in this application that should serve the matched
94
+ # request. The service must already exist. Example: default.
95
+ # Corresponds to the JSON property `service`
96
+ # @return [String]
97
+ attr_accessor :service
98
+
99
+ # Pathname within the host. Must start with a "/". A single "*" can be included
100
+ # at the end of the path.The sum of the lengths of the domain and path may not
101
+ # exceed 100 characters.
102
+ # Corresponds to the JSON property `path`
103
+ # @return [String]
104
+ attr_accessor :path
62
105
 
63
106
  def initialize(**args)
64
107
  update!(**args)
@@ -66,37 +109,25 @@ module Google
66
109
 
67
110
  # Update properties of this object
68
111
  def update!(**args)
69
- @flexible_environment_available = args[:flexible_environment_available] if args.key?(:flexible_environment_available)
70
- @standard_environment_available = args[:standard_environment_available] if args.key?(:standard_environment_available)
112
+ @domain = args[:domain] if args.key?(:domain)
113
+ @service = args[:service] if args.key?(:service)
114
+ @path = args[:path] if args.key?(:path)
71
115
  end
72
116
  end
73
117
 
74
- # A Service resource is a logical component of an application that can share
75
- # state and communicate in a secure fashion with other services. For example, an
76
- # application that handles customer requests might include separate services to
77
- # handle tasks such as backend data analysis or API requests from mobile devices.
78
- # Each service has a collection of versions that define a specific set of code
79
- # used to implement the functionality of that service.
80
- class Service
118
+ # Response message for Versions.ListVersions.
119
+ class ListVersionsResponse
81
120
  include Google::Apis::Core::Hashable
82
121
 
83
- # Traffic routing configuration for versions within a single service. Traffic
84
- # splits define how traffic directed to the service is assigned to versions.
85
- # Corresponds to the JSON property `split`
86
- # @return [Google::Apis::AppengineV1::TrafficSplit]
87
- attr_accessor :split
88
-
89
- # Relative name of the service within the application. Example: default.@
90
- # OutputOnly
91
- # Corresponds to the JSON property `id`
92
- # @return [String]
93
- attr_accessor :id
122
+ # The versions belonging to the requested service.
123
+ # Corresponds to the JSON property `versions`
124
+ # @return [Array<Google::Apis::AppengineV1::Version>]
125
+ attr_accessor :versions
94
126
 
95
- # Full path to the Service resource in the API. Example: apps/myapp/services/
96
- # default.@OutputOnly
97
- # Corresponds to the JSON property `name`
127
+ # Continuation token for fetching the next page of results.
128
+ # Corresponds to the JSON property `nextPageToken`
98
129
  # @return [String]
99
- attr_accessor :name
130
+ attr_accessor :next_page_token
100
131
 
101
132
  def initialize(**args)
102
133
  update!(**args)
@@ -104,25 +135,19 @@ module Google
104
135
 
105
136
  # Update properties of this object
106
137
  def update!(**args)
107
- @split = args[:split] if args.key?(:split)
108
- @id = args[:id] if args.key?(:id)
109
- @name = args[:name] if args.key?(:name)
138
+ @versions = args[:versions] if args.key?(:versions)
139
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
110
140
  end
111
141
  end
112
142
 
113
- # The response message for Operations.ListOperations.
114
- class ListOperationsResponse
143
+ # Uses Google Cloud Endpoints to handle requests.
144
+ class ApiEndpointHandler
115
145
  include Google::Apis::Core::Hashable
116
146
 
117
- # The standard List next-page token.
118
- # Corresponds to the JSON property `nextPageToken`
147
+ # Path to the script from the application root directory.
148
+ # Corresponds to the JSON property `scriptPath`
119
149
  # @return [String]
120
- attr_accessor :next_page_token
121
-
122
- # A list of operations that matches the specified filter in the request.
123
- # Corresponds to the JSON property `operations`
124
- # @return [Array<Google::Apis::AppengineV1::Operation>]
125
- attr_accessor :operations
150
+ attr_accessor :script_path
126
151
 
127
152
  def initialize(**args)
128
153
  update!(**args)
@@ -130,47 +155,80 @@ module Google
130
155
 
131
156
  # Update properties of this object
132
157
  def update!(**args)
133
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
134
- @operations = args[:operations] if args.key?(:operations)
158
+ @script_path = args[:script_path] if args.key?(:script_path)
135
159
  end
136
160
  end
137
161
 
138
- # Metadata for the given google.longrunning.Operation.
139
- class OperationMetadata
162
+ # Automatic scaling is based on request rate, response latencies, and other
163
+ # application metrics.
164
+ class AutomaticScaling
140
165
  include Google::Apis::Core::Hashable
141
166
 
142
- # API method that initiated this operation. Example: google.appengine.v1beta4.
143
- # Version.CreateVersion.@OutputOnly
144
- # Corresponds to the JSON property `method`
145
- # @return [String]
146
- attr_accessor :method_prop
167
+ # Target scaling by request utilization. Only applicable for VM runtimes.
168
+ # Corresponds to the JSON property `requestUtilization`
169
+ # @return [Google::Apis::AppengineV1::RequestUtilization]
170
+ attr_accessor :request_utilization
147
171
 
148
- # Timestamp that this operation completed.@OutputOnly
149
- # Corresponds to the JSON property `endTime`
150
- # @return [String]
151
- attr_accessor :end_time
172
+ # Maximum number of idle instances that should be maintained for this version.
173
+ # Corresponds to the JSON property `maxIdleInstances`
174
+ # @return [Fixnum]
175
+ attr_accessor :max_idle_instances
152
176
 
153
- # Type of this operation. Deprecated, use method field instead. Example: "
154
- # create_version".@OutputOnly
155
- # Corresponds to the JSON property `operationType`
156
- # @return [String]
157
- attr_accessor :operation_type
177
+ # Minimum number of idle instances that should be maintained for this version.
178
+ # Only applicable for the default version of a service.
179
+ # Corresponds to the JSON property `minIdleInstances`
180
+ # @return [Fixnum]
181
+ attr_accessor :min_idle_instances
158
182
 
159
- # Timestamp that this operation was created.@OutputOnly
160
- # Corresponds to the JSON property `insertTime`
183
+ # Maximum number of instances that should be started to handle requests.
184
+ # Corresponds to the JSON property `maxTotalInstances`
185
+ # @return [Fixnum]
186
+ attr_accessor :max_total_instances
187
+
188
+ # Minimum number of instances that should be maintained for this version.
189
+ # Corresponds to the JSON property `minTotalInstances`
190
+ # @return [Fixnum]
191
+ attr_accessor :min_total_instances
192
+
193
+ # Target scaling by network usage. Only applicable for VM runtimes.
194
+ # Corresponds to the JSON property `networkUtilization`
195
+ # @return [Google::Apis::AppengineV1::NetworkUtilization]
196
+ attr_accessor :network_utilization
197
+
198
+ # Number of concurrent requests an automatic scaling instance can accept before
199
+ # the scheduler spawns a new instance.Defaults to a runtime-specific value.
200
+ # Corresponds to the JSON property `maxConcurrentRequests`
201
+ # @return [Fixnum]
202
+ attr_accessor :max_concurrent_requests
203
+
204
+ # Amount of time that the Autoscaler (https://cloud.google.com/compute/docs/
205
+ # autoscaler/) should wait between changes to the number of virtual machines.
206
+ # Only applicable for VM runtimes.
207
+ # Corresponds to the JSON property `coolDownPeriod`
161
208
  # @return [String]
162
- attr_accessor :insert_time
209
+ attr_accessor :cool_down_period
163
210
 
164
- # Name of the resource that this operation is acting on. Example: apps/myapp/
165
- # modules/default.@OutputOnly
166
- # Corresponds to the JSON property `target`
211
+ # Maximum amount of time that a request should wait in the pending queue before
212
+ # starting a new instance to handle it.
213
+ # Corresponds to the JSON property `maxPendingLatency`
167
214
  # @return [String]
168
- attr_accessor :target
215
+ attr_accessor :max_pending_latency
169
216
 
170
- # User who requested this operation.@OutputOnly
171
- # Corresponds to the JSON property `user`
217
+ # Target scaling by CPU usage.
218
+ # Corresponds to the JSON property `cpuUtilization`
219
+ # @return [Google::Apis::AppengineV1::CpuUtilization]
220
+ attr_accessor :cpu_utilization
221
+
222
+ # Target scaling by disk usage. Only applicable for VM runtimes.
223
+ # Corresponds to the JSON property `diskUtilization`
224
+ # @return [Google::Apis::AppengineV1::DiskUtilization]
225
+ attr_accessor :disk_utilization
226
+
227
+ # Minimum amount of time a request should wait in the pending queue before
228
+ # starting a new instance to handle it.
229
+ # Corresponds to the JSON property `minPendingLatency`
172
230
  # @return [String]
173
- attr_accessor :user
231
+ attr_accessor :min_pending_latency
174
232
 
175
233
  def initialize(**args)
176
234
  update!(**args)
@@ -178,56 +236,37 @@ module Google
178
236
 
179
237
  # Update properties of this object
180
238
  def update!(**args)
181
- @method_prop = args[:method_prop] if args.key?(:method_prop)
182
- @end_time = args[:end_time] if args.key?(:end_time)
183
- @operation_type = args[:operation_type] if args.key?(:operation_type)
184
- @insert_time = args[:insert_time] if args.key?(:insert_time)
185
- @target = args[:target] if args.key?(:target)
186
- @user = args[:user] if args.key?(:user)
239
+ @request_utilization = args[:request_utilization] if args.key?(:request_utilization)
240
+ @max_idle_instances = args[:max_idle_instances] if args.key?(:max_idle_instances)
241
+ @min_idle_instances = args[:min_idle_instances] if args.key?(:min_idle_instances)
242
+ @max_total_instances = args[:max_total_instances] if args.key?(:max_total_instances)
243
+ @min_total_instances = args[:min_total_instances] if args.key?(:min_total_instances)
244
+ @network_utilization = args[:network_utilization] if args.key?(:network_utilization)
245
+ @max_concurrent_requests = args[:max_concurrent_requests] if args.key?(:max_concurrent_requests)
246
+ @cool_down_period = args[:cool_down_period] if args.key?(:cool_down_period)
247
+ @max_pending_latency = args[:max_pending_latency] if args.key?(:max_pending_latency)
248
+ @cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization)
249
+ @disk_utilization = args[:disk_utilization] if args.key?(:disk_utilization)
250
+ @min_pending_latency = args[:min_pending_latency] if args.key?(:min_pending_latency)
187
251
  end
188
252
  end
189
253
 
190
- # Metadata for the given google.longrunning.Operation.
191
- class OperationMetadataV1
254
+ # The zip file information for a zip deployment.
255
+ class ZipInfo
192
256
  include Google::Apis::Core::Hashable
193
257
 
194
- # Time that this operation was created.@OutputOnly
195
- # Corresponds to the JSON property `insertTime`
196
- # @return [String]
197
- attr_accessor :insert_time
198
-
199
- # Durable messages that persist on every operation poll. @OutputOnly
200
- # Corresponds to the JSON property `warning`
201
- # @return [Array<String>]
202
- attr_accessor :warning
203
-
204
- # User who requested this operation.@OutputOnly
205
- # Corresponds to the JSON property `user`
206
- # @return [String]
207
- attr_accessor :user
208
-
209
- # Name of the resource that this operation is acting on. Example: apps/myapp/
210
- # services/default.@OutputOnly
211
- # Corresponds to the JSON property `target`
212
- # @return [String]
213
- attr_accessor :target
214
-
215
- # Ephemeral message that may change every time the operation is polled. @
216
- # OutputOnly
217
- # Corresponds to the JSON property `ephemeralMessage`
218
- # @return [String]
219
- attr_accessor :ephemeral_message
220
-
221
- # API method that initiated this operation. Example: google.appengine.v1.
222
- # Versions.CreateVersion.@OutputOnly
223
- # Corresponds to the JSON property `method`
224
- # @return [String]
225
- attr_accessor :method_prop
258
+ # An estimate of the number of files in a zip for a zip deployment. If set, must
259
+ # be greater than or equal to the actual number of files. Used for optimizing
260
+ # performance; if not provided, deployment may be slow.
261
+ # Corresponds to the JSON property `filesCount`
262
+ # @return [Fixnum]
263
+ attr_accessor :files_count
226
264
 
227
- # Time that this operation completed.@OutputOnly
228
- # Corresponds to the JSON property `endTime`
265
+ # URL of the zip file to deploy from. Must be a URL to a resource in Google
266
+ # Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.
267
+ # Corresponds to the JSON property `sourceUrl`
229
268
  # @return [String]
230
- attr_accessor :end_time
269
+ attr_accessor :source_url
231
270
 
232
271
  def initialize(**args)
233
272
  update!(**args)
@@ -235,34 +274,24 @@ module Google
235
274
 
236
275
  # Update properties of this object
237
276
  def update!(**args)
238
- @insert_time = args[:insert_time] if args.key?(:insert_time)
239
- @warning = args[:warning] if args.key?(:warning)
240
- @user = args[:user] if args.key?(:user)
241
- @target = args[:target] if args.key?(:target)
242
- @ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message)
243
- @method_prop = args[:method_prop] if args.key?(:method_prop)
244
- @end_time = args[:end_time] if args.key?(:end_time)
277
+ @files_count = args[:files_count] if args.key?(:files_count)
278
+ @source_url = args[:source_url] if args.key?(:source_url)
245
279
  end
246
280
  end
247
281
 
248
- # Custom static error page to be served when an error occurs.
249
- class ErrorHandler
282
+ # Third-party Python runtime library that is required by the application.
283
+ class Library
250
284
  include Google::Apis::Core::Hashable
251
285
 
252
- # Error condition this handler applies to.
253
- # Corresponds to the JSON property `errorCode`
254
- # @return [String]
255
- attr_accessor :error_code
256
-
257
- # MIME type of file. Defaults to text/html.
258
- # Corresponds to the JSON property `mimeType`
286
+ # Version of the library to select, or "latest".
287
+ # Corresponds to the JSON property `version`
259
288
  # @return [String]
260
- attr_accessor :mime_type
289
+ attr_accessor :version
261
290
 
262
- # Static file content to be served for this error.
263
- # Corresponds to the JSON property `staticFile`
291
+ # Name of the library. Example: "django".
292
+ # Corresponds to the JSON property `name`
264
293
  # @return [String]
265
- attr_accessor :static_file
294
+ attr_accessor :name
266
295
 
267
296
  def initialize(**args)
268
297
  update!(**args)
@@ -270,89 +299,72 @@ module Google
270
299
 
271
300
  # Update properties of this object
272
301
  def update!(**args)
273
- @error_code = args[:error_code] if args.key?(:error_code)
274
- @mime_type = args[:mime_type] if args.key?(:mime_type)
275
- @static_file = args[:static_file] if args.key?(:static_file)
302
+ @version = args[:version] if args.key?(:version)
303
+ @name = args[:name] if args.key?(:name)
276
304
  end
277
305
  end
278
306
 
279
- # An Application resource contains the top-level configuration of an App Engine
280
- # application.
281
- class Application
307
+ # The response message for Locations.ListLocations.
308
+ class ListLocationsResponse
282
309
  include Google::Apis::Core::Hashable
283
310
 
284
- # Hostname used to reach this application, as resolved by App Engine.@OutputOnly
285
- # Corresponds to the JSON property `defaultHostname`
311
+ # The standard List next-page token.
312
+ # Corresponds to the JSON property `nextPageToken`
286
313
  # @return [String]
287
- attr_accessor :default_hostname
288
-
289
- # Identity-Aware Proxy
290
- # Corresponds to the JSON property `iap`
291
- # @return [Google::Apis::AppengineV1::IdentityAwareProxy]
292
- attr_accessor :iap
314
+ attr_accessor :next_page_token
293
315
 
294
- # Google Apps authentication domain that controls which users can access this
295
- # application.Defaults to open access for any Google Account.
296
- # Corresponds to the JSON property `authDomain`
297
- # @return [String]
298
- attr_accessor :auth_domain
316
+ # A list of locations that matches the specified filter in the request.
317
+ # Corresponds to the JSON property `locations`
318
+ # @return [Array<Google::Apis::AppengineV1::Location>]
319
+ attr_accessor :locations
299
320
 
300
- # Google Cloud Storage bucket that can be used for storing files associated with
301
- # this application. This bucket is associated with the application and can be
302
- # used by the gcloud deployment commands.@OutputOnly
303
- # Corresponds to the JSON property `codeBucket`
304
- # @return [String]
305
- attr_accessor :code_bucket
321
+ def initialize(**args)
322
+ update!(**args)
323
+ end
306
324
 
307
- # Google Cloud Storage bucket that can be used by this application to store
308
- # content.@OutputOnly
309
- # Corresponds to the JSON property `defaultBucket`
310
- # @return [String]
311
- attr_accessor :default_bucket
325
+ # Update properties of this object
326
+ def update!(**args)
327
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
328
+ @locations = args[:locations] if args.key?(:locations)
329
+ end
330
+ end
312
331
 
313
- # HTTP path dispatch rules for requests to the application that do not
314
- # explicitly target a service or version. Rules are order-dependent. Up to 20
315
- # dispatch rules can be supported.@OutputOnly
316
- # Corresponds to the JSON property `dispatchRules`
317
- # @return [Array<Google::Apis::AppengineV1::UrlDispatchRule>]
318
- attr_accessor :dispatch_rules
332
+ # Docker image that is used to create a container and start a VM instance for
333
+ # the version that you deploy. Only applicable for instances running in the App
334
+ # Engine flexible environment.
335
+ class ContainerInfo
336
+ include Google::Apis::Core::Hashable
319
337
 
320
- # The Google Container Registry domain used for storing managed build docker
321
- # images for this application.
322
- # Corresponds to the JSON property `gcrDomain`
338
+ # URI to the hosted container image in Google Container Registry. The URI must
339
+ # be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/
340
+ # image:tag" or "gcr.io/my-project/image@digest"
341
+ # Corresponds to the JSON property `image`
323
342
  # @return [String]
324
- attr_accessor :gcr_domain
343
+ attr_accessor :image
325
344
 
326
- # Full path to the Application resource in the API. Example: apps/myapp.@
327
- # OutputOnly
328
- # Corresponds to the JSON property `name`
329
- # @return [String]
330
- attr_accessor :name
345
+ def initialize(**args)
346
+ update!(**args)
347
+ end
331
348
 
332
- # Identifier of the Application resource. This identifier is equivalent to the
333
- # project ID of the Google Cloud Platform project where you want to deploy your
334
- # application. Example: myapp.
335
- # Corresponds to the JSON property `id`
336
- # @return [String]
337
- attr_accessor :id
349
+ # Update properties of this object
350
+ def update!(**args)
351
+ @image = args[:image] if args.key?(:image)
352
+ end
353
+ end
338
354
 
339
- # Cookie expiration policy for this application.
340
- # Corresponds to the JSON property `defaultCookieExpiration`
341
- # @return [String]
342
- attr_accessor :default_cookie_expiration
355
+ # Target scaling by request utilization. Only applicable for VM runtimes.
356
+ class RequestUtilization
357
+ include Google::Apis::Core::Hashable
343
358
 
344
- # Location from which this application will be run. Application instances will
345
- # run out of data centers in the chosen location, which is also where all of the
346
- # application's end user content is stored.Defaults to us-central.Options are:us-
347
- # central - Central USeurope-west - Western Europeus-east1 - Eastern US
348
- # Corresponds to the JSON property `locationId`
349
- # @return [String]
350
- attr_accessor :location_id
359
+ # Target requests per second.
360
+ # Corresponds to the JSON property `targetRequestCountPerSecond`
361
+ # @return [Fixnum]
362
+ attr_accessor :target_request_count_per_second
351
363
 
352
- # Serving status of this application.
353
- # Corresponds to the JSON property `servingStatus`
354
- # @return [String]
355
- attr_accessor :serving_status
364
+ # Target number of concurrent requests.
365
+ # Corresponds to the JSON property `targetConcurrentRequests`
366
+ # @return [Fixnum]
367
+ attr_accessor :target_concurrent_requests
356
368
 
357
369
  def initialize(**args)
358
370
  update!(**args)
@@ -360,166 +372,94 @@ module Google
360
372
 
361
373
  # Update properties of this object
362
374
  def update!(**args)
363
- @default_hostname = args[:default_hostname] if args.key?(:default_hostname)
364
- @iap = args[:iap] if args.key?(:iap)
365
- @auth_domain = args[:auth_domain] if args.key?(:auth_domain)
366
- @code_bucket = args[:code_bucket] if args.key?(:code_bucket)
367
- @default_bucket = args[:default_bucket] if args.key?(:default_bucket)
368
- @dispatch_rules = args[:dispatch_rules] if args.key?(:dispatch_rules)
369
- @gcr_domain = args[:gcr_domain] if args.key?(:gcr_domain)
370
- @name = args[:name] if args.key?(:name)
371
- @id = args[:id] if args.key?(:id)
372
- @default_cookie_expiration = args[:default_cookie_expiration] if args.key?(:default_cookie_expiration)
373
- @location_id = args[:location_id] if args.key?(:location_id)
374
- @serving_status = args[:serving_status] if args.key?(:serving_status)
375
+ @target_request_count_per_second = args[:target_request_count_per_second] if args.key?(:target_request_count_per_second)
376
+ @target_concurrent_requests = args[:target_concurrent_requests] if args.key?(:target_concurrent_requests)
375
377
  end
376
378
  end
377
379
 
378
- # Extra network settings. Only applicable for VM runtimes.
379
- class Network
380
+ # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
381
+ # Endpoints API Service provides tooling for serving Open API and gRPC endpoints
382
+ # via an NGINX proxy.The fields here refer to the name and configuration id of a
383
+ # "service" resource in the Service Management API (https://cloud.google.com/
384
+ # service-management/overview).
385
+ class EndpointsApiService
380
386
  include Google::Apis::Core::Hashable
381
387
 
382
- # List of ports, or port pairs, to forward from the virtual machine to the
383
- # application container.
384
- # Corresponds to the JSON property `forwardedPorts`
385
- # @return [Array<String>]
386
- attr_accessor :forwarded_ports
387
-
388
- # Tag to apply to the VM instance during creation.
389
- # Corresponds to the JSON property `instanceTag`
390
- # @return [String]
391
- attr_accessor :instance_tag
392
-
393
- # Google Cloud Platform sub-network where the virtual machines are created.
394
- # Specify the short name, not the resource path.If a subnetwork name is
395
- # specified, a network name will also be required unless it is for the default
396
- # network.
397
- # If the network the VM instance is being created in is a Legacy network, then
398
- # the IP address is allocated from the IPv4Range.
399
- # If the network the VM instance is being created in is an auto Subnet Mode
400
- # Network, then only network name should be specified (not the subnetwork_name)
401
- # and the IP address is created from the IPCidrRange of the subnetwork that
402
- # exists in that zone for that network.
403
- # If the network the VM instance is being created in is a custom Subnet Mode
404
- # Network, then the subnetwork_name must be specified and the IP address is
405
- # created from the IPCidrRange of the subnetwork.If specified, the subnetwork
406
- # must exist in the same region as the Flex app.
407
- # Corresponds to the JSON property `subnetworkName`
408
- # @return [String]
409
- attr_accessor :subnetwork_name
410
-
411
- # Google Cloud Platform network where the virtual machines are created. Specify
412
- # the short name, not the resource path.Defaults to default.
388
+ # Endpoints service name which is the name of the "service" resource in the
389
+ # Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
413
390
  # Corresponds to the JSON property `name`
414
391
  # @return [String]
415
392
  attr_accessor :name
416
393
 
394
+ # Endpoints service configuration id as specified by the Service Management API.
395
+ # For example "2016-09-19r1"
396
+ # Corresponds to the JSON property `configId`
397
+ # @return [String]
398
+ attr_accessor :config_id
399
+
417
400
  def initialize(**args)
418
401
  update!(**args)
419
402
  end
420
403
 
421
404
  # Update properties of this object
422
405
  def update!(**args)
423
- @forwarded_ports = args[:forwarded_ports] if args.key?(:forwarded_ports)
424
- @instance_tag = args[:instance_tag] if args.key?(:instance_tag)
425
- @subnetwork_name = args[:subnetwork_name] if args.key?(:subnetwork_name)
426
406
  @name = args[:name] if args.key?(:name)
407
+ @config_id = args[:config_id] if args.key?(:config_id)
427
408
  end
428
409
  end
429
410
 
430
- # An Instance resource is the computing unit that App Engine uses to
431
- # automatically scale an application.
432
- class Instance
433
- include Google::Apis::Core::Hashable
434
-
435
- # Name of the virtual machine where this instance lives. Only applicable for
436
- # instances in App Engine flexible environment.@OutputOnly
437
- # Corresponds to the JSON property `vmName`
438
- # @return [String]
439
- attr_accessor :vm_name
440
-
441
- # Virtual machine ID of this instance. Only applicable for instances in App
442
- # Engine flexible environment.@OutputOnly
443
- # Corresponds to the JSON property `vmId`
444
- # @return [String]
445
- attr_accessor :vm_id
446
-
447
- # Average queries per second (QPS) over the last minute.@OutputOnly
448
- # Corresponds to the JSON property `qps`
449
- # @return [Float]
450
- attr_accessor :qps
451
-
452
- # Full path to the Instance resource in the API. Example: apps/myapp/services/
453
- # default/versions/v1/instances/instance-1.@OutputOnly
454
- # Corresponds to the JSON property `name`
455
- # @return [String]
456
- attr_accessor :name
457
-
458
- # Zone where the virtual machine is located. Only applicable for instances in
459
- # App Engine flexible environment.@OutputOnly
460
- # Corresponds to the JSON property `vmZoneName`
461
- # @return [String]
462
- attr_accessor :vm_zone_name
463
-
464
- # Average latency (ms) over the last minute.@OutputOnly
465
- # Corresponds to the JSON property `averageLatency`
466
- # @return [Fixnum]
467
- attr_accessor :average_latency
411
+ # URL pattern and description of how the URL should be handled. App Engine can
412
+ # handle URLs by executing application code or by serving static files uploaded
413
+ # with the version, such as images, CSS, or JavaScript.
414
+ class UrlMap
415
+ include Google::Apis::Core::Hashable
468
416
 
469
- # Relative name of the instance within the version. Example: instance-1.@
470
- # OutputOnly
471
- # Corresponds to the JSON property `id`
417
+ # Security (HTTPS) enforcement for this URL.
418
+ # Corresponds to the JSON property `securityLevel`
472
419
  # @return [String]
473
- attr_accessor :id
420
+ attr_accessor :security_level
474
421
 
475
- # The IP address of this instance. Only applicable for instances in App Engine
476
- # flexible environment.@OutputOnly
477
- # Corresponds to the JSON property `vmIp`
422
+ # Action to take when users access resources that require authentication.
423
+ # Defaults to redirect.
424
+ # Corresponds to the JSON property `authFailAction`
478
425
  # @return [String]
479
- attr_accessor :vm_ip
480
-
481
- # Total memory in use (bytes).@OutputOnly
482
- # Corresponds to the JSON property `memoryUsage`
483
- # @return [Fixnum]
484
- attr_accessor :memory_usage
485
-
486
- # Number of errors since this instance was started.@OutputOnly
487
- # Corresponds to the JSON property `errors`
488
- # @return [Fixnum]
489
- attr_accessor :errors
426
+ attr_accessor :auth_fail_action
490
427
 
491
- # Availability of the instance.@OutputOnly
492
- # Corresponds to the JSON property `availability`
493
- # @return [String]
494
- attr_accessor :availability
428
+ # Executes a script to handle the request that matches the URL pattern.
429
+ # Corresponds to the JSON property `script`
430
+ # @return [Google::Apis::AppengineV1::ScriptHandler]
431
+ attr_accessor :script
495
432
 
496
- # Status of the virtual machine where this instance lives. Only applicable for
497
- # instances in App Engine flexible environment.@OutputOnly
498
- # Corresponds to the JSON property `vmStatus`
433
+ # URL prefix. Uses regular expression syntax, which means regexp special
434
+ # characters must be escaped, but should not contain groupings. All URLs that
435
+ # begin with this prefix are handled by this handler, using the portion of the
436
+ # URL after the prefix as part of the file path.
437
+ # Corresponds to the JSON property `urlRegex`
499
438
  # @return [String]
500
- attr_accessor :vm_status
439
+ attr_accessor :url_regex
501
440
 
502
- # Time that this instance was started.@OutputOnly
503
- # Corresponds to the JSON property `startTime`
441
+ # Level of login required to access this resource.
442
+ # Corresponds to the JSON property `login`
504
443
  # @return [String]
505
- attr_accessor :start_time
444
+ attr_accessor :login
506
445
 
507
- # Whether this instance is in debug mode. Only applicable for instances in App
508
- # Engine flexible environment.@OutputOnly
509
- # Corresponds to the JSON property `vmDebugEnabled`
510
- # @return [Boolean]
511
- attr_accessor :vm_debug_enabled
512
- alias_method :vm_debug_enabled?, :vm_debug_enabled
446
+ # Uses Google Cloud Endpoints to handle requests.
447
+ # Corresponds to the JSON property `apiEndpoint`
448
+ # @return [Google::Apis::AppengineV1::ApiEndpointHandler]
449
+ attr_accessor :api_endpoint
513
450
 
514
- # Number of requests since this instance was started.@OutputOnly
515
- # Corresponds to the JSON property `requests`
516
- # @return [Fixnum]
517
- attr_accessor :requests
451
+ # Files served directly to the user for a given URL, such as images, CSS
452
+ # stylesheets, or JavaScript source files. Static file handlers describe which
453
+ # files in the application directory are static files, and which URLs serve them.
454
+ # Corresponds to the JSON property `staticFiles`
455
+ # @return [Google::Apis::AppengineV1::StaticFilesHandler]
456
+ attr_accessor :static_files
518
457
 
519
- # App Engine release this instance is running on.@OutputOnly
520
- # Corresponds to the JSON property `appEngineRelease`
458
+ # 30x code to use when performing redirects for the secure field. Defaults to
459
+ # 302.
460
+ # Corresponds to the JSON property `redirectHttpResponseCode`
521
461
  # @return [String]
522
- attr_accessor :app_engine_release
462
+ attr_accessor :redirect_http_response_code
523
463
 
524
464
  def initialize(**args)
525
465
  update!(**args)
@@ -527,67 +467,47 @@ module Google
527
467
 
528
468
  # Update properties of this object
529
469
  def update!(**args)
530
- @vm_name = args[:vm_name] if args.key?(:vm_name)
531
- @vm_id = args[:vm_id] if args.key?(:vm_id)
532
- @qps = args[:qps] if args.key?(:qps)
533
- @name = args[:name] if args.key?(:name)
534
- @vm_zone_name = args[:vm_zone_name] if args.key?(:vm_zone_name)
535
- @average_latency = args[:average_latency] if args.key?(:average_latency)
536
- @id = args[:id] if args.key?(:id)
537
- @vm_ip = args[:vm_ip] if args.key?(:vm_ip)
538
- @memory_usage = args[:memory_usage] if args.key?(:memory_usage)
539
- @errors = args[:errors] if args.key?(:errors)
540
- @availability = args[:availability] if args.key?(:availability)
541
- @vm_status = args[:vm_status] if args.key?(:vm_status)
542
- @start_time = args[:start_time] if args.key?(:start_time)
543
- @vm_debug_enabled = args[:vm_debug_enabled] if args.key?(:vm_debug_enabled)
544
- @requests = args[:requests] if args.key?(:requests)
545
- @app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release)
470
+ @security_level = args[:security_level] if args.key?(:security_level)
471
+ @auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action)
472
+ @script = args[:script] if args.key?(:script)
473
+ @url_regex = args[:url_regex] if args.key?(:url_regex)
474
+ @login = args[:login] if args.key?(:login)
475
+ @api_endpoint = args[:api_endpoint] if args.key?(:api_endpoint)
476
+ @static_files = args[:static_files] if args.key?(:static_files)
477
+ @redirect_http_response_code = args[:redirect_http_response_code] if args.key?(:redirect_http_response_code)
546
478
  end
547
479
  end
548
480
 
549
- # Health checking configuration for VM instances. Unhealthy instances are killed
550
- # and replaced with new instances.
551
- class LivenessCheck
481
+ # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/
482
+ # endpoints/) configuration for API handlers.
483
+ class ApiConfigHandler
552
484
  include Google::Apis::Core::Hashable
553
485
 
554
- # Interval between health checks.
555
- # Corresponds to the JSON property `checkInterval`
486
+ # Level of login required to access this resource. Defaults to optional.
487
+ # Corresponds to the JSON property `login`
556
488
  # @return [String]
557
- attr_accessor :check_interval
558
-
559
- # Number of consecutive failed checks required before considering the VM
560
- # unhealthy.
561
- # Corresponds to the JSON property `failureThreshold`
562
- # @return [Fixnum]
563
- attr_accessor :failure_threshold
489
+ attr_accessor :login
564
490
 
565
- # Time before the check is considered failed.
566
- # Corresponds to the JSON property `timeout`
491
+ # URL to serve the endpoint at.
492
+ # Corresponds to the JSON property `url`
567
493
  # @return [String]
568
- attr_accessor :timeout
494
+ attr_accessor :url
569
495
 
570
- # The initial delay before starting to execute the checks.
571
- # Corresponds to the JSON property `initialDelay`
496
+ # Security (HTTPS) enforcement for this URL.
497
+ # Corresponds to the JSON property `securityLevel`
572
498
  # @return [String]
573
- attr_accessor :initial_delay
499
+ attr_accessor :security_level
574
500
 
575
- # The request path.
576
- # Corresponds to the JSON property `path`
501
+ # Action to take when users access resources that require authentication.
502
+ # Defaults to redirect.
503
+ # Corresponds to the JSON property `authFailAction`
577
504
  # @return [String]
578
- attr_accessor :path
505
+ attr_accessor :auth_fail_action
579
506
 
580
- # Host header to send when performing a HTTP Liveness check. Example: "myapp.
581
- # appspot.com"
582
- # Corresponds to the JSON property `host`
507
+ # Path to the script from the application root directory.
508
+ # Corresponds to the JSON property `script`
583
509
  # @return [String]
584
- attr_accessor :host
585
-
586
- # Number of consecutive successful checks required before considering the VM
587
- # healthy.
588
- # Corresponds to the JSON property `successThreshold`
589
- # @return [Fixnum]
590
- attr_accessor :success_threshold
510
+ attr_accessor :script
591
511
 
592
512
  def initialize(**args)
593
513
  update!(**args)
@@ -595,39 +515,89 @@ module Google
595
515
 
596
516
  # Update properties of this object
597
517
  def update!(**args)
598
- @check_interval = args[:check_interval] if args.key?(:check_interval)
599
- @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
600
- @timeout = args[:timeout] if args.key?(:timeout)
601
- @initial_delay = args[:initial_delay] if args.key?(:initial_delay)
602
- @path = args[:path] if args.key?(:path)
603
- @host = args[:host] if args.key?(:host)
604
- @success_threshold = args[:success_threshold] if args.key?(:success_threshold)
518
+ @login = args[:login] if args.key?(:login)
519
+ @url = args[:url] if args.key?(:url)
520
+ @security_level = args[:security_level] if args.key?(:security_level)
521
+ @auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action)
522
+ @script = args[:script] if args.key?(:script)
605
523
  end
606
524
  end
607
525
 
608
- # Target scaling by network usage. Only applicable for VM runtimes.
609
- class NetworkUtilization
526
+ # This resource represents a long-running operation that is the result of a
527
+ # network API call.
528
+ class Operation
610
529
  include Google::Apis::Core::Hashable
611
530
 
612
- # Target bytes sent per second.
613
- # Corresponds to the JSON property `targetSentBytesPerSecond`
614
- # @return [Fixnum]
615
- attr_accessor :target_sent_bytes_per_second
531
+ # The Status type defines a logical error model that is suitable for different
532
+ # programming environments, including REST APIs and RPC APIs. It is used by gRPC
533
+ # (https://github.com/grpc). The error model is designed to be:
534
+ # Simple to use and understand for most users
535
+ # Flexible enough to meet unexpected needsOverviewThe Status message contains
536
+ # three pieces of data: error code, error message, and error details. The error
537
+ # code should be an enum value of google.rpc.Code, but it may accept additional
538
+ # error codes if needed. The error message should be a developer-facing English
539
+ # message that helps developers understand and resolve the error. If a localized
540
+ # user-facing error message is needed, put the localized message in the error
541
+ # details or localize it in the client. The optional error details may contain
542
+ # arbitrary information about the error. There is a predefined set of error
543
+ # detail types in the package google.rpc that can be used for common error
544
+ # conditions.Language mappingThe Status message is the logical representation of
545
+ # the error model, but it is not necessarily the actual wire format. When the
546
+ # Status message is exposed in different client libraries and different wire
547
+ # protocols, it can be mapped differently. For example, it will likely be mapped
548
+ # to some exceptions in Java, but more likely mapped to some error codes in C.
549
+ # Other usesThe error model and the Status message can be used in a variety of
550
+ # environments, either with or without APIs, to provide a consistent developer
551
+ # experience across different environments.Example uses of this error model
552
+ # include:
553
+ # Partial errors. If a service needs to return partial errors to the client, it
554
+ # may embed the Status in the normal response to indicate the partial errors.
555
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a
556
+ # Status message for error reporting.
557
+ # Batch operations. If a client uses batch request and batch response, the
558
+ # Status message should be used directly inside batch response, one for each
559
+ # error sub-response.
560
+ # Asynchronous operations. If an API call embeds asynchronous operation results
561
+ # in its response, the status of those operations should be represented directly
562
+ # using the Status message.
563
+ # Logging. If some API errors are stored in logs, the message Status could be
564
+ # used directly after any stripping needed for security/privacy reasons.
565
+ # Corresponds to the JSON property `error`
566
+ # @return [Google::Apis::AppengineV1::Status]
567
+ attr_accessor :error
616
568
 
617
- # Target packets sent per second.
618
- # Corresponds to the JSON property `targetSentPacketsPerSecond`
619
- # @return [Fixnum]
620
- attr_accessor :target_sent_packets_per_second
569
+ # Service-specific metadata associated with the operation. It typically contains
570
+ # progress information and common metadata such as create time. Some services
571
+ # might not provide such metadata. Any method that returns a long-running
572
+ # operation should document the metadata type, if any.
573
+ # Corresponds to the JSON property `metadata`
574
+ # @return [Hash<String,Object>]
575
+ attr_accessor :metadata
621
576
 
622
- # Target bytes received per second.
623
- # Corresponds to the JSON property `targetReceivedBytesPerSecond`
624
- # @return [Fixnum]
625
- attr_accessor :target_received_bytes_per_second
577
+ # If the value is false, it means the operation is still in progress. If true,
578
+ # the operation is completed, and either error or response is available.
579
+ # Corresponds to the JSON property `done`
580
+ # @return [Boolean]
581
+ attr_accessor :done
582
+ alias_method :done?, :done
626
583
 
627
- # Target packets received per second.
628
- # Corresponds to the JSON property `targetReceivedPacketsPerSecond`
629
- # @return [Fixnum]
630
- attr_accessor :target_received_packets_per_second
584
+ # The normal response of the operation in case of success. If the original
585
+ # method returns no data on success, such as Delete, the response is google.
586
+ # protobuf.Empty. If the original method is standard Get/Create/Update, the
587
+ # response should be the resource. For other methods, the response should have
588
+ # the type XxxResponse, where Xxx is the original method name. For example, if
589
+ # the original method name is TakeSnapshot(), the inferred response type is
590
+ # TakeSnapshotResponse.
591
+ # Corresponds to the JSON property `response`
592
+ # @return [Hash<String,Object>]
593
+ attr_accessor :response
594
+
595
+ # The server-assigned name, which is only unique within the same service that
596
+ # originally returns it. If you use the default HTTP mapping, the name should
597
+ # have the format of operations/some/unique/name.
598
+ # Corresponds to the JSON property `name`
599
+ # @return [String]
600
+ attr_accessor :name
631
601
 
632
602
  def initialize(**args)
633
603
  update!(**args)
@@ -635,39 +605,64 @@ module Google
635
605
 
636
606
  # Update properties of this object
637
607
  def update!(**args)
638
- @target_sent_bytes_per_second = args[:target_sent_bytes_per_second] if args.key?(:target_sent_bytes_per_second)
639
- @target_sent_packets_per_second = args[:target_sent_packets_per_second] if args.key?(:target_sent_packets_per_second)
640
- @target_received_bytes_per_second = args[:target_received_bytes_per_second] if args.key?(:target_received_bytes_per_second)
641
- @target_received_packets_per_second = args[:target_received_packets_per_second] if args.key?(:target_received_packets_per_second)
608
+ @error = args[:error] if args.key?(:error)
609
+ @metadata = args[:metadata] if args.key?(:metadata)
610
+ @done = args[:done] if args.key?(:done)
611
+ @response = args[:response] if args.key?(:response)
612
+ @name = args[:name] if args.key?(:name)
642
613
  end
643
614
  end
644
615
 
645
- # A resource that represents Google Cloud Platform location.
646
- class Location
616
+ # Files served directly to the user for a given URL, such as images, CSS
617
+ # stylesheets, or JavaScript source files. Static file handlers describe which
618
+ # files in the application directory are static files, and which URLs serve them.
619
+ class StaticFilesHandler
647
620
  include Google::Apis::Core::Hashable
648
621
 
649
- # Cross-service attributes for the location. For example
650
- # `"cloud.googleapis.com/region": "us-east1"`
651
- # Corresponds to the JSON property `labels`
622
+ # HTTP headers to use for all responses from these URLs.
623
+ # Corresponds to the JSON property `httpHeaders`
652
624
  # @return [Hash<String,String>]
653
- attr_accessor :labels
625
+ attr_accessor :http_headers
654
626
 
655
- # Resource name for the location, which may vary between implementations. For
656
- # example: "projects/example-project/locations/us-east1"
657
- # Corresponds to the JSON property `name`
627
+ # Whether files should also be uploaded as code data. By default, files declared
628
+ # in static file handlers are uploaded as static data and are only served to end
629
+ # users; they cannot be read by the application. If enabled, uploads are charged
630
+ # against both your code and static data storage resource quotas.
631
+ # Corresponds to the JSON property `applicationReadable`
632
+ # @return [Boolean]
633
+ attr_accessor :application_readable
634
+ alias_method :application_readable?, :application_readable
635
+
636
+ # Regular expression that matches the file paths for all files that should be
637
+ # referenced by this handler.
638
+ # Corresponds to the JSON property `uploadPathRegex`
658
639
  # @return [String]
659
- attr_accessor :name
640
+ attr_accessor :upload_path_regex
660
641
 
661
- # The canonical id for this location. For example: "us-east1".
662
- # Corresponds to the JSON property `locationId`
642
+ # Path to the static files matched by the URL pattern, from the application root
643
+ # directory. The path can refer to text matched in groupings in the URL pattern.
644
+ # Corresponds to the JSON property `path`
663
645
  # @return [String]
664
- attr_accessor :location_id
646
+ attr_accessor :path
665
647
 
666
- # Service-specific metadata. For example the available capacity at the given
667
- # location.
668
- # Corresponds to the JSON property `metadata`
669
- # @return [Hash<String,Object>]
670
- attr_accessor :metadata
648
+ # MIME type used to serve all files served by this handler.Defaults to file-
649
+ # specific MIME types, which are derived from each file's filename extension.
650
+ # Corresponds to the JSON property `mimeType`
651
+ # @return [String]
652
+ attr_accessor :mime_type
653
+
654
+ # Whether this handler should match the request if the file referenced by the
655
+ # handler does not exist.
656
+ # Corresponds to the JSON property `requireMatchingFile`
657
+ # @return [Boolean]
658
+ attr_accessor :require_matching_file
659
+ alias_method :require_matching_file?, :require_matching_file
660
+
661
+ # Time a static file served by this handler should be cached by web proxies and
662
+ # browsers.
663
+ # Corresponds to the JSON property `expiration`
664
+ # @return [String]
665
+ attr_accessor :expiration
671
666
 
672
667
  def initialize(**args)
673
668
  update!(**args)
@@ -675,57 +670,39 @@ module Google
675
670
 
676
671
  # Update properties of this object
677
672
  def update!(**args)
678
- @labels = args[:labels] if args.key?(:labels)
679
- @name = args[:name] if args.key?(:name)
680
- @location_id = args[:location_id] if args.key?(:location_id)
681
- @metadata = args[:metadata] if args.key?(:metadata)
673
+ @http_headers = args[:http_headers] if args.key?(:http_headers)
674
+ @application_readable = args[:application_readable] if args.key?(:application_readable)
675
+ @upload_path_regex = args[:upload_path_regex] if args.key?(:upload_path_regex)
676
+ @path = args[:path] if args.key?(:path)
677
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
678
+ @require_matching_file = args[:require_matching_file] if args.key?(:require_matching_file)
679
+ @expiration = args[:expiration] if args.key?(:expiration)
682
680
  end
683
681
  end
684
682
 
685
- # Health checking configuration for VM instances. Unhealthy instances are killed
686
- # and replaced with new instances. Only applicable for instances in App Engine
687
- # flexible environment.
688
- class HealthCheck
683
+ # Target scaling by disk usage. Only applicable for VM runtimes.
684
+ class DiskUtilization
689
685
  include Google::Apis::Core::Hashable
690
686
 
691
- # Host header to send when performing an HTTP health check. Example: "myapp.
692
- # appspot.com"
693
- # Corresponds to the JSON property `host`
694
- # @return [String]
695
- attr_accessor :host
696
-
697
- # Number of consecutive failed health checks required before an instance is
698
- # restarted.
699
- # Corresponds to the JSON property `restartThreshold`
687
+ # Target ops written per second.
688
+ # Corresponds to the JSON property `targetWriteOpsPerSecond`
700
689
  # @return [Fixnum]
701
- attr_accessor :restart_threshold
690
+ attr_accessor :target_write_ops_per_second
702
691
 
703
- # Number of consecutive successful health checks required before receiving
704
- # traffic.
705
- # Corresponds to the JSON property `healthyThreshold`
692
+ # Target bytes written per second.
693
+ # Corresponds to the JSON property `targetWriteBytesPerSecond`
706
694
  # @return [Fixnum]
707
- attr_accessor :healthy_threshold
708
-
709
- # Interval between health checks.
710
- # Corresponds to the JSON property `checkInterval`
711
- # @return [String]
712
- attr_accessor :check_interval
713
-
714
- # Time before the health check is considered failed.
715
- # Corresponds to the JSON property `timeout`
716
- # @return [String]
717
- attr_accessor :timeout
695
+ attr_accessor :target_write_bytes_per_second
718
696
 
719
- # Number of consecutive failed health checks required before removing traffic.
720
- # Corresponds to the JSON property `unhealthyThreshold`
697
+ # Target bytes read per second.
698
+ # Corresponds to the JSON property `targetReadBytesPerSecond`
721
699
  # @return [Fixnum]
722
- attr_accessor :unhealthy_threshold
700
+ attr_accessor :target_read_bytes_per_second
723
701
 
724
- # Whether to explicitly disable health checks for this instance.
725
- # Corresponds to the JSON property `disableHealthCheck`
726
- # @return [Boolean]
727
- attr_accessor :disable_health_check
728
- alias_method :disable_health_check?, :disable_health_check
702
+ # Target ops read per seconds.
703
+ # Corresponds to the JSON property `targetReadOpsPerSecond`
704
+ # @return [Fixnum]
705
+ attr_accessor :target_read_ops_per_second
729
706
 
730
707
  def initialize(**args)
731
708
  update!(**args)
@@ -733,51 +710,30 @@ module Google
733
710
 
734
711
  # Update properties of this object
735
712
  def update!(**args)
736
- @host = args[:host] if args.key?(:host)
737
- @restart_threshold = args[:restart_threshold] if args.key?(:restart_threshold)
738
- @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
739
- @check_interval = args[:check_interval] if args.key?(:check_interval)
740
- @timeout = args[:timeout] if args.key?(:timeout)
741
- @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
742
- @disable_health_check = args[:disable_health_check] if args.key?(:disable_health_check)
713
+ @target_write_ops_per_second = args[:target_write_ops_per_second] if args.key?(:target_write_ops_per_second)
714
+ @target_write_bytes_per_second = args[:target_write_bytes_per_second] if args.key?(:target_write_bytes_per_second)
715
+ @target_read_bytes_per_second = args[:target_read_bytes_per_second] if args.key?(:target_read_bytes_per_second)
716
+ @target_read_ops_per_second = args[:target_read_ops_per_second] if args.key?(:target_read_ops_per_second)
743
717
  end
744
718
  end
745
719
 
746
- # Readiness checking configuration for VM instances. Unhealthy instances are
747
- # removed from traffic rotation.
748
- class ReadinessCheck
720
+ # A service with basic scaling will create an instance when the application
721
+ # receives a request. The instance will be turned down when the app becomes idle.
722
+ # Basic scaling is ideal for work that is intermittent or driven by user
723
+ # activity.
724
+ class BasicScaling
749
725
  include Google::Apis::Core::Hashable
750
726
 
751
- # Interval between health checks.
752
- # Corresponds to the JSON property `checkInterval`
753
- # @return [String]
754
- attr_accessor :check_interval
755
-
756
- # Time before the check is considered failed.
757
- # Corresponds to the JSON property `timeout`
758
- # @return [String]
759
- attr_accessor :timeout
760
-
761
- # Number of consecutive failed checks required before removing traffic.
762
- # Corresponds to the JSON property `failureThreshold`
763
- # @return [Fixnum]
764
- attr_accessor :failure_threshold
765
-
766
- # The request path.
767
- # Corresponds to the JSON property `path`
727
+ # Duration of time after the last request that an instance must wait before the
728
+ # instance is shut down.
729
+ # Corresponds to the JSON property `idleTimeout`
768
730
  # @return [String]
769
- attr_accessor :path
731
+ attr_accessor :idle_timeout
770
732
 
771
- # Number of consecutive successful checks required before receiving traffic.
772
- # Corresponds to the JSON property `successThreshold`
733
+ # Maximum number of instances to create for this version.
734
+ # Corresponds to the JSON property `maxInstances`
773
735
  # @return [Fixnum]
774
- attr_accessor :success_threshold
775
-
776
- # Host header to send when performing a HTTP Readiness check. Example: "myapp.
777
- # appspot.com"
778
- # Corresponds to the JSON property `host`
779
- # @return [String]
780
- attr_accessor :host
736
+ attr_accessor :max_instances
781
737
 
782
738
  def initialize(**args)
783
739
  update!(**args)
@@ -785,27 +741,24 @@ module Google
785
741
 
786
742
  # Update properties of this object
787
743
  def update!(**args)
788
- @check_interval = args[:check_interval] if args.key?(:check_interval)
789
- @timeout = args[:timeout] if args.key?(:timeout)
790
- @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
791
- @path = args[:path] if args.key?(:path)
792
- @success_threshold = args[:success_threshold] if args.key?(:success_threshold)
793
- @host = args[:host] if args.key?(:host)
744
+ @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
745
+ @max_instances = args[:max_instances] if args.key?(:max_instances)
794
746
  end
795
747
  end
796
748
 
797
- # Request message for Instances.DebugInstance.
798
- class DebugInstanceRequest
749
+ # Target scaling by CPU usage.
750
+ class CpuUtilization
799
751
  include Google::Apis::Core::Hashable
800
752
 
801
- # Public SSH key to add to the instance. Examples:
802
- # [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]
803
- # [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh `"userName":"[USERNAME]","expireOn":"
804
- # [EXPIRE_TIME]"`For more information, see Adding and Removing SSH Keys (https://
805
- # cloud.google.com/compute/docs/instances/adding-removing-ssh-keys).
806
- # Corresponds to the JSON property `sshKey`
753
+ # Period of time over which CPU utilization is calculated.
754
+ # Corresponds to the JSON property `aggregationWindowLength`
807
755
  # @return [String]
808
- attr_accessor :ssh_key
756
+ attr_accessor :aggregation_window_length
757
+
758
+ # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
759
+ # Corresponds to the JSON property `targetUtilization`
760
+ # @return [Float]
761
+ attr_accessor :target_utilization
809
762
 
810
763
  def initialize(**args)
811
764
  update!(**args)
@@ -813,40 +766,39 @@ module Google
813
766
 
814
767
  # Update properties of this object
815
768
  def update!(**args)
816
- @ssh_key = args[:ssh_key] if args.key?(:ssh_key)
769
+ @aggregation_window_length = args[:aggregation_window_length] if args.key?(:aggregation_window_length)
770
+ @target_utilization = args[:target_utilization] if args.key?(:target_utilization)
817
771
  end
818
772
  end
819
773
 
820
- # Metadata for the given google.longrunning.Operation.
821
- class OperationMetadataV1Beta5
774
+ # Identity-Aware Proxy
775
+ class IdentityAwareProxy
822
776
  include Google::Apis::Core::Hashable
823
777
 
824
- # API method name that initiated this operation. Example: google.appengine.
825
- # v1beta5.Version.CreateVersion.@OutputOnly
826
- # Corresponds to the JSON property `method`
827
- # @return [String]
828
- attr_accessor :method_prop
829
-
830
- # Timestamp that this operation was created.@OutputOnly
831
- # Corresponds to the JSON property `insertTime`
832
- # @return [String]
833
- attr_accessor :insert_time
778
+ # Whether the serving infrastructure will authenticate and authorize all
779
+ # incoming requests.If true, the oauth2_client_id and oauth2_client_secret
780
+ # fields must be non-empty.
781
+ # Corresponds to the JSON property `enabled`
782
+ # @return [Boolean]
783
+ attr_accessor :enabled
784
+ alias_method :enabled?, :enabled
834
785
 
835
- # Timestamp that this operation completed.@OutputOnly
836
- # Corresponds to the JSON property `endTime`
786
+ # OAuth2 client secret to use for the authentication flow.For security reasons,
787
+ # this value cannot be retrieved via the API. Instead, the SHA-256 hash of the
788
+ # value is returned in the oauth2_client_secret_sha256 field.@InputOnly
789
+ # Corresponds to the JSON property `oauth2ClientSecret`
837
790
  # @return [String]
838
- attr_accessor :end_time
791
+ attr_accessor :oauth2_client_secret
839
792
 
840
- # User who requested this operation.@OutputOnly
841
- # Corresponds to the JSON property `user`
793
+ # OAuth2 client ID to use for the authentication flow.
794
+ # Corresponds to the JSON property `oauth2ClientId`
842
795
  # @return [String]
843
- attr_accessor :user
796
+ attr_accessor :oauth2_client_id
844
797
 
845
- # Name of the resource that this operation is acting on. Example: apps/myapp/
846
- # services/default.@OutputOnly
847
- # Corresponds to the JSON property `target`
798
+ # Hex-encoded SHA-256 hash of the client secret.@OutputOnly
799
+ # Corresponds to the JSON property `oauth2ClientSecretSha256`
848
800
  # @return [String]
849
- attr_accessor :target
801
+ attr_accessor :oauth2_client_secret_sha256
850
802
 
851
803
  def initialize(**args)
852
804
  update!(**args)
@@ -854,218 +806,229 @@ module Google
854
806
 
855
807
  # Update properties of this object
856
808
  def update!(**args)
857
- @method_prop = args[:method_prop] if args.key?(:method_prop)
858
- @insert_time = args[:insert_time] if args.key?(:insert_time)
859
- @end_time = args[:end_time] if args.key?(:end_time)
860
- @user = args[:user] if args.key?(:user)
861
- @target = args[:target] if args.key?(:target)
809
+ @enabled = args[:enabled] if args.key?(:enabled)
810
+ @oauth2_client_secret = args[:oauth2_client_secret] if args.key?(:oauth2_client_secret)
811
+ @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id)
812
+ @oauth2_client_secret_sha256 = args[:oauth2_client_secret_sha256] if args.key?(:oauth2_client_secret_sha256)
862
813
  end
863
814
  end
864
815
 
865
- # A Version resource is a specific set of source code and configuration files
866
- # that are deployed into a service.
867
- class Version
816
+ # The Status type defines a logical error model that is suitable for different
817
+ # programming environments, including REST APIs and RPC APIs. It is used by gRPC
818
+ # (https://github.com/grpc). The error model is designed to be:
819
+ # Simple to use and understand for most users
820
+ # Flexible enough to meet unexpected needsOverviewThe Status message contains
821
+ # three pieces of data: error code, error message, and error details. The error
822
+ # code should be an enum value of google.rpc.Code, but it may accept additional
823
+ # error codes if needed. The error message should be a developer-facing English
824
+ # message that helps developers understand and resolve the error. If a localized
825
+ # user-facing error message is needed, put the localized message in the error
826
+ # details or localize it in the client. The optional error details may contain
827
+ # arbitrary information about the error. There is a predefined set of error
828
+ # detail types in the package google.rpc that can be used for common error
829
+ # conditions.Language mappingThe Status message is the logical representation of
830
+ # the error model, but it is not necessarily the actual wire format. When the
831
+ # Status message is exposed in different client libraries and different wire
832
+ # protocols, it can be mapped differently. For example, it will likely be mapped
833
+ # to some exceptions in Java, but more likely mapped to some error codes in C.
834
+ # Other usesThe error model and the Status message can be used in a variety of
835
+ # environments, either with or without APIs, to provide a consistent developer
836
+ # experience across different environments.Example uses of this error model
837
+ # include:
838
+ # Partial errors. If a service needs to return partial errors to the client, it
839
+ # may embed the Status in the normal response to indicate the partial errors.
840
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a
841
+ # Status message for error reporting.
842
+ # Batch operations. If a client uses batch request and batch response, the
843
+ # Status message should be used directly inside batch response, one for each
844
+ # error sub-response.
845
+ # Asynchronous operations. If an API call embeds asynchronous operation results
846
+ # in its response, the status of those operations should be represented directly
847
+ # using the Status message.
848
+ # Logging. If some API errors are stored in logs, the message Status could be
849
+ # used directly after any stripping needed for security/privacy reasons.
850
+ class Status
868
851
  include Google::Apis::Core::Hashable
869
852
 
870
- # Extra network settings. Only applicable for VM runtimes.
871
- # Corresponds to the JSON property `network`
872
- # @return [Google::Apis::AppengineV1::Network]
873
- attr_accessor :network
853
+ # A list of messages that carry the error details. There will be a common set of
854
+ # message types for APIs to use.
855
+ # Corresponds to the JSON property `details`
856
+ # @return [Array<Hash<String,Object>>]
857
+ attr_accessor :details
874
858
 
875
- # Metadata settings that are supplied to this version to enable beta runtime
876
- # features.
877
- # Corresponds to the JSON property `betaSettings`
878
- # @return [Hash<String,String>]
879
- attr_accessor :beta_settings
859
+ # The status code, which should be an enum value of google.rpc.Code.
860
+ # Corresponds to the JSON property `code`
861
+ # @return [Fixnum]
862
+ attr_accessor :code
880
863
 
881
- # App Engine execution environment for this version.Defaults to standard.
882
- # Corresponds to the JSON property `env`
864
+ # A developer-facing error message, which should be in English. Any user-facing
865
+ # error message should be localized and sent in the google.rpc.Status.details
866
+ # field, or localized by the client.
867
+ # Corresponds to the JSON property `message`
883
868
  # @return [String]
884
- attr_accessor :env
869
+ attr_accessor :message
885
870
 
886
- # An ordered list of URL-matching patterns that should be applied to incoming
887
- # requests. The first matching URL handles the request and other request
888
- # handlers are not attempted.Only returned in GET requests if view=FULL is set.
889
- # Corresponds to the JSON property `handlers`
890
- # @return [Array<Google::Apis::AppengineV1::UrlMap>]
891
- attr_accessor :handlers
871
+ def initialize(**args)
872
+ update!(**args)
873
+ end
892
874
 
893
- # Automatic scaling is based on request rate, response latencies, and other
894
- # application metrics.
895
- # Corresponds to the JSON property `automaticScaling`
896
- # @return [Google::Apis::AppengineV1::AutomaticScaling]
897
- attr_accessor :automatic_scaling
875
+ # Update properties of this object
876
+ def update!(**args)
877
+ @details = args[:details] if args.key?(:details)
878
+ @code = args[:code] if args.key?(:code)
879
+ @message = args[:message] if args.key?(:message)
880
+ end
881
+ end
898
882
 
899
- # Total size in bytes of all the files that are included in this version and
900
- # curerntly hosted on the App Engine disk.@OutputOnly
901
- # Corresponds to the JSON property `diskUsageBytes`
883
+ # A service with manual scaling runs continuously, allowing you to perform
884
+ # complex initialization and rely on the state of its memory over time.
885
+ class ManualScaling
886
+ include Google::Apis::Core::Hashable
887
+
888
+ # Number of instances to assign to the service at the start. This number can
889
+ # later be altered by using the Modules API (https://cloud.google.com/appengine/
890
+ # docs/python/modules/functions) set_num_instances() function.
891
+ # Corresponds to the JSON property `instances`
902
892
  # @return [Fixnum]
903
- attr_accessor :disk_usage_bytes
893
+ attr_accessor :instances
904
894
 
905
- # Health checking configuration for VM instances. Unhealthy instances are killed
906
- # and replaced with new instances. Only applicable for instances in App Engine
907
- # flexible environment.
908
- # Corresponds to the JSON property `healthCheck`
909
- # @return [Google::Apis::AppengineV1::HealthCheck]
910
- attr_accessor :health_check
895
+ def initialize(**args)
896
+ update!(**args)
897
+ end
911
898
 
912
- # Whether multiple requests can be dispatched to this version at once.
913
- # Corresponds to the JSON property `threadsafe`
899
+ # Update properties of this object
900
+ def update!(**args)
901
+ @instances = args[:instances] if args.key?(:instances)
902
+ end
903
+ end
904
+
905
+ # Metadata for the given google.cloud.location.Location.
906
+ class LocationMetadata
907
+ include Google::Apis::Core::Hashable
908
+
909
+ # App Engine Standard Environment is available in the given location.@OutputOnly
910
+ # Corresponds to the JSON property `standardEnvironmentAvailable`
914
911
  # @return [Boolean]
915
- attr_accessor :threadsafe
916
- alias_method :threadsafe?, :threadsafe
912
+ attr_accessor :standard_environment_available
913
+ alias_method :standard_environment_available?, :standard_environment_available
917
914
 
918
- # Readiness checking configuration for VM instances. Unhealthy instances are
919
- # removed from traffic rotation.
920
- # Corresponds to the JSON property `readinessCheck`
921
- # @return [Google::Apis::AppengineV1::ReadinessCheck]
922
- attr_accessor :readiness_check
915
+ # App Engine Flexible Environment is available in the given location.@OutputOnly
916
+ # Corresponds to the JSON property `flexibleEnvironmentAvailable`
917
+ # @return [Boolean]
918
+ attr_accessor :flexible_environment_available
919
+ alias_method :flexible_environment_available?, :flexible_environment_available
923
920
 
924
- # A service with manual scaling runs continuously, allowing you to perform
925
- # complex initialization and rely on the state of its memory over time.
926
- # Corresponds to the JSON property `manualScaling`
927
- # @return [Google::Apis::AppengineV1::ManualScaling]
928
- attr_accessor :manual_scaling
921
+ def initialize(**args)
922
+ update!(**args)
923
+ end
929
924
 
930
- # Full path to the Version resource in the API. Example: apps/myapp/services/
931
- # default/versions/v1.@OutputOnly
925
+ # Update properties of this object
926
+ def update!(**args)
927
+ @standard_environment_available = args[:standard_environment_available] if args.key?(:standard_environment_available)
928
+ @flexible_environment_available = args[:flexible_environment_available] if args.key?(:flexible_environment_available)
929
+ end
930
+ end
931
+
932
+ # A Service resource is a logical component of an application that can share
933
+ # state and communicate in a secure fashion with other services. For example, an
934
+ # application that handles customer requests might include separate services to
935
+ # handle tasks such as backend data analysis or API requests from mobile devices.
936
+ # Each service has a collection of versions that define a specific set of code
937
+ # used to implement the functionality of that service.
938
+ class Service
939
+ include Google::Apis::Core::Hashable
940
+
941
+ # Relative name of the service within the application. Example: default.@
942
+ # OutputOnly
943
+ # Corresponds to the JSON property `id`
944
+ # @return [String]
945
+ attr_accessor :id
946
+
947
+ # Full path to the Service resource in the API. Example: apps/myapp/services/
948
+ # default.@OutputOnly
932
949
  # Corresponds to the JSON property `name`
933
950
  # @return [String]
934
951
  attr_accessor :name
935
952
 
936
- # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/
937
- # endpoints/) configuration for API handlers.
938
- # Corresponds to the JSON property `apiConfig`
939
- # @return [Google::Apis::AppengineV1::ApiConfigHandler]
940
- attr_accessor :api_config
953
+ # Traffic routing configuration for versions within a single service. Traffic
954
+ # splits define how traffic directed to the service is assigned to versions.
955
+ # Corresponds to the JSON property `split`
956
+ # @return [Google::Apis::AppengineV1::TrafficSplit]
957
+ attr_accessor :split
941
958
 
942
- # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
943
- # Endpoints API Service provides tooling for serving Open API and gRPC endpoints
944
- # via an NGINX proxy.The fields here refer to the name and configuration id of a
945
- # "service" resource in the Service Management API (https://cloud.google.com/
946
- # service-management/overview).
947
- # Corresponds to the JSON property `endpointsApiService`
948
- # @return [Google::Apis::AppengineV1::EndpointsApiService]
949
- attr_accessor :endpoints_api_service
959
+ def initialize(**args)
960
+ update!(**args)
961
+ end
950
962
 
951
- # Serving URL for this version. Example: "https://myversion-dot-myservice-dot-
952
- # myapp.appspot.com"@OutputOnly
953
- # Corresponds to the JSON property `versionUrl`
954
- # @return [String]
955
- attr_accessor :version_url
963
+ # Update properties of this object
964
+ def update!(**args)
965
+ @id = args[:id] if args.key?(:id)
966
+ @name = args[:name] if args.key?(:name)
967
+ @split = args[:split] if args.key?(:split)
968
+ end
969
+ end
956
970
 
957
- # Whether to deploy this version in a container on a virtual machine.
958
- # Corresponds to the JSON property `vm`
959
- # @return [Boolean]
960
- attr_accessor :vm
961
- alias_method :vm?, :vm
971
+ # The response message for Operations.ListOperations.
972
+ class ListOperationsResponse
973
+ include Google::Apis::Core::Hashable
962
974
 
963
- # Instance class that is used to run this version. Valid values are:
964
- # AutomaticScaling: F1, F2, F4, F4_1G
965
- # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for
966
- # AutomaticScaling and B1 for ManualScaling or BasicScaling.
967
- # Corresponds to the JSON property `instanceClass`
968
- # @return [String]
969
- attr_accessor :instance_class
970
-
971
- # Current serving status of this version. Only the versions with a SERVING
972
- # status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an
973
- # invalid value. Defaults to SERVING.
974
- # Corresponds to the JSON property `servingStatus`
975
- # @return [String]
976
- attr_accessor :serving_status
977
-
978
- # The version of the API in the given runtime environment. Please see the app.
979
- # yaml reference for valid values at https://cloud.google.com/appengine/docs/
980
- # standard/<language>/config/appref
981
- # Corresponds to the JSON property `runtimeApiVersion`
982
- # @return [String]
983
- attr_accessor :runtime_api_version
984
-
985
- # Code and application artifacts used to deploy a version to App Engine.
986
- # Corresponds to the JSON property `deployment`
987
- # @return [Google::Apis::AppengineV1::Deployment]
988
- attr_accessor :deployment
975
+ # A list of operations that matches the specified filter in the request.
976
+ # Corresponds to the JSON property `operations`
977
+ # @return [Array<Google::Apis::AppengineV1::Operation>]
978
+ attr_accessor :operations
989
979
 
990
- # Time that this version was created.@OutputOnly
991
- # Corresponds to the JSON property `createTime`
980
+ # The standard List next-page token.
981
+ # Corresponds to the JSON property `nextPageToken`
992
982
  # @return [String]
993
- attr_accessor :create_time
983
+ attr_accessor :next_page_token
994
984
 
995
- # Before an application can receive email or XMPP messages, the application must
996
- # be configured to enable the service.
997
- # Corresponds to the JSON property `inboundServices`
998
- # @return [Array<String>]
999
- attr_accessor :inbound_services
985
+ def initialize(**args)
986
+ update!(**args)
987
+ end
1000
988
 
1001
- # Machine resources for a version.
1002
- # Corresponds to the JSON property `resources`
1003
- # @return [Google::Apis::AppengineV1::Resources]
1004
- attr_accessor :resources
989
+ # Update properties of this object
990
+ def update!(**args)
991
+ @operations = args[:operations] if args.key?(:operations)
992
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
993
+ end
994
+ end
1005
995
 
1006
- # Custom static error pages. Limited to 10KB per page.Only returned in GET
1007
- # requests if view=FULL is set.
1008
- # Corresponds to the JSON property `errorHandlers`
1009
- # @return [Array<Google::Apis::AppengineV1::ErrorHandler>]
1010
- attr_accessor :error_handlers
996
+ # Metadata for the given google.longrunning.Operation.
997
+ class OperationMetadata
998
+ include Google::Apis::Core::Hashable
1011
999
 
1012
- # Duration that static files should be cached by web proxies and browsers. Only
1013
- # applicable if the corresponding StaticFilesHandler (https://cloud.google.com/
1014
- # appengine/docs/admin-api/reference/rest/v1/apps.services.versions#
1015
- # staticfileshandler) does not specify its own expiration time.Only returned in
1016
- # GET requests if view=FULL is set.
1017
- # Corresponds to the JSON property `defaultExpiration`
1000
+ # Timestamp that this operation was created.@OutputOnly
1001
+ # Corresponds to the JSON property `insertTime`
1018
1002
  # @return [String]
1019
- attr_accessor :default_expiration
1020
-
1021
- # Configuration for third-party Python runtime libraries that are required by
1022
- # the application.Only returned in GET requests if view=FULL is set.
1023
- # Corresponds to the JSON property `libraries`
1024
- # @return [Array<Google::Apis::AppengineV1::Library>]
1025
- attr_accessor :libraries
1003
+ attr_accessor :insert_time
1026
1004
 
1027
- # Files that match this pattern will not be built into this version. Only
1028
- # applicable for Go runtimes.Only returned in GET requests if view=FULL is set.
1029
- # Corresponds to the JSON property `nobuildFilesRegex`
1005
+ # User who requested this operation.@OutputOnly
1006
+ # Corresponds to the JSON property `user`
1030
1007
  # @return [String]
1031
- attr_accessor :nobuild_files_regex
1032
-
1033
- # A service with basic scaling will create an instance when the application
1034
- # receives a request. The instance will be turned down when the app becomes idle.
1035
- # Basic scaling is ideal for work that is intermittent or driven by user
1036
- # activity.
1037
- # Corresponds to the JSON property `basicScaling`
1038
- # @return [Google::Apis::AppengineV1::BasicScaling]
1039
- attr_accessor :basic_scaling
1008
+ attr_accessor :user
1040
1009
 
1041
- # Desired runtime. Example: python27.
1042
- # Corresponds to the JSON property `runtime`
1010
+ # Name of the resource that this operation is acting on. Example: apps/myapp/
1011
+ # modules/default.@OutputOnly
1012
+ # Corresponds to the JSON property `target`
1043
1013
  # @return [String]
1044
- attr_accessor :runtime
1014
+ attr_accessor :target
1045
1015
 
1046
- # Relative name of the version within the service. Example: v1. Version names
1047
- # can contain only lowercase letters, numbers, or hyphens. Reserved names: "
1048
- # default", "latest", and any name with the prefix "ah-".
1049
- # Corresponds to the JSON property `id`
1016
+ # API method that initiated this operation. Example: google.appengine.v1beta4.
1017
+ # Version.CreateVersion.@OutputOnly
1018
+ # Corresponds to the JSON property `method`
1050
1019
  # @return [String]
1051
- attr_accessor :id
1020
+ attr_accessor :method_prop
1052
1021
 
1053
- # Email address of the user who created this version.@OutputOnly
1054
- # Corresponds to the JSON property `createdBy`
1022
+ # Timestamp that this operation completed.@OutputOnly
1023
+ # Corresponds to the JSON property `endTime`
1055
1024
  # @return [String]
1056
- attr_accessor :created_by
1057
-
1058
- # Environment variables available to the application.Only returned in GET
1059
- # requests if view=FULL is set.
1060
- # Corresponds to the JSON property `envVariables`
1061
- # @return [Hash<String,String>]
1062
- attr_accessor :env_variables
1025
+ attr_accessor :end_time
1063
1026
 
1064
- # Health checking configuration for VM instances. Unhealthy instances are killed
1065
- # and replaced with new instances.
1066
- # Corresponds to the JSON property `livenessCheck`
1067
- # @return [Google::Apis::AppengineV1::LivenessCheck]
1068
- attr_accessor :liveness_check
1027
+ # Type of this operation. Deprecated, use method field instead. Example: "
1028
+ # create_version".@OutputOnly
1029
+ # Corresponds to the JSON property `operationType`
1030
+ # @return [String]
1031
+ attr_accessor :operation_type
1069
1032
 
1070
1033
  def initialize(**args)
1071
1034
  update!(**args)
@@ -1073,62 +1036,56 @@ module Google
1073
1036
 
1074
1037
  # Update properties of this object
1075
1038
  def update!(**args)
1076
- @network = args[:network] if args.key?(:network)
1077
- @beta_settings = args[:beta_settings] if args.key?(:beta_settings)
1078
- @env = args[:env] if args.key?(:env)
1079
- @handlers = args[:handlers] if args.key?(:handlers)
1080
- @automatic_scaling = args[:automatic_scaling] if args.key?(:automatic_scaling)
1081
- @disk_usage_bytes = args[:disk_usage_bytes] if args.key?(:disk_usage_bytes)
1082
- @health_check = args[:health_check] if args.key?(:health_check)
1083
- @threadsafe = args[:threadsafe] if args.key?(:threadsafe)
1084
- @readiness_check = args[:readiness_check] if args.key?(:readiness_check)
1085
- @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
1086
- @name = args[:name] if args.key?(:name)
1087
- @api_config = args[:api_config] if args.key?(:api_config)
1088
- @endpoints_api_service = args[:endpoints_api_service] if args.key?(:endpoints_api_service)
1089
- @version_url = args[:version_url] if args.key?(:version_url)
1090
- @vm = args[:vm] if args.key?(:vm)
1091
- @instance_class = args[:instance_class] if args.key?(:instance_class)
1092
- @serving_status = args[:serving_status] if args.key?(:serving_status)
1093
- @runtime_api_version = args[:runtime_api_version] if args.key?(:runtime_api_version)
1094
- @deployment = args[:deployment] if args.key?(:deployment)
1095
- @create_time = args[:create_time] if args.key?(:create_time)
1096
- @inbound_services = args[:inbound_services] if args.key?(:inbound_services)
1097
- @resources = args[:resources] if args.key?(:resources)
1098
- @error_handlers = args[:error_handlers] if args.key?(:error_handlers)
1099
- @default_expiration = args[:default_expiration] if args.key?(:default_expiration)
1100
- @libraries = args[:libraries] if args.key?(:libraries)
1101
- @nobuild_files_regex = args[:nobuild_files_regex] if args.key?(:nobuild_files_regex)
1102
- @basic_scaling = args[:basic_scaling] if args.key?(:basic_scaling)
1103
- @runtime = args[:runtime] if args.key?(:runtime)
1104
- @id = args[:id] if args.key?(:id)
1105
- @created_by = args[:created_by] if args.key?(:created_by)
1106
- @env_variables = args[:env_variables] if args.key?(:env_variables)
1107
- @liveness_check = args[:liveness_check] if args.key?(:liveness_check)
1039
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
1040
+ @user = args[:user] if args.key?(:user)
1041
+ @target = args[:target] if args.key?(:target)
1042
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
1043
+ @end_time = args[:end_time] if args.key?(:end_time)
1044
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
1108
1045
  end
1109
1046
  end
1110
1047
 
1111
- # Request message for 'Applications.RepairApplication'.
1112
- class RepairApplicationRequest
1048
+ # Metadata for the given google.longrunning.Operation.
1049
+ class OperationMetadataV1
1113
1050
  include Google::Apis::Core::Hashable
1114
1051
 
1115
- def initialize(**args)
1116
- update!(**args)
1117
- end
1052
+ # Ephemeral message that may change every time the operation is polled. @
1053
+ # OutputOnly
1054
+ # Corresponds to the JSON property `ephemeralMessage`
1055
+ # @return [String]
1056
+ attr_accessor :ephemeral_message
1118
1057
 
1119
- # Update properties of this object
1120
- def update!(**args)
1121
- end
1122
- end
1058
+ # API method that initiated this operation. Example: google.appengine.v1.
1059
+ # Versions.CreateVersion.@OutputOnly
1060
+ # Corresponds to the JSON property `method`
1061
+ # @return [String]
1062
+ attr_accessor :method_prop
1123
1063
 
1124
- # Executes a script to handle the request that matches the URL pattern.
1125
- class ScriptHandler
1126
- include Google::Apis::Core::Hashable
1064
+ # Time that this operation completed.@OutputOnly
1065
+ # Corresponds to the JSON property `endTime`
1066
+ # @return [String]
1067
+ attr_accessor :end_time
1127
1068
 
1128
- # Path to the script from the application root directory.
1129
- # Corresponds to the JSON property `scriptPath`
1069
+ # Durable messages that persist on every operation poll. @OutputOnly
1070
+ # Corresponds to the JSON property `warning`
1071
+ # @return [Array<String>]
1072
+ attr_accessor :warning
1073
+
1074
+ # Time that this operation was created.@OutputOnly
1075
+ # Corresponds to the JSON property `insertTime`
1130
1076
  # @return [String]
1131
- attr_accessor :script_path
1077
+ attr_accessor :insert_time
1078
+
1079
+ # User who requested this operation.@OutputOnly
1080
+ # Corresponds to the JSON property `user`
1081
+ # @return [String]
1082
+ attr_accessor :user
1083
+
1084
+ # Name of the resource that this operation is acting on. Example: apps/myapp/
1085
+ # services/default.@OutputOnly
1086
+ # Corresponds to the JSON property `target`
1087
+ # @return [String]
1088
+ attr_accessor :target
1132
1089
 
1133
1090
  def initialize(**args)
1134
1091
  update!(**args)
@@ -1136,30 +1093,34 @@ module Google
1136
1093
 
1137
1094
  # Update properties of this object
1138
1095
  def update!(**args)
1139
- @script_path = args[:script_path] if args.key?(:script_path)
1096
+ @ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message)
1097
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
1098
+ @end_time = args[:end_time] if args.key?(:end_time)
1099
+ @warning = args[:warning] if args.key?(:warning)
1100
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
1101
+ @user = args[:user] if args.key?(:user)
1102
+ @target = args[:target] if args.key?(:target)
1140
1103
  end
1141
1104
  end
1142
1105
 
1143
- # Single source file that is part of the version to be deployed. Each source
1144
- # file that is deployed must be specified separately.
1145
- class FileInfo
1106
+ # Custom static error page to be served when an error occurs.
1107
+ class ErrorHandler
1146
1108
  include Google::Apis::Core::Hashable
1147
1109
 
1148
- # The SHA1 hash of the file, in hex.
1149
- # Corresponds to the JSON property `sha1Sum`
1110
+ # Error condition this handler applies to.
1111
+ # Corresponds to the JSON property `errorCode`
1150
1112
  # @return [String]
1151
- attr_accessor :sha1_sum
1113
+ attr_accessor :error_code
1152
1114
 
1153
- # The MIME type of the file.Defaults to the value from Google Cloud Storage.
1115
+ # MIME type of file. Defaults to text/html.
1154
1116
  # Corresponds to the JSON property `mimeType`
1155
1117
  # @return [String]
1156
1118
  attr_accessor :mime_type
1157
1119
 
1158
- # URL source to use to fetch this file. Must be a URL to a resource in Google
1159
- # Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.
1160
- # Corresponds to the JSON property `sourceUrl`
1120
+ # Static file content to be served for this error.
1121
+ # Corresponds to the JSON property `staticFile`
1161
1122
  # @return [String]
1162
- attr_accessor :source_url
1123
+ attr_accessor :static_file
1163
1124
 
1164
1125
  def initialize(**args)
1165
1126
  update!(**args)
@@ -1167,42 +1128,50 @@ module Google
1167
1128
 
1168
1129
  # Update properties of this object
1169
1130
  def update!(**args)
1170
- @sha1_sum = args[:sha1_sum] if args.key?(:sha1_sum)
1131
+ @error_code = args[:error_code] if args.key?(:error_code)
1171
1132
  @mime_type = args[:mime_type] if args.key?(:mime_type)
1172
- @source_url = args[:source_url] if args.key?(:source_url)
1133
+ @static_file = args[:static_file] if args.key?(:static_file)
1173
1134
  end
1174
1135
  end
1175
1136
 
1176
- # Metadata for the given google.longrunning.Operation.
1177
- class OperationMetadataExperimental
1137
+ # Extra network settings. Only applicable for VM runtimes.
1138
+ class Network
1178
1139
  include Google::Apis::Core::Hashable
1179
1140
 
1180
- # User who requested this operation.@OutputOnly
1181
- # Corresponds to the JSON property `user`
1182
- # @return [String]
1183
- attr_accessor :user
1184
-
1185
- # Name of the resource that this operation is acting on. Example: apps/myapp/
1186
- # customDomains/example.com.@OutputOnly
1187
- # Corresponds to the JSON property `target`
1188
- # @return [String]
1189
- attr_accessor :target
1141
+ # List of ports, or port pairs, to forward from the virtual machine to the
1142
+ # application container.
1143
+ # Corresponds to the JSON property `forwardedPorts`
1144
+ # @return [Array<String>]
1145
+ attr_accessor :forwarded_ports
1190
1146
 
1191
- # API method that initiated this operation. Example: google.appengine.
1192
- # experimental.CustomDomains.CreateCustomDomain.@OutputOnly
1193
- # Corresponds to the JSON property `method`
1147
+ # Tag to apply to the VM instance during creation.
1148
+ # Corresponds to the JSON property `instanceTag`
1194
1149
  # @return [String]
1195
- attr_accessor :method_prop
1150
+ attr_accessor :instance_tag
1196
1151
 
1197
- # Time that this operation was created.@OutputOnly
1198
- # Corresponds to the JSON property `insertTime`
1152
+ # Google Cloud Platform sub-network where the virtual machines are created.
1153
+ # Specify the short name, not the resource path.If a subnetwork name is
1154
+ # specified, a network name will also be required unless it is for the default
1155
+ # network.
1156
+ # If the network the VM instance is being created in is a Legacy network, then
1157
+ # the IP address is allocated from the IPv4Range.
1158
+ # If the network the VM instance is being created in is an auto Subnet Mode
1159
+ # Network, then only network name should be specified (not the subnetwork_name)
1160
+ # and the IP address is created from the IPCidrRange of the subnetwork that
1161
+ # exists in that zone for that network.
1162
+ # If the network the VM instance is being created in is a custom Subnet Mode
1163
+ # Network, then the subnetwork_name must be specified and the IP address is
1164
+ # created from the IPCidrRange of the subnetwork.If specified, the subnetwork
1165
+ # must exist in the same region as the Flex app.
1166
+ # Corresponds to the JSON property `subnetworkName`
1199
1167
  # @return [String]
1200
- attr_accessor :insert_time
1168
+ attr_accessor :subnetwork_name
1201
1169
 
1202
- # Time that this operation completed.@OutputOnly
1203
- # Corresponds to the JSON property `endTime`
1170
+ # Google Cloud Platform network where the virtual machines are created. Specify
1171
+ # the short name, not the resource path.Defaults to default.
1172
+ # Corresponds to the JSON property `name`
1204
1173
  # @return [String]
1205
- attr_accessor :end_time
1174
+ attr_accessor :name
1206
1175
 
1207
1176
  def initialize(**args)
1208
1177
  update!(**args)
@@ -1210,89 +1179,90 @@ module Google
1210
1179
 
1211
1180
  # Update properties of this object
1212
1181
  def update!(**args)
1213
- @user = args[:user] if args.key?(:user)
1214
- @target = args[:target] if args.key?(:target)
1215
- @method_prop = args[:method_prop] if args.key?(:method_prop)
1216
- @insert_time = args[:insert_time] if args.key?(:insert_time)
1217
- @end_time = args[:end_time] if args.key?(:end_time)
1182
+ @forwarded_ports = args[:forwarded_ports] if args.key?(:forwarded_ports)
1183
+ @instance_tag = args[:instance_tag] if args.key?(:instance_tag)
1184
+ @subnetwork_name = args[:subnetwork_name] if args.key?(:subnetwork_name)
1185
+ @name = args[:name] if args.key?(:name)
1218
1186
  end
1219
1187
  end
1220
1188
 
1221
- # Traffic routing configuration for versions within a single service. Traffic
1222
- # splits define how traffic directed to the service is assigned to versions.
1223
- class TrafficSplit
1189
+ # An Application resource contains the top-level configuration of an App Engine
1190
+ # application. Next tag: 19
1191
+ class Application
1224
1192
  include Google::Apis::Core::Hashable
1225
1193
 
1226
- # Mechanism used to determine which version a request is sent to. The traffic
1227
- # selection algorithm will be stable for either type until allocations are
1228
- # changed.
1229
- # Corresponds to the JSON property `shardBy`
1194
+ # Full path to the Application resource in the API. Example: apps/myapp.@
1195
+ # OutputOnly
1196
+ # Corresponds to the JSON property `name`
1230
1197
  # @return [String]
1231
- attr_accessor :shard_by
1232
-
1233
- # Mapping from version IDs within the service to fractional (0.000, 1]
1234
- # allocations of traffic for that version. Each version can be specified only
1235
- # once, but some versions in the service may not have any traffic allocation.
1236
- # Services that have traffic allocated cannot be deleted until either the
1237
- # service is deleted or their traffic allocation is removed. Allocations must
1238
- # sum to 1. Up to two decimal place precision is supported for IP-based splits
1239
- # and up to three decimal places is supported for cookie-based splits.
1240
- # Corresponds to the JSON property `allocations`
1241
- # @return [Hash<String,Float>]
1242
- attr_accessor :allocations
1198
+ attr_accessor :name
1243
1199
 
1244
- def initialize(**args)
1245
- update!(**args)
1246
- end
1200
+ # Identifier of the Application resource. This identifier is equivalent to the
1201
+ # project ID of the Google Cloud Platform project where you want to deploy your
1202
+ # application. Example: myapp.
1203
+ # Corresponds to the JSON property `id`
1204
+ # @return [String]
1205
+ attr_accessor :id
1247
1206
 
1248
- # Update properties of this object
1249
- def update!(**args)
1250
- @shard_by = args[:shard_by] if args.key?(:shard_by)
1251
- @allocations = args[:allocations] if args.key?(:allocations)
1252
- end
1253
- end
1207
+ # Cookie expiration policy for this application.
1208
+ # Corresponds to the JSON property `defaultCookieExpiration`
1209
+ # @return [String]
1210
+ attr_accessor :default_cookie_expiration
1254
1211
 
1255
- # Metadata for the given google.longrunning.Operation.
1256
- class OperationMetadataV1Beta
1257
- include Google::Apis::Core::Hashable
1212
+ # Location from which this application will be run. Application instances will
1213
+ # run out of data centers in the chosen location, which is also where all of the
1214
+ # application's end user content is stored.Defaults to us-central.Options are:us-
1215
+ # central - Central USeurope-west - Western Europeus-east1 - Eastern US
1216
+ # Corresponds to the JSON property `locationId`
1217
+ # @return [String]
1218
+ attr_accessor :location_id
1258
1219
 
1259
- # API method that initiated this operation. Example: google.appengine.v1beta.
1260
- # Versions.CreateVersion.@OutputOnly
1261
- # Corresponds to the JSON property `method`
1220
+ # Serving status of this application.
1221
+ # Corresponds to the JSON property `servingStatus`
1262
1222
  # @return [String]
1263
- attr_accessor :method_prop
1223
+ attr_accessor :serving_status
1264
1224
 
1265
- # Time that this operation completed.@OutputOnly
1266
- # Corresponds to the JSON property `endTime`
1225
+ # Hostname used to reach this application, as resolved by App Engine.@OutputOnly
1226
+ # Corresponds to the JSON property `defaultHostname`
1267
1227
  # @return [String]
1268
- attr_accessor :end_time
1228
+ attr_accessor :default_hostname
1269
1229
 
1270
- # Durable messages that persist on every operation poll. @OutputOnly
1271
- # Corresponds to the JSON property `warning`
1272
- # @return [Array<String>]
1273
- attr_accessor :warning
1230
+ # Identity-Aware Proxy
1231
+ # Corresponds to the JSON property `iap`
1232
+ # @return [Google::Apis::AppengineV1::IdentityAwareProxy]
1233
+ attr_accessor :iap
1274
1234
 
1275
- # Time that this operation was created.@OutputOnly
1276
- # Corresponds to the JSON property `insertTime`
1235
+ # Google Apps authentication domain that controls which users can access this
1236
+ # application.Defaults to open access for any Google Account.
1237
+ # Corresponds to the JSON property `authDomain`
1277
1238
  # @return [String]
1278
- attr_accessor :insert_time
1239
+ attr_accessor :auth_domain
1279
1240
 
1280
- # User who requested this operation.@OutputOnly
1281
- # Corresponds to the JSON property `user`
1241
+ # Google Cloud Storage bucket that can be used for storing files associated with
1242
+ # this application. This bucket is associated with the application and can be
1243
+ # used by the gcloud deployment commands.@OutputOnly
1244
+ # Corresponds to the JSON property `codeBucket`
1282
1245
  # @return [String]
1283
- attr_accessor :user
1246
+ attr_accessor :code_bucket
1284
1247
 
1285
- # Name of the resource that this operation is acting on. Example: apps/myapp/
1286
- # services/default.@OutputOnly
1287
- # Corresponds to the JSON property `target`
1248
+ # Google Cloud Storage bucket that can be used by this application to store
1249
+ # content.@OutputOnly
1250
+ # Corresponds to the JSON property `defaultBucket`
1288
1251
  # @return [String]
1289
- attr_accessor :target
1252
+ attr_accessor :default_bucket
1290
1253
 
1291
- # Ephemeral message that may change every time the operation is polled. @
1292
- # OutputOnly
1293
- # Corresponds to the JSON property `ephemeralMessage`
1254
+ # HTTP path dispatch rules for requests to the application that do not
1255
+ # explicitly target a service or version. Rules are order-dependent. Up to 20
1256
+ # dispatch rules can be supported.@OutputOnly
1257
+ # Corresponds to the JSON property `dispatchRules`
1258
+ # @return [Array<Google::Apis::AppengineV1::UrlDispatchRule>]
1259
+ attr_accessor :dispatch_rules
1260
+
1261
+ # The Google Container Registry domain used for storing managed build docker
1262
+ # images for this application.
1263
+ # Corresponds to the JSON property `gcrDomain`
1294
1264
  # @return [String]
1295
- attr_accessor :ephemeral_message
1265
+ attr_accessor :gcr_domain
1296
1266
 
1297
1267
  def initialize(**args)
1298
1268
  update!(**args)
@@ -1300,131 +1270,114 @@ module Google
1300
1270
 
1301
1271
  # Update properties of this object
1302
1272
  def update!(**args)
1303
- @method_prop = args[:method_prop] if args.key?(:method_prop)
1304
- @end_time = args[:end_time] if args.key?(:end_time)
1305
- @warning = args[:warning] if args.key?(:warning)
1306
- @insert_time = args[:insert_time] if args.key?(:insert_time)
1307
- @user = args[:user] if args.key?(:user)
1308
- @target = args[:target] if args.key?(:target)
1309
- @ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message)
1273
+ @name = args[:name] if args.key?(:name)
1274
+ @id = args[:id] if args.key?(:id)
1275
+ @default_cookie_expiration = args[:default_cookie_expiration] if args.key?(:default_cookie_expiration)
1276
+ @location_id = args[:location_id] if args.key?(:location_id)
1277
+ @serving_status = args[:serving_status] if args.key?(:serving_status)
1278
+ @default_hostname = args[:default_hostname] if args.key?(:default_hostname)
1279
+ @iap = args[:iap] if args.key?(:iap)
1280
+ @auth_domain = args[:auth_domain] if args.key?(:auth_domain)
1281
+ @code_bucket = args[:code_bucket] if args.key?(:code_bucket)
1282
+ @default_bucket = args[:default_bucket] if args.key?(:default_bucket)
1283
+ @dispatch_rules = args[:dispatch_rules] if args.key?(:dispatch_rules)
1284
+ @gcr_domain = args[:gcr_domain] if args.key?(:gcr_domain)
1310
1285
  end
1311
1286
  end
1312
1287
 
1313
- # Response message for Services.ListServices.
1314
- class ListServicesResponse
1288
+ # An Instance resource is the computing unit that App Engine uses to
1289
+ # automatically scale an application.
1290
+ class Instance
1315
1291
  include Google::Apis::Core::Hashable
1316
1292
 
1317
- # The services belonging to the requested application.
1318
- # Corresponds to the JSON property `services`
1319
- # @return [Array<Google::Apis::AppengineV1::Service>]
1320
- attr_accessor :services
1321
-
1322
- # Continuation token for fetching the next page of results.
1323
- # Corresponds to the JSON property `nextPageToken`
1293
+ # Virtual machine ID of this instance. Only applicable for instances in App
1294
+ # Engine flexible environment.@OutputOnly
1295
+ # Corresponds to the JSON property `vmId`
1324
1296
  # @return [String]
1325
- attr_accessor :next_page_token
1297
+ attr_accessor :vm_id
1326
1298
 
1327
- def initialize(**args)
1328
- update!(**args)
1329
- end
1299
+ # Average queries per second (QPS) over the last minute.@OutputOnly
1300
+ # Corresponds to the JSON property `qps`
1301
+ # @return [Float]
1302
+ attr_accessor :qps
1330
1303
 
1331
- # Update properties of this object
1332
- def update!(**args)
1333
- @services = args[:services] if args.key?(:services)
1334
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1335
- end
1336
- end
1304
+ # Zone where the virtual machine is located. Only applicable for instances in
1305
+ # App Engine flexible environment.@OutputOnly
1306
+ # Corresponds to the JSON property `vmZoneName`
1307
+ # @return [String]
1308
+ attr_accessor :vm_zone_name
1337
1309
 
1338
- # Code and application artifacts used to deploy a version to App Engine.
1339
- class Deployment
1340
- include Google::Apis::Core::Hashable
1310
+ # Full path to the Instance resource in the API. Example: apps/myapp/services/
1311
+ # default/versions/v1/instances/instance-1.@OutputOnly
1312
+ # Corresponds to the JSON property `name`
1313
+ # @return [String]
1314
+ attr_accessor :name
1341
1315
 
1342
- # The zip file information for a zip deployment.
1343
- # Corresponds to the JSON property `zip`
1344
- # @return [Google::Apis::AppengineV1::ZipInfo]
1345
- attr_accessor :zip
1316
+ # Average latency (ms) over the last minute.@OutputOnly
1317
+ # Corresponds to the JSON property `averageLatency`
1318
+ # @return [Fixnum]
1319
+ attr_accessor :average_latency
1346
1320
 
1347
- # Docker image that is used to create a container and start a VM instance for
1348
- # the version that you deploy. Only applicable for instances running in the App
1349
- # Engine flexible environment.
1350
- # Corresponds to the JSON property `container`
1351
- # @return [Google::Apis::AppengineV1::ContainerInfo]
1352
- attr_accessor :container
1321
+ # The IP address of this instance. Only applicable for instances in App Engine
1322
+ # flexible environment.@OutputOnly
1323
+ # Corresponds to the JSON property `vmIp`
1324
+ # @return [String]
1325
+ attr_accessor :vm_ip
1353
1326
 
1354
- # Manifest of the files stored in Google Cloud Storage that are included as part
1355
- # of this version. All files must be readable using the credentials supplied
1356
- # with this call.
1357
- # Corresponds to the JSON property `files`
1358
- # @return [Hash<String,Google::Apis::AppengineV1::FileInfo>]
1359
- attr_accessor :files
1327
+ # Total memory in use (bytes).@OutputOnly
1328
+ # Corresponds to the JSON property `memoryUsage`
1329
+ # @return [Fixnum]
1330
+ attr_accessor :memory_usage
1360
1331
 
1361
- def initialize(**args)
1362
- update!(**args)
1363
- end
1364
-
1365
- # Update properties of this object
1366
- def update!(**args)
1367
- @zip = args[:zip] if args.key?(:zip)
1368
- @container = args[:container] if args.key?(:container)
1369
- @files = args[:files] if args.key?(:files)
1370
- end
1371
- end
1372
-
1373
- # Machine resources for a version.
1374
- class Resources
1375
- include Google::Apis::Core::Hashable
1376
-
1377
- # User specified volumes.
1378
- # Corresponds to the JSON property `volumes`
1379
- # @return [Array<Google::Apis::AppengineV1::Volume>]
1380
- attr_accessor :volumes
1332
+ # Relative name of the instance within the version. Example: instance-1.@
1333
+ # OutputOnly
1334
+ # Corresponds to the JSON property `id`
1335
+ # @return [String]
1336
+ attr_accessor :id
1381
1337
 
1382
- # Disk size (GB) needed.
1383
- # Corresponds to the JSON property `diskGb`
1384
- # @return [Float]
1385
- attr_accessor :disk_gb
1338
+ # Number of errors since this instance was started.@OutputOnly
1339
+ # Corresponds to the JSON property `errors`
1340
+ # @return [Fixnum]
1341
+ attr_accessor :errors
1386
1342
 
1387
- # Number of CPU cores needed.
1388
- # Corresponds to the JSON property `cpu`
1389
- # @return [Float]
1390
- attr_accessor :cpu
1343
+ # Availability of the instance.@OutputOnly
1344
+ # Corresponds to the JSON property `availability`
1345
+ # @return [String]
1346
+ attr_accessor :availability
1391
1347
 
1392
- # Memory (GB) needed.
1393
- # Corresponds to the JSON property `memoryGb`
1394
- # @return [Float]
1395
- attr_accessor :memory_gb
1348
+ # Status of the virtual machine where this instance lives. Only applicable for
1349
+ # instances in App Engine flexible environment.@OutputOnly
1350
+ # Corresponds to the JSON property `vmStatus`
1351
+ # @return [String]
1352
+ attr_accessor :vm_status
1396
1353
 
1397
- def initialize(**args)
1398
- update!(**args)
1399
- end
1354
+ # Time that this instance was started.@OutputOnly
1355
+ # Corresponds to the JSON property `startTime`
1356
+ # @return [String]
1357
+ attr_accessor :start_time
1400
1358
 
1401
- # Update properties of this object
1402
- def update!(**args)
1403
- @volumes = args[:volumes] if args.key?(:volumes)
1404
- @disk_gb = args[:disk_gb] if args.key?(:disk_gb)
1405
- @cpu = args[:cpu] if args.key?(:cpu)
1406
- @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
1407
- end
1408
- end
1359
+ # Whether this instance is in debug mode. Only applicable for instances in App
1360
+ # Engine flexible environment.@OutputOnly
1361
+ # Corresponds to the JSON property `vmDebugEnabled`
1362
+ # @return [Boolean]
1363
+ attr_accessor :vm_debug_enabled
1364
+ alias_method :vm_debug_enabled?, :vm_debug_enabled
1409
1365
 
1410
- # Volumes mounted within the app container. Only applicable for VM runtimes.
1411
- class Volume
1412
- include Google::Apis::Core::Hashable
1366
+ # Number of requests since this instance was started.@OutputOnly
1367
+ # Corresponds to the JSON property `requests`
1368
+ # @return [Fixnum]
1369
+ attr_accessor :requests
1413
1370
 
1414
- # Unique name for the volume.
1415
- # Corresponds to the JSON property `name`
1371
+ # App Engine release this instance is running on.@OutputOnly
1372
+ # Corresponds to the JSON property `appEngineRelease`
1416
1373
  # @return [String]
1417
- attr_accessor :name
1374
+ attr_accessor :app_engine_release
1418
1375
 
1419
- # Underlying volume type, e.g. 'tmpfs'.
1420
- # Corresponds to the JSON property `volumeType`
1376
+ # Name of the virtual machine where this instance lives. Only applicable for
1377
+ # instances in App Engine flexible environment.@OutputOnly
1378
+ # Corresponds to the JSON property `vmName`
1421
1379
  # @return [String]
1422
- attr_accessor :volume_type
1423
-
1424
- # Volume size in gigabytes.
1425
- # Corresponds to the JSON property `sizeGb`
1426
- # @return [Float]
1427
- attr_accessor :size_gb
1380
+ attr_accessor :vm_name
1428
1381
 
1429
1382
  def initialize(**args)
1430
1383
  update!(**args)
@@ -1432,85 +1385,107 @@ module Google
1432
1385
 
1433
1386
  # Update properties of this object
1434
1387
  def update!(**args)
1388
+ @vm_id = args[:vm_id] if args.key?(:vm_id)
1389
+ @qps = args[:qps] if args.key?(:qps)
1390
+ @vm_zone_name = args[:vm_zone_name] if args.key?(:vm_zone_name)
1435
1391
  @name = args[:name] if args.key?(:name)
1436
- @volume_type = args[:volume_type] if args.key?(:volume_type)
1437
- @size_gb = args[:size_gb] if args.key?(:size_gb)
1392
+ @average_latency = args[:average_latency] if args.key?(:average_latency)
1393
+ @vm_ip = args[:vm_ip] if args.key?(:vm_ip)
1394
+ @memory_usage = args[:memory_usage] if args.key?(:memory_usage)
1395
+ @id = args[:id] if args.key?(:id)
1396
+ @errors = args[:errors] if args.key?(:errors)
1397
+ @availability = args[:availability] if args.key?(:availability)
1398
+ @vm_status = args[:vm_status] if args.key?(:vm_status)
1399
+ @start_time = args[:start_time] if args.key?(:start_time)
1400
+ @vm_debug_enabled = args[:vm_debug_enabled] if args.key?(:vm_debug_enabled)
1401
+ @requests = args[:requests] if args.key?(:requests)
1402
+ @app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release)
1403
+ @vm_name = args[:vm_name] if args.key?(:vm_name)
1438
1404
  end
1439
1405
  end
1440
1406
 
1441
- # Response message for Instances.ListInstances.
1442
- class ListInstancesResponse
1407
+ # Health checking configuration for VM instances. Unhealthy instances are killed
1408
+ # and replaced with new instances.
1409
+ class LivenessCheck
1443
1410
  include Google::Apis::Core::Hashable
1444
1411
 
1445
- # Continuation token for fetching the next page of results.
1446
- # Corresponds to the JSON property `nextPageToken`
1412
+ # Interval between health checks.
1413
+ # Corresponds to the JSON property `checkInterval`
1447
1414
  # @return [String]
1448
- attr_accessor :next_page_token
1449
-
1450
- # The instances belonging to the requested version.
1451
- # Corresponds to the JSON property `instances`
1452
- # @return [Array<Google::Apis::AppengineV1::Instance>]
1453
- attr_accessor :instances
1454
-
1455
- def initialize(**args)
1456
- update!(**args)
1457
- end
1458
-
1459
- # Update properties of this object
1460
- def update!(**args)
1461
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1462
- @instances = args[:instances] if args.key?(:instances)
1463
- end
1464
- end
1465
-
1466
- # Rules to match an HTTP request and dispatch that request to a service.
1467
- class UrlDispatchRule
1468
- include Google::Apis::Core::Hashable
1415
+ attr_accessor :check_interval
1469
1416
 
1470
- # Domain name to match against. The wildcard "*" is supported if specified
1471
- # before a period: "*.".Defaults to matching all domains: "*".
1472
- # Corresponds to the JSON property `domain`
1417
+ # Time before the check is considered failed.
1418
+ # Corresponds to the JSON property `timeout`
1473
1419
  # @return [String]
1474
- attr_accessor :domain
1420
+ attr_accessor :timeout
1475
1421
 
1476
- # Resource ID of a service in this application that should serve the matched
1477
- # request. The service must already exist. Example: default.
1478
- # Corresponds to the JSON property `service`
1422
+ # Number of consecutive failed checks required before considering the VM
1423
+ # unhealthy.
1424
+ # Corresponds to the JSON property `failureThreshold`
1425
+ # @return [Fixnum]
1426
+ attr_accessor :failure_threshold
1427
+
1428
+ # The initial delay before starting to execute the checks.
1429
+ # Corresponds to the JSON property `initialDelay`
1479
1430
  # @return [String]
1480
- attr_accessor :service
1431
+ attr_accessor :initial_delay
1481
1432
 
1482
- # Pathname within the host. Must start with a "/". A single "*" can be included
1483
- # at the end of the path.The sum of the lengths of the domain and path may not
1484
- # exceed 100 characters.
1433
+ # The request path.
1485
1434
  # Corresponds to the JSON property `path`
1486
1435
  # @return [String]
1487
1436
  attr_accessor :path
1488
1437
 
1438
+ # Number of consecutive successful checks required before considering the VM
1439
+ # healthy.
1440
+ # Corresponds to the JSON property `successThreshold`
1441
+ # @return [Fixnum]
1442
+ attr_accessor :success_threshold
1443
+
1444
+ # Host header to send when performing a HTTP Liveness check. Example: "myapp.
1445
+ # appspot.com"
1446
+ # Corresponds to the JSON property `host`
1447
+ # @return [String]
1448
+ attr_accessor :host
1449
+
1489
1450
  def initialize(**args)
1490
1451
  update!(**args)
1491
1452
  end
1492
1453
 
1493
1454
  # Update properties of this object
1494
1455
  def update!(**args)
1495
- @domain = args[:domain] if args.key?(:domain)
1496
- @service = args[:service] if args.key?(:service)
1456
+ @check_interval = args[:check_interval] if args.key?(:check_interval)
1457
+ @timeout = args[:timeout] if args.key?(:timeout)
1458
+ @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
1459
+ @initial_delay = args[:initial_delay] if args.key?(:initial_delay)
1497
1460
  @path = args[:path] if args.key?(:path)
1461
+ @success_threshold = args[:success_threshold] if args.key?(:success_threshold)
1462
+ @host = args[:host] if args.key?(:host)
1498
1463
  end
1499
1464
  end
1500
1465
 
1501
- # Response message for Versions.ListVersions.
1502
- class ListVersionsResponse
1466
+ # Target scaling by network usage. Only applicable for VM runtimes.
1467
+ class NetworkUtilization
1503
1468
  include Google::Apis::Core::Hashable
1504
1469
 
1505
- # The versions belonging to the requested service.
1506
- # Corresponds to the JSON property `versions`
1507
- # @return [Array<Google::Apis::AppengineV1::Version>]
1508
- attr_accessor :versions
1470
+ # Target packets sent per second.
1471
+ # Corresponds to the JSON property `targetSentPacketsPerSecond`
1472
+ # @return [Fixnum]
1473
+ attr_accessor :target_sent_packets_per_second
1509
1474
 
1510
- # Continuation token for fetching the next page of results.
1511
- # Corresponds to the JSON property `nextPageToken`
1512
- # @return [String]
1513
- attr_accessor :next_page_token
1475
+ # Target bytes received per second.
1476
+ # Corresponds to the JSON property `targetReceivedBytesPerSecond`
1477
+ # @return [Fixnum]
1478
+ attr_accessor :target_received_bytes_per_second
1479
+
1480
+ # Target packets received per second.
1481
+ # Corresponds to the JSON property `targetReceivedPacketsPerSecond`
1482
+ # @return [Fixnum]
1483
+ attr_accessor :target_received_packets_per_second
1484
+
1485
+ # Target bytes sent per second.
1486
+ # Corresponds to the JSON property `targetSentBytesPerSecond`
1487
+ # @return [Fixnum]
1488
+ attr_accessor :target_sent_bytes_per_second
1514
1489
 
1515
1490
  def initialize(**args)
1516
1491
  update!(**args)
@@ -1518,19 +1493,39 @@ module Google
1518
1493
 
1519
1494
  # Update properties of this object
1520
1495
  def update!(**args)
1521
- @versions = args[:versions] if args.key?(:versions)
1522
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1496
+ @target_sent_packets_per_second = args[:target_sent_packets_per_second] if args.key?(:target_sent_packets_per_second)
1497
+ @target_received_bytes_per_second = args[:target_received_bytes_per_second] if args.key?(:target_received_bytes_per_second)
1498
+ @target_received_packets_per_second = args[:target_received_packets_per_second] if args.key?(:target_received_packets_per_second)
1499
+ @target_sent_bytes_per_second = args[:target_sent_bytes_per_second] if args.key?(:target_sent_bytes_per_second)
1523
1500
  end
1524
1501
  end
1525
1502
 
1526
- # Uses Google Cloud Endpoints to handle requests.
1527
- class ApiEndpointHandler
1503
+ # A resource that represents Google Cloud Platform location.
1504
+ class Location
1528
1505
  include Google::Apis::Core::Hashable
1529
1506
 
1530
- # Path to the script from the application root directory.
1531
- # Corresponds to the JSON property `scriptPath`
1507
+ # Cross-service attributes for the location. For example
1508
+ # `"cloud.googleapis.com/region": "us-east1"`
1509
+ # Corresponds to the JSON property `labels`
1510
+ # @return [Hash<String,String>]
1511
+ attr_accessor :labels
1512
+
1513
+ # Resource name for the location, which may vary between implementations. For
1514
+ # example: "projects/example-project/locations/us-east1"
1515
+ # Corresponds to the JSON property `name`
1532
1516
  # @return [String]
1533
- attr_accessor :script_path
1517
+ attr_accessor :name
1518
+
1519
+ # The canonical id for this location. For example: "us-east1".
1520
+ # Corresponds to the JSON property `locationId`
1521
+ # @return [String]
1522
+ attr_accessor :location_id
1523
+
1524
+ # Service-specific metadata. For example the available capacity at the given
1525
+ # location.
1526
+ # Corresponds to the JSON property `metadata`
1527
+ # @return [Hash<String,Object>]
1528
+ attr_accessor :metadata
1534
1529
 
1535
1530
  def initialize(**args)
1536
1531
  update!(**args)
@@ -1538,26 +1533,57 @@ module Google
1538
1533
 
1539
1534
  # Update properties of this object
1540
1535
  def update!(**args)
1541
- @script_path = args[:script_path] if args.key?(:script_path)
1536
+ @labels = args[:labels] if args.key?(:labels)
1537
+ @name = args[:name] if args.key?(:name)
1538
+ @location_id = args[:location_id] if args.key?(:location_id)
1539
+ @metadata = args[:metadata] if args.key?(:metadata)
1542
1540
  end
1543
1541
  end
1544
1542
 
1545
- # The zip file information for a zip deployment.
1546
- class ZipInfo
1543
+ # Health checking configuration for VM instances. Unhealthy instances are killed
1544
+ # and replaced with new instances. Only applicable for instances in App Engine
1545
+ # flexible environment.
1546
+ class HealthCheck
1547
1547
  include Google::Apis::Core::Hashable
1548
1548
 
1549
- # URL of the zip file to deploy from. Must be a URL to a resource in Google
1550
- # Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.
1551
- # Corresponds to the JSON property `sourceUrl`
1549
+ # Number of consecutive failed health checks required before removing traffic.
1550
+ # Corresponds to the JSON property `unhealthyThreshold`
1551
+ # @return [Fixnum]
1552
+ attr_accessor :unhealthy_threshold
1553
+
1554
+ # Whether to explicitly disable health checks for this instance.
1555
+ # Corresponds to the JSON property `disableHealthCheck`
1556
+ # @return [Boolean]
1557
+ attr_accessor :disable_health_check
1558
+ alias_method :disable_health_check?, :disable_health_check
1559
+
1560
+ # Host header to send when performing an HTTP health check. Example: "myapp.
1561
+ # appspot.com"
1562
+ # Corresponds to the JSON property `host`
1552
1563
  # @return [String]
1553
- attr_accessor :source_url
1564
+ attr_accessor :host
1554
1565
 
1555
- # An estimate of the number of files in a zip for a zip deployment. If set, must
1556
- # be greater than or equal to the actual number of files. Used for optimizing
1557
- # performance; if not provided, deployment may be slow.
1558
- # Corresponds to the JSON property `filesCount`
1566
+ # Number of consecutive failed health checks required before an instance is
1567
+ # restarted.
1568
+ # Corresponds to the JSON property `restartThreshold`
1559
1569
  # @return [Fixnum]
1560
- attr_accessor :files_count
1570
+ attr_accessor :restart_threshold
1571
+
1572
+ # Number of consecutive successful health checks required before receiving
1573
+ # traffic.
1574
+ # Corresponds to the JSON property `healthyThreshold`
1575
+ # @return [Fixnum]
1576
+ attr_accessor :healthy_threshold
1577
+
1578
+ # Interval between health checks.
1579
+ # Corresponds to the JSON property `checkInterval`
1580
+ # @return [String]
1581
+ attr_accessor :check_interval
1582
+
1583
+ # Time before the health check is considered failed.
1584
+ # Corresponds to the JSON property `timeout`
1585
+ # @return [String]
1586
+ attr_accessor :timeout
1561
1587
 
1562
1588
  def initialize(**args)
1563
1589
  update!(**args)
@@ -1565,81 +1591,51 @@ module Google
1565
1591
 
1566
1592
  # Update properties of this object
1567
1593
  def update!(**args)
1568
- @source_url = args[:source_url] if args.key?(:source_url)
1569
- @files_count = args[:files_count] if args.key?(:files_count)
1594
+ @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
1595
+ @disable_health_check = args[:disable_health_check] if args.key?(:disable_health_check)
1596
+ @host = args[:host] if args.key?(:host)
1597
+ @restart_threshold = args[:restart_threshold] if args.key?(:restart_threshold)
1598
+ @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
1599
+ @check_interval = args[:check_interval] if args.key?(:check_interval)
1600
+ @timeout = args[:timeout] if args.key?(:timeout)
1570
1601
  end
1571
1602
  end
1572
1603
 
1573
- # Automatic scaling is based on request rate, response latencies, and other
1574
- # application metrics.
1575
- class AutomaticScaling
1604
+ # Readiness checking configuration for VM instances. Unhealthy instances are
1605
+ # removed from traffic rotation.
1606
+ class ReadinessCheck
1576
1607
  include Google::Apis::Core::Hashable
1577
1608
 
1578
- # Target scaling by request utilization. Only applicable for VM runtimes.
1579
- # Corresponds to the JSON property `requestUtilization`
1580
- # @return [Google::Apis::AppengineV1::RequestUtilization]
1581
- attr_accessor :request_utilization
1582
-
1583
- # Maximum number of idle instances that should be maintained for this version.
1584
- # Corresponds to the JSON property `maxIdleInstances`
1585
- # @return [Fixnum]
1586
- attr_accessor :max_idle_instances
1587
-
1588
- # Minimum number of idle instances that should be maintained for this version.
1589
- # Only applicable for the default version of a service.
1590
- # Corresponds to the JSON property `minIdleInstances`
1591
- # @return [Fixnum]
1592
- attr_accessor :min_idle_instances
1593
-
1594
- # Maximum number of instances that should be started to handle requests.
1595
- # Corresponds to the JSON property `maxTotalInstances`
1596
- # @return [Fixnum]
1597
- attr_accessor :max_total_instances
1598
-
1599
- # Minimum number of instances that should be maintained for this version.
1600
- # Corresponds to the JSON property `minTotalInstances`
1601
- # @return [Fixnum]
1602
- attr_accessor :min_total_instances
1609
+ # The request path.
1610
+ # Corresponds to the JSON property `path`
1611
+ # @return [String]
1612
+ attr_accessor :path
1603
1613
 
1604
- # Target scaling by network usage. Only applicable for VM runtimes.
1605
- # Corresponds to the JSON property `networkUtilization`
1606
- # @return [Google::Apis::AppengineV1::NetworkUtilization]
1607
- attr_accessor :network_utilization
1614
+ # Host header to send when performing a HTTP Readiness check. Example: "myapp.
1615
+ # appspot.com"
1616
+ # Corresponds to the JSON property `host`
1617
+ # @return [String]
1618
+ attr_accessor :host
1608
1619
 
1609
- # Number of concurrent requests an automatic scaling instance can accept before
1610
- # the scheduler spawns a new instance.Defaults to a runtime-specific value.
1611
- # Corresponds to the JSON property `maxConcurrentRequests`
1620
+ # Number of consecutive successful checks required before receiving traffic.
1621
+ # Corresponds to the JSON property `successThreshold`
1612
1622
  # @return [Fixnum]
1613
- attr_accessor :max_concurrent_requests
1614
-
1615
- # Amount of time that the Autoscaler (https://cloud.google.com/compute/docs/
1616
- # autoscaler/) should wait between changes to the number of virtual machines.
1617
- # Only applicable for VM runtimes.
1618
- # Corresponds to the JSON property `coolDownPeriod`
1619
- # @return [String]
1620
- attr_accessor :cool_down_period
1623
+ attr_accessor :success_threshold
1621
1624
 
1622
- # Maximum amount of time that a request should wait in the pending queue before
1623
- # starting a new instance to handle it.
1624
- # Corresponds to the JSON property `maxPendingLatency`
1625
+ # Interval between health checks.
1626
+ # Corresponds to the JSON property `checkInterval`
1625
1627
  # @return [String]
1626
- attr_accessor :max_pending_latency
1627
-
1628
- # Target scaling by CPU usage.
1629
- # Corresponds to the JSON property `cpuUtilization`
1630
- # @return [Google::Apis::AppengineV1::CpuUtilization]
1631
- attr_accessor :cpu_utilization
1628
+ attr_accessor :check_interval
1632
1629
 
1633
- # Target scaling by disk usage. Only applicable for VM runtimes.
1634
- # Corresponds to the JSON property `diskUtilization`
1635
- # @return [Google::Apis::AppengineV1::DiskUtilization]
1636
- attr_accessor :disk_utilization
1630
+ # Number of consecutive failed checks required before removing traffic.
1631
+ # Corresponds to the JSON property `failureThreshold`
1632
+ # @return [Fixnum]
1633
+ attr_accessor :failure_threshold
1637
1634
 
1638
- # Minimum amount of time a request should wait in the pending queue before
1639
- # starting a new instance to handle it.
1640
- # Corresponds to the JSON property `minPendingLatency`
1635
+ # Time before the check is considered failed.
1636
+ # Corresponds to the JSON property `timeout`
1641
1637
  # @return [String]
1642
- attr_accessor :min_pending_latency
1638
+ attr_accessor :timeout
1643
1639
 
1644
1640
  def initialize(**args)
1645
1641
  update!(**args)
@@ -1647,34 +1643,27 @@ module Google
1647
1643
 
1648
1644
  # Update properties of this object
1649
1645
  def update!(**args)
1650
- @request_utilization = args[:request_utilization] if args.key?(:request_utilization)
1651
- @max_idle_instances = args[:max_idle_instances] if args.key?(:max_idle_instances)
1652
- @min_idle_instances = args[:min_idle_instances] if args.key?(:min_idle_instances)
1653
- @max_total_instances = args[:max_total_instances] if args.key?(:max_total_instances)
1654
- @min_total_instances = args[:min_total_instances] if args.key?(:min_total_instances)
1655
- @network_utilization = args[:network_utilization] if args.key?(:network_utilization)
1656
- @max_concurrent_requests = args[:max_concurrent_requests] if args.key?(:max_concurrent_requests)
1657
- @cool_down_period = args[:cool_down_period] if args.key?(:cool_down_period)
1658
- @max_pending_latency = args[:max_pending_latency] if args.key?(:max_pending_latency)
1659
- @cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization)
1660
- @disk_utilization = args[:disk_utilization] if args.key?(:disk_utilization)
1661
- @min_pending_latency = args[:min_pending_latency] if args.key?(:min_pending_latency)
1646
+ @path = args[:path] if args.key?(:path)
1647
+ @host = args[:host] if args.key?(:host)
1648
+ @success_threshold = args[:success_threshold] if args.key?(:success_threshold)
1649
+ @check_interval = args[:check_interval] if args.key?(:check_interval)
1650
+ @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
1651
+ @timeout = args[:timeout] if args.key?(:timeout)
1662
1652
  end
1663
1653
  end
1664
1654
 
1665
- # Third-party Python runtime library that is required by the application.
1666
- class Library
1655
+ # Request message for Instances.DebugInstance.
1656
+ class DebugInstanceRequest
1667
1657
  include Google::Apis::Core::Hashable
1668
1658
 
1669
- # Name of the library. Example: "django".
1670
- # Corresponds to the JSON property `name`
1671
- # @return [String]
1672
- attr_accessor :name
1673
-
1674
- # Version of the library to select, or "latest".
1675
- # Corresponds to the JSON property `version`
1659
+ # Public SSH key to add to the instance. Examples:
1660
+ # [USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]
1661
+ # [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh `"userName":"[USERNAME]","expireOn":"
1662
+ # [EXPIRE_TIME]"`For more information, see Adding and Removing SSH Keys (https://
1663
+ # cloud.google.com/compute/docs/instances/adding-removing-ssh-keys).
1664
+ # Corresponds to the JSON property `sshKey`
1676
1665
  # @return [String]
1677
- attr_accessor :version
1666
+ attr_accessor :ssh_key
1678
1667
 
1679
1668
  def initialize(**args)
1680
1669
  update!(**args)
@@ -1682,48 +1671,40 @@ module Google
1682
1671
 
1683
1672
  # Update properties of this object
1684
1673
  def update!(**args)
1685
- @name = args[:name] if args.key?(:name)
1686
- @version = args[:version] if args.key?(:version)
1674
+ @ssh_key = args[:ssh_key] if args.key?(:ssh_key)
1687
1675
  end
1688
1676
  end
1689
1677
 
1690
- # The response message for Locations.ListLocations.
1691
- class ListLocationsResponse
1678
+ # Metadata for the given google.longrunning.Operation.
1679
+ class OperationMetadataV1Beta5
1692
1680
  include Google::Apis::Core::Hashable
1693
1681
 
1694
- # A list of locations that matches the specified filter in the request.
1695
- # Corresponds to the JSON property `locations`
1696
- # @return [Array<Google::Apis::AppengineV1::Location>]
1697
- attr_accessor :locations
1698
-
1699
- # The standard List next-page token.
1700
- # Corresponds to the JSON property `nextPageToken`
1682
+ # Timestamp that this operation was created.@OutputOnly
1683
+ # Corresponds to the JSON property `insertTime`
1701
1684
  # @return [String]
1702
- attr_accessor :next_page_token
1685
+ attr_accessor :insert_time
1703
1686
 
1704
- def initialize(**args)
1705
- update!(**args)
1706
- end
1687
+ # Timestamp that this operation completed.@OutputOnly
1688
+ # Corresponds to the JSON property `endTime`
1689
+ # @return [String]
1690
+ attr_accessor :end_time
1707
1691
 
1708
- # Update properties of this object
1709
- def update!(**args)
1710
- @locations = args[:locations] if args.key?(:locations)
1711
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1712
- end
1713
- end
1692
+ # User who requested this operation.@OutputOnly
1693
+ # Corresponds to the JSON property `user`
1694
+ # @return [String]
1695
+ attr_accessor :user
1714
1696
 
1715
- # Docker image that is used to create a container and start a VM instance for
1716
- # the version that you deploy. Only applicable for instances running in the App
1717
- # Engine flexible environment.
1718
- class ContainerInfo
1719
- include Google::Apis::Core::Hashable
1697
+ # Name of the resource that this operation is acting on. Example: apps/myapp/
1698
+ # services/default.@OutputOnly
1699
+ # Corresponds to the JSON property `target`
1700
+ # @return [String]
1701
+ attr_accessor :target
1720
1702
 
1721
- # URI to the hosted container image in Google Container Registry. The URI must
1722
- # be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/
1723
- # image:tag" or "gcr.io/my-project/image@digest"
1724
- # Corresponds to the JSON property `image`
1703
+ # API method name that initiated this operation. Example: google.appengine.
1704
+ # v1beta5.Version.CreateVersion.@OutputOnly
1705
+ # Corresponds to the JSON property `method`
1725
1706
  # @return [String]
1726
- attr_accessor :image
1707
+ attr_accessor :method_prop
1727
1708
 
1728
1709
  def initialize(**args)
1729
1710
  update!(**args)
@@ -1731,87 +1712,263 @@ module Google
1731
1712
 
1732
1713
  # Update properties of this object
1733
1714
  def update!(**args)
1734
- @image = args[:image] if args.key?(:image)
1715
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
1716
+ @end_time = args[:end_time] if args.key?(:end_time)
1717
+ @user = args[:user] if args.key?(:user)
1718
+ @target = args[:target] if args.key?(:target)
1719
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
1735
1720
  end
1736
1721
  end
1737
1722
 
1738
- # Target scaling by request utilization. Only applicable for VM runtimes.
1739
- class RequestUtilization
1723
+ # A Version resource is a specific set of source code and configuration files
1724
+ # that are deployed into a service.
1725
+ class Version
1740
1726
  include Google::Apis::Core::Hashable
1741
1727
 
1742
- # Target requests per second.
1743
- # Corresponds to the JSON property `targetRequestCountPerSecond`
1744
- # @return [Fixnum]
1745
- attr_accessor :target_request_count_per_second
1728
+ # A service with manual scaling runs continuously, allowing you to perform
1729
+ # complex initialization and rely on the state of its memory over time.
1730
+ # Corresponds to the JSON property `manualScaling`
1731
+ # @return [Google::Apis::AppengineV1::ManualScaling]
1732
+ attr_accessor :manual_scaling
1746
1733
 
1747
- # Target number of concurrent requests.
1748
- # Corresponds to the JSON property `targetConcurrentRequests`
1749
- # @return [Fixnum]
1750
- attr_accessor :target_concurrent_requests
1734
+ # Full path to the Version resource in the API. Example: apps/myapp/services/
1735
+ # default/versions/v1.@OutputOnly
1736
+ # Corresponds to the JSON property `name`
1737
+ # @return [String]
1738
+ attr_accessor :name
1751
1739
 
1752
- def initialize(**args)
1753
- update!(**args)
1754
- end
1740
+ # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/
1741
+ # endpoints/) configuration for API handlers.
1742
+ # Corresponds to the JSON property `apiConfig`
1743
+ # @return [Google::Apis::AppengineV1::ApiConfigHandler]
1744
+ attr_accessor :api_config
1755
1745
 
1756
- # Update properties of this object
1757
- def update!(**args)
1758
- @target_request_count_per_second = args[:target_request_count_per_second] if args.key?(:target_request_count_per_second)
1759
- @target_concurrent_requests = args[:target_concurrent_requests] if args.key?(:target_concurrent_requests)
1760
- end
1761
- end
1746
+ # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
1747
+ # Endpoints API Service provides tooling for serving Open API and gRPC endpoints
1748
+ # via an NGINX proxy.The fields here refer to the name and configuration id of a
1749
+ # "service" resource in the Service Management API (https://cloud.google.com/
1750
+ # service-management/overview).
1751
+ # Corresponds to the JSON property `endpointsApiService`
1752
+ # @return [Google::Apis::AppengineV1::EndpointsApiService]
1753
+ attr_accessor :endpoints_api_service
1762
1754
 
1763
- # URL pattern and description of how the URL should be handled. App Engine can
1764
- # handle URLs by executing application code or by serving static files uploaded
1765
- # with the version, such as images, CSS, or JavaScript.
1766
- class UrlMap
1767
- include Google::Apis::Core::Hashable
1755
+ # Serving URL for this version. Example: "https://myversion-dot-myservice-dot-
1756
+ # myapp.appspot.com"@OutputOnly
1757
+ # Corresponds to the JSON property `versionUrl`
1758
+ # @return [String]
1759
+ attr_accessor :version_url
1768
1760
 
1769
- # Files served directly to the user for a given URL, such as images, CSS
1770
- # stylesheets, or JavaScript source files. Static file handlers describe which
1771
- # files in the application directory are static files, and which URLs serve them.
1772
- # Corresponds to the JSON property `staticFiles`
1773
- # @return [Google::Apis::AppengineV1::StaticFilesHandler]
1774
- attr_accessor :static_files
1761
+ # Whether to deploy this version in a container on a virtual machine.
1762
+ # Corresponds to the JSON property `vm`
1763
+ # @return [Boolean]
1764
+ attr_accessor :vm
1765
+ alias_method :vm?, :vm
1775
1766
 
1776
- # 30x code to use when performing redirects for the secure field. Defaults to
1777
- # 302.
1778
- # Corresponds to the JSON property `redirectHttpResponseCode`
1767
+ # Instance class that is used to run this version. Valid values are:
1768
+ # AutomaticScaling: F1, F2, F4, F4_1G
1769
+ # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for
1770
+ # AutomaticScaling and B1 for ManualScaling or BasicScaling.
1771
+ # Corresponds to the JSON property `instanceClass`
1779
1772
  # @return [String]
1780
- attr_accessor :redirect_http_response_code
1773
+ attr_accessor :instance_class
1781
1774
 
1782
- # Security (HTTPS) enforcement for this URL.
1783
- # Corresponds to the JSON property `securityLevel`
1775
+ # Current serving status of this version. Only the versions with a SERVING
1776
+ # status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an
1777
+ # invalid value. Defaults to SERVING.
1778
+ # Corresponds to the JSON property `servingStatus`
1784
1779
  # @return [String]
1785
- attr_accessor :security_level
1780
+ attr_accessor :serving_status
1786
1781
 
1787
- # Action to take when users access resources that require authentication.
1788
- # Defaults to redirect.
1789
- # Corresponds to the JSON property `authFailAction`
1782
+ # The version of the API in the given runtime environment. Please see the app.
1783
+ # yaml reference for valid values at https://cloud.google.com/appengine/docs/
1784
+ # standard/<language>/config/appref
1785
+ # Corresponds to the JSON property `runtimeApiVersion`
1790
1786
  # @return [String]
1791
- attr_accessor :auth_fail_action
1787
+ attr_accessor :runtime_api_version
1792
1788
 
1793
- # Executes a script to handle the request that matches the URL pattern.
1794
- # Corresponds to the JSON property `script`
1795
- # @return [Google::Apis::AppengineV1::ScriptHandler]
1796
- attr_accessor :script
1789
+ # Code and application artifacts used to deploy a version to App Engine.
1790
+ # Corresponds to the JSON property `deployment`
1791
+ # @return [Google::Apis::AppengineV1::Deployment]
1792
+ attr_accessor :deployment
1797
1793
 
1798
- # URL prefix. Uses regular expression syntax, which means regexp special
1799
- # characters must be escaped, but should not contain groupings. All URLs that
1800
- # begin with this prefix are handled by this handler, using the portion of the
1801
- # URL after the prefix as part of the file path.
1802
- # Corresponds to the JSON property `urlRegex`
1794
+ # Time that this version was created.@OutputOnly
1795
+ # Corresponds to the JSON property `createTime`
1803
1796
  # @return [String]
1804
- attr_accessor :url_regex
1797
+ attr_accessor :create_time
1805
1798
 
1806
- # Level of login required to access this resource.
1807
- # Corresponds to the JSON property `login`
1799
+ # Before an application can receive email or XMPP messages, the application must
1800
+ # be configured to enable the service.
1801
+ # Corresponds to the JSON property `inboundServices`
1802
+ # @return [Array<String>]
1803
+ attr_accessor :inbound_services
1804
+
1805
+ # Machine resources for a version.
1806
+ # Corresponds to the JSON property `resources`
1807
+ # @return [Google::Apis::AppengineV1::Resources]
1808
+ attr_accessor :resources
1809
+
1810
+ # Custom static error pages. Limited to 10KB per page.Only returned in GET
1811
+ # requests if view=FULL is set.
1812
+ # Corresponds to the JSON property `errorHandlers`
1813
+ # @return [Array<Google::Apis::AppengineV1::ErrorHandler>]
1814
+ attr_accessor :error_handlers
1815
+
1816
+ # Duration that static files should be cached by web proxies and browsers. Only
1817
+ # applicable if the corresponding StaticFilesHandler (https://cloud.google.com/
1818
+ # appengine/docs/admin-api/reference/rest/v1/apps.services.versions#
1819
+ # staticfileshandler) does not specify its own expiration time.Only returned in
1820
+ # GET requests if view=FULL is set.
1821
+ # Corresponds to the JSON property `defaultExpiration`
1808
1822
  # @return [String]
1809
- attr_accessor :login
1823
+ attr_accessor :default_expiration
1824
+
1825
+ # Configuration for third-party Python runtime libraries that are required by
1826
+ # the application.Only returned in GET requests if view=FULL is set.
1827
+ # Corresponds to the JSON property `libraries`
1828
+ # @return [Array<Google::Apis::AppengineV1::Library>]
1829
+ attr_accessor :libraries
1830
+
1831
+ # Files that match this pattern will not be built into this version. Only
1832
+ # applicable for Go runtimes.Only returned in GET requests if view=FULL is set.
1833
+ # Corresponds to the JSON property `nobuildFilesRegex`
1834
+ # @return [String]
1835
+ attr_accessor :nobuild_files_regex
1836
+
1837
+ # A service with basic scaling will create an instance when the application
1838
+ # receives a request. The instance will be turned down when the app becomes idle.
1839
+ # Basic scaling is ideal for work that is intermittent or driven by user
1840
+ # activity.
1841
+ # Corresponds to the JSON property `basicScaling`
1842
+ # @return [Google::Apis::AppengineV1::BasicScaling]
1843
+ attr_accessor :basic_scaling
1844
+
1845
+ # Desired runtime. Example: python27.
1846
+ # Corresponds to the JSON property `runtime`
1847
+ # @return [String]
1848
+ attr_accessor :runtime
1849
+
1850
+ # Email address of the user who created this version.@OutputOnly
1851
+ # Corresponds to the JSON property `createdBy`
1852
+ # @return [String]
1853
+ attr_accessor :created_by
1854
+
1855
+ # Relative name of the version within the service. Example: v1. Version names
1856
+ # can contain only lowercase letters, numbers, or hyphens. Reserved names: "
1857
+ # default", "latest", and any name with the prefix "ah-".
1858
+ # Corresponds to the JSON property `id`
1859
+ # @return [String]
1860
+ attr_accessor :id
1861
+
1862
+ # Environment variables available to the application.Only returned in GET
1863
+ # requests if view=FULL is set.
1864
+ # Corresponds to the JSON property `envVariables`
1865
+ # @return [Hash<String,String>]
1866
+ attr_accessor :env_variables
1867
+
1868
+ # Health checking configuration for VM instances. Unhealthy instances are killed
1869
+ # and replaced with new instances.
1870
+ # Corresponds to the JSON property `livenessCheck`
1871
+ # @return [Google::Apis::AppengineV1::LivenessCheck]
1872
+ attr_accessor :liveness_check
1873
+
1874
+ # Extra network settings. Only applicable for VM runtimes.
1875
+ # Corresponds to the JSON property `network`
1876
+ # @return [Google::Apis::AppengineV1::Network]
1877
+ attr_accessor :network
1878
+
1879
+ # Metadata settings that are supplied to this version to enable beta runtime
1880
+ # features.
1881
+ # Corresponds to the JSON property `betaSettings`
1882
+ # @return [Hash<String,String>]
1883
+ attr_accessor :beta_settings
1884
+
1885
+ # App Engine execution environment for this version.Defaults to standard.
1886
+ # Corresponds to the JSON property `env`
1887
+ # @return [String]
1888
+ attr_accessor :env
1889
+
1890
+ # An ordered list of URL-matching patterns that should be applied to incoming
1891
+ # requests. The first matching URL handles the request and other request
1892
+ # handlers are not attempted.Only returned in GET requests if view=FULL is set.
1893
+ # Corresponds to the JSON property `handlers`
1894
+ # @return [Array<Google::Apis::AppengineV1::UrlMap>]
1895
+ attr_accessor :handlers
1896
+
1897
+ # Automatic scaling is based on request rate, response latencies, and other
1898
+ # application metrics.
1899
+ # Corresponds to the JSON property `automaticScaling`
1900
+ # @return [Google::Apis::AppengineV1::AutomaticScaling]
1901
+ attr_accessor :automatic_scaling
1902
+
1903
+ # Total size in bytes of all the files that are included in this version and
1904
+ # curerntly hosted on the App Engine disk.@OutputOnly
1905
+ # Corresponds to the JSON property `diskUsageBytes`
1906
+ # @return [Fixnum]
1907
+ attr_accessor :disk_usage_bytes
1908
+
1909
+ # Health checking configuration for VM instances. Unhealthy instances are killed
1910
+ # and replaced with new instances. Only applicable for instances in App Engine
1911
+ # flexible environment.
1912
+ # Corresponds to the JSON property `healthCheck`
1913
+ # @return [Google::Apis::AppengineV1::HealthCheck]
1914
+ attr_accessor :health_check
1915
+
1916
+ # Whether multiple requests can be dispatched to this version at once.
1917
+ # Corresponds to the JSON property `threadsafe`
1918
+ # @return [Boolean]
1919
+ attr_accessor :threadsafe
1920
+ alias_method :threadsafe?, :threadsafe
1921
+
1922
+ # Readiness checking configuration for VM instances. Unhealthy instances are
1923
+ # removed from traffic rotation.
1924
+ # Corresponds to the JSON property `readinessCheck`
1925
+ # @return [Google::Apis::AppengineV1::ReadinessCheck]
1926
+ attr_accessor :readiness_check
1927
+
1928
+ def initialize(**args)
1929
+ update!(**args)
1930
+ end
1931
+
1932
+ # Update properties of this object
1933
+ def update!(**args)
1934
+ @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
1935
+ @name = args[:name] if args.key?(:name)
1936
+ @api_config = args[:api_config] if args.key?(:api_config)
1937
+ @endpoints_api_service = args[:endpoints_api_service] if args.key?(:endpoints_api_service)
1938
+ @version_url = args[:version_url] if args.key?(:version_url)
1939
+ @vm = args[:vm] if args.key?(:vm)
1940
+ @instance_class = args[:instance_class] if args.key?(:instance_class)
1941
+ @serving_status = args[:serving_status] if args.key?(:serving_status)
1942
+ @runtime_api_version = args[:runtime_api_version] if args.key?(:runtime_api_version)
1943
+ @deployment = args[:deployment] if args.key?(:deployment)
1944
+ @create_time = args[:create_time] if args.key?(:create_time)
1945
+ @inbound_services = args[:inbound_services] if args.key?(:inbound_services)
1946
+ @resources = args[:resources] if args.key?(:resources)
1947
+ @error_handlers = args[:error_handlers] if args.key?(:error_handlers)
1948
+ @default_expiration = args[:default_expiration] if args.key?(:default_expiration)
1949
+ @libraries = args[:libraries] if args.key?(:libraries)
1950
+ @nobuild_files_regex = args[:nobuild_files_regex] if args.key?(:nobuild_files_regex)
1951
+ @basic_scaling = args[:basic_scaling] if args.key?(:basic_scaling)
1952
+ @runtime = args[:runtime] if args.key?(:runtime)
1953
+ @created_by = args[:created_by] if args.key?(:created_by)
1954
+ @id = args[:id] if args.key?(:id)
1955
+ @env_variables = args[:env_variables] if args.key?(:env_variables)
1956
+ @liveness_check = args[:liveness_check] if args.key?(:liveness_check)
1957
+ @network = args[:network] if args.key?(:network)
1958
+ @beta_settings = args[:beta_settings] if args.key?(:beta_settings)
1959
+ @env = args[:env] if args.key?(:env)
1960
+ @handlers = args[:handlers] if args.key?(:handlers)
1961
+ @automatic_scaling = args[:automatic_scaling] if args.key?(:automatic_scaling)
1962
+ @disk_usage_bytes = args[:disk_usage_bytes] if args.key?(:disk_usage_bytes)
1963
+ @health_check = args[:health_check] if args.key?(:health_check)
1964
+ @threadsafe = args[:threadsafe] if args.key?(:threadsafe)
1965
+ @readiness_check = args[:readiness_check] if args.key?(:readiness_check)
1966
+ end
1967
+ end
1810
1968
 
1811
- # Uses Google Cloud Endpoints to handle requests.
1812
- # Corresponds to the JSON property `apiEndpoint`
1813
- # @return [Google::Apis::AppengineV1::ApiEndpointHandler]
1814
- attr_accessor :api_endpoint
1969
+ # Request message for 'Applications.RepairApplication'.
1970
+ class RepairApplicationRequest
1971
+ include Google::Apis::Core::Hashable
1815
1972
 
1816
1973
  def initialize(**args)
1817
1974
  update!(**args)
@@ -1819,36 +1976,17 @@ module Google
1819
1976
 
1820
1977
  # Update properties of this object
1821
1978
  def update!(**args)
1822
- @static_files = args[:static_files] if args.key?(:static_files)
1823
- @redirect_http_response_code = args[:redirect_http_response_code] if args.key?(:redirect_http_response_code)
1824
- @security_level = args[:security_level] if args.key?(:security_level)
1825
- @auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action)
1826
- @script = args[:script] if args.key?(:script)
1827
- @url_regex = args[:url_regex] if args.key?(:url_regex)
1828
- @login = args[:login] if args.key?(:login)
1829
- @api_endpoint = args[:api_endpoint] if args.key?(:api_endpoint)
1830
1979
  end
1831
1980
  end
1832
1981
 
1833
- # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The
1834
- # Endpoints API Service provides tooling for serving Open API and gRPC endpoints
1835
- # via an NGINX proxy.The fields here refer to the name and configuration id of a
1836
- # "service" resource in the Service Management API (https://cloud.google.com/
1837
- # service-management/overview).
1838
- class EndpointsApiService
1982
+ # Executes a script to handle the request that matches the URL pattern.
1983
+ class ScriptHandler
1839
1984
  include Google::Apis::Core::Hashable
1840
1985
 
1841
- # Endpoints service name which is the name of the "service" resource in the
1842
- # Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
1843
- # Corresponds to the JSON property `name`
1844
- # @return [String]
1845
- attr_accessor :name
1846
-
1847
- # Endpoints service configuration id as specified by the Service Management API.
1848
- # For example "2016-09-19r1"
1849
- # Corresponds to the JSON property `configId`
1986
+ # Path to the script from the application root directory.
1987
+ # Corresponds to the JSON property `scriptPath`
1850
1988
  # @return [String]
1851
- attr_accessor :config_id
1989
+ attr_accessor :script_path
1852
1990
 
1853
1991
  def initialize(**args)
1854
1992
  update!(**args)
@@ -1856,86 +1994,30 @@ module Google
1856
1994
 
1857
1995
  # Update properties of this object
1858
1996
  def update!(**args)
1859
- @name = args[:name] if args.key?(:name)
1860
- @config_id = args[:config_id] if args.key?(:config_id)
1997
+ @script_path = args[:script_path] if args.key?(:script_path)
1861
1998
  end
1862
1999
  end
1863
2000
 
1864
- # This resource represents a long-running operation that is the result of a
1865
- # network API call.
1866
- class Operation
2001
+ # Single source file that is part of the version to be deployed. Each source
2002
+ # file that is deployed must be specified separately.
2003
+ class FileInfo
1867
2004
  include Google::Apis::Core::Hashable
1868
2005
 
1869
- # The server-assigned name, which is only unique within the same service that
1870
- # originally returns it. If you use the default HTTP mapping, the name should
1871
- # have the format of operations/some/unique/name.
1872
- # Corresponds to the JSON property `name`
2006
+ # The SHA1 hash of the file, in hex.
2007
+ # Corresponds to the JSON property `sha1Sum`
1873
2008
  # @return [String]
1874
- attr_accessor :name
1875
-
1876
- # The Status type defines a logical error model that is suitable for different
1877
- # programming environments, including REST APIs and RPC APIs. It is used by gRPC
1878
- # (https://github.com/grpc). The error model is designed to be:
1879
- # Simple to use and understand for most users
1880
- # Flexible enough to meet unexpected needsOverviewThe Status message contains
1881
- # three pieces of data: error code, error message, and error details. The error
1882
- # code should be an enum value of google.rpc.Code, but it may accept additional
1883
- # error codes if needed. The error message should be a developer-facing English
1884
- # message that helps developers understand and resolve the error. If a localized
1885
- # user-facing error message is needed, put the localized message in the error
1886
- # details or localize it in the client. The optional error details may contain
1887
- # arbitrary information about the error. There is a predefined set of error
1888
- # detail types in the package google.rpc that can be used for common error
1889
- # conditions.Language mappingThe Status message is the logical representation of
1890
- # the error model, but it is not necessarily the actual wire format. When the
1891
- # Status message is exposed in different client libraries and different wire
1892
- # protocols, it can be mapped differently. For example, it will likely be mapped
1893
- # to some exceptions in Java, but more likely mapped to some error codes in C.
1894
- # Other usesThe error model and the Status message can be used in a variety of
1895
- # environments, either with or without APIs, to provide a consistent developer
1896
- # experience across different environments.Example uses of this error model
1897
- # include:
1898
- # Partial errors. If a service needs to return partial errors to the client, it
1899
- # may embed the Status in the normal response to indicate the partial errors.
1900
- # Workflow errors. A typical workflow has multiple steps. Each step may have a
1901
- # Status message for error reporting.
1902
- # Batch operations. If a client uses batch request and batch response, the
1903
- # Status message should be used directly inside batch response, one for each
1904
- # error sub-response.
1905
- # Asynchronous operations. If an API call embeds asynchronous operation results
1906
- # in its response, the status of those operations should be represented directly
1907
- # using the Status message.
1908
- # Logging. If some API errors are stored in logs, the message Status could be
1909
- # used directly after any stripping needed for security/privacy reasons.
1910
- # Corresponds to the JSON property `error`
1911
- # @return [Google::Apis::AppengineV1::Status]
1912
- attr_accessor :error
1913
-
1914
- # Service-specific metadata associated with the operation. It typically contains
1915
- # progress information and common metadata such as create time. Some services
1916
- # might not provide such metadata. Any method that returns a long-running
1917
- # operation should document the metadata type, if any.
1918
- # Corresponds to the JSON property `metadata`
1919
- # @return [Hash<String,Object>]
1920
- attr_accessor :metadata
2009
+ attr_accessor :sha1_sum
1921
2010
 
1922
- # If the value is false, it means the operation is still in progress. If true,
1923
- # the operation is completed, and either error or response is available.
1924
- # Corresponds to the JSON property `done`
1925
- # @return [Boolean]
1926
- attr_accessor :done
1927
- alias_method :done?, :done
2011
+ # The MIME type of the file.Defaults to the value from Google Cloud Storage.
2012
+ # Corresponds to the JSON property `mimeType`
2013
+ # @return [String]
2014
+ attr_accessor :mime_type
1928
2015
 
1929
- # The normal response of the operation in case of success. If the original
1930
- # method returns no data on success, such as Delete, the response is google.
1931
- # protobuf.Empty. If the original method is standard Get/Create/Update, the
1932
- # response should be the resource. For other methods, the response should have
1933
- # the type XxxResponse, where Xxx is the original method name. For example, if
1934
- # the original method name is TakeSnapshot(), the inferred response type is
1935
- # TakeSnapshotResponse.
1936
- # Corresponds to the JSON property `response`
1937
- # @return [Hash<String,Object>]
1938
- attr_accessor :response
2016
+ # URL source to use to fetch this file. Must be a URL to a resource in Google
2017
+ # Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.
2018
+ # Corresponds to the JSON property `sourceUrl`
2019
+ # @return [String]
2020
+ attr_accessor :source_url
1939
2021
 
1940
2022
  def initialize(**args)
1941
2023
  update!(**args)
@@ -1943,44 +2025,42 @@ module Google
1943
2025
 
1944
2026
  # Update properties of this object
1945
2027
  def update!(**args)
1946
- @name = args[:name] if args.key?(:name)
1947
- @error = args[:error] if args.key?(:error)
1948
- @metadata = args[:metadata] if args.key?(:metadata)
1949
- @done = args[:done] if args.key?(:done)
1950
- @response = args[:response] if args.key?(:response)
2028
+ @sha1_sum = args[:sha1_sum] if args.key?(:sha1_sum)
2029
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
2030
+ @source_url = args[:source_url] if args.key?(:source_url)
1951
2031
  end
1952
2032
  end
1953
2033
 
1954
- # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/
1955
- # endpoints/) configuration for API handlers.
1956
- class ApiConfigHandler
2034
+ # Metadata for the given google.longrunning.Operation.
2035
+ class OperationMetadataExperimental
1957
2036
  include Google::Apis::Core::Hashable
1958
2037
 
1959
- # URL to serve the endpoint at.
1960
- # Corresponds to the JSON property `url`
2038
+ # User who requested this operation.@OutputOnly
2039
+ # Corresponds to the JSON property `user`
1961
2040
  # @return [String]
1962
- attr_accessor :url
2041
+ attr_accessor :user
1963
2042
 
1964
- # Security (HTTPS) enforcement for this URL.
1965
- # Corresponds to the JSON property `securityLevel`
2043
+ # Name of the resource that this operation is acting on. Example: apps/myapp/
2044
+ # customDomains/example.com.@OutputOnly
2045
+ # Corresponds to the JSON property `target`
1966
2046
  # @return [String]
1967
- attr_accessor :security_level
2047
+ attr_accessor :target
1968
2048
 
1969
- # Action to take when users access resources that require authentication.
1970
- # Defaults to redirect.
1971
- # Corresponds to the JSON property `authFailAction`
2049
+ # API method that initiated this operation. Example: google.appengine.
2050
+ # experimental.CustomDomains.CreateCustomDomain.@OutputOnly
2051
+ # Corresponds to the JSON property `method`
1972
2052
  # @return [String]
1973
- attr_accessor :auth_fail_action
2053
+ attr_accessor :method_prop
1974
2054
 
1975
- # Path to the script from the application root directory.
1976
- # Corresponds to the JSON property `script`
2055
+ # Time that this operation was created.@OutputOnly
2056
+ # Corresponds to the JSON property `insertTime`
1977
2057
  # @return [String]
1978
- attr_accessor :script
2058
+ attr_accessor :insert_time
1979
2059
 
1980
- # Level of login required to access this resource. Defaults to optional.
1981
- # Corresponds to the JSON property `login`
2060
+ # Time that this operation completed.@OutputOnly
2061
+ # Corresponds to the JSON property `endTime`
1982
2062
  # @return [String]
1983
- attr_accessor :login
2063
+ attr_accessor :end_time
1984
2064
 
1985
2065
  def initialize(**args)
1986
2066
  update!(**args)
@@ -1988,64 +2068,89 @@ module Google
1988
2068
 
1989
2069
  # Update properties of this object
1990
2070
  def update!(**args)
1991
- @url = args[:url] if args.key?(:url)
1992
- @security_level = args[:security_level] if args.key?(:security_level)
1993
- @auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action)
1994
- @script = args[:script] if args.key?(:script)
1995
- @login = args[:login] if args.key?(:login)
2071
+ @user = args[:user] if args.key?(:user)
2072
+ @target = args[:target] if args.key?(:target)
2073
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
2074
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
2075
+ @end_time = args[:end_time] if args.key?(:end_time)
1996
2076
  end
1997
2077
  end
1998
2078
 
1999
- # Files served directly to the user for a given URL, such as images, CSS
2000
- # stylesheets, or JavaScript source files. Static file handlers describe which
2001
- # files in the application directory are static files, and which URLs serve them.
2002
- class StaticFilesHandler
2079
+ # Traffic routing configuration for versions within a single service. Traffic
2080
+ # splits define how traffic directed to the service is assigned to versions.
2081
+ class TrafficSplit
2003
2082
  include Google::Apis::Core::Hashable
2004
2083
 
2005
- # Whether this handler should match the request if the file referenced by the
2006
- # handler does not exist.
2007
- # Corresponds to the JSON property `requireMatchingFile`
2008
- # @return [Boolean]
2009
- attr_accessor :require_matching_file
2010
- alias_method :require_matching_file?, :require_matching_file
2011
-
2012
- # Time a static file served by this handler should be cached by web proxies and
2013
- # browsers.
2014
- # Corresponds to the JSON property `expiration`
2084
+ # Mechanism used to determine which version a request is sent to. The traffic
2085
+ # selection algorithm will be stable for either type until allocations are
2086
+ # changed.
2087
+ # Corresponds to the JSON property `shardBy`
2015
2088
  # @return [String]
2016
- attr_accessor :expiration
2089
+ attr_accessor :shard_by
2017
2090
 
2018
- # Whether files should also be uploaded as code data. By default, files declared
2019
- # in static file handlers are uploaded as static data and are only served to end
2020
- # users; they cannot be read by the application. If enabled, uploads are charged
2021
- # against both your code and static data storage resource quotas.
2022
- # Corresponds to the JSON property `applicationReadable`
2023
- # @return [Boolean]
2024
- attr_accessor :application_readable
2025
- alias_method :application_readable?, :application_readable
2091
+ # Mapping from version IDs within the service to fractional (0.000, 1]
2092
+ # allocations of traffic for that version. Each version can be specified only
2093
+ # once, but some versions in the service may not have any traffic allocation.
2094
+ # Services that have traffic allocated cannot be deleted until either the
2095
+ # service is deleted or their traffic allocation is removed. Allocations must
2096
+ # sum to 1. Up to two decimal place precision is supported for IP-based splits
2097
+ # and up to three decimal places is supported for cookie-based splits.
2098
+ # Corresponds to the JSON property `allocations`
2099
+ # @return [Hash<String,Float>]
2100
+ attr_accessor :allocations
2026
2101
 
2027
- # HTTP headers to use for all responses from these URLs.
2028
- # Corresponds to the JSON property `httpHeaders`
2029
- # @return [Hash<String,String>]
2030
- attr_accessor :http_headers
2102
+ def initialize(**args)
2103
+ update!(**args)
2104
+ end
2105
+
2106
+ # Update properties of this object
2107
+ def update!(**args)
2108
+ @shard_by = args[:shard_by] if args.key?(:shard_by)
2109
+ @allocations = args[:allocations] if args.key?(:allocations)
2110
+ end
2111
+ end
2112
+
2113
+ # Metadata for the given google.longrunning.Operation.
2114
+ class OperationMetadataV1Beta
2115
+ include Google::Apis::Core::Hashable
2116
+
2117
+ # Durable messages that persist on every operation poll. @OutputOnly
2118
+ # Corresponds to the JSON property `warning`
2119
+ # @return [Array<String>]
2120
+ attr_accessor :warning
2121
+
2122
+ # Time that this operation was created.@OutputOnly
2123
+ # Corresponds to the JSON property `insertTime`
2124
+ # @return [String]
2125
+ attr_accessor :insert_time
2126
+
2127
+ # User who requested this operation.@OutputOnly
2128
+ # Corresponds to the JSON property `user`
2129
+ # @return [String]
2130
+ attr_accessor :user
2031
2131
 
2032
- # Regular expression that matches the file paths for all files that should be
2033
- # referenced by this handler.
2034
- # Corresponds to the JSON property `uploadPathRegex`
2132
+ # Name of the resource that this operation is acting on. Example: apps/myapp/
2133
+ # services/default.@OutputOnly
2134
+ # Corresponds to the JSON property `target`
2035
2135
  # @return [String]
2036
- attr_accessor :upload_path_regex
2136
+ attr_accessor :target
2037
2137
 
2038
- # Path to the static files matched by the URL pattern, from the application root
2039
- # directory. The path can refer to text matched in groupings in the URL pattern.
2040
- # Corresponds to the JSON property `path`
2138
+ # Ephemeral message that may change every time the operation is polled. @
2139
+ # OutputOnly
2140
+ # Corresponds to the JSON property `ephemeralMessage`
2041
2141
  # @return [String]
2042
- attr_accessor :path
2142
+ attr_accessor :ephemeral_message
2043
2143
 
2044
- # MIME type used to serve all files served by this handler.Defaults to file-
2045
- # specific MIME types, which are derived from each file's filename extension.
2046
- # Corresponds to the JSON property `mimeType`
2144
+ # API method that initiated this operation. Example: google.appengine.v1beta.
2145
+ # Versions.CreateVersion.@OutputOnly
2146
+ # Corresponds to the JSON property `method`
2047
2147
  # @return [String]
2048
- attr_accessor :mime_type
2148
+ attr_accessor :method_prop
2149
+
2150
+ # Time that this operation completed.@OutputOnly
2151
+ # Corresponds to the JSON property `endTime`
2152
+ # @return [String]
2153
+ attr_accessor :end_time
2049
2154
 
2050
2155
  def initialize(**args)
2051
2156
  update!(**args)
@@ -2053,33 +2158,29 @@ module Google
2053
2158
 
2054
2159
  # Update properties of this object
2055
2160
  def update!(**args)
2056
- @require_matching_file = args[:require_matching_file] if args.key?(:require_matching_file)
2057
- @expiration = args[:expiration] if args.key?(:expiration)
2058
- @application_readable = args[:application_readable] if args.key?(:application_readable)
2059
- @http_headers = args[:http_headers] if args.key?(:http_headers)
2060
- @upload_path_regex = args[:upload_path_regex] if args.key?(:upload_path_regex)
2061
- @path = args[:path] if args.key?(:path)
2062
- @mime_type = args[:mime_type] if args.key?(:mime_type)
2161
+ @warning = args[:warning] if args.key?(:warning)
2162
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
2163
+ @user = args[:user] if args.key?(:user)
2164
+ @target = args[:target] if args.key?(:target)
2165
+ @ephemeral_message = args[:ephemeral_message] if args.key?(:ephemeral_message)
2166
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
2167
+ @end_time = args[:end_time] if args.key?(:end_time)
2063
2168
  end
2064
2169
  end
2065
2170
 
2066
- # A service with basic scaling will create an instance when the application
2067
- # receives a request. The instance will be turned down when the app becomes idle.
2068
- # Basic scaling is ideal for work that is intermittent or driven by user
2069
- # activity.
2070
- class BasicScaling
2171
+ # Response message for Services.ListServices.
2172
+ class ListServicesResponse
2071
2173
  include Google::Apis::Core::Hashable
2072
2174
 
2073
- # Maximum number of instances to create for this version.
2074
- # Corresponds to the JSON property `maxInstances`
2075
- # @return [Fixnum]
2076
- attr_accessor :max_instances
2175
+ # The services belonging to the requested application.
2176
+ # Corresponds to the JSON property `services`
2177
+ # @return [Array<Google::Apis::AppengineV1::Service>]
2178
+ attr_accessor :services
2077
2179
 
2078
- # Duration of time after the last request that an instance must wait before the
2079
- # instance is shut down.
2080
- # Corresponds to the JSON property `idleTimeout`
2180
+ # Continuation token for fetching the next page of results.
2181
+ # Corresponds to the JSON property `nextPageToken`
2081
2182
  # @return [String]
2082
- attr_accessor :idle_timeout
2183
+ attr_accessor :next_page_token
2083
2184
 
2084
2185
  def initialize(**args)
2085
2186
  update!(**args)
@@ -2087,34 +2188,33 @@ module Google
2087
2188
 
2088
2189
  # Update properties of this object
2089
2190
  def update!(**args)
2090
- @max_instances = args[:max_instances] if args.key?(:max_instances)
2091
- @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
2191
+ @services = args[:services] if args.key?(:services)
2192
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2092
2193
  end
2093
2194
  end
2094
2195
 
2095
- # Target scaling by disk usage. Only applicable for VM runtimes.
2096
- class DiskUtilization
2196
+ # Code and application artifacts used to deploy a version to App Engine.
2197
+ class Deployment
2097
2198
  include Google::Apis::Core::Hashable
2098
2199
 
2099
- # Target bytes written per second.
2100
- # Corresponds to the JSON property `targetWriteBytesPerSecond`
2101
- # @return [Fixnum]
2102
- attr_accessor :target_write_bytes_per_second
2103
-
2104
- # Target bytes read per second.
2105
- # Corresponds to the JSON property `targetReadBytesPerSecond`
2106
- # @return [Fixnum]
2107
- attr_accessor :target_read_bytes_per_second
2200
+ # Manifest of the files stored in Google Cloud Storage that are included as part
2201
+ # of this version. All files must be readable using the credentials supplied
2202
+ # with this call.
2203
+ # Corresponds to the JSON property `files`
2204
+ # @return [Hash<String,Google::Apis::AppengineV1::FileInfo>]
2205
+ attr_accessor :files
2108
2206
 
2109
- # Target ops read per seconds.
2110
- # Corresponds to the JSON property `targetReadOpsPerSecond`
2111
- # @return [Fixnum]
2112
- attr_accessor :target_read_ops_per_second
2207
+ # The zip file information for a zip deployment.
2208
+ # Corresponds to the JSON property `zip`
2209
+ # @return [Google::Apis::AppengineV1::ZipInfo]
2210
+ attr_accessor :zip
2113
2211
 
2114
- # Target ops written per second.
2115
- # Corresponds to the JSON property `targetWriteOpsPerSecond`
2116
- # @return [Fixnum]
2117
- attr_accessor :target_write_ops_per_second
2212
+ # Docker image that is used to create a container and start a VM instance for
2213
+ # the version that you deploy. Only applicable for instances running in the App
2214
+ # Engine flexible environment.
2215
+ # Corresponds to the JSON property `container`
2216
+ # @return [Google::Apis::AppengineV1::ContainerInfo]
2217
+ attr_accessor :container
2118
2218
 
2119
2219
  def initialize(**args)
2120
2220
  update!(**args)
@@ -2122,26 +2222,35 @@ module Google
2122
2222
 
2123
2223
  # Update properties of this object
2124
2224
  def update!(**args)
2125
- @target_write_bytes_per_second = args[:target_write_bytes_per_second] if args.key?(:target_write_bytes_per_second)
2126
- @target_read_bytes_per_second = args[:target_read_bytes_per_second] if args.key?(:target_read_bytes_per_second)
2127
- @target_read_ops_per_second = args[:target_read_ops_per_second] if args.key?(:target_read_ops_per_second)
2128
- @target_write_ops_per_second = args[:target_write_ops_per_second] if args.key?(:target_write_ops_per_second)
2225
+ @files = args[:files] if args.key?(:files)
2226
+ @zip = args[:zip] if args.key?(:zip)
2227
+ @container = args[:container] if args.key?(:container)
2129
2228
  end
2130
2229
  end
2131
2230
 
2132
- # Target scaling by CPU usage.
2133
- class CpuUtilization
2231
+ # Machine resources for a version.
2232
+ class Resources
2134
2233
  include Google::Apis::Core::Hashable
2135
2234
 
2136
- # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
2137
- # Corresponds to the JSON property `targetUtilization`
2235
+ # User specified volumes.
2236
+ # Corresponds to the JSON property `volumes`
2237
+ # @return [Array<Google::Apis::AppengineV1::Volume>]
2238
+ attr_accessor :volumes
2239
+
2240
+ # Disk size (GB) needed.
2241
+ # Corresponds to the JSON property `diskGb`
2138
2242
  # @return [Float]
2139
- attr_accessor :target_utilization
2243
+ attr_accessor :disk_gb
2140
2244
 
2141
- # Period of time over which CPU utilization is calculated.
2142
- # Corresponds to the JSON property `aggregationWindowLength`
2143
- # @return [String]
2144
- attr_accessor :aggregation_window_length
2245
+ # Number of CPU cores needed.
2246
+ # Corresponds to the JSON property `cpu`
2247
+ # @return [Float]
2248
+ attr_accessor :cpu
2249
+
2250
+ # Memory (GB) needed.
2251
+ # Corresponds to the JSON property `memoryGb`
2252
+ # @return [Float]
2253
+ attr_accessor :memory_gb
2145
2254
 
2146
2255
  def initialize(**args)
2147
2256
  update!(**args)
@@ -2149,39 +2258,31 @@ module Google
2149
2258
 
2150
2259
  # Update properties of this object
2151
2260
  def update!(**args)
2152
- @target_utilization = args[:target_utilization] if args.key?(:target_utilization)
2153
- @aggregation_window_length = args[:aggregation_window_length] if args.key?(:aggregation_window_length)
2261
+ @volumes = args[:volumes] if args.key?(:volumes)
2262
+ @disk_gb = args[:disk_gb] if args.key?(:disk_gb)
2263
+ @cpu = args[:cpu] if args.key?(:cpu)
2264
+ @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
2154
2265
  end
2155
2266
  end
2156
2267
 
2157
- # Identity-Aware Proxy
2158
- class IdentityAwareProxy
2268
+ # Volumes mounted within the app container. Only applicable for VM runtimes.
2269
+ class Volume
2159
2270
  include Google::Apis::Core::Hashable
2160
2271
 
2161
- # OAuth2 client secret to use for the authentication flow.For security reasons,
2162
- # this value cannot be retrieved via the API. Instead, the SHA-256 hash of the
2163
- # value is returned in the oauth2_client_secret_sha256 field.@InputOnly
2164
- # Corresponds to the JSON property `oauth2ClientSecret`
2272
+ # Underlying volume type, e.g. 'tmpfs'.
2273
+ # Corresponds to the JSON property `volumeType`
2165
2274
  # @return [String]
2166
- attr_accessor :oauth2_client_secret
2275
+ attr_accessor :volume_type
2167
2276
 
2168
- # OAuth2 client ID to use for the authentication flow.
2169
- # Corresponds to the JSON property `oauth2ClientId`
2170
- # @return [String]
2171
- attr_accessor :oauth2_client_id
2277
+ # Volume size in gigabytes.
2278
+ # Corresponds to the JSON property `sizeGb`
2279
+ # @return [Float]
2280
+ attr_accessor :size_gb
2172
2281
 
2173
- # Hex-encoded SHA-256 hash of the client secret.@OutputOnly
2174
- # Corresponds to the JSON property `oauth2ClientSecretSha256`
2282
+ # Unique name for the volume.
2283
+ # Corresponds to the JSON property `name`
2175
2284
  # @return [String]
2176
- attr_accessor :oauth2_client_secret_sha256
2177
-
2178
- # Whether the serving infrastructure will authenticate and authorize all
2179
- # incoming requests.If true, the oauth2_client_id and oauth2_client_secret
2180
- # fields must be non-empty.
2181
- # Corresponds to the JSON property `enabled`
2182
- # @return [Boolean]
2183
- attr_accessor :enabled
2184
- alias_method :enabled?, :enabled
2285
+ attr_accessor :name
2185
2286
 
2186
2287
  def initialize(**args)
2187
2288
  update!(**args)
@@ -2189,67 +2290,25 @@ module Google
2189
2290
 
2190
2291
  # Update properties of this object
2191
2292
  def update!(**args)
2192
- @oauth2_client_secret = args[:oauth2_client_secret] if args.key?(:oauth2_client_secret)
2193
- @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id)
2194
- @oauth2_client_secret_sha256 = args[:oauth2_client_secret_sha256] if args.key?(:oauth2_client_secret_sha256)
2195
- @enabled = args[:enabled] if args.key?(:enabled)
2293
+ @volume_type = args[:volume_type] if args.key?(:volume_type)
2294
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
2295
+ @name = args[:name] if args.key?(:name)
2196
2296
  end
2197
2297
  end
2198
2298
 
2199
- # The Status type defines a logical error model that is suitable for different
2200
- # programming environments, including REST APIs and RPC APIs. It is used by gRPC
2201
- # (https://github.com/grpc). The error model is designed to be:
2202
- # Simple to use and understand for most users
2203
- # Flexible enough to meet unexpected needsOverviewThe Status message contains
2204
- # three pieces of data: error code, error message, and error details. The error
2205
- # code should be an enum value of google.rpc.Code, but it may accept additional
2206
- # error codes if needed. The error message should be a developer-facing English
2207
- # message that helps developers understand and resolve the error. If a localized
2208
- # user-facing error message is needed, put the localized message in the error
2209
- # details or localize it in the client. The optional error details may contain
2210
- # arbitrary information about the error. There is a predefined set of error
2211
- # detail types in the package google.rpc that can be used for common error
2212
- # conditions.Language mappingThe Status message is the logical representation of
2213
- # the error model, but it is not necessarily the actual wire format. When the
2214
- # Status message is exposed in different client libraries and different wire
2215
- # protocols, it can be mapped differently. For example, it will likely be mapped
2216
- # to some exceptions in Java, but more likely mapped to some error codes in C.
2217
- # Other usesThe error model and the Status message can be used in a variety of
2218
- # environments, either with or without APIs, to provide a consistent developer
2219
- # experience across different environments.Example uses of this error model
2220
- # include:
2221
- # Partial errors. If a service needs to return partial errors to the client, it
2222
- # may embed the Status in the normal response to indicate the partial errors.
2223
- # Workflow errors. A typical workflow has multiple steps. Each step may have a
2224
- # Status message for error reporting.
2225
- # Batch operations. If a client uses batch request and batch response, the
2226
- # Status message should be used directly inside batch response, one for each
2227
- # error sub-response.
2228
- # Asynchronous operations. If an API call embeds asynchronous operation results
2229
- # in its response, the status of those operations should be represented directly
2230
- # using the Status message.
2231
- # Logging. If some API errors are stored in logs, the message Status could be
2232
- # used directly after any stripping needed for security/privacy reasons.
2233
- class Status
2299
+ # Response message for Instances.ListInstances.
2300
+ class ListInstancesResponse
2234
2301
  include Google::Apis::Core::Hashable
2235
2302
 
2236
- # A developer-facing error message, which should be in English. Any user-facing
2237
- # error message should be localized and sent in the google.rpc.Status.details
2238
- # field, or localized by the client.
2239
- # Corresponds to the JSON property `message`
2240
- # @return [String]
2241
- attr_accessor :message
2242
-
2243
- # A list of messages that carry the error details. There will be a common set of
2244
- # message types for APIs to use.
2245
- # Corresponds to the JSON property `details`
2246
- # @return [Array<Hash<String,Object>>]
2247
- attr_accessor :details
2303
+ # The instances belonging to the requested version.
2304
+ # Corresponds to the JSON property `instances`
2305
+ # @return [Array<Google::Apis::AppengineV1::Instance>]
2306
+ attr_accessor :instances
2248
2307
 
2249
- # The status code, which should be an enum value of google.rpc.Code.
2250
- # Corresponds to the JSON property `code`
2251
- # @return [Fixnum]
2252
- attr_accessor :code
2308
+ # Continuation token for fetching the next page of results.
2309
+ # Corresponds to the JSON property `nextPageToken`
2310
+ # @return [String]
2311
+ attr_accessor :next_page_token
2253
2312
 
2254
2313
  def initialize(**args)
2255
2314
  update!(**args)
@@ -2257,9 +2316,8 @@ module Google
2257
2316
 
2258
2317
  # Update properties of this object
2259
2318
  def update!(**args)
2260
- @message = args[:message] if args.key?(:message)
2261
- @details = args[:details] if args.key?(:details)
2262
- @code = args[:code] if args.key?(:code)
2319
+ @instances = args[:instances] if args.key?(:instances)
2320
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2263
2321
  end
2264
2322
  end
2265
2323
  end