google-api-client 0.50.0 → 0.51.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (299) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release-please.yml +3 -1
  3. data/CHANGELOG.md +127 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +50 -6
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +18 -0
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +3 -1
  8. data/generated/google/apis/admob_v1.rb +1 -1
  9. data/generated/google/apis/admob_v1beta.rb +1 -1
  10. data/generated/google/apis/analyticsadmin_v1alpha.rb +1 -1
  11. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +24 -8
  12. data/generated/google/apis/analyticsdata_v1alpha.rb +2 -2
  13. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +93 -28
  14. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +2 -0
  15. data/generated/google/apis/analyticsdata_v1alpha/service.rb +5 -5
  16. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  17. data/generated/google/apis/androidenterprise_v1/service.rb +4 -1
  18. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  19. data/generated/google/apis/androidmanagement_v1/classes.rb +69 -4
  20. data/generated/google/apis/androidmanagement_v1/representations.rb +19 -0
  21. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  22. data/generated/google/apis/androidpublisher_v3/service.rb +4 -4
  23. data/generated/google/apis/apigee_v1.rb +1 -1
  24. data/generated/google/apis/apigee_v1/classes.rb +7 -7
  25. data/generated/google/apis/apigee_v1/service.rb +8 -7
  26. data/generated/google/apis/appengine_v1beta.rb +1 -1
  27. data/generated/google/apis/appengine_v1beta/classes.rb +8 -0
  28. data/generated/google/apis/appengine_v1beta/representations.rb +1 -0
  29. data/generated/google/apis/area120tables_v1alpha1.rb +4 -1
  30. data/generated/google/apis/artifactregistry_v1beta2.rb +38 -0
  31. data/generated/google/apis/artifactregistry_v1beta2/classes.rb +1037 -0
  32. data/generated/google/apis/artifactregistry_v1beta2/representations.rb +443 -0
  33. data/generated/google/apis/artifactregistry_v1beta2/service.rb +944 -0
  34. data/generated/google/apis/{assuredworkloads_v1beta1.rb → assuredworkloads_v1.rb} +6 -6
  35. data/generated/google/apis/{assuredworkloads_v1beta1 → assuredworkloads_v1}/classes.rb +49 -137
  36. data/generated/google/apis/{assuredworkloads_v1beta1 → assuredworkloads_v1}/representations.rb +27 -87
  37. data/generated/google/apis/{assuredworkloads_v1beta1 → assuredworkloads_v1}/service.rb +46 -46
  38. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  39. data/generated/google/apis/binaryauthorization_v1/classes.rb +0 -6
  40. data/generated/google/apis/binaryauthorization_v1/representations.rb +0 -1
  41. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  42. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +2 -7
  43. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +0 -1
  44. data/generated/google/apis/chat_v1.rb +1 -1
  45. data/generated/google/apis/chat_v1/service.rb +176 -0
  46. data/generated/google/apis/cloudasset_v1.rb +1 -1
  47. data/generated/google/apis/cloudasset_v1/classes.rb +6 -3
  48. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  49. data/generated/google/apis/cloudbuild_v1/classes.rb +1 -1
  50. data/generated/google/apis/cloudbuild_v1/service.rb +1 -1
  51. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  52. data/generated/google/apis/cloudidentity_v1/service.rb +8 -4
  53. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  54. data/generated/google/apis/cloudidentity_v1beta1/service.rb +8 -4
  55. data/generated/google/apis/cloudiot_v1.rb +1 -1
  56. data/generated/google/apis/cloudiot_v1/classes.rb +0 -6
  57. data/generated/google/apis/cloudiot_v1/representations.rb +0 -1
  58. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  59. data/generated/google/apis/cloudsearch_v1/classes.rb +10 -5
  60. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  61. data/generated/google/apis/cloudtasks_v2/classes.rb +0 -6
  62. data/generated/google/apis/cloudtasks_v2/representations.rb +0 -1
  63. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  64. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +0 -6
  65. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +0 -1
  66. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  67. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +0 -6
  68. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +0 -1
  69. data/generated/google/apis/composer_v1.rb +1 -1
  70. data/generated/google/apis/composer_v1/classes.rb +123 -0
  71. data/generated/google/apis/composer_v1/representations.rb +49 -0
  72. data/generated/google/apis/composer_v1/service.rb +19 -15
  73. data/generated/google/apis/composer_v1beta1.rb +1 -1
  74. data/generated/google/apis/composer_v1beta1/classes.rb +109 -0
  75. data/generated/google/apis/composer_v1beta1/representations.rb +46 -0
  76. data/generated/google/apis/composer_v1beta1/service.rb +39 -1
  77. data/generated/google/apis/compute_v1.rb +1 -1
  78. data/generated/google/apis/compute_v1/classes.rb +7 -2
  79. data/generated/google/apis/compute_v1/representations.rb +1 -0
  80. data/generated/google/apis/compute_v1/service.rb +691 -544
  81. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  82. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +0 -6
  83. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +0 -1
  84. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  85. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +2 -7
  86. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +0 -1
  87. data/generated/google/apis/content_v2.rb +1 -1
  88. data/generated/google/apis/content_v2/classes.rb +4 -4
  89. data/generated/google/apis/content_v2_1.rb +1 -1
  90. data/generated/google/apis/content_v2_1/classes.rb +175 -4
  91. data/generated/google/apis/content_v2_1/representations.rb +78 -0
  92. data/generated/google/apis/content_v2_1/service.rb +179 -0
  93. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  94. data/generated/google/apis/datacatalog_v1beta1/classes.rb +0 -6
  95. data/generated/google/apis/datacatalog_v1beta1/representations.rb +0 -1
  96. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  97. data/generated/google/apis/dataflow_v1b3/classes.rb +17 -1
  98. data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
  99. data/generated/google/apis/dataproc_v1.rb +1 -1
  100. data/generated/google/apis/dataproc_v1/classes.rb +78 -6
  101. data/generated/google/apis/dataproc_v1/representations.rb +22 -1
  102. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  103. data/generated/google/apis/dataproc_v1beta2/classes.rb +46 -6
  104. data/generated/google/apis/dataproc_v1beta2/representations.rb +18 -1
  105. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  106. data/generated/google/apis/deploymentmanager_v2/classes.rb +0 -6
  107. data/generated/google/apis/deploymentmanager_v2/representations.rb +0 -1
  108. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  109. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +0 -6
  110. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +0 -1
  111. data/generated/google/apis/dialogflow_v2.rb +1 -1
  112. data/generated/google/apis/dialogflow_v2/classes.rb +15 -647
  113. data/generated/google/apis/dialogflow_v2/representations.rb +1 -299
  114. data/generated/google/apis/dialogflow_v2/service.rb +12 -4
  115. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  116. data/generated/google/apis/dialogflow_v2beta1/classes.rb +13 -650
  117. data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -299
  118. data/generated/google/apis/dialogflow_v2beta1/service.rb +496 -32
  119. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  120. data/generated/google/apis/dialogflow_v3beta1/classes.rb +15 -647
  121. data/generated/google/apis/dialogflow_v3beta1/representations.rb +1 -299
  122. data/generated/google/apis/dialogflow_v3beta1/service.rb +10 -2
  123. data/generated/google/apis/displayvideo_v1.rb +1 -1
  124. data/generated/google/apis/displayvideo_v1/classes.rb +97 -3
  125. data/generated/google/apis/displayvideo_v1/representations.rb +45 -0
  126. data/generated/google/apis/displayvideo_v1/service.rb +103 -39
  127. data/generated/google/apis/dns_v1.rb +1 -1
  128. data/generated/google/apis/dns_v1/classes.rb +6 -0
  129. data/generated/google/apis/dns_v1/representations.rb +1 -0
  130. data/generated/google/apis/dns_v1beta2.rb +1 -1
  131. data/generated/google/apis/dns_v1beta2/classes.rb +6 -0
  132. data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  134. data/generated/google/apis/drive_v2.rb +1 -1
  135. data/generated/google/apis/drive_v2/classes.rb +4 -1
  136. data/generated/google/apis/drive_v2/service.rb +24 -56
  137. data/generated/google/apis/drive_v3.rb +1 -1
  138. data/generated/google/apis/drive_v3/classes.rb +4 -1
  139. data/generated/google/apis/drive_v3/service.rb +14 -30
  140. data/generated/google/apis/eventarc_v1beta1.rb +1 -1
  141. data/generated/google/apis/eventarc_v1beta1/classes.rb +0 -6
  142. data/generated/google/apis/eventarc_v1beta1/representations.rb +0 -1
  143. data/generated/google/apis/firebasedatabase_v1beta.rb +44 -0
  144. data/generated/google/apis/firebasedatabase_v1beta/classes.rb +130 -0
  145. data/generated/google/apis/firebasedatabase_v1beta/representations.rb +82 -0
  146. data/generated/google/apis/firebasedatabase_v1beta/service.rb +292 -0
  147. data/generated/google/apis/games_v1.rb +1 -1
  148. data/generated/google/apis/games_v1/classes.rb +67 -14
  149. data/generated/google/apis/games_v1/representations.rb +31 -2
  150. data/generated/google/apis/games_v1/service.rb +33 -0
  151. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +1 -1
  152. data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +9 -0
  153. data/generated/google/apis/gmailpostmastertools_v1beta1/representations.rb +1 -0
  154. data/generated/google/apis/healthcare_v1.rb +1 -1
  155. data/generated/google/apis/healthcare_v1/classes.rb +18 -17
  156. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  157. data/generated/google/apis/healthcare_v1beta1/classes.rb +18 -17
  158. data/generated/google/apis/iam_v1.rb +1 -1
  159. data/generated/google/apis/iam_v1/classes.rb +101 -0
  160. data/generated/google/apis/iam_v1/representations.rb +33 -0
  161. data/generated/google/apis/iam_v1/service.rb +62 -0
  162. data/generated/google/apis/jobs_v3.rb +1 -1
  163. data/generated/google/apis/jobs_v3/classes.rb +9 -807
  164. data/generated/google/apis/jobs_v3/representations.rb +0 -272
  165. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  166. data/generated/google/apis/jobs_v3p1beta1/classes.rb +9 -768
  167. data/generated/google/apis/jobs_v3p1beta1/representations.rb +0 -257
  168. data/generated/google/apis/{jobs_v2.rb → jobs_v4.rb} +6 -6
  169. data/generated/google/apis/jobs_v4/classes.rb +2699 -0
  170. data/generated/google/apis/jobs_v4/representations.rb +934 -0
  171. data/generated/google/apis/jobs_v4/service.rb +903 -0
  172. data/generated/google/apis/licensing_v1.rb +1 -1
  173. data/generated/google/apis/licensing_v1/classes.rb +26 -8
  174. data/generated/google/apis/licensing_v1/representations.rb +12 -0
  175. data/generated/google/apis/licensing_v1/service.rb +32 -29
  176. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  177. data/generated/google/apis/lifesciences_v2beta/classes.rb +25 -0
  178. data/generated/google/apis/lifesciences_v2beta/representations.rb +15 -0
  179. data/generated/google/apis/logging_v2.rb +1 -1
  180. data/generated/google/apis/logging_v2/classes.rb +5 -4
  181. data/generated/google/apis/managedidentities_v1.rb +1 -1
  182. data/generated/google/apis/managedidentities_v1/classes.rb +16 -11
  183. data/generated/google/apis/managedidentities_v1/representations.rb +0 -1
  184. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  185. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +18 -12
  186. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +0 -1
  187. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  188. data/generated/google/apis/managedidentities_v1beta1/classes.rb +4 -7
  189. data/generated/google/apis/managedidentities_v1beta1/representations.rb +0 -1
  190. data/generated/google/apis/ml_v1.rb +1 -1
  191. data/generated/google/apis/ml_v1/classes.rb +0 -6
  192. data/generated/google/apis/ml_v1/representations.rb +0 -1
  193. data/generated/google/apis/monitoring_v3.rb +1 -1
  194. data/generated/google/apis/monitoring_v3/classes.rb +5 -4
  195. data/generated/google/apis/monitoring_v3/service.rb +5 -4
  196. data/generated/google/apis/notebooks_v1.rb +1 -1
  197. data/generated/google/apis/notebooks_v1/classes.rb +0 -6
  198. data/generated/google/apis/notebooks_v1/representations.rb +0 -1
  199. data/generated/google/apis/osconfig_v1.rb +1 -1
  200. data/generated/google/apis/osconfig_v1/classes.rb +419 -0
  201. data/generated/google/apis/osconfig_v1/representations.rb +168 -0
  202. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  203. data/generated/google/apis/osconfig_v1beta/classes.rb +419 -0
  204. data/generated/google/apis/osconfig_v1beta/representations.rb +168 -0
  205. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  206. data/generated/google/apis/pagespeedonline_v5/service.rb +3 -3
  207. data/generated/google/apis/people_v1.rb +1 -1
  208. data/generated/google/apis/people_v1/classes.rb +6 -2
  209. data/generated/google/apis/pubsub_v1.rb +1 -1
  210. data/generated/google/apis/pubsub_v1/classes.rb +0 -6
  211. data/generated/google/apis/pubsub_v1/representations.rb +0 -1
  212. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  213. data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -6
  214. data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -1
  215. data/generated/google/apis/recommender_v1.rb +1 -1
  216. data/generated/google/apis/recommender_v1/classes.rb +2 -2
  217. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  218. data/generated/google/apis/recommender_v1beta1/classes.rb +2 -2
  219. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  220. data/generated/google/apis/remotebuildexecution_v1/classes.rb +5 -30
  221. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -16
  222. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  223. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +5 -30
  224. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -16
  225. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  226. data/generated/google/apis/remotebuildexecution_v2/classes.rb +5 -30
  227. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -16
  228. data/generated/google/apis/reseller_v1.rb +4 -4
  229. data/generated/google/apis/reseller_v1/service.rb +5 -5
  230. data/generated/google/apis/run_v1.rb +1 -1
  231. data/generated/google/apis/run_v1/classes.rb +2 -1
  232. data/generated/google/apis/run_v1alpha1.rb +1 -1
  233. data/generated/google/apis/run_v1alpha1/classes.rb +2 -1
  234. data/generated/google/apis/securitycenter_v1.rb +1 -1
  235. data/generated/google/apis/securitycenter_v1/classes.rb +91 -0
  236. data/generated/google/apis/securitycenter_v1/representations.rb +37 -0
  237. data/generated/google/apis/securitycenter_v1/service.rb +1448 -414
  238. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  239. data/generated/google/apis/securitycenter_v1beta1/classes.rb +68 -0
  240. data/generated/google/apis/securitycenter_v1beta1/representations.rb +32 -0
  241. data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
  242. data/generated/google/apis/securitycenter_v1beta2/classes.rb +68 -0
  243. data/generated/google/apis/securitycenter_v1beta2/representations.rb +32 -0
  244. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  245. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +0 -6
  246. data/generated/google/apis/servicedirectory_v1beta1/representations.rb +0 -1
  247. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  248. data/generated/google/apis/servicenetworking_v1/classes.rb +56 -3
  249. data/generated/google/apis/servicenetworking_v1/representations.rb +19 -1
  250. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  251. data/generated/google/apis/servicenetworking_v1beta/classes.rb +36 -3
  252. data/generated/google/apis/servicenetworking_v1beta/representations.rb +17 -1
  253. data/generated/google/apis/sheets_v4.rb +1 -1
  254. data/generated/google/apis/sheets_v4/classes.rb +309 -0
  255. data/generated/google/apis/sheets_v4/representations.rb +99 -0
  256. data/generated/google/apis/slides_v1.rb +1 -1
  257. data/generated/google/apis/spanner_v1.rb +1 -1
  258. data/generated/google/apis/spanner_v1/classes.rb +9 -6
  259. data/generated/google/apis/spanner_v1/representations.rb +1 -1
  260. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  261. data/generated/google/apis/speech_v1p1beta1/classes.rb +22 -0
  262. data/generated/google/apis/speech_v1p1beta1/representations.rb +2 -0
  263. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  264. data/generated/google/apis/sqladmin_v1beta4/classes.rb +90 -7
  265. data/generated/google/apis/sqladmin_v1beta4/representations.rb +34 -0
  266. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  267. data/generated/google/apis/storage_v1.rb +1 -1
  268. data/generated/google/apis/storage_v1/classes.rb +7 -0
  269. data/generated/google/apis/storage_v1/representations.rb +1 -0
  270. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  271. data/generated/google/apis/storagetransfer_v1/classes.rb +14 -16
  272. data/generated/google/apis/vault_v1.rb +1 -1
  273. data/generated/google/apis/vault_v1/classes.rb +76 -0
  274. data/generated/google/apis/vault_v1/representations.rb +45 -0
  275. data/generated/google/apis/vectortile_v1.rb +1 -1
  276. data/generated/google/apis/vectortile_v1/classes.rb +59 -4
  277. data/generated/google/apis/vectortile_v1/representations.rb +19 -0
  278. data/generated/google/apis/videointelligence_v1.rb +1 -1
  279. data/generated/google/apis/videointelligence_v1/classes.rb +65 -0
  280. data/generated/google/apis/videointelligence_v1/representations.rb +15 -0
  281. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  282. data/generated/google/apis/videointelligence_v1beta2/classes.rb +65 -0
  283. data/generated/google/apis/videointelligence_v1beta2/representations.rb +15 -0
  284. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  285. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +65 -0
  286. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +15 -0
  287. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  288. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +65 -0
  289. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +15 -0
  290. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  291. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +65 -0
  292. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +15 -0
  293. data/generated/google/apis/youtube_v3.rb +1 -1
  294. data/generated/google/apis/youtube_v3/classes.rb +2 -2
  295. data/lib/google/apis/version.rb +1 -1
  296. metadata +19 -11
  297. data/generated/google/apis/jobs_v2/classes.rb +0 -4012
  298. data/generated/google/apis/jobs_v2/representations.rb +0 -1396
  299. data/generated/google/apis/jobs_v2/service.rb +0 -693
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV3
28
28
  VERSION = 'V3'
29
- REVISION = '20201108'
29
+ REVISION = '20201130'
30
30
 
31
31
  # See, edit, create, and delete all of your Google Drive files
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -1004,7 +1004,10 @@ module Google
1004
1004
 
1005
1005
  # A collection of arbitrary key-value pairs which are private to the requesting
1006
1006
  # app.
1007
- # Entries with null values are cleared in update and copy requests.
1007
+ # Entries with null values are cleared in update and copy requests. These
1008
+ # properties can only be retrieved using an authenticated request. An
1009
+ # authenticated request uses an access token obtained with a OAuth 2 client ID.
1010
+ # You cannot use an API key to retrieve private properties.
1008
1011
  # Corresponds to the JSON property `appProperties`
1009
1012
  # @return [Hash<String,String>]
1010
1013
  attr_accessor :app_properties
@@ -784,9 +784,8 @@ module Google
784
784
  # The ID of the file.
785
785
  # @param [Google::Apis::DriveV3::File] file_object
786
786
  # @param [Boolean] enforce_single_parent
787
- # Set to true to opt in to API behavior that aims for all items to have exactly
788
- # one parent. This parameter only takes effect if the item is not in a shared
789
- # drive. Requests that specify more than one parent fail.
787
+ # Deprecated. Copying files into multiple folders is no longer supported. Use
788
+ # shortcuts instead.
790
789
  # @param [Boolean] ignore_default_visibility
791
790
  # Whether to ignore the domain's default visibility settings for the created
792
791
  # file. Domain administrators can choose to make all uploaded files visible to
@@ -848,9 +847,7 @@ module Google
848
847
  # Creates a new file.
849
848
  # @param [Google::Apis::DriveV3::File] file_object
850
849
  # @param [Boolean] enforce_single_parent
851
- # Set to true to opt in to API behavior that aims for all items to have exactly
852
- # one parent. This parameter only takes effect if the item is not in a shared
853
- # drive. Requests that specify more than one parent fail.
850
+ # Deprecated. Creating files in multiple folders is no longer supported.
854
851
  # @param [Boolean] ignore_default_visibility
855
852
  # Whether to ignore the domain's default visibility settings for the created
856
853
  # file. Domain administrators can choose to make all uploaded files visible to
@@ -928,10 +925,8 @@ module Google
928
925
  # @param [String] file_id
929
926
  # The ID of the file.
930
927
  # @param [Boolean] enforce_single_parent
931
- # Set to true to opt in to API behavior that aims for all items to have exactly
932
- # one parent. This parameter will only take effect if the item is not in a
933
- # shared drive. If an item's last parent is deleted but the item itself is not,
934
- # the item will be placed under its owner's root.
928
+ # Deprecated. If an item is not in a shared drive and its last parent is deleted
929
+ # but the item itself is not, the item will be placed under its owner's root.
935
930
  # @param [Boolean] supports_all_drives
936
931
  # Whether the requesting application supports both My Drives and shared drives.
937
932
  # @param [Boolean] supports_team_drives
@@ -969,10 +964,8 @@ module Google
969
964
 
970
965
  # Permanently deletes all of the user's trashed files.
971
966
  # @param [Boolean] enforce_single_parent
972
- # Set to true to opt in to API behavior that aims for all items to have exactly
973
- # one parent. This parameter will only take effect if the item is not in a
974
- # shared drive. If an item's last parent is deleted but the item itself is not,
975
- # the item will be placed under its owner's root.
967
+ # Deprecated. If an item is not in a shared drive and its last parent is deleted
968
+ # but the item itself is not, the item will be placed under its owner's root.
976
969
  # @param [String] fields
977
970
  # Selector specifying which fields to include in a partial response.
978
971
  # @param [String] quota_user
@@ -1229,12 +1222,8 @@ module Google
1229
1222
  # @param [String] add_parents
1230
1223
  # A comma-separated list of parent IDs to add.
1231
1224
  # @param [Boolean] enforce_single_parent
1232
- # Set to true to opt in to API behavior that aims for all items to have exactly
1233
- # one parent. This parameter only takes effect if the item is not in a shared
1234
- # drive. If the item's owner makes a request to add a single parent, the item is
1235
- # removed from all current folders and placed in the requested folder. Other
1236
- # requests that increase the number of parents fail, except when the
1237
- # canAddMyDriveParent file capability is true and a single parent is being added.
1225
+ # Deprecated. Adding files to multiple folders is no longer supported. Use
1226
+ # shortcuts instead.
1238
1227
  # @param [String] include_permissions_for_view
1239
1228
  # Specifies which additional view's permissions to include in the response. Only
1240
1229
  # 'published' is supported.
@@ -1368,17 +1357,12 @@ module Google
1368
1357
  # @param [String] email_message
1369
1358
  # A plain text custom message to include in the notification email.
1370
1359
  # @param [Boolean] enforce_single_parent
1371
- # Set to true to opt in to API behavior that aims for all items to have exactly
1372
- # one parent. This parameter only takes effect if the item is not in a shared
1373
- # drive. See moveToNewOwnersRoot for details.
1360
+ # Deprecated. See moveToNewOwnersRoot for details.
1374
1361
  # @param [Boolean] move_to_new_owners_root
1375
- # This parameter only takes effect if the item is not in a shared drive and the
1376
- # request is attempting to transfer the ownership of the item. When set to true,
1377
- # the item is moved to the new owner's My Drive root folder and all prior
1378
- # parents removed. If set to false, when enforceSingleParent=true, parents are
1379
- # not changed. If set to false, when enforceSingleParent=false, existing parents
1380
- # are not changed; however, the file will be added to the new owner's My Drive
1381
- # root folder, unless it is already in the new owner's My Drive.
1362
+ # This parameter will only take effect if the item is not in a shared drive and
1363
+ # the request is attempting to transfer the ownership of the item. If set to
1364
+ # true, the item will be moved to the new owner's My Drive root folder and all
1365
+ # prior parents removed. If set to false, parents are not changed.
1382
1366
  # @param [Boolean] send_notification_email
1383
1367
  # Whether to send a notification email when sharing to users or groups. This
1384
1368
  # defaults to true for users and groups, and is not allowed for other requests.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/eventarc
26
26
  module EventarcV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20201103'
28
+ REVISION = '20201113'
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'
@@ -97,11 +97,6 @@ module Google
97
97
  class Binding
98
98
  include Google::Apis::Core::Hashable
99
99
 
100
- #
101
- # Corresponds to the JSON property `bindingId`
102
- # @return [String]
103
- attr_accessor :binding_id
104
-
105
100
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
106
101
  # CEL is a C-like expression language. The syntax and semantics of CEL are
107
102
  # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@@ -163,7 +158,6 @@ module Google
163
158
 
164
159
  # Update properties of this object
165
160
  def update!(**args)
166
- @binding_id = args[:binding_id] if args.key?(:binding_id)
167
161
  @condition = args[:condition] if args.key?(:condition)
168
162
  @members = args[:members] if args.key?(:members)
169
163
  @role = args[:role] if args.key?(:role)
@@ -180,7 +180,6 @@ module Google
180
180
  class Binding
181
181
  # @private
182
182
  class Representation < Google::Apis::Core::JsonRepresentation
183
- property :binding_id, as: 'bindingId'
184
183
  property :condition, as: 'condition', class: Google::Apis::EventarcV1beta1::Expr, decorator: Google::Apis::EventarcV1beta1::Expr::Representation
185
184
 
186
185
  collection :members, as: 'members'
@@ -0,0 +1,44 @@
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/firebasedatabase_v1beta/service.rb'
16
+ require 'google/apis/firebasedatabase_v1beta/classes.rb'
17
+ require 'google/apis/firebasedatabase_v1beta/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Firebase Realtime Database Management API
22
+ #
23
+ # The Firebase Realtime Database Management API enables programmatic
24
+ # provisioning and management of Realtime Database instances.
25
+ #
26
+ # @see https://firebase.google.com/docs/reference/rest/database/database-management/rest/
27
+ module FirebasedatabaseV1beta
28
+ VERSION = 'V1beta'
29
+ REVISION = '20201112'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
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
+ # View and administer all your Firebase data and settings
38
+ AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'
39
+
40
+ # View all your Firebase data and settings
41
+ AUTH_FIREBASE_READONLY = 'https://www.googleapis.com/auth/firebase.readonly'
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,130 @@
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 FirebasedatabaseV1beta
24
+
25
+ # Representation of a Realtime Database instance. Details on interacting with
26
+ # contents of a DatabaseInstance can be found at: https://firebase.google.com/
27
+ # docs/database/rest/start.
28
+ class DatabaseInstance
29
+ include Google::Apis::Core::Hashable
30
+
31
+ # Immutable. The globally unique hostname of the database.
32
+ # Corresponds to the JSON property `databaseUrl`
33
+ # @return [String]
34
+ attr_accessor :database_url
35
+
36
+ # The fully qualified resource name of the database instance, in the form: `
37
+ # projects/`project-number`/locations/`location-id`/instances/`database-id``.
38
+ # Currently the only supported location is 'us-central1'.
39
+ # Corresponds to the JSON property `name`
40
+ # @return [String]
41
+ attr_accessor :name
42
+
43
+ # The resource name of the project this instance belongs to. For example: `
44
+ # projects/`project-number``.
45
+ # Corresponds to the JSON property `project`
46
+ # @return [String]
47
+ attr_accessor :project
48
+
49
+ # The database's lifecycle state. Read-only.
50
+ # Corresponds to the JSON property `state`
51
+ # @return [String]
52
+ attr_accessor :state
53
+
54
+ # The database instance type. On creation only USER_DATABASE is allowed, which
55
+ # is also the default when omitted.
56
+ # Corresponds to the JSON property `type`
57
+ # @return [String]
58
+ attr_accessor :type
59
+
60
+ def initialize(**args)
61
+ update!(**args)
62
+ end
63
+
64
+ # Update properties of this object
65
+ def update!(**args)
66
+ @database_url = args[:database_url] if args.key?(:database_url)
67
+ @name = args[:name] if args.key?(:name)
68
+ @project = args[:project] if args.key?(:project)
69
+ @state = args[:state] if args.key?(:state)
70
+ @type = args[:type] if args.key?(:type)
71
+ end
72
+ end
73
+
74
+ # The request sent to the DisableDatabaseInstance method.
75
+ class DisableDatabaseInstanceRequest
76
+ include Google::Apis::Core::Hashable
77
+
78
+ def initialize(**args)
79
+ update!(**args)
80
+ end
81
+
82
+ # Update properties of this object
83
+ def update!(**args)
84
+ end
85
+ end
86
+
87
+ # The response from the ListDatabaseInstances method.
88
+ class ListDatabaseInstancesResponse
89
+ include Google::Apis::Core::Hashable
90
+
91
+ # List of each DatabaseInstance that is in the parent Firebase project.
92
+ # Corresponds to the JSON property `instances`
93
+ # @return [Array<Google::Apis::FirebasedatabaseV1beta::DatabaseInstance>]
94
+ attr_accessor :instances
95
+
96
+ # If the result list is too large to fit in a single response, then a token is
97
+ # returned. If the string is empty, then this response is the last page of
98
+ # results. This token can be used in a subsequent call to `ListDatabaseInstances`
99
+ # to find the next group of database instances. Page tokens are short-lived and
100
+ # should not be persisted.
101
+ # Corresponds to the JSON property `nextPageToken`
102
+ # @return [String]
103
+ attr_accessor :next_page_token
104
+
105
+ def initialize(**args)
106
+ update!(**args)
107
+ end
108
+
109
+ # Update properties of this object
110
+ def update!(**args)
111
+ @instances = args[:instances] if args.key?(:instances)
112
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
113
+ end
114
+ end
115
+
116
+ # The request sent to the ReenableDatabaseInstance method.
117
+ class ReenableDatabaseInstanceRequest
118
+ include Google::Apis::Core::Hashable
119
+
120
+ def initialize(**args)
121
+ update!(**args)
122
+ end
123
+
124
+ # Update properties of this object
125
+ def update!(**args)
126
+ end
127
+ end
128
+ end
129
+ end
130
+ end
@@ -0,0 +1,82 @@
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 FirebasedatabaseV1beta
24
+
25
+ class DatabaseInstance
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class DisableDatabaseInstanceRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ListDatabaseInstancesResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ReenableDatabaseInstanceRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class DatabaseInstance
50
+ # @private
51
+ class Representation < Google::Apis::Core::JsonRepresentation
52
+ property :database_url, as: 'databaseUrl'
53
+ property :name, as: 'name'
54
+ property :project, as: 'project'
55
+ property :state, as: 'state'
56
+ property :type, as: 'type'
57
+ end
58
+ end
59
+
60
+ class DisableDatabaseInstanceRequest
61
+ # @private
62
+ class Representation < Google::Apis::Core::JsonRepresentation
63
+ end
64
+ end
65
+
66
+ class ListDatabaseInstancesResponse
67
+ # @private
68
+ class Representation < Google::Apis::Core::JsonRepresentation
69
+ collection :instances, as: 'instances', class: Google::Apis::FirebasedatabaseV1beta::DatabaseInstance, decorator: Google::Apis::FirebasedatabaseV1beta::DatabaseInstance::Representation
70
+
71
+ property :next_page_token, as: 'nextPageToken'
72
+ end
73
+ end
74
+
75
+ class ReenableDatabaseInstanceRequest
76
+ # @private
77
+ class Representation < Google::Apis::Core::JsonRepresentation
78
+ end
79
+ end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,292 @@
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 FirebasedatabaseV1beta
23
+ # Firebase Realtime Database Management API
24
+ #
25
+ # The Firebase Realtime Database Management API enables programmatic
26
+ # provisioning and management of Realtime Database instances.
27
+ #
28
+ # @example
29
+ # require 'google/apis/firebasedatabase_v1beta'
30
+ #
31
+ # Firebasedatabase = Google::Apis::FirebasedatabaseV1beta # Alias the module
32
+ # service = Firebasedatabase::FirebaseRealtimeDatabaseService.new
33
+ #
34
+ # @see https://firebase.google.com/docs/reference/rest/database/database-management/rest/
35
+ class FirebaseRealtimeDatabaseService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://firebasedatabase.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Requests that a new DatabaseInstance be created. The state of a successfully
52
+ # created DatabaseInstance is ACTIVE. Only available for projects on the Blaze
53
+ # plan. Projects can be upgraded using the Cloud Billing API https://cloud.
54
+ # google.com/billing/reference/rest/v1/projects/updateBillingInfo. Note that it
55
+ # might take a few minutes for billing enablement state to propagate to Firebase
56
+ # systems.
57
+ # @param [String] parent
58
+ # The parent project for which to create a database instance, in the form: `
59
+ # projects/`project-number`/locations/`location-id``.
60
+ # @param [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] database_instance_object
61
+ # @param [String] database_id
62
+ # The globally unique identifier of the database instance.
63
+ # @param [Boolean] validate_only
64
+ # When set to true, the request will be validated but not submitted.
65
+ # @param [String] fields
66
+ # Selector specifying which fields to include in a partial response.
67
+ # @param [String] quota_user
68
+ # Available to use for quota purposes for server-side applications. Can be any
69
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
70
+ # @param [Google::Apis::RequestOptions] options
71
+ # Request-specific options
72
+ #
73
+ # @yield [result, err] Result & error if block supplied
74
+ # @yieldparam result [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] parsed result object
75
+ # @yieldparam err [StandardError] error object if request failed
76
+ #
77
+ # @return [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance]
78
+ #
79
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
82
+ def create_project_location_instance(parent, database_instance_object = nil, database_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
83
+ command = make_simple_command(:post, 'v1beta/{+parent}/instances', options)
84
+ command.request_representation = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance::Representation
85
+ command.request_object = database_instance_object
86
+ command.response_representation = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance::Representation
87
+ command.response_class = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance
88
+ command.params['parent'] = parent unless parent.nil?
89
+ command.query['databaseId'] = database_id unless database_id.nil?
90
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
91
+ command.query['fields'] = fields unless fields.nil?
92
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
93
+ execute_or_queue_command(command, &block)
94
+ end
95
+
96
+ # Marks a DatabaseInstance to be deleted. The DatabaseInstance will be purged
97
+ # within 30 days. The default database cannot be deleted. IDs for deleted
98
+ # database instances may never be recovered or re-used. The Database may only be
99
+ # deleted if it is already in a DISABLED state.
100
+ # @param [String] name
101
+ # The fully qualified resource name of the database instance, in the form: `
102
+ # projects/`project-number`/locations/`location-id`/instances/`database-id``
103
+ # @param [String] fields
104
+ # Selector specifying which fields to include in a partial response.
105
+ # @param [String] quota_user
106
+ # Available to use for quota purposes for server-side applications. Can be any
107
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
108
+ # @param [Google::Apis::RequestOptions] options
109
+ # Request-specific options
110
+ #
111
+ # @yield [result, err] Result & error if block supplied
112
+ # @yieldparam result [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] parsed result object
113
+ # @yieldparam err [StandardError] error object if request failed
114
+ #
115
+ # @return [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance]
116
+ #
117
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
118
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
119
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
120
+ def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
121
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
122
+ command.response_representation = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance::Representation
123
+ command.response_class = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance
124
+ command.params['name'] = name unless name.nil?
125
+ command.query['fields'] = fields unless fields.nil?
126
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
127
+ execute_or_queue_command(command, &block)
128
+ end
129
+
130
+ # Disables a DatabaseInstance. The database can be re-enabled later using
131
+ # ReenableDatabaseInstance. When a database is disabled, all reads and writes
132
+ # are denied, including view access in the Firebase console.
133
+ # @param [String] name
134
+ # The fully qualified resource name of the database instance, in the form: `
135
+ # projects/`project-number`/locations/`location-id`/instances/`database-id``
136
+ # @param [Google::Apis::FirebasedatabaseV1beta::DisableDatabaseInstanceRequest] disable_database_instance_request_object
137
+ # @param [String] fields
138
+ # Selector specifying which fields to include in a partial response.
139
+ # @param [String] quota_user
140
+ # Available to use for quota purposes for server-side applications. Can be any
141
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
142
+ # @param [Google::Apis::RequestOptions] options
143
+ # Request-specific options
144
+ #
145
+ # @yield [result, err] Result & error if block supplied
146
+ # @yieldparam result [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] parsed result object
147
+ # @yieldparam err [StandardError] error object if request failed
148
+ #
149
+ # @return [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance]
150
+ #
151
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
152
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
153
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
154
+ def disable_database_instance(name, disable_database_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
155
+ command = make_simple_command(:post, 'v1beta/{+name}:disable', options)
156
+ command.request_representation = Google::Apis::FirebasedatabaseV1beta::DisableDatabaseInstanceRequest::Representation
157
+ command.request_object = disable_database_instance_request_object
158
+ command.response_representation = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance::Representation
159
+ command.response_class = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance
160
+ command.params['name'] = name unless name.nil?
161
+ command.query['fields'] = fields unless fields.nil?
162
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
163
+ execute_or_queue_command(command, &block)
164
+ end
165
+
166
+ # Gets the DatabaseInstance identified by the specified resource name.
167
+ # @param [String] name
168
+ # The fully qualified resource name of the database instance, in the form: `
169
+ # projects/`project-number`/locations/`location-id`/instances/`database-id``. `
170
+ # database-id` is a globally unique identifier across all parent collections.
171
+ # For convenience, this method allows you to supply `-` as a wildcard character
172
+ # in place of specific collections under `projects` and `locations`. The
173
+ # resulting wildcarding form of the method is: `projects/-/locations/-/instances/
174
+ # `database-id``.
175
+ # @param [String] fields
176
+ # Selector specifying which fields to include in a partial response.
177
+ # @param [String] quota_user
178
+ # Available to use for quota purposes for server-side applications. Can be any
179
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
180
+ # @param [Google::Apis::RequestOptions] options
181
+ # Request-specific options
182
+ #
183
+ # @yield [result, err] Result & error if block supplied
184
+ # @yieldparam result [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] parsed result object
185
+ # @yieldparam err [StandardError] error object if request failed
186
+ #
187
+ # @return [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance]
188
+ #
189
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
190
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
191
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
192
+ def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
193
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
194
+ command.response_representation = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance::Representation
195
+ command.response_class = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance
196
+ command.params['name'] = name unless name.nil?
197
+ command.query['fields'] = fields unless fields.nil?
198
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
199
+ execute_or_queue_command(command, &block)
200
+ end
201
+
202
+ # Lists each DatabaseInstance associated with the specified parent project. The
203
+ # list items are returned in no particular order, but will be a consistent view
204
+ # of the database instances when additional requests are made with a `pageToken`.
205
+ # The resulting list contains instances in any STATE. The list results may be
206
+ # stale by a few seconds. Use GetDatabaseInstance for consistent reads.
207
+ # @param [String] parent
208
+ # The parent project for which to list database instances, in the form: `
209
+ # projects/`project-number`/locations/`location-id`` To list across all
210
+ # locations, use a parent in the form: `projects/`project-number`/locations/-`
211
+ # @param [Fixnum] page_size
212
+ # The maximum number of database instances to return in the response. The server
213
+ # may return fewer than this at its discretion. If no value is specified (or too
214
+ # large a value is specified), then the server will impose its own limit.
215
+ # @param [String] page_token
216
+ # Token returned from a previous call to `ListDatabaseInstances` indicating
217
+ # where in the set of database instances to resume listing.
218
+ # @param [String] fields
219
+ # Selector specifying which fields to include in a partial response.
220
+ # @param [String] quota_user
221
+ # Available to use for quota purposes for server-side applications. Can be any
222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
223
+ # @param [Google::Apis::RequestOptions] options
224
+ # Request-specific options
225
+ #
226
+ # @yield [result, err] Result & error if block supplied
227
+ # @yieldparam result [Google::Apis::FirebasedatabaseV1beta::ListDatabaseInstancesResponse] parsed result object
228
+ # @yieldparam err [StandardError] error object if request failed
229
+ #
230
+ # @return [Google::Apis::FirebasedatabaseV1beta::ListDatabaseInstancesResponse]
231
+ #
232
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
233
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
234
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
235
+ def list_project_location_instances(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
236
+ command = make_simple_command(:get, 'v1beta/{+parent}/instances', options)
237
+ command.response_representation = Google::Apis::FirebasedatabaseV1beta::ListDatabaseInstancesResponse::Representation
238
+ command.response_class = Google::Apis::FirebasedatabaseV1beta::ListDatabaseInstancesResponse
239
+ command.params['parent'] = parent unless parent.nil?
240
+ command.query['pageSize'] = page_size unless page_size.nil?
241
+ command.query['pageToken'] = page_token unless page_token.nil?
242
+ command.query['fields'] = fields unless fields.nil?
243
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
244
+ execute_or_queue_command(command, &block)
245
+ end
246
+
247
+ # Enables a DatabaseInstance. The database must have been disabled previously
248
+ # using DisableDatabaseInstance. The state of a successfully reenabled
249
+ # DatabaseInstance is ACTIVE.
250
+ # @param [String] name
251
+ # The fully qualified resource name of the database instance, in the form: `
252
+ # projects/`project-number`/locations/`location-id`/instances/`database-id``
253
+ # @param [Google::Apis::FirebasedatabaseV1beta::ReenableDatabaseInstanceRequest] reenable_database_instance_request_object
254
+ # @param [String] fields
255
+ # Selector specifying which fields to include in a partial response.
256
+ # @param [String] quota_user
257
+ # Available to use for quota purposes for server-side applications. Can be any
258
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
259
+ # @param [Google::Apis::RequestOptions] options
260
+ # Request-specific options
261
+ #
262
+ # @yield [result, err] Result & error if block supplied
263
+ # @yieldparam result [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] parsed result object
264
+ # @yieldparam err [StandardError] error object if request failed
265
+ #
266
+ # @return [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance]
267
+ #
268
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
269
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
270
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
271
+ def reenable_database_instance(name, reenable_database_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
272
+ command = make_simple_command(:post, 'v1beta/{+name}:reenable', options)
273
+ command.request_representation = Google::Apis::FirebasedatabaseV1beta::ReenableDatabaseInstanceRequest::Representation
274
+ command.request_object = reenable_database_instance_request_object
275
+ command.response_representation = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance::Representation
276
+ command.response_class = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance
277
+ command.params['name'] = name unless name.nil?
278
+ command.query['fields'] = fields unless fields.nil?
279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
280
+ execute_or_queue_command(command, &block)
281
+ end
282
+
283
+ protected
284
+
285
+ def apply_command_defaults(command)
286
+ command.query['key'] = key unless key.nil?
287
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
288
+ end
289
+ end
290
+ end
291
+ end
292
+ end