google-api-client 0.9.pre3 → 0.9.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -0,0 +1,106 @@
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 ScriptV1
24
+
25
+ class ExecutionRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+ end
28
+
29
+ class Operation
30
+ class Representation < Google::Apis::Core::JsonRepresentation; end
31
+ end
32
+
33
+ class Status
34
+ class Representation < Google::Apis::Core::JsonRepresentation; end
35
+ end
36
+
37
+ class ExecutionError
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+ end
40
+
41
+ class ScriptStackTraceElement
42
+ class Representation < Google::Apis::Core::JsonRepresentation; end
43
+ end
44
+
45
+ class ExecutionResponse
46
+ class Representation < Google::Apis::Core::JsonRepresentation; end
47
+ end
48
+
49
+ class ExecutionRequest
50
+ # @private
51
+ class Representation < Google::Apis::Core::JsonRepresentation
52
+ property :function, as: 'function'
53
+ collection :parameters, as: 'parameters'
54
+ property :session_state, as: 'sessionState'
55
+ property :dev_mode, as: 'devMode'
56
+ end
57
+ end
58
+
59
+ class Operation
60
+ # @private
61
+ class Representation < Google::Apis::Core::JsonRepresentation
62
+ property :name, as: 'name'
63
+ hash :metadata, as: 'metadata'
64
+ property :done, as: 'done'
65
+ property :error, as: 'error', class: Google::Apis::ScriptV1::Status, decorator: Google::Apis::ScriptV1::Status::Representation
66
+
67
+ hash :response, as: 'response'
68
+ end
69
+ end
70
+
71
+ class Status
72
+ # @private
73
+ class Representation < Google::Apis::Core::JsonRepresentation
74
+ property :code, as: 'code'
75
+ property :message, as: 'message'
76
+ collection :details, as: 'details'
77
+ end
78
+ end
79
+
80
+ class ExecutionError
81
+ # @private
82
+ class Representation < Google::Apis::Core::JsonRepresentation
83
+ collection :script_stack_trace_elements, as: 'scriptStackTraceElements', class: Google::Apis::ScriptV1::ScriptStackTraceElement, decorator: Google::Apis::ScriptV1::ScriptStackTraceElement::Representation
84
+
85
+ property :error_message, as: 'errorMessage'
86
+ property :error_type, as: 'errorType'
87
+ end
88
+ end
89
+
90
+ class ScriptStackTraceElement
91
+ # @private
92
+ class Representation < Google::Apis::Core::JsonRepresentation
93
+ property :function, as: 'function'
94
+ property :line_number, as: 'lineNumber'
95
+ end
96
+ end
97
+
98
+ class ExecutionResponse
99
+ # @private
100
+ class Representation < Google::Apis::Core::JsonRepresentation
101
+ property :result, as: 'result'
102
+ end
103
+ end
104
+ end
105
+ end
106
+ end
@@ -0,0 +1,98 @@
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 ScriptV1
23
+ # Google Apps Script Execution API
24
+ #
25
+ # An API for executing Google Apps Script projects.
26
+ #
27
+ # @example
28
+ # require 'google/apis/script_v1'
29
+ #
30
+ # Script = Google::Apis::ScriptV1 # Alias the module
31
+ # service = Script::ScriptService.new
32
+ #
33
+ # @see https://developers.google.com/apps-script/execution/rest/v1/run
34
+ class ScriptService < 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
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://script.googleapis.com/', '')
47
+ end
48
+
49
+ # Runs a function in an Apps Script project that has been deployed for use with
50
+ # the Apps Script Execution API. This method requires authorization with an
51
+ # OAuth 2.0 token that includes at least one of the scopes listed in the [
52
+ # Authentication](#authentication) section; script projects that do not require
53
+ # authorization cannot be executed through this API. To find the correct scopes
54
+ # to include in the authentication token, open the project in the script editor,
55
+ # then select **File > Project properties** and click the **Scopes** tab.
56
+ # @param [String] script_id
57
+ # The project key of the script to be executed. To find the project key, open
58
+ # the project in the script editor, then select **File > Project properties**.
59
+ # @param [Google::Apis::ScriptV1::ExecutionRequest] execution_request_object
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
62
+ # @param [String] quota_user
63
+ # Available to use for quota purposes for server-side applications. Can be any
64
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
65
+ # @param [Google::Apis::RequestOptions] options
66
+ # Request-specific options
67
+ #
68
+ # @yield [result, err] Result & error if block supplied
69
+ # @yieldparam result [Google::Apis::ScriptV1::Operation] parsed result object
70
+ # @yieldparam err [StandardError] error object if request failed
71
+ #
72
+ # @return [Google::Apis::ScriptV1::Operation]
73
+ #
74
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
77
+ def run_script(script_id, execution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
78
+ command = make_simple_command(:post, 'v1/scripts/{scriptId}:run', options)
79
+ command.request_representation = Google::Apis::ScriptV1::ExecutionRequest::Representation
80
+ command.request_object = execution_request_object
81
+ command.response_representation = Google::Apis::ScriptV1::Operation::Representation
82
+ command.response_class = Google::Apis::ScriptV1::Operation
83
+ command.params['scriptId'] = script_id unless script_id.nil?
84
+ command.query['fields'] = fields unless fields.nil?
85
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ execute_or_queue_command(command, &block)
87
+ end
88
+
89
+ protected
90
+
91
+ def apply_command_defaults(command)
92
+ command.query['key'] = key unless key.nil?
93
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
94
+ end
95
+ end
96
+ end
97
+ end
98
+ end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/site-verification/
26
26
  module SiteVerificationV1
27
27
  VERSION = 'V1'
28
- REVISION = '20131007'
28
+ REVISION = '20151007'
29
29
 
30
30
  # Manage the list of sites and domains you control
31
31
  AUTH_SITEVERIFICATION = 'https://www.googleapis.com/auth/siteverification'
@@ -77,8 +77,7 @@ module Google
77
77
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
78
  # @raise [Google::Apis::AuthorizationError] Authorization is required
79
79
  def delete_web_resource(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
80
- path = 'webResource/{id}'
81
- command = make_simple_command(:delete, path, options)
80
+ command = make_simple_command(:delete, 'webResource/{id}', options)
82
81
  command.params['id'] = id unless id.nil?
83
82
  command.query['fields'] = fields unless fields.nil?
84
83
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -111,8 +110,7 @@ module Google
111
110
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
112
111
  # @raise [Google::Apis::AuthorizationError] Authorization is required
113
112
  def get_web_resource(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
114
- path = 'webResource/{id}'
115
- command = make_simple_command(:get, path, options)
113
+ command = make_simple_command(:get, 'webResource/{id}', options)
116
114
  command.response_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
117
115
  command.response_class = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource
118
116
  command.params['id'] = id unless id.nil?
@@ -145,9 +143,8 @@ module Google
145
143
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
144
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
145
  # @raise [Google::Apis::AuthorizationError] Authorization is required
148
- def get_token_web_resource(get_web_resource_token_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
149
- path = 'token'
150
- command = make_simple_command(:post, path, options)
146
+ def get_web_resource_token(get_web_resource_token_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
147
+ command = make_simple_command(:post, 'token', options)
151
148
  command.request_representation = Google::Apis::SiteVerificationV1::GetWebResourceTokenRequest::Representation
152
149
  command.request_object = get_web_resource_token_request_object
153
150
  command.response_representation = Google::Apis::SiteVerificationV1::GetWebResourceTokenResponse::Representation
@@ -184,8 +181,7 @@ module Google
184
181
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
185
182
  # @raise [Google::Apis::AuthorizationError] Authorization is required
186
183
  def insert_web_resource(verification_method, site_verification_web_resource_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
187
- path = 'webResource'
188
- command = make_simple_command(:post, path, options)
184
+ command = make_simple_command(:post, 'webResource', options)
189
185
  command.request_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
190
186
  command.request_object = site_verification_web_resource_resource_object
191
187
  command.response_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
@@ -220,8 +216,7 @@ module Google
220
216
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
221
217
  # @raise [Google::Apis::AuthorizationError] Authorization is required
222
218
  def list_web_resources(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
223
- path = 'webResource'
224
- command = make_simple_command(:get, path, options)
219
+ command = make_simple_command(:get, 'webResource', options)
225
220
  command.response_representation = Google::Apis::SiteVerificationV1::ListWebResourceResponse::Representation
226
221
  command.response_class = Google::Apis::SiteVerificationV1::ListWebResourceResponse
227
222
  command.query['fields'] = fields unless fields.nil?
@@ -257,8 +252,7 @@ module Google
257
252
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
258
253
  # @raise [Google::Apis::AuthorizationError] Authorization is required
259
254
  def patch_web_resource(id, site_verification_web_resource_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
260
- path = 'webResource/{id}'
261
- command = make_simple_command(:patch, path, options)
255
+ command = make_simple_command(:patch, 'webResource/{id}', options)
262
256
  command.request_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
263
257
  command.request_object = site_verification_web_resource_resource_object
264
258
  command.response_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
@@ -296,8 +290,7 @@ module Google
296
290
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
297
291
  # @raise [Google::Apis::AuthorizationError] Authorization is required
298
292
  def update_web_resource(id, site_verification_web_resource_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
299
- path = 'webResource/{id}'
300
- command = make_simple_command(:put, path, options)
293
+ command = make_simple_command(:put, 'webResource/{id}', options)
301
294
  command.request_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
302
295
  command.request_object = site_verification_web_resource_resource_object
303
296
  command.response_representation = Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::Representation
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/sql/docs/reference/latest
26
26
  module SqladminV1beta4
27
27
  VERSION = 'V1beta4'
28
- REVISION = '20150305'
28
+ REVISION = '20151201'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -386,6 +386,12 @@ module Google
386
386
  # @return [String]
387
387
  attr_accessor :etag
388
388
 
389
+ # The name and status of the failover replica. Only applies to Second Generation
390
+ # instances.
391
+ # Corresponds to the JSON property `failoverReplica`
392
+ # @return [Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica]
393
+ attr_accessor :failover_replica
394
+
389
395
  # The instance type. This can be one of the following.
390
396
  # CLOUD_SQL_INSTANCE: A Cloud SQL instance that is not replicating from a master.
391
397
  # ON_PREMISES_INSTANCE: An instance running on the customer's premises.
@@ -493,6 +499,7 @@ module Google
493
499
  @current_disk_size = args[:current_disk_size] unless args[:current_disk_size].nil?
494
500
  @database_version = args[:database_version] unless args[:database_version].nil?
495
501
  @etag = args[:etag] unless args[:etag].nil?
502
+ @failover_replica = args[:failover_replica] unless args[:failover_replica].nil?
496
503
  @instance_type = args[:instance_type] unless args[:instance_type].nil?
497
504
  @ip_addresses = args[:ip_addresses] unless args[:ip_addresses].nil?
498
505
  @ipv6_address = args[:ipv6_address] unless args[:ipv6_address].nil?
@@ -511,6 +518,33 @@ module Google
511
518
  @settings = args[:settings] unless args[:settings].nil?
512
519
  @state = args[:state] unless args[:state].nil?
513
520
  end
521
+
522
+ # The name and status of the failover replica. Only applies to Second Generation
523
+ # instances.
524
+ class FailoverReplica
525
+ include Google::Apis::Core::Hashable
526
+
527
+ #
528
+ # Corresponds to the JSON property `available`
529
+ # @return [Boolean]
530
+ attr_accessor :available
531
+ alias_method :available?, :available
532
+
533
+ #
534
+ # Corresponds to the JSON property `name`
535
+ # @return [String]
536
+ attr_accessor :name
537
+
538
+ def initialize(**args)
539
+ update!(**args)
540
+ end
541
+
542
+ # Update properties of this object
543
+ def update!(**args)
544
+ @available = args[:available] unless args[:available].nil?
545
+ @name = args[:name] unless args[:name].nil?
546
+ end
547
+ end
514
548
  end
515
549
 
516
550
  # Database list response.
@@ -618,6 +652,12 @@ module Google
618
652
  class SqlExportOptions
619
653
  include Google::Apis::Core::Hashable
620
654
 
655
+ # Export only schemas.
656
+ # Corresponds to the JSON property `schemaOnly`
657
+ # @return [Boolean]
658
+ attr_accessor :schema_only
659
+ alias_method :schema_only?, :schema_only
660
+
621
661
  # Tables to export, or that were exported, from the specified database. If you
622
662
  # specify tables, specify one and only one database.
623
663
  # Corresponds to the JSON property `tables`
@@ -630,11 +670,38 @@ module Google
630
670
 
631
671
  # Update properties of this object
632
672
  def update!(**args)
673
+ @schema_only = args[:schema_only] unless args[:schema_only].nil?
633
674
  @tables = args[:tables] unless args[:tables].nil?
634
675
  end
635
676
  end
636
677
  end
637
678
 
679
+ # Database instance failover context.
680
+ class FailoverContext
681
+ include Google::Apis::Core::Hashable
682
+
683
+ # This is always sql#failoverContext.
684
+ # Corresponds to the JSON property `kind`
685
+ # @return [String]
686
+ attr_accessor :kind
687
+
688
+ # The current settings version of this instance. Request will be rejected if
689
+ # this version doesn't match the current settings version.
690
+ # Corresponds to the JSON property `settingsVersion`
691
+ # @return [String]
692
+ attr_accessor :settings_version
693
+
694
+ def initialize(**args)
695
+ update!(**args)
696
+ end
697
+
698
+ # Update properties of this object
699
+ def update!(**args)
700
+ @kind = args[:kind] unless args[:kind].nil?
701
+ @settings_version = args[:settings_version] unless args[:settings_version].nil?
702
+ end
703
+ end
704
+
638
705
  # A Google Cloud SQL service flag resource.
639
706
  class Flag
640
707
  include Google::Apis::Core::Hashable
@@ -644,8 +711,8 @@ module Google
644
711
  # @return [Array<String>]
645
712
  attr_accessor :allowed_string_values
646
713
 
647
- # The database version this flag applies to. Currently this can only be [
648
- # MYSQL_5_5].
714
+ # The database version this flag applies to. Can be MYSQL_5_5, MYSQL_5_6, or
715
+ # both.
649
716
  # Corresponds to the JSON property `appliesTo`
650
717
  # @return [Array<String>]
651
718
  attr_accessor :applies_to
@@ -671,6 +738,13 @@ module Google
671
738
  # @return [String]
672
739
  attr_accessor :name
673
740
 
741
+ # Indicates whether changing this flag will trigger a database restart. Only
742
+ # applicable to Second Generation instances.
743
+ # Corresponds to the JSON property `requiresRestart`
744
+ # @return [Boolean]
745
+ attr_accessor :requires_restart
746
+ alias_method :requires_restart?, :requires_restart
747
+
674
748
  # The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or
675
749
  # NONE. NONE is used for flags which do not take a value, such as
676
750
  # skip_grant_tables.
@@ -690,6 +764,7 @@ module Google
690
764
  @max_value = args[:max_value] unless args[:max_value].nil?
691
765
  @min_value = args[:min_value] unless args[:min_value].nil?
692
766
  @name = args[:name] unless args[:name].nil?
767
+ @requires_restart = args[:requires_restart] unless args[:requires_restart].nil?
693
768
  @type = args[:type] unless args[:type].nil?
694
769
  end
695
770
  end
@@ -832,6 +907,25 @@ module Google
832
907
  end
833
908
  end
834
909
 
910
+ # Instance failover request.
911
+ class InstancesFailoverRequest
912
+ include Google::Apis::Core::Hashable
913
+
914
+ # Database instance failover context.
915
+ # Corresponds to the JSON property `failoverContext`
916
+ # @return [Google::Apis::SqladminV1beta4::FailoverContext]
917
+ attr_accessor :failover_context
918
+
919
+ def initialize(**args)
920
+ update!(**args)
921
+ end
922
+
923
+ # Update properties of this object
924
+ def update!(**args)
925
+ @failover_context = args[:failover_context] unless args[:failover_context].nil?
926
+ end
927
+ end
928
+
835
929
  # Database instance import request.
836
930
  class ImportInstancesRequest
837
931
  include Google::Apis::Core::Hashable
@@ -1001,6 +1095,44 @@ module Google
1001
1095
  end
1002
1096
  end
1003
1097
 
1098
+ # Maintenance window. This specifies when a v2 Cloud SQL instance should
1099
+ # preferably be restarted for system maintenance puruposes.
1100
+ class MaintenanceWindow
1101
+ include Google::Apis::Core::Hashable
1102
+
1103
+ # day of week (1-7), starting on Monday.
1104
+ # Corresponds to the JSON property `day`
1105
+ # @return [Fixnum]
1106
+ attr_accessor :day
1107
+
1108
+ # hour of day - 0 to 23.
1109
+ # Corresponds to the JSON property `hour`
1110
+ # @return [Fixnum]
1111
+ attr_accessor :hour
1112
+
1113
+ # This is always sql#maintenanceWindow.
1114
+ # Corresponds to the JSON property `kind`
1115
+ # @return [String]
1116
+ attr_accessor :kind
1117
+
1118
+ #
1119
+ # Corresponds to the JSON property `updateTrack`
1120
+ # @return [String]
1121
+ attr_accessor :update_track
1122
+
1123
+ def initialize(**args)
1124
+ update!(**args)
1125
+ end
1126
+
1127
+ # Update properties of this object
1128
+ def update!(**args)
1129
+ @day = args[:day] unless args[:day].nil?
1130
+ @hour = args[:hour] unless args[:hour].nil?
1131
+ @kind = args[:kind] unless args[:kind].nil?
1132
+ @update_track = args[:update_track] unless args[:update_track].nil?
1133
+ end
1134
+ end
1135
+
1004
1136
  # Read-replica configuration specific to MySQL databases.
1005
1137
  class MySqlReplicaConfiguration
1006
1138
  include Google::Apis::Core::Hashable
@@ -1316,6 +1448,17 @@ module Google
1316
1448
  class ReplicaConfiguration
1317
1449
  include Google::Apis::Core::Hashable
1318
1450
 
1451
+ # Specifies if the replica is the failover target. If the field is set to true
1452
+ # the replica will be designated as a failover replica. In case the master
1453
+ # instance fails, the replica instance will be promoted as the new master
1454
+ # instance.
1455
+ # Only one replica can be specified as failover target, and the replica has to
1456
+ # be in different zone with the master instance.
1457
+ # Corresponds to the JSON property `failoverTarget`
1458
+ # @return [Boolean]
1459
+ attr_accessor :failover_target
1460
+ alias_method :failover_target?, :failover_target
1461
+
1319
1462
  # This is always sql#replicaConfiguration.
1320
1463
  # Corresponds to the JSON property `kind`
1321
1464
  # @return [String]
@@ -1332,6 +1475,7 @@ module Google
1332
1475
 
1333
1476
  # Update properties of this object
1334
1477
  def update!(**args)
1478
+ @failover_target = args[:failover_target] unless args[:failover_target].nil?
1335
1479
  @kind = args[:kind] unless args[:kind].nil?
1336
1480
  @mysql_replica_configuration = args[:mysql_replica_configuration] unless args[:mysql_replica_configuration].nil?
1337
1481
  end
@@ -1399,6 +1543,18 @@ module Google
1399
1543
  attr_accessor :crash_safe_replication_enabled
1400
1544
  alias_method :crash_safe_replication_enabled?, :crash_safe_replication_enabled
1401
1545
 
1546
+ # The size of data disk, in GB. Only supported for 2nd Generation instances. The
1547
+ # data disk size minimum is 10GB.
1548
+ # Corresponds to the JSON property `dataDiskSizeGb`
1549
+ # @return [String]
1550
+ attr_accessor :data_disk_size_gb
1551
+
1552
+ # The type of data disk. Only supported for 2nd Generation instances. The
1553
+ # default type is SSD.
1554
+ # Corresponds to the JSON property `dataDiskType`
1555
+ # @return [String]
1556
+ attr_accessor :data_disk_type
1557
+
1402
1558
  # The database flags passed to the instance at startup.
1403
1559
  # Corresponds to the JSON property `databaseFlags`
1404
1560
  # @return [Array<Google::Apis::SqladminV1beta4::DatabaseFlags>]
@@ -1430,6 +1586,12 @@ module Google
1430
1586
  # @return [Google::Apis::SqladminV1beta4::LocationPreference]
1431
1587
  attr_accessor :location_preference
1432
1588
 
1589
+ # Maintenance window. This specifies when a v2 Cloud SQL instance should
1590
+ # preferably be restarted for system maintenance puruposes.
1591
+ # Corresponds to the JSON property `maintenanceWindow`
1592
+ # @return [Google::Apis::SqladminV1beta4::MaintenanceWindow]
1593
+ attr_accessor :maintenance_window
1594
+
1433
1595
  # The pricing plan for this instance. This can be either PER_USE or PACKAGE.
1434
1596
  # Corresponds to the JSON property `pricingPlan`
1435
1597
  # @return [String]
@@ -1465,11 +1627,14 @@ module Google
1465
1627
  @authorized_gae_applications = args[:authorized_gae_applications] unless args[:authorized_gae_applications].nil?
1466
1628
  @backup_configuration = args[:backup_configuration] unless args[:backup_configuration].nil?
1467
1629
  @crash_safe_replication_enabled = args[:crash_safe_replication_enabled] unless args[:crash_safe_replication_enabled].nil?
1630
+ @data_disk_size_gb = args[:data_disk_size_gb] unless args[:data_disk_size_gb].nil?
1631
+ @data_disk_type = args[:data_disk_type] unless args[:data_disk_type].nil?
1468
1632
  @database_flags = args[:database_flags] unless args[:database_flags].nil?
1469
1633
  @database_replication_enabled = args[:database_replication_enabled] unless args[:database_replication_enabled].nil?
1470
1634
  @ip_configuration = args[:ip_configuration] unless args[:ip_configuration].nil?
1471
1635
  @kind = args[:kind] unless args[:kind].nil?
1472
1636
  @location_preference = args[:location_preference] unless args[:location_preference].nil?
1637
+ @maintenance_window = args[:maintenance_window] unless args[:maintenance_window].nil?
1473
1638
  @pricing_plan = args[:pricing_plan] unless args[:pricing_plan].nil?
1474
1639
  @replication_type = args[:replication_type] unless args[:replication_type].nil?
1475
1640
  @settings_version = args[:settings_version] unless args[:settings_version].nil?
@@ -1572,6 +1737,25 @@ module Google
1572
1737
  end
1573
1738
  end
1574
1739
 
1740
+ # SslCerts create ephemeral certificate request.
1741
+ class SslCertsCreateEphemeralRequest
1742
+ include Google::Apis::Core::Hashable
1743
+
1744
+ # PEM encoded public key to include in the signed certificate.
1745
+ # Corresponds to the JSON property `public_key`
1746
+ # @return [String]
1747
+ attr_accessor :public_key
1748
+
1749
+ def initialize(**args)
1750
+ update!(**args)
1751
+ end
1752
+
1753
+ # Update properties of this object
1754
+ def update!(**args)
1755
+ @public_key = args[:public_key] unless args[:public_key].nil?
1756
+ end
1757
+ end
1758
+
1575
1759
  # SslCerts insert request.
1576
1760
  class InsertSslCertsRequest
1577
1761
  include Google::Apis::Core::Hashable