google-api-client 0.37.3 → 0.38.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (440) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +146 -0
  3. data/api_list_config.yaml +2 -0
  4. data/api_names.yaml +2 -0
  5. data/bin/generate-api +9 -1
  6. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  7. data/generated/google/apis/accesscontextmanager_v1/classes.rb +0 -36
  8. data/generated/google/apis/accesscontextmanager_v1/representations.rb +0 -6
  9. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  10. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +0 -36
  11. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +0 -6
  12. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +10 -3
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1.rb +1 -1
  16. data/generated/google/apis/admin_directory_v1/classes.rb +0 -147
  17. data/generated/google/apis/admin_directory_v1/representations.rb +0 -54
  18. data/generated/google/apis/admin_directory_v1/service.rb +0 -60
  19. data/generated/google/apis/adsense_v1_4.rb +1 -1
  20. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  21. data/generated/google/apis/adsensehost_v4_1/service.rb +5 -1
  22. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  23. data/generated/google/apis/alertcenter_v1beta1/classes.rb +1 -1
  24. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  25. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +2 -2
  26. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1/classes.rb +2 -2
  28. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  29. data/generated/google/apis/androidmanagement_v1/service.rb +2 -2
  30. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  32. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  33. data/generated/google/apis/androidpublisher_v3/classes.rb +2 -2
  34. data/generated/google/apis/appengine_v1.rb +1 -1
  35. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  36. data/generated/google/apis/appengine_v1beta.rb +1 -1
  37. data/generated/google/apis/bigquery_v2.rb +1 -1
  38. data/generated/google/apis/bigquery_v2/classes.rb +224 -5
  39. data/generated/google/apis/bigquery_v2/representations.rb +65 -0
  40. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  41. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  42. data/generated/google/apis/bigqueryreservation_v1/classes.rb +413 -0
  43. data/generated/google/apis/bigqueryreservation_v1/representations.rb +194 -0
  44. data/generated/google/apis/bigqueryreservation_v1/service.rb +745 -0
  45. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  46. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +69 -20
  47. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +29 -13
  48. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +4 -39
  49. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  50. data/generated/google/apis/bigtableadmin_v1/classes.rb +20 -17
  51. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  52. data/generated/google/apis/bigtableadmin_v2/classes.rb +26 -21
  53. data/generated/google/apis/bigtableadmin_v2/service.rb +93 -53
  54. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  55. data/generated/google/apis/billingbudgets_v1beta1/service.rb +3 -3
  56. data/generated/google/apis/blogger_v2.rb +5 -4
  57. data/generated/google/apis/blogger_v2/classes.rb +297 -45
  58. data/generated/google/apis/blogger_v2/representations.rb +105 -26
  59. data/generated/google/apis/blogger_v2/service.rb +79 -134
  60. data/generated/google/apis/blogger_v3.rb +4 -3
  61. data/generated/google/apis/blogger_v3/classes.rb +60 -53
  62. data/generated/google/apis/blogger_v3/representations.rb +10 -18
  63. data/generated/google/apis/blogger_v3/service.rb +183 -463
  64. data/generated/google/apis/calendar_v3.rb +1 -1
  65. data/generated/google/apis/calendar_v3/classes.rb +1 -14
  66. data/generated/google/apis/chat_v1.rb +1 -1
  67. data/generated/google/apis/chat_v1/classes.rb +1 -1
  68. data/generated/google/apis/cloudasset_v1.rb +1 -1
  69. data/generated/google/apis/cloudasset_v1/classes.rb +81 -90
  70. data/generated/google/apis/cloudasset_v1/representations.rb +1 -6
  71. data/generated/google/apis/cloudasset_v1/service.rb +2 -2
  72. data/generated/google/apis/cloudasset_v1p1beta1.rb +34 -0
  73. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +669 -0
  74. data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +199 -0
  75. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +187 -0
  76. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  77. data/generated/google/apis/cloudbuild_v1/classes.rb +12 -1
  78. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  79. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  80. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +9 -0
  81. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
  82. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +9 -0
  84. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
  85. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  86. data/generated/google/apis/clouddebugger_v2/classes.rb +8 -0
  87. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  88. data/generated/google/apis/cloudidentity_v1/classes.rb +0 -561
  89. data/generated/google/apis/cloudidentity_v1/representations.rb +0 -226
  90. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  91. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +652 -2
  92. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +272 -0
  93. data/generated/google/apis/cloudidentity_v1beta1/service.rb +2 -2
  94. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  95. data/generated/google/apis/cloudresourcemanager_v1/service.rb +3 -0
  96. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  97. data/generated/google/apis/cloudsearch_v1/classes.rb +52 -50
  98. data/generated/google/apis/cloudshell_v1.rb +1 -1
  99. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  100. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  101. data/generated/google/apis/cloudtasks_v2beta2/service.rb +6 -1
  102. data/generated/google/apis/cloudtrace_v1.rb +3 -3
  103. data/generated/google/apis/cloudtrace_v1/service.rb +2 -2
  104. data/generated/google/apis/cloudtrace_v2.rb +3 -3
  105. data/generated/google/apis/cloudtrace_v2/service.rb +2 -2
  106. data/generated/google/apis/cloudtrace_v2beta1.rb +3 -3
  107. data/generated/google/apis/cloudtrace_v2beta1/classes.rb +1 -2
  108. data/generated/google/apis/cloudtrace_v2beta1/service.rb +2 -2
  109. data/generated/google/apis/composer_v1.rb +1 -1
  110. data/generated/google/apis/composer_v1/classes.rb +178 -0
  111. data/generated/google/apis/composer_v1/representations.rb +54 -0
  112. data/generated/google/apis/composer_v1beta1.rb +1 -1
  113. data/generated/google/apis/composer_v1beta1/classes.rb +36 -5
  114. data/generated/google/apis/composer_v1beta1/representations.rb +4 -0
  115. data/generated/google/apis/compute_alpha.rb +1 -1
  116. data/generated/google/apis/compute_alpha/classes.rb +1320 -307
  117. data/generated/google/apis/compute_alpha/representations.rb +284 -18
  118. data/generated/google/apis/compute_alpha/service.rb +4914 -3211
  119. data/generated/google/apis/compute_beta.rb +1 -1
  120. data/generated/google/apis/compute_beta/classes.rb +819 -236
  121. data/generated/google/apis/compute_beta/representations.rb +245 -16
  122. data/generated/google/apis/compute_beta/service.rb +3369 -2227
  123. data/generated/google/apis/compute_v1.rb +1 -1
  124. data/generated/google/apis/compute_v1/classes.rb +837 -133
  125. data/generated/google/apis/compute_v1/representations.rb +307 -0
  126. data/generated/google/apis/compute_v1/service.rb +3155 -2026
  127. data/generated/google/apis/container_v1.rb +1 -1
  128. data/generated/google/apis/container_v1/classes.rb +42 -22
  129. data/generated/google/apis/container_v1/service.rb +2 -2
  130. data/generated/google/apis/container_v1beta1.rb +1 -1
  131. data/generated/google/apis/container_v1beta1/classes.rb +116 -136
  132. data/generated/google/apis/container_v1beta1/representations.rb +23 -51
  133. data/generated/google/apis/container_v1beta1/service.rb +2 -2
  134. data/generated/google/apis/content_v2.rb +1 -1
  135. data/generated/google/apis/content_v2/classes.rb +1030 -113
  136. data/generated/google/apis/content_v2_1.rb +1 -1
  137. data/generated/google/apis/content_v2_1/classes.rb +987 -138
  138. data/generated/google/apis/content_v2_1/representations.rb +87 -0
  139. data/generated/google/apis/content_v2_1/service.rb +73 -0
  140. data/generated/google/apis/customsearch_v1.rb +3 -3
  141. data/generated/google/apis/customsearch_v1/classes.rb +1194 -353
  142. data/generated/google/apis/customsearch_v1/representations.rb +166 -95
  143. data/generated/google/apis/customsearch_v1/service.rb +373 -104
  144. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  145. data/generated/google/apis/datacatalog_v1beta1/classes.rb +2 -2
  146. data/generated/google/apis/datacatalog_v1beta1/service.rb +16 -24
  147. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  148. data/generated/google/apis/dataflow_v1b3/classes.rb +220 -0
  149. data/generated/google/apis/dataflow_v1b3/representations.rb +99 -0
  150. data/generated/google/apis/dataflow_v1b3/service.rb +327 -0
  151. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  152. data/generated/google/apis/datafusion_v1beta1/classes.rb +27 -1
  153. data/generated/google/apis/datafusion_v1beta1/representations.rb +15 -0
  154. data/generated/google/apis/dataproc_v1.rb +1 -1
  155. data/generated/google/apis/dataproc_v1/classes.rb +76 -7
  156. data/generated/google/apis/dataproc_v1/representations.rb +21 -0
  157. data/generated/google/apis/dataproc_v1/service.rb +72 -15
  158. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  159. data/generated/google/apis/dataproc_v1beta2/classes.rb +191 -7
  160. data/generated/google/apis/dataproc_v1beta2/representations.rb +79 -0
  161. data/generated/google/apis/dataproc_v1beta2/service.rb +148 -15
  162. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  163. data/generated/google/apis/dfareporting_v3_3/classes.rb +19 -13
  164. data/generated/google/apis/dfareporting_v3_3/service.rb +5 -4
  165. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  166. data/generated/google/apis/dfareporting_v3_4/classes.rb +152 -15
  167. data/generated/google/apis/dfareporting_v3_4/representations.rb +46 -0
  168. data/generated/google/apis/dfareporting_v3_4/service.rb +5 -4
  169. data/generated/google/apis/dialogflow_v2.rb +1 -1
  170. data/generated/google/apis/dialogflow_v2/classes.rb +130 -127
  171. data/generated/google/apis/dialogflow_v2/service.rb +49 -49
  172. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  173. data/generated/google/apis/dialogflow_v2beta1/classes.rb +129 -126
  174. data/generated/google/apis/dialogflow_v2beta1/service.rb +96 -96
  175. data/generated/google/apis/dlp_v2.rb +1 -1
  176. data/generated/google/apis/dlp_v2/classes.rb +80 -14
  177. data/generated/google/apis/dlp_v2/representations.rb +32 -0
  178. data/generated/google/apis/dlp_v2/service.rb +3 -0
  179. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  180. data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +9 -2
  181. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  182. data/generated/google/apis/doubleclicksearch_v2/service.rb +0 -55
  183. data/generated/google/apis/drive_v2.rb +1 -1
  184. data/generated/google/apis/drive_v2/classes.rb +54 -2
  185. data/generated/google/apis/drive_v2/representations.rb +18 -0
  186. data/generated/google/apis/drive_v2/service.rb +81 -9
  187. data/generated/google/apis/drive_v3.rb +1 -1
  188. data/generated/google/apis/drive_v3/classes.rb +54 -2
  189. data/generated/google/apis/drive_v3/representations.rb +18 -0
  190. data/generated/google/apis/drive_v3/service.rb +37 -4
  191. data/generated/google/apis/file_v1.rb +1 -1
  192. data/generated/google/apis/file_v1beta1.rb +1 -1
  193. data/generated/google/apis/file_v1beta1/classes.rb +2 -2
  194. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  195. data/generated/google/apis/firebase_v1beta1/service.rb +8 -5
  196. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  197. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +6 -6
  198. data/generated/google/apis/firebasehosting_v1beta1/service.rb +762 -3
  199. data/generated/google/apis/firestore_v1.rb +1 -1
  200. data/generated/google/apis/firestore_v1/classes.rb +11 -2
  201. data/generated/google/apis/firestore_v1/representations.rb +2 -0
  202. data/generated/google/apis/firestore_v1/service.rb +2 -2
  203. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  204. data/generated/google/apis/firestore_v1beta1/classes.rb +11 -2
  205. data/generated/google/apis/firestore_v1beta1/representations.rb +2 -0
  206. data/generated/google/apis/firestore_v1beta1/service.rb +2 -2
  207. data/generated/google/apis/games_configuration_v1configuration.rb +4 -3
  208. data/generated/google/apis/games_configuration_v1configuration/classes.rb +39 -53
  209. data/generated/google/apis/games_configuration_v1configuration/service.rb +58 -169
  210. data/generated/google/apis/games_management_v1management.rb +1 -1
  211. data/generated/google/apis/games_management_v1management/classes.rb +7 -0
  212. data/generated/google/apis/games_management_v1management/representations.rb +1 -0
  213. data/generated/google/apis/games_v1.rb +1 -1
  214. data/generated/google/apis/games_v1/classes.rb +13 -0
  215. data/generated/google/apis/games_v1/representations.rb +2 -0
  216. data/generated/google/apis/{proximitybeacon_v1beta1.rb → gameservices_v1beta.rb} +11 -11
  217. data/generated/google/apis/gameservices_v1beta/classes.rb +2342 -0
  218. data/generated/google/apis/gameservices_v1beta/representations.rb +971 -0
  219. data/generated/google/apis/gameservices_v1beta/service.rb +1469 -0
  220. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  221. data/generated/google/apis/genomics_v2alpha1/service.rb +34 -0
  222. data/generated/google/apis/gmail_v1.rb +3 -2
  223. data/generated/google/apis/gmail_v1/classes.rb +258 -199
  224. data/generated/google/apis/gmail_v1/service.rb +552 -744
  225. data/generated/google/apis/{mirror_v1.rb → healthcare_v1.rb} +10 -13
  226. data/generated/google/apis/healthcare_v1/classes.rb +2639 -0
  227. data/generated/google/apis/healthcare_v1/representations.rb +1114 -0
  228. data/generated/google/apis/healthcare_v1/service.rb +3470 -0
  229. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  230. data/generated/google/apis/healthcare_v1beta1/classes.rb +569 -23
  231. data/generated/google/apis/healthcare_v1beta1/representations.rb +236 -1
  232. data/generated/google/apis/healthcare_v1beta1/service.rb +147 -18
  233. data/generated/google/apis/homegraph_v1.rb +1 -1
  234. data/generated/google/apis/homegraph_v1/classes.rb +67 -63
  235. data/generated/google/apis/homegraph_v1/service.rb +43 -47
  236. data/generated/google/apis/iap_v1.rb +1 -1
  237. data/generated/google/apis/iap_v1/classes.rb +190 -0
  238. data/generated/google/apis/iap_v1/representations.rb +66 -0
  239. data/generated/google/apis/jobs_v2.rb +1 -1
  240. data/generated/google/apis/language_v1.rb +1 -1
  241. data/generated/google/apis/language_v1/classes.rb +6 -6
  242. data/generated/google/apis/language_v1beta1.rb +1 -1
  243. data/generated/google/apis/language_v1beta1/classes.rb +5 -5
  244. data/generated/google/apis/language_v1beta2.rb +1 -1
  245. data/generated/google/apis/language_v1beta2/classes.rb +8 -7
  246. data/generated/google/apis/logging_v2.rb +3 -3
  247. data/generated/google/apis/logging_v2/classes.rb +3 -4
  248. data/generated/google/apis/logging_v2/service.rb +2 -2
  249. data/generated/google/apis/managedidentities_v1.rb +1 -1
  250. data/generated/google/apis/managedidentities_v1/classes.rb +54 -145
  251. data/generated/google/apis/managedidentities_v1/representations.rb +17 -33
  252. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  253. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +54 -145
  254. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +17 -33
  255. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  256. data/generated/google/apis/managedidentities_v1beta1/classes.rb +54 -145
  257. data/generated/google/apis/managedidentities_v1beta1/representations.rb +17 -33
  258. data/generated/google/apis/manufacturers_v1.rb +1 -1
  259. data/generated/google/apis/manufacturers_v1/classes.rb +3 -3
  260. data/generated/google/apis/manufacturers_v1/representations.rb +1 -1
  261. data/generated/google/apis/memcache_v1beta2.rb +35 -0
  262. data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1 → memcache_v1beta2}/classes.rb +1083 -761
  263. data/generated/google/apis/memcache_v1beta2/representations.rb +557 -0
  264. data/generated/google/apis/memcache_v1beta2/service.rb +674 -0
  265. data/generated/google/apis/ml_v1.rb +1 -1
  266. data/generated/google/apis/ml_v1/classes.rb +47 -7
  267. data/generated/google/apis/ml_v1/representations.rb +4 -0
  268. data/generated/google/apis/monitoring_v1.rb +7 -8
  269. data/generated/google/apis/monitoring_v1/classes.rb +54 -15
  270. data/generated/google/apis/monitoring_v1/representations.rb +3 -0
  271. data/generated/google/apis/monitoring_v1/service.rb +7 -8
  272. data/generated/google/apis/monitoring_v3.rb +7 -8
  273. data/generated/google/apis/monitoring_v3/classes.rb +300 -27
  274. data/generated/google/apis/monitoring_v3/representations.rb +128 -0
  275. data/generated/google/apis/monitoring_v3/service.rb +52 -17
  276. data/generated/google/apis/oauth2_v2.rb +4 -4
  277. data/generated/google/apis/oauth2_v2/classes.rb +1 -13
  278. data/generated/google/apis/oauth2_v2/representations.rb +2 -4
  279. data/generated/google/apis/oauth2_v2/service.rb +10 -12
  280. data/generated/google/apis/osconfig_v1.rb +35 -0
  281. data/generated/google/apis/osconfig_v1/classes.rb +1223 -0
  282. data/generated/google/apis/osconfig_v1/representations.rb +506 -0
  283. data/generated/google/apis/osconfig_v1/service.rb +386 -0
  284. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  285. data/generated/google/apis/osconfig_v1beta/classes.rb +10 -2
  286. data/generated/google/apis/people_v1.rb +1 -1
  287. data/generated/google/apis/people_v1/classes.rb +30 -12
  288. data/generated/google/apis/people_v1/representations.rb +1 -0
  289. data/generated/google/apis/people_v1/service.rb +12 -24
  290. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  291. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +4 -3
  292. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +282 -0
  293. data/generated/google/apis/pubsub_v1.rb +1 -1
  294. data/generated/google/apis/pubsub_v1/classes.rb +9 -5
  295. data/generated/google/apis/pubsub_v1/service.rb +1 -1
  296. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  297. data/generated/google/apis/pubsub_v1beta2/classes.rb +5 -2
  298. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  299. data/generated/google/apis/recommender_v1beta1/classes.rb +1 -4
  300. data/generated/google/apis/redis_v1.rb +1 -1
  301. data/generated/google/apis/redis_v1/classes.rb +30 -7
  302. data/generated/google/apis/redis_v1/representations.rb +13 -0
  303. data/generated/google/apis/redis_v1/service.rb +36 -0
  304. data/generated/google/apis/redis_v1beta1.rb +1 -1
  305. data/generated/google/apis/redis_v1beta1/classes.rb +11 -7
  306. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  307. data/generated/google/apis/remotebuildexecution_v1/classes.rb +171 -37
  308. data/generated/google/apis/remotebuildexecution_v1/representations.rb +28 -0
  309. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  310. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +171 -37
  311. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +28 -0
  312. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  313. data/generated/google/apis/remotebuildexecution_v2/classes.rb +181 -45
  314. data/generated/google/apis/remotebuildexecution_v2/representations.rb +29 -0
  315. data/generated/google/apis/remotebuildexecution_v2/service.rb +5 -1
  316. data/generated/google/apis/run_v1.rb +1 -1
  317. data/generated/google/apis/run_v1/classes.rb +6 -13
  318. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  319. data/generated/google/apis/sasportal_v1alpha1/classes.rb +4 -3
  320. data/generated/google/apis/sasportal_v1alpha1/service.rb +282 -0
  321. data/generated/google/apis/secretmanager_v1.rb +2 -2
  322. data/generated/google/apis/secretmanager_v1/service.rb +4 -1
  323. data/generated/google/apis/secretmanager_v1beta1.rb +2 -2
  324. data/generated/google/apis/secretmanager_v1beta1/service.rb +4 -1
  325. data/generated/google/apis/securitycenter_v1.rb +4 -4
  326. data/generated/google/apis/securitycenter_v1/classes.rb +142 -114
  327. data/generated/google/apis/securitycenter_v1/service.rb +11 -3
  328. data/generated/google/apis/securitycenter_v1beta1.rb +4 -4
  329. data/generated/google/apis/securitycenter_v1beta1/classes.rb +137 -123
  330. data/generated/google/apis/securitycenter_v1beta1/service.rb +3 -3
  331. data/generated/google/apis/securitycenter_v1p1alpha1.rb +4 -4
  332. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +87 -75
  333. data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +3 -3
  334. data/generated/google/apis/securitycenter_v1p1beta1.rb +4 -4
  335. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +117 -95
  336. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +11 -3
  337. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  338. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +41 -6
  339. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
  340. data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1.rb → serviceconsumermanagement_v1beta1.rb} +8 -9
  341. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +4170 -0
  342. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +1308 -0
  343. data/generated/google/apis/serviceconsumermanagement_v1beta1/service.rb +428 -0
  344. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  345. data/generated/google/apis/servicecontrol_v1/classes.rb +2 -2
  346. data/generated/google/apis/{cloudprivatecatalog_v1beta1.rb → servicedirectory_v1beta1.rb} +9 -9
  347. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +800 -0
  348. data/generated/google/apis/servicedirectory_v1beta1/representations.rb +304 -0
  349. data/generated/google/apis/servicedirectory_v1beta1/service.rb +992 -0
  350. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  351. data/generated/google/apis/servicemanagement_v1/classes.rb +41 -6
  352. data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
  353. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  354. data/generated/google/apis/servicenetworking_v1/classes.rb +179 -6
  355. data/generated/google/apis/servicenetworking_v1/representations.rb +72 -0
  356. data/generated/google/apis/servicenetworking_v1/service.rb +53 -21
  357. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  358. data/generated/google/apis/servicenetworking_v1beta/classes.rb +149 -6
  359. data/generated/google/apis/servicenetworking_v1beta/representations.rb +57 -0
  360. data/generated/google/apis/serviceusage_v1.rb +1 -1
  361. data/generated/google/apis/serviceusage_v1/classes.rb +116 -6
  362. data/generated/google/apis/serviceusage_v1/representations.rb +45 -0
  363. data/generated/google/apis/serviceusage_v1/service.rb +42 -0
  364. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  365. data/generated/google/apis/serviceusage_v1beta1/classes.rb +97 -32
  366. data/generated/google/apis/serviceusage_v1beta1/representations.rb +31 -15
  367. data/generated/google/apis/serviceusage_v1beta1/service.rb +0 -43
  368. data/generated/google/apis/sheets_v4.rb +1 -1
  369. data/generated/google/apis/sheets_v4/classes.rb +2 -2
  370. data/generated/google/apis/spanner_v1.rb +1 -1
  371. data/generated/google/apis/spanner_v1/classes.rb +463 -1
  372. data/generated/google/apis/spanner_v1/representations.rb +178 -0
  373. data/generated/google/apis/spanner_v1/service.rb +498 -10
  374. data/generated/google/apis/speech_v1.rb +1 -1
  375. data/generated/google/apis/speech_v1/classes.rb +7 -3
  376. data/generated/google/apis/speech_v1/representations.rb +1 -0
  377. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  378. data/generated/google/apis/speech_v1p1beta1/classes.rb +7 -3
  379. data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
  380. data/generated/google/apis/speech_v2beta1.rb +1 -1
  381. data/generated/google/apis/speech_v2beta1/classes.rb +7 -0
  382. data/generated/google/apis/speech_v2beta1/representations.rb +1 -0
  383. data/generated/google/apis/sql_v1beta4.rb +1 -1
  384. data/generated/google/apis/sql_v1beta4/classes.rb +3 -3
  385. data/generated/google/apis/sql_v1beta4/service.rb +54 -384
  386. data/generated/google/apis/storage_v1.rb +1 -1
  387. data/generated/google/apis/storage_v1/classes.rb +18 -0
  388. data/generated/google/apis/storage_v1/representations.rb +2 -0
  389. data/generated/google/apis/storage_v1/service.rb +28 -3
  390. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  391. data/generated/google/apis/storagetransfer_v1/classes.rb +194 -11
  392. data/generated/google/apis/storagetransfer_v1/representations.rb +52 -0
  393. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  394. data/generated/google/apis/toolresults_v1beta3/classes.rb +217 -0
  395. data/generated/google/apis/toolresults_v1beta3/representations.rb +84 -0
  396. data/generated/google/apis/toolresults_v1beta3/service.rb +76 -29
  397. data/generated/google/apis/vault_v1.rb +1 -1
  398. data/generated/google/apis/videointelligence_v1.rb +1 -1
  399. data/generated/google/apis/videointelligence_v1/classes.rb +744 -4
  400. data/generated/google/apis/videointelligence_v1/representations.rb +356 -0
  401. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  402. data/generated/google/apis/videointelligence_v1beta2/classes.rb +744 -4
  403. data/generated/google/apis/videointelligence_v1beta2/representations.rb +356 -0
  404. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  405. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +744 -4
  406. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +356 -0
  407. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  408. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +744 -4
  409. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +356 -0
  410. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  411. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +744 -4
  412. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +356 -0
  413. data/generated/google/apis/vision_v1.rb +1 -1
  414. data/generated/google/apis/vision_v1/classes.rb +1 -1
  415. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  416. data/generated/google/apis/vision_v1p1beta1/classes.rb +1 -1
  417. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  418. data/generated/google/apis/vision_v1p2beta1/classes.rb +1 -1
  419. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  420. data/generated/google/apis/youtube_v3.rb +4 -1
  421. data/generated/google/apis/youtube_v3/classes.rb +7 -0
  422. data/generated/google/apis/youtube_v3/representations.rb +1 -0
  423. data/lib/google/apis/generator/annotator.rb +1 -1
  424. data/lib/google/apis/version.rb +1 -1
  425. metadata +32 -23
  426. data/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb +0 -358
  427. data/generated/google/apis/cloudprivatecatalog_v1beta1/representations.rb +0 -123
  428. data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +0 -486
  429. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb +0 -399
  430. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +0 -1081
  431. data/generated/google/apis/mirror_v1/classes.rb +0 -1072
  432. data/generated/google/apis/mirror_v1/representations.rb +0 -390
  433. data/generated/google/apis/mirror_v1/service.rb +0 -928
  434. data/generated/google/apis/oauth2_v1.rb +0 -40
  435. data/generated/google/apis/oauth2_v1/classes.rb +0 -197
  436. data/generated/google/apis/oauth2_v1/representations.rb +0 -73
  437. data/generated/google/apis/oauth2_v1/service.rb +0 -160
  438. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +0 -845
  439. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +0 -350
  440. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +0 -933
@@ -1,390 +0,0 @@
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 MirrorV1
24
-
25
- class Account
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class Attachment
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class ListAttachmentsResponse
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class AuthToken
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class Command
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
- class Contact
56
- class Representation < Google::Apis::Core::JsonRepresentation; end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
- class ListContactsResponse
62
- class Representation < Google::Apis::Core::JsonRepresentation; end
63
-
64
- include Google::Apis::Core::JsonObjectSupport
65
- end
66
-
67
- class Location
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- include Google::Apis::Core::JsonObjectSupport
71
- end
72
-
73
- class ListLocationsResponse
74
- class Representation < Google::Apis::Core::JsonRepresentation; end
75
-
76
- include Google::Apis::Core::JsonObjectSupport
77
- end
78
-
79
- class MenuItem
80
- class Representation < Google::Apis::Core::JsonRepresentation; end
81
-
82
- include Google::Apis::Core::JsonObjectSupport
83
- end
84
-
85
- class MenuValue
86
- class Representation < Google::Apis::Core::JsonRepresentation; end
87
-
88
- include Google::Apis::Core::JsonObjectSupport
89
- end
90
-
91
- class Notification
92
- class Representation < Google::Apis::Core::JsonRepresentation; end
93
-
94
- include Google::Apis::Core::JsonObjectSupport
95
- end
96
-
97
- class NotificationConfig
98
- class Representation < Google::Apis::Core::JsonRepresentation; end
99
-
100
- include Google::Apis::Core::JsonObjectSupport
101
- end
102
-
103
- class Setting
104
- class Representation < Google::Apis::Core::JsonRepresentation; end
105
-
106
- include Google::Apis::Core::JsonObjectSupport
107
- end
108
-
109
- class Subscription
110
- class Representation < Google::Apis::Core::JsonRepresentation; end
111
-
112
- include Google::Apis::Core::JsonObjectSupport
113
- end
114
-
115
- class ListSubscriptionsResponse
116
- class Representation < Google::Apis::Core::JsonRepresentation; end
117
-
118
- include Google::Apis::Core::JsonObjectSupport
119
- end
120
-
121
- class TimelineItem
122
- class Representation < Google::Apis::Core::JsonRepresentation; end
123
-
124
- include Google::Apis::Core::JsonObjectSupport
125
- end
126
-
127
- class ListTimelineResponse
128
- class Representation < Google::Apis::Core::JsonRepresentation; end
129
-
130
- include Google::Apis::Core::JsonObjectSupport
131
- end
132
-
133
- class UserAction
134
- class Representation < Google::Apis::Core::JsonRepresentation; end
135
-
136
- include Google::Apis::Core::JsonObjectSupport
137
- end
138
-
139
- class UserData
140
- class Representation < Google::Apis::Core::JsonRepresentation; end
141
-
142
- include Google::Apis::Core::JsonObjectSupport
143
- end
144
-
145
- class Account
146
- # @private
147
- class Representation < Google::Apis::Core::JsonRepresentation
148
- collection :auth_tokens, as: 'authTokens', class: Google::Apis::MirrorV1::AuthToken, decorator: Google::Apis::MirrorV1::AuthToken::Representation
149
-
150
- collection :features, as: 'features'
151
- property :password, as: 'password'
152
- collection :user_data, as: 'userData', class: Google::Apis::MirrorV1::UserData, decorator: Google::Apis::MirrorV1::UserData::Representation
153
-
154
- end
155
- end
156
-
157
- class Attachment
158
- # @private
159
- class Representation < Google::Apis::Core::JsonRepresentation
160
- property :content_type, as: 'contentType'
161
- property :content_url, as: 'contentUrl'
162
- property :id, as: 'id'
163
- property :is_processing_content, as: 'isProcessingContent'
164
- end
165
- end
166
-
167
- class ListAttachmentsResponse
168
- # @private
169
- class Representation < Google::Apis::Core::JsonRepresentation
170
- collection :items, as: 'items', class: Google::Apis::MirrorV1::Attachment, decorator: Google::Apis::MirrorV1::Attachment::Representation
171
-
172
- property :kind, as: 'kind'
173
- end
174
- end
175
-
176
- class AuthToken
177
- # @private
178
- class Representation < Google::Apis::Core::JsonRepresentation
179
- property :auth_token, as: 'authToken'
180
- property :type, as: 'type'
181
- end
182
- end
183
-
184
- class Command
185
- # @private
186
- class Representation < Google::Apis::Core::JsonRepresentation
187
- property :type, as: 'type'
188
- end
189
- end
190
-
191
- class Contact
192
- # @private
193
- class Representation < Google::Apis::Core::JsonRepresentation
194
- collection :accept_commands, as: 'acceptCommands', class: Google::Apis::MirrorV1::Command, decorator: Google::Apis::MirrorV1::Command::Representation
195
-
196
- collection :accept_types, as: 'acceptTypes'
197
- property :display_name, as: 'displayName'
198
- property :id, as: 'id'
199
- collection :image_urls, as: 'imageUrls'
200
- property :kind, as: 'kind'
201
- property :phone_number, as: 'phoneNumber'
202
- property :priority, as: 'priority'
203
- collection :sharing_features, as: 'sharingFeatures'
204
- property :source, as: 'source'
205
- property :speakable_name, as: 'speakableName'
206
- property :type, as: 'type'
207
- end
208
- end
209
-
210
- class ListContactsResponse
211
- # @private
212
- class Representation < Google::Apis::Core::JsonRepresentation
213
- collection :items, as: 'items', class: Google::Apis::MirrorV1::Contact, decorator: Google::Apis::MirrorV1::Contact::Representation
214
-
215
- property :kind, as: 'kind'
216
- end
217
- end
218
-
219
- class Location
220
- # @private
221
- class Representation < Google::Apis::Core::JsonRepresentation
222
- property :accuracy, as: 'accuracy'
223
- property :address, as: 'address'
224
- property :display_name, as: 'displayName'
225
- property :id, as: 'id'
226
- property :kind, as: 'kind'
227
- property :latitude, as: 'latitude'
228
- property :longitude, as: 'longitude'
229
- property :timestamp, as: 'timestamp', type: DateTime
230
-
231
- end
232
- end
233
-
234
- class ListLocationsResponse
235
- # @private
236
- class Representation < Google::Apis::Core::JsonRepresentation
237
- collection :items, as: 'items', class: Google::Apis::MirrorV1::Location, decorator: Google::Apis::MirrorV1::Location::Representation
238
-
239
- property :kind, as: 'kind'
240
- end
241
- end
242
-
243
- class MenuItem
244
- # @private
245
- class Representation < Google::Apis::Core::JsonRepresentation
246
- property :action, as: 'action'
247
- property :contextual_command, as: 'contextual_command'
248
- property :id, as: 'id'
249
- property :payload, as: 'payload'
250
- property :remove_when_selected, as: 'removeWhenSelected'
251
- collection :values, as: 'values', class: Google::Apis::MirrorV1::MenuValue, decorator: Google::Apis::MirrorV1::MenuValue::Representation
252
-
253
- end
254
- end
255
-
256
- class MenuValue
257
- # @private
258
- class Representation < Google::Apis::Core::JsonRepresentation
259
- property :display_name, as: 'displayName'
260
- property :icon_url, as: 'iconUrl'
261
- property :state, as: 'state'
262
- end
263
- end
264
-
265
- class Notification
266
- # @private
267
- class Representation < Google::Apis::Core::JsonRepresentation
268
- property :collection, as: 'collection'
269
- property :item_id, as: 'itemId'
270
- property :operation, as: 'operation'
271
- collection :user_actions, as: 'userActions', class: Google::Apis::MirrorV1::UserAction, decorator: Google::Apis::MirrorV1::UserAction::Representation
272
-
273
- property :user_token, as: 'userToken'
274
- property :verify_token, as: 'verifyToken'
275
- end
276
- end
277
-
278
- class NotificationConfig
279
- # @private
280
- class Representation < Google::Apis::Core::JsonRepresentation
281
- property :delivery_time, as: 'deliveryTime', type: DateTime
282
-
283
- property :level, as: 'level'
284
- end
285
- end
286
-
287
- class Setting
288
- # @private
289
- class Representation < Google::Apis::Core::JsonRepresentation
290
- property :id, as: 'id'
291
- property :kind, as: 'kind'
292
- property :value, as: 'value'
293
- end
294
- end
295
-
296
- class Subscription
297
- # @private
298
- class Representation < Google::Apis::Core::JsonRepresentation
299
- property :callback_url, as: 'callbackUrl'
300
- property :collection, as: 'collection'
301
- property :id, as: 'id'
302
- property :kind, as: 'kind'
303
- property :notification, as: 'notification', class: Google::Apis::MirrorV1::Notification, decorator: Google::Apis::MirrorV1::Notification::Representation
304
-
305
- collection :operation, as: 'operation'
306
- property :updated, as: 'updated', type: DateTime
307
-
308
- property :user_token, as: 'userToken'
309
- property :verify_token, as: 'verifyToken'
310
- end
311
- end
312
-
313
- class ListSubscriptionsResponse
314
- # @private
315
- class Representation < Google::Apis::Core::JsonRepresentation
316
- collection :items, as: 'items', class: Google::Apis::MirrorV1::Subscription, decorator: Google::Apis::MirrorV1::Subscription::Representation
317
-
318
- property :kind, as: 'kind'
319
- end
320
- end
321
-
322
- class TimelineItem
323
- # @private
324
- class Representation < Google::Apis::Core::JsonRepresentation
325
- collection :attachments, as: 'attachments', class: Google::Apis::MirrorV1::Attachment, decorator: Google::Apis::MirrorV1::Attachment::Representation
326
-
327
- property :bundle_id, as: 'bundleId'
328
- property :canonical_url, as: 'canonicalUrl'
329
- property :created, as: 'created', type: DateTime
330
-
331
- property :creator, as: 'creator', class: Google::Apis::MirrorV1::Contact, decorator: Google::Apis::MirrorV1::Contact::Representation
332
-
333
- property :display_time, as: 'displayTime', type: DateTime
334
-
335
- property :etag, as: 'etag'
336
- property :html, as: 'html'
337
- property :id, as: 'id'
338
- property :in_reply_to, as: 'inReplyTo'
339
- property :is_bundle_cover, as: 'isBundleCover'
340
- property :is_deleted, as: 'isDeleted'
341
- property :is_pinned, as: 'isPinned'
342
- property :kind, as: 'kind'
343
- property :location, as: 'location', class: Google::Apis::MirrorV1::Location, decorator: Google::Apis::MirrorV1::Location::Representation
344
-
345
- collection :menu_items, as: 'menuItems', class: Google::Apis::MirrorV1::MenuItem, decorator: Google::Apis::MirrorV1::MenuItem::Representation
346
-
347
- property :notification, as: 'notification', class: Google::Apis::MirrorV1::NotificationConfig, decorator: Google::Apis::MirrorV1::NotificationConfig::Representation
348
-
349
- property :pin_score, as: 'pinScore'
350
- collection :recipients, as: 'recipients', class: Google::Apis::MirrorV1::Contact, decorator: Google::Apis::MirrorV1::Contact::Representation
351
-
352
- property :self_link, as: 'selfLink'
353
- property :source_item_id, as: 'sourceItemId'
354
- property :speakable_text, as: 'speakableText'
355
- property :speakable_type, as: 'speakableType'
356
- property :text, as: 'text'
357
- property :title, as: 'title'
358
- property :updated, as: 'updated', type: DateTime
359
-
360
- end
361
- end
362
-
363
- class ListTimelineResponse
364
- # @private
365
- class Representation < Google::Apis::Core::JsonRepresentation
366
- collection :items, as: 'items', class: Google::Apis::MirrorV1::TimelineItem, decorator: Google::Apis::MirrorV1::TimelineItem::Representation
367
-
368
- property :kind, as: 'kind'
369
- property :next_page_token, as: 'nextPageToken'
370
- end
371
- end
372
-
373
- class UserAction
374
- # @private
375
- class Representation < Google::Apis::Core::JsonRepresentation
376
- property :payload, as: 'payload'
377
- property :type, as: 'type'
378
- end
379
- end
380
-
381
- class UserData
382
- # @private
383
- class Representation < Google::Apis::Core::JsonRepresentation
384
- property :key, as: 'key'
385
- property :value, as: 'value'
386
- end
387
- end
388
- end
389
- end
390
- end
@@ -1,928 +0,0 @@
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 MirrorV1
23
- # Google Mirror API
24
- #
25
- # Interacts with Glass users via the timeline.
26
- #
27
- # @example
28
- # require 'google/apis/mirror_v1'
29
- #
30
- # Mirror = Google::Apis::MirrorV1 # Alias the module
31
- # service = Mirror::MirrorService.new
32
- #
33
- # @see https://developers.google.com/glass
34
- class MirrorService < 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
- # An opaque string that represents a user for quota purposes. Must not exceed 40
42
- # characters.
43
- attr_accessor :quota_user
44
-
45
- # @return [String]
46
- # Deprecated. Please use quotaUser instead.
47
- attr_accessor :user_ip
48
-
49
- def initialize
50
- super('https://www.googleapis.com/', 'mirror/v1/')
51
- @batch_path = 'batch/mirror/v1'
52
- end
53
-
54
- # Inserts a new account for a user
55
- # @param [String] user_token
56
- # The ID for the user.
57
- # @param [String] account_type
58
- # Account type to be passed to Android Account Manager.
59
- # @param [String] account_name
60
- # The name of the account to be passed to the Android Account Manager.
61
- # @param [Google::Apis::MirrorV1::Account] account_object
62
- # @param [String] fields
63
- # Selector specifying which fields to include in a partial response.
64
- # @param [String] quota_user
65
- # An opaque string that represents a user for quota purposes. Must not exceed 40
66
- # characters.
67
- # @param [String] user_ip
68
- # Deprecated. Please use quotaUser instead.
69
- # @param [Google::Apis::RequestOptions] options
70
- # Request-specific options
71
- #
72
- # @yield [result, err] Result & error if block supplied
73
- # @yieldparam result [Google::Apis::MirrorV1::Account] parsed result object
74
- # @yieldparam err [StandardError] error object if request failed
75
- #
76
- # @return [Google::Apis::MirrorV1::Account]
77
- #
78
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
- # @raise [Google::Apis::AuthorizationError] Authorization is required
81
- def insert_account(user_token, account_type, account_name, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
82
- command = make_simple_command(:post, 'accounts/{userToken}/{accountType}/{accountName}', options)
83
- command.request_representation = Google::Apis::MirrorV1::Account::Representation
84
- command.request_object = account_object
85
- command.response_representation = Google::Apis::MirrorV1::Account::Representation
86
- command.response_class = Google::Apis::MirrorV1::Account
87
- command.params['userToken'] = user_token unless user_token.nil?
88
- command.params['accountType'] = account_type unless account_type.nil?
89
- command.params['accountName'] = account_name unless account_name.nil?
90
- command.query['fields'] = fields unless fields.nil?
91
- command.query['quotaUser'] = quota_user unless quota_user.nil?
92
- command.query['userIp'] = user_ip unless user_ip.nil?
93
- execute_or_queue_command(command, &block)
94
- end
95
-
96
- # Deletes a contact.
97
- # @param [String] id
98
- # The ID of the contact.
99
- # @param [String] fields
100
- # Selector specifying which fields to include in a partial response.
101
- # @param [String] quota_user
102
- # An opaque string that represents a user for quota purposes. Must not exceed 40
103
- # characters.
104
- # @param [String] user_ip
105
- # Deprecated. Please use quotaUser instead.
106
- # @param [Google::Apis::RequestOptions] options
107
- # Request-specific options
108
- #
109
- # @yield [result, err] Result & error if block supplied
110
- # @yieldparam result [NilClass] No result returned for this method
111
- # @yieldparam err [StandardError] error object if request failed
112
- #
113
- # @return [void]
114
- #
115
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
116
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
117
- # @raise [Google::Apis::AuthorizationError] Authorization is required
118
- def delete_contact(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
119
- command = make_simple_command(:delete, 'contacts/{id}', options)
120
- command.params['id'] = id unless id.nil?
121
- command.query['fields'] = fields unless fields.nil?
122
- command.query['quotaUser'] = quota_user unless quota_user.nil?
123
- command.query['userIp'] = user_ip unless user_ip.nil?
124
- execute_or_queue_command(command, &block)
125
- end
126
-
127
- # Gets a single contact by ID.
128
- # @param [String] id
129
- # The ID of the contact.
130
- # @param [String] fields
131
- # Selector specifying which fields to include in a partial response.
132
- # @param [String] quota_user
133
- # An opaque string that represents a user for quota purposes. Must not exceed 40
134
- # characters.
135
- # @param [String] user_ip
136
- # Deprecated. Please use quotaUser instead.
137
- # @param [Google::Apis::RequestOptions] options
138
- # Request-specific options
139
- #
140
- # @yield [result, err] Result & error if block supplied
141
- # @yieldparam result [Google::Apis::MirrorV1::Contact] parsed result object
142
- # @yieldparam err [StandardError] error object if request failed
143
- #
144
- # @return [Google::Apis::MirrorV1::Contact]
145
- #
146
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
147
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
148
- # @raise [Google::Apis::AuthorizationError] Authorization is required
149
- def get_contact(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
150
- command = make_simple_command(:get, 'contacts/{id}', options)
151
- command.response_representation = Google::Apis::MirrorV1::Contact::Representation
152
- command.response_class = Google::Apis::MirrorV1::Contact
153
- command.params['id'] = id unless id.nil?
154
- command.query['fields'] = fields unless fields.nil?
155
- command.query['quotaUser'] = quota_user unless quota_user.nil?
156
- command.query['userIp'] = user_ip unless user_ip.nil?
157
- execute_or_queue_command(command, &block)
158
- end
159
-
160
- # Inserts a new contact.
161
- # @param [Google::Apis::MirrorV1::Contact] contact_object
162
- # @param [String] fields
163
- # Selector specifying which fields to include in a partial response.
164
- # @param [String] quota_user
165
- # An opaque string that represents a user for quota purposes. Must not exceed 40
166
- # characters.
167
- # @param [String] user_ip
168
- # Deprecated. Please use quotaUser instead.
169
- # @param [Google::Apis::RequestOptions] options
170
- # Request-specific options
171
- #
172
- # @yield [result, err] Result & error if block supplied
173
- # @yieldparam result [Google::Apis::MirrorV1::Contact] parsed result object
174
- # @yieldparam err [StandardError] error object if request failed
175
- #
176
- # @return [Google::Apis::MirrorV1::Contact]
177
- #
178
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180
- # @raise [Google::Apis::AuthorizationError] Authorization is required
181
- def insert_contact(contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
182
- command = make_simple_command(:post, 'contacts', options)
183
- command.request_representation = Google::Apis::MirrorV1::Contact::Representation
184
- command.request_object = contact_object
185
- command.response_representation = Google::Apis::MirrorV1::Contact::Representation
186
- command.response_class = Google::Apis::MirrorV1::Contact
187
- command.query['fields'] = fields unless fields.nil?
188
- command.query['quotaUser'] = quota_user unless quota_user.nil?
189
- command.query['userIp'] = user_ip unless user_ip.nil?
190
- execute_or_queue_command(command, &block)
191
- end
192
-
193
- # Retrieves a list of contacts for the authenticated user.
194
- # @param [String] fields
195
- # Selector specifying which fields to include in a partial response.
196
- # @param [String] quota_user
197
- # An opaque string that represents a user for quota purposes. Must not exceed 40
198
- # characters.
199
- # @param [String] user_ip
200
- # Deprecated. Please use quotaUser instead.
201
- # @param [Google::Apis::RequestOptions] options
202
- # Request-specific options
203
- #
204
- # @yield [result, err] Result & error if block supplied
205
- # @yieldparam result [Google::Apis::MirrorV1::ListContactsResponse] parsed result object
206
- # @yieldparam err [StandardError] error object if request failed
207
- #
208
- # @return [Google::Apis::MirrorV1::ListContactsResponse]
209
- #
210
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
211
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
212
- # @raise [Google::Apis::AuthorizationError] Authorization is required
213
- def list_contacts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
214
- command = make_simple_command(:get, 'contacts', options)
215
- command.response_representation = Google::Apis::MirrorV1::ListContactsResponse::Representation
216
- command.response_class = Google::Apis::MirrorV1::ListContactsResponse
217
- command.query['fields'] = fields unless fields.nil?
218
- command.query['quotaUser'] = quota_user unless quota_user.nil?
219
- command.query['userIp'] = user_ip unless user_ip.nil?
220
- execute_or_queue_command(command, &block)
221
- end
222
-
223
- # Updates a contact in place. This method supports patch semantics.
224
- # @param [String] id
225
- # The ID of the contact.
226
- # @param [Google::Apis::MirrorV1::Contact] contact_object
227
- # @param [String] fields
228
- # Selector specifying which fields to include in a partial response.
229
- # @param [String] quota_user
230
- # An opaque string that represents a user for quota purposes. Must not exceed 40
231
- # characters.
232
- # @param [String] user_ip
233
- # Deprecated. Please use quotaUser instead.
234
- # @param [Google::Apis::RequestOptions] options
235
- # Request-specific options
236
- #
237
- # @yield [result, err] Result & error if block supplied
238
- # @yieldparam result [Google::Apis::MirrorV1::Contact] parsed result object
239
- # @yieldparam err [StandardError] error object if request failed
240
- #
241
- # @return [Google::Apis::MirrorV1::Contact]
242
- #
243
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
244
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
245
- # @raise [Google::Apis::AuthorizationError] Authorization is required
246
- def patch_contact(id, contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
247
- command = make_simple_command(:patch, 'contacts/{id}', options)
248
- command.request_representation = Google::Apis::MirrorV1::Contact::Representation
249
- command.request_object = contact_object
250
- command.response_representation = Google::Apis::MirrorV1::Contact::Representation
251
- command.response_class = Google::Apis::MirrorV1::Contact
252
- command.params['id'] = id unless id.nil?
253
- command.query['fields'] = fields unless fields.nil?
254
- command.query['quotaUser'] = quota_user unless quota_user.nil?
255
- command.query['userIp'] = user_ip unless user_ip.nil?
256
- execute_or_queue_command(command, &block)
257
- end
258
-
259
- # Updates a contact in place.
260
- # @param [String] id
261
- # The ID of the contact.
262
- # @param [Google::Apis::MirrorV1::Contact] contact_object
263
- # @param [String] fields
264
- # Selector specifying which fields to include in a partial response.
265
- # @param [String] quota_user
266
- # An opaque string that represents a user for quota purposes. Must not exceed 40
267
- # characters.
268
- # @param [String] user_ip
269
- # Deprecated. Please use quotaUser instead.
270
- # @param [Google::Apis::RequestOptions] options
271
- # Request-specific options
272
- #
273
- # @yield [result, err] Result & error if block supplied
274
- # @yieldparam result [Google::Apis::MirrorV1::Contact] parsed result object
275
- # @yieldparam err [StandardError] error object if request failed
276
- #
277
- # @return [Google::Apis::MirrorV1::Contact]
278
- #
279
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
280
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
281
- # @raise [Google::Apis::AuthorizationError] Authorization is required
282
- def update_contact(id, contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
283
- command = make_simple_command(:put, 'contacts/{id}', options)
284
- command.request_representation = Google::Apis::MirrorV1::Contact::Representation
285
- command.request_object = contact_object
286
- command.response_representation = Google::Apis::MirrorV1::Contact::Representation
287
- command.response_class = Google::Apis::MirrorV1::Contact
288
- command.params['id'] = id unless id.nil?
289
- command.query['fields'] = fields unless fields.nil?
290
- command.query['quotaUser'] = quota_user unless quota_user.nil?
291
- command.query['userIp'] = user_ip unless user_ip.nil?
292
- execute_or_queue_command(command, &block)
293
- end
294
-
295
- # Gets a single location by ID.
296
- # @param [String] id
297
- # The ID of the location or latest for the last known location.
298
- # @param [String] fields
299
- # Selector specifying which fields to include in a partial response.
300
- # @param [String] quota_user
301
- # An opaque string that represents a user for quota purposes. Must not exceed 40
302
- # characters.
303
- # @param [String] user_ip
304
- # Deprecated. Please use quotaUser instead.
305
- # @param [Google::Apis::RequestOptions] options
306
- # Request-specific options
307
- #
308
- # @yield [result, err] Result & error if block supplied
309
- # @yieldparam result [Google::Apis::MirrorV1::Location] parsed result object
310
- # @yieldparam err [StandardError] error object if request failed
311
- #
312
- # @return [Google::Apis::MirrorV1::Location]
313
- #
314
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
315
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
316
- # @raise [Google::Apis::AuthorizationError] Authorization is required
317
- def get_location(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
318
- command = make_simple_command(:get, 'locations/{id}', options)
319
- command.response_representation = Google::Apis::MirrorV1::Location::Representation
320
- command.response_class = Google::Apis::MirrorV1::Location
321
- command.params['id'] = id unless id.nil?
322
- command.query['fields'] = fields unless fields.nil?
323
- command.query['quotaUser'] = quota_user unless quota_user.nil?
324
- command.query['userIp'] = user_ip unless user_ip.nil?
325
- execute_or_queue_command(command, &block)
326
- end
327
-
328
- # Retrieves a list of locations for the user.
329
- # @param [String] fields
330
- # Selector specifying which fields to include in a partial response.
331
- # @param [String] quota_user
332
- # An opaque string that represents a user for quota purposes. Must not exceed 40
333
- # characters.
334
- # @param [String] user_ip
335
- # Deprecated. Please use quotaUser instead.
336
- # @param [Google::Apis::RequestOptions] options
337
- # Request-specific options
338
- #
339
- # @yield [result, err] Result & error if block supplied
340
- # @yieldparam result [Google::Apis::MirrorV1::ListLocationsResponse] parsed result object
341
- # @yieldparam err [StandardError] error object if request failed
342
- #
343
- # @return [Google::Apis::MirrorV1::ListLocationsResponse]
344
- #
345
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
346
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
347
- # @raise [Google::Apis::AuthorizationError] Authorization is required
348
- def list_locations(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
349
- command = make_simple_command(:get, 'locations', options)
350
- command.response_representation = Google::Apis::MirrorV1::ListLocationsResponse::Representation
351
- command.response_class = Google::Apis::MirrorV1::ListLocationsResponse
352
- command.query['fields'] = fields unless fields.nil?
353
- command.query['quotaUser'] = quota_user unless quota_user.nil?
354
- command.query['userIp'] = user_ip unless user_ip.nil?
355
- execute_or_queue_command(command, &block)
356
- end
357
-
358
- # Gets a single setting by ID.
359
- # @param [String] id
360
- # The ID of the setting. The following IDs are valid:
361
- # - locale - The key to the user’s language/locale (BCP 47 identifier) that
362
- # Glassware should use to render localized content.
363
- # - timezone - The key to the user’s current time zone region as defined in the
364
- # tz database. Example: America/Los_Angeles.
365
- # @param [String] fields
366
- # Selector specifying which fields to include in a partial response.
367
- # @param [String] quota_user
368
- # An opaque string that represents a user for quota purposes. Must not exceed 40
369
- # characters.
370
- # @param [String] user_ip
371
- # Deprecated. Please use quotaUser instead.
372
- # @param [Google::Apis::RequestOptions] options
373
- # Request-specific options
374
- #
375
- # @yield [result, err] Result & error if block supplied
376
- # @yieldparam result [Google::Apis::MirrorV1::Setting] parsed result object
377
- # @yieldparam err [StandardError] error object if request failed
378
- #
379
- # @return [Google::Apis::MirrorV1::Setting]
380
- #
381
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
382
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
383
- # @raise [Google::Apis::AuthorizationError] Authorization is required
384
- def get_setting(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
385
- command = make_simple_command(:get, 'settings/{id}', options)
386
- command.response_representation = Google::Apis::MirrorV1::Setting::Representation
387
- command.response_class = Google::Apis::MirrorV1::Setting
388
- command.params['id'] = id unless id.nil?
389
- command.query['fields'] = fields unless fields.nil?
390
- command.query['quotaUser'] = quota_user unless quota_user.nil?
391
- command.query['userIp'] = user_ip unless user_ip.nil?
392
- execute_or_queue_command(command, &block)
393
- end
394
-
395
- # Deletes a subscription.
396
- # @param [String] id
397
- # The ID of the subscription.
398
- # @param [String] fields
399
- # Selector specifying which fields to include in a partial response.
400
- # @param [String] quota_user
401
- # An opaque string that represents a user for quota purposes. Must not exceed 40
402
- # characters.
403
- # @param [String] user_ip
404
- # Deprecated. Please use quotaUser instead.
405
- # @param [Google::Apis::RequestOptions] options
406
- # Request-specific options
407
- #
408
- # @yield [result, err] Result & error if block supplied
409
- # @yieldparam result [NilClass] No result returned for this method
410
- # @yieldparam err [StandardError] error object if request failed
411
- #
412
- # @return [void]
413
- #
414
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
415
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
416
- # @raise [Google::Apis::AuthorizationError] Authorization is required
417
- def delete_subscription(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
418
- command = make_simple_command(:delete, 'subscriptions/{id}', options)
419
- command.params['id'] = id unless id.nil?
420
- command.query['fields'] = fields unless fields.nil?
421
- command.query['quotaUser'] = quota_user unless quota_user.nil?
422
- command.query['userIp'] = user_ip unless user_ip.nil?
423
- execute_or_queue_command(command, &block)
424
- end
425
-
426
- # Creates a new subscription.
427
- # @param [Google::Apis::MirrorV1::Subscription] subscription_object
428
- # @param [String] fields
429
- # Selector specifying which fields to include in a partial response.
430
- # @param [String] quota_user
431
- # An opaque string that represents a user for quota purposes. Must not exceed 40
432
- # characters.
433
- # @param [String] user_ip
434
- # Deprecated. Please use quotaUser instead.
435
- # @param [Google::Apis::RequestOptions] options
436
- # Request-specific options
437
- #
438
- # @yield [result, err] Result & error if block supplied
439
- # @yieldparam result [Google::Apis::MirrorV1::Subscription] parsed result object
440
- # @yieldparam err [StandardError] error object if request failed
441
- #
442
- # @return [Google::Apis::MirrorV1::Subscription]
443
- #
444
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
445
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
446
- # @raise [Google::Apis::AuthorizationError] Authorization is required
447
- def insert_subscription(subscription_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
448
- command = make_simple_command(:post, 'subscriptions', options)
449
- command.request_representation = Google::Apis::MirrorV1::Subscription::Representation
450
- command.request_object = subscription_object
451
- command.response_representation = Google::Apis::MirrorV1::Subscription::Representation
452
- command.response_class = Google::Apis::MirrorV1::Subscription
453
- command.query['fields'] = fields unless fields.nil?
454
- command.query['quotaUser'] = quota_user unless quota_user.nil?
455
- command.query['userIp'] = user_ip unless user_ip.nil?
456
- execute_or_queue_command(command, &block)
457
- end
458
-
459
- # Retrieves a list of subscriptions for the authenticated user and service.
460
- # @param [String] fields
461
- # Selector specifying which fields to include in a partial response.
462
- # @param [String] quota_user
463
- # An opaque string that represents a user for quota purposes. Must not exceed 40
464
- # characters.
465
- # @param [String] user_ip
466
- # Deprecated. Please use quotaUser instead.
467
- # @param [Google::Apis::RequestOptions] options
468
- # Request-specific options
469
- #
470
- # @yield [result, err] Result & error if block supplied
471
- # @yieldparam result [Google::Apis::MirrorV1::ListSubscriptionsResponse] parsed result object
472
- # @yieldparam err [StandardError] error object if request failed
473
- #
474
- # @return [Google::Apis::MirrorV1::ListSubscriptionsResponse]
475
- #
476
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
477
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
478
- # @raise [Google::Apis::AuthorizationError] Authorization is required
479
- def list_subscriptions(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
480
- command = make_simple_command(:get, 'subscriptions', options)
481
- command.response_representation = Google::Apis::MirrorV1::ListSubscriptionsResponse::Representation
482
- command.response_class = Google::Apis::MirrorV1::ListSubscriptionsResponse
483
- command.query['fields'] = fields unless fields.nil?
484
- command.query['quotaUser'] = quota_user unless quota_user.nil?
485
- command.query['userIp'] = user_ip unless user_ip.nil?
486
- execute_or_queue_command(command, &block)
487
- end
488
-
489
- # Updates an existing subscription in place.
490
- # @param [String] id
491
- # The ID of the subscription.
492
- # @param [Google::Apis::MirrorV1::Subscription] subscription_object
493
- # @param [String] fields
494
- # Selector specifying which fields to include in a partial response.
495
- # @param [String] quota_user
496
- # An opaque string that represents a user for quota purposes. Must not exceed 40
497
- # characters.
498
- # @param [String] user_ip
499
- # Deprecated. Please use quotaUser instead.
500
- # @param [Google::Apis::RequestOptions] options
501
- # Request-specific options
502
- #
503
- # @yield [result, err] Result & error if block supplied
504
- # @yieldparam result [Google::Apis::MirrorV1::Subscription] parsed result object
505
- # @yieldparam err [StandardError] error object if request failed
506
- #
507
- # @return [Google::Apis::MirrorV1::Subscription]
508
- #
509
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
510
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
511
- # @raise [Google::Apis::AuthorizationError] Authorization is required
512
- def update_subscription(id, subscription_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
513
- command = make_simple_command(:put, 'subscriptions/{id}', options)
514
- command.request_representation = Google::Apis::MirrorV1::Subscription::Representation
515
- command.request_object = subscription_object
516
- command.response_representation = Google::Apis::MirrorV1::Subscription::Representation
517
- command.response_class = Google::Apis::MirrorV1::Subscription
518
- command.params['id'] = id unless id.nil?
519
- command.query['fields'] = fields unless fields.nil?
520
- command.query['quotaUser'] = quota_user unless quota_user.nil?
521
- command.query['userIp'] = user_ip unless user_ip.nil?
522
- execute_or_queue_command(command, &block)
523
- end
524
-
525
- # Deletes a timeline item.
526
- # @param [String] id
527
- # The ID of the timeline item.
528
- # @param [String] fields
529
- # Selector specifying which fields to include in a partial response.
530
- # @param [String] quota_user
531
- # An opaque string that represents a user for quota purposes. Must not exceed 40
532
- # characters.
533
- # @param [String] user_ip
534
- # Deprecated. Please use quotaUser instead.
535
- # @param [Google::Apis::RequestOptions] options
536
- # Request-specific options
537
- #
538
- # @yield [result, err] Result & error if block supplied
539
- # @yieldparam result [NilClass] No result returned for this method
540
- # @yieldparam err [StandardError] error object if request failed
541
- #
542
- # @return [void]
543
- #
544
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
545
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
546
- # @raise [Google::Apis::AuthorizationError] Authorization is required
547
- def delete_timeline(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
548
- command = make_simple_command(:delete, 'timeline/{id}', options)
549
- command.params['id'] = id unless id.nil?
550
- command.query['fields'] = fields unless fields.nil?
551
- command.query['quotaUser'] = quota_user unless quota_user.nil?
552
- command.query['userIp'] = user_ip unless user_ip.nil?
553
- execute_or_queue_command(command, &block)
554
- end
555
-
556
- # Gets a single timeline item by ID.
557
- # @param [String] id
558
- # The ID of the timeline item.
559
- # @param [String] fields
560
- # Selector specifying which fields to include in a partial response.
561
- # @param [String] quota_user
562
- # An opaque string that represents a user for quota purposes. Must not exceed 40
563
- # characters.
564
- # @param [String] user_ip
565
- # Deprecated. Please use quotaUser instead.
566
- # @param [Google::Apis::RequestOptions] options
567
- # Request-specific options
568
- #
569
- # @yield [result, err] Result & error if block supplied
570
- # @yieldparam result [Google::Apis::MirrorV1::TimelineItem] parsed result object
571
- # @yieldparam err [StandardError] error object if request failed
572
- #
573
- # @return [Google::Apis::MirrorV1::TimelineItem]
574
- #
575
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
576
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
577
- # @raise [Google::Apis::AuthorizationError] Authorization is required
578
- def get_timeline(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
579
- command = make_simple_command(:get, 'timeline/{id}', options)
580
- command.response_representation = Google::Apis::MirrorV1::TimelineItem::Representation
581
- command.response_class = Google::Apis::MirrorV1::TimelineItem
582
- command.params['id'] = id unless id.nil?
583
- command.query['fields'] = fields unless fields.nil?
584
- command.query['quotaUser'] = quota_user unless quota_user.nil?
585
- command.query['userIp'] = user_ip unless user_ip.nil?
586
- execute_or_queue_command(command, &block)
587
- end
588
-
589
- # Inserts a new item into the timeline.
590
- # @param [Google::Apis::MirrorV1::TimelineItem] timeline_item_object
591
- # @param [String] fields
592
- # Selector specifying which fields to include in a partial response.
593
- # @param [String] quota_user
594
- # An opaque string that represents a user for quota purposes. Must not exceed 40
595
- # characters.
596
- # @param [String] user_ip
597
- # Deprecated. Please use quotaUser instead.
598
- # @param [IO, String] upload_source
599
- # IO stream or filename containing content to upload
600
- # @param [String] content_type
601
- # Content type of the uploaded content.
602
- # @param [Google::Apis::RequestOptions] options
603
- # Request-specific options
604
- #
605
- # @yield [result, err] Result & error if block supplied
606
- # @yieldparam result [Google::Apis::MirrorV1::TimelineItem] parsed result object
607
- # @yieldparam err [StandardError] error object if request failed
608
- #
609
- # @return [Google::Apis::MirrorV1::TimelineItem]
610
- #
611
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
612
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
613
- # @raise [Google::Apis::AuthorizationError] Authorization is required
614
- def insert_timeline(timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
615
- if upload_source.nil?
616
- command = make_simple_command(:post, 'timeline', options)
617
- else
618
- command = make_upload_command(:post, 'timeline', options)
619
- command.upload_source = upload_source
620
- command.upload_content_type = content_type
621
- end
622
- command.request_representation = Google::Apis::MirrorV1::TimelineItem::Representation
623
- command.request_object = timeline_item_object
624
- command.response_representation = Google::Apis::MirrorV1::TimelineItem::Representation
625
- command.response_class = Google::Apis::MirrorV1::TimelineItem
626
- command.query['fields'] = fields unless fields.nil?
627
- command.query['quotaUser'] = quota_user unless quota_user.nil?
628
- command.query['userIp'] = user_ip unless user_ip.nil?
629
- execute_or_queue_command(command, &block)
630
- end
631
-
632
- # Retrieves a list of timeline items for the authenticated user.
633
- # @param [String] bundle_id
634
- # If provided, only items with the given bundleId will be returned.
635
- # @param [Boolean] include_deleted
636
- # If true, tombstone records for deleted items will be returned.
637
- # @param [Fixnum] max_results
638
- # The maximum number of items to include in the response, used for paging.
639
- # @param [String] order_by
640
- # Controls the order in which timeline items are returned.
641
- # @param [String] page_token
642
- # Token for the page of results to return.
643
- # @param [Boolean] pinned_only
644
- # If true, only pinned items will be returned.
645
- # @param [String] source_item_id
646
- # If provided, only items with the given sourceItemId will be returned.
647
- # @param [String] fields
648
- # Selector specifying which fields to include in a partial response.
649
- # @param [String] quota_user
650
- # An opaque string that represents a user for quota purposes. Must not exceed 40
651
- # characters.
652
- # @param [String] user_ip
653
- # Deprecated. Please use quotaUser instead.
654
- # @param [Google::Apis::RequestOptions] options
655
- # Request-specific options
656
- #
657
- # @yield [result, err] Result & error if block supplied
658
- # @yieldparam result [Google::Apis::MirrorV1::ListTimelineResponse] parsed result object
659
- # @yieldparam err [StandardError] error object if request failed
660
- #
661
- # @return [Google::Apis::MirrorV1::ListTimelineResponse]
662
- #
663
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
664
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
665
- # @raise [Google::Apis::AuthorizationError] Authorization is required
666
- def list_timelines(bundle_id: nil, include_deleted: nil, max_results: nil, order_by: nil, page_token: nil, pinned_only: nil, source_item_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
667
- command = make_simple_command(:get, 'timeline', options)
668
- command.response_representation = Google::Apis::MirrorV1::ListTimelineResponse::Representation
669
- command.response_class = Google::Apis::MirrorV1::ListTimelineResponse
670
- command.query['bundleId'] = bundle_id unless bundle_id.nil?
671
- command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
672
- command.query['maxResults'] = max_results unless max_results.nil?
673
- command.query['orderBy'] = order_by unless order_by.nil?
674
- command.query['pageToken'] = page_token unless page_token.nil?
675
- command.query['pinnedOnly'] = pinned_only unless pinned_only.nil?
676
- command.query['sourceItemId'] = source_item_id unless source_item_id.nil?
677
- command.query['fields'] = fields unless fields.nil?
678
- command.query['quotaUser'] = quota_user unless quota_user.nil?
679
- command.query['userIp'] = user_ip unless user_ip.nil?
680
- execute_or_queue_command(command, &block)
681
- end
682
-
683
- # Updates a timeline item in place. This method supports patch semantics.
684
- # @param [String] id
685
- # The ID of the timeline item.
686
- # @param [Google::Apis::MirrorV1::TimelineItem] timeline_item_object
687
- # @param [String] fields
688
- # Selector specifying which fields to include in a partial response.
689
- # @param [String] quota_user
690
- # An opaque string that represents a user for quota purposes. Must not exceed 40
691
- # characters.
692
- # @param [String] user_ip
693
- # Deprecated. Please use quotaUser instead.
694
- # @param [Google::Apis::RequestOptions] options
695
- # Request-specific options
696
- #
697
- # @yield [result, err] Result & error if block supplied
698
- # @yieldparam result [Google::Apis::MirrorV1::TimelineItem] parsed result object
699
- # @yieldparam err [StandardError] error object if request failed
700
- #
701
- # @return [Google::Apis::MirrorV1::TimelineItem]
702
- #
703
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
704
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
705
- # @raise [Google::Apis::AuthorizationError] Authorization is required
706
- def patch_timeline(id, timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
707
- command = make_simple_command(:patch, 'timeline/{id}', options)
708
- command.request_representation = Google::Apis::MirrorV1::TimelineItem::Representation
709
- command.request_object = timeline_item_object
710
- command.response_representation = Google::Apis::MirrorV1::TimelineItem::Representation
711
- command.response_class = Google::Apis::MirrorV1::TimelineItem
712
- command.params['id'] = id unless id.nil?
713
- command.query['fields'] = fields unless fields.nil?
714
- command.query['quotaUser'] = quota_user unless quota_user.nil?
715
- command.query['userIp'] = user_ip unless user_ip.nil?
716
- execute_or_queue_command(command, &block)
717
- end
718
-
719
- # Updates a timeline item in place.
720
- # @param [String] id
721
- # The ID of the timeline item.
722
- # @param [Google::Apis::MirrorV1::TimelineItem] timeline_item_object
723
- # @param [String] fields
724
- # Selector specifying which fields to include in a partial response.
725
- # @param [String] quota_user
726
- # An opaque string that represents a user for quota purposes. Must not exceed 40
727
- # characters.
728
- # @param [String] user_ip
729
- # Deprecated. Please use quotaUser instead.
730
- # @param [IO, String] upload_source
731
- # IO stream or filename containing content to upload
732
- # @param [String] content_type
733
- # Content type of the uploaded content.
734
- # @param [Google::Apis::RequestOptions] options
735
- # Request-specific options
736
- #
737
- # @yield [result, err] Result & error if block supplied
738
- # @yieldparam result [Google::Apis::MirrorV1::TimelineItem] parsed result object
739
- # @yieldparam err [StandardError] error object if request failed
740
- #
741
- # @return [Google::Apis::MirrorV1::TimelineItem]
742
- #
743
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
744
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
745
- # @raise [Google::Apis::AuthorizationError] Authorization is required
746
- def update_timeline(id, timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
747
- if upload_source.nil?
748
- command = make_simple_command(:put, 'timeline/{id}', options)
749
- else
750
- command = make_upload_command(:put, 'timeline/{id}', options)
751
- command.upload_source = upload_source
752
- command.upload_content_type = content_type
753
- end
754
- command.request_representation = Google::Apis::MirrorV1::TimelineItem::Representation
755
- command.request_object = timeline_item_object
756
- command.response_representation = Google::Apis::MirrorV1::TimelineItem::Representation
757
- command.response_class = Google::Apis::MirrorV1::TimelineItem
758
- command.params['id'] = id unless id.nil?
759
- command.query['fields'] = fields unless fields.nil?
760
- command.query['quotaUser'] = quota_user unless quota_user.nil?
761
- command.query['userIp'] = user_ip unless user_ip.nil?
762
- execute_or_queue_command(command, &block)
763
- end
764
-
765
- # Deletes an attachment from a timeline item.
766
- # @param [String] item_id
767
- # The ID of the timeline item the attachment belongs to.
768
- # @param [String] attachment_id
769
- # The ID of the attachment.
770
- # @param [String] fields
771
- # Selector specifying which fields to include in a partial response.
772
- # @param [String] quota_user
773
- # An opaque string that represents a user for quota purposes. Must not exceed 40
774
- # characters.
775
- # @param [String] user_ip
776
- # Deprecated. Please use quotaUser instead.
777
- # @param [Google::Apis::RequestOptions] options
778
- # Request-specific options
779
- #
780
- # @yield [result, err] Result & error if block supplied
781
- # @yieldparam result [NilClass] No result returned for this method
782
- # @yieldparam err [StandardError] error object if request failed
783
- #
784
- # @return [void]
785
- #
786
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
787
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
788
- # @raise [Google::Apis::AuthorizationError] Authorization is required
789
- def delete_timeline_attachment(item_id, attachment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
790
- command = make_simple_command(:delete, 'timeline/{itemId}/attachments/{attachmentId}', options)
791
- command.params['itemId'] = item_id unless item_id.nil?
792
- command.params['attachmentId'] = attachment_id unless attachment_id.nil?
793
- command.query['fields'] = fields unless fields.nil?
794
- command.query['quotaUser'] = quota_user unless quota_user.nil?
795
- command.query['userIp'] = user_ip unless user_ip.nil?
796
- execute_or_queue_command(command, &block)
797
- end
798
-
799
- # Retrieves an attachment on a timeline item by item ID and attachment ID.
800
- # @param [String] item_id
801
- # The ID of the timeline item the attachment belongs to.
802
- # @param [String] attachment_id
803
- # The ID of the attachment.
804
- # @param [String] fields
805
- # Selector specifying which fields to include in a partial response.
806
- # @param [String] quota_user
807
- # An opaque string that represents a user for quota purposes. Must not exceed 40
808
- # characters.
809
- # @param [String] user_ip
810
- # Deprecated. Please use quotaUser instead.
811
- # @param [IO, String] download_dest
812
- # IO stream or filename to receive content download
813
- # @param [Google::Apis::RequestOptions] options
814
- # Request-specific options
815
- #
816
- # @yield [result, err] Result & error if block supplied
817
- # @yieldparam result [Google::Apis::MirrorV1::Attachment] parsed result object
818
- # @yieldparam err [StandardError] error object if request failed
819
- #
820
- # @return [Google::Apis::MirrorV1::Attachment]
821
- #
822
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
823
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
824
- # @raise [Google::Apis::AuthorizationError] Authorization is required
825
- def get_timeline_attachment(item_id, attachment_id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
826
- if download_dest.nil?
827
- command = make_simple_command(:get, 'timeline/{itemId}/attachments/{attachmentId}', options)
828
- else
829
- command = make_download_command(:get, 'timeline/{itemId}/attachments/{attachmentId}', options)
830
- command.download_dest = download_dest
831
- end
832
- command.response_representation = Google::Apis::MirrorV1::Attachment::Representation
833
- command.response_class = Google::Apis::MirrorV1::Attachment
834
- command.params['itemId'] = item_id unless item_id.nil?
835
- command.params['attachmentId'] = attachment_id unless attachment_id.nil?
836
- command.query['fields'] = fields unless fields.nil?
837
- command.query['quotaUser'] = quota_user unless quota_user.nil?
838
- command.query['userIp'] = user_ip unless user_ip.nil?
839
- execute_or_queue_command(command, &block)
840
- end
841
-
842
- # Adds a new attachment to a timeline item.
843
- # @param [String] item_id
844
- # The ID of the timeline item the attachment belongs to.
845
- # @param [String] fields
846
- # Selector specifying which fields to include in a partial response.
847
- # @param [String] quota_user
848
- # An opaque string that represents a user for quota purposes. Must not exceed 40
849
- # characters.
850
- # @param [String] user_ip
851
- # Deprecated. Please use quotaUser instead.
852
- # @param [IO, String] upload_source
853
- # IO stream or filename containing content to upload
854
- # @param [String] content_type
855
- # Content type of the uploaded content.
856
- # @param [Google::Apis::RequestOptions] options
857
- # Request-specific options
858
- #
859
- # @yield [result, err] Result & error if block supplied
860
- # @yieldparam result [Google::Apis::MirrorV1::Attachment] parsed result object
861
- # @yieldparam err [StandardError] error object if request failed
862
- #
863
- # @return [Google::Apis::MirrorV1::Attachment]
864
- #
865
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
866
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
867
- # @raise [Google::Apis::AuthorizationError] Authorization is required
868
- def insert_timeline_attachment(item_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
869
- if upload_source.nil?
870
- command = make_simple_command(:post, 'timeline/{itemId}/attachments', options)
871
- else
872
- command = make_upload_command(:post, 'timeline/{itemId}/attachments', options)
873
- command.upload_source = upload_source
874
- command.upload_content_type = content_type
875
- end
876
- command.response_representation = Google::Apis::MirrorV1::Attachment::Representation
877
- command.response_class = Google::Apis::MirrorV1::Attachment
878
- command.params['itemId'] = item_id unless item_id.nil?
879
- command.query['fields'] = fields unless fields.nil?
880
- command.query['quotaUser'] = quota_user unless quota_user.nil?
881
- command.query['userIp'] = user_ip unless user_ip.nil?
882
- execute_or_queue_command(command, &block)
883
- end
884
-
885
- # Returns a list of attachments for a timeline item.
886
- # @param [String] item_id
887
- # The ID of the timeline item whose attachments should be listed.
888
- # @param [String] fields
889
- # Selector specifying which fields to include in a partial response.
890
- # @param [String] quota_user
891
- # An opaque string that represents a user for quota purposes. Must not exceed 40
892
- # characters.
893
- # @param [String] user_ip
894
- # Deprecated. Please use quotaUser instead.
895
- # @param [Google::Apis::RequestOptions] options
896
- # Request-specific options
897
- #
898
- # @yield [result, err] Result & error if block supplied
899
- # @yieldparam result [Google::Apis::MirrorV1::ListAttachmentsResponse] parsed result object
900
- # @yieldparam err [StandardError] error object if request failed
901
- #
902
- # @return [Google::Apis::MirrorV1::ListAttachmentsResponse]
903
- #
904
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
905
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
906
- # @raise [Google::Apis::AuthorizationError] Authorization is required
907
- def list_timeline_attachments(item_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
908
- command = make_simple_command(:get, 'timeline/{itemId}/attachments', options)
909
- command.response_representation = Google::Apis::MirrorV1::ListAttachmentsResponse::Representation
910
- command.response_class = Google::Apis::MirrorV1::ListAttachmentsResponse
911
- command.params['itemId'] = item_id unless item_id.nil?
912
- command.query['fields'] = fields unless fields.nil?
913
- command.query['quotaUser'] = quota_user unless quota_user.nil?
914
- command.query['userIp'] = user_ip unless user_ip.nil?
915
- execute_or_queue_command(command, &block)
916
- end
917
-
918
- protected
919
-
920
- def apply_command_defaults(command)
921
- command.query['key'] = key unless key.nil?
922
- command.query['quotaUser'] = quota_user unless quota_user.nil?
923
- command.query['userIp'] = user_ip unless user_ip.nil?
924
- end
925
- end
926
- end
927
- end
928
- end