google-api-client 0.13.2 → 0.13.3

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