google-api-client 0.46.2 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (556) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release-please.yml +79 -0
  3. data/.kokoro/trampoline.sh +0 -0
  4. data/CHANGELOG.md +736 -192
  5. data/Gemfile +1 -0
  6. data/Rakefile +31 -3
  7. data/generated/google/apis/accessapproval_v1.rb +1 -1
  8. data/generated/google/apis/accessapproval_v1/classes.rb +13 -15
  9. data/generated/google/apis/accessapproval_v1/service.rb +12 -9
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +50 -6
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +18 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +3 -1
  14. data/generated/google/apis/admob_v1.rb +4 -1
  15. data/generated/google/apis/admob_v1/service.rb +4 -0
  16. data/generated/google/apis/admob_v1beta.rb +38 -0
  17. data/generated/google/apis/admob_v1beta/classes.rb +1035 -0
  18. data/generated/google/apis/admob_v1beta/representations.rb +472 -0
  19. data/generated/google/apis/admob_v1beta/service.rb +279 -0
  20. data/generated/google/apis/analyticsadmin_v1alpha.rb +1 -1
  21. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +13 -12
  22. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +28 -12
  23. data/generated/google/apis/analyticsdata_v1alpha.rb +2 -2
  24. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +263 -69
  25. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +52 -14
  26. data/generated/google/apis/analyticsdata_v1alpha/service.rb +44 -33
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/classes.rb +6 -0
  29. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  30. data/generated/google/apis/androidenterprise_v1/service.rb +4 -1
  31. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  32. data/generated/google/apis/androidmanagement_v1/classes.rb +98 -30
  33. data/generated/google/apis/androidmanagement_v1/representations.rb +19 -0
  34. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  35. data/generated/google/apis/androidpublisher_v3/classes.rb +2 -1
  36. data/generated/google/apis/androidpublisher_v3/service.rb +4 -4
  37. data/generated/google/apis/apigateway_v1beta.rb +1 -1
  38. data/generated/google/apis/apigateway_v1beta/classes.rb +8 -5
  39. data/generated/google/apis/apigateway_v1beta/representations.rb +1 -0
  40. data/generated/google/apis/apigee_v1.rb +1 -1
  41. data/generated/google/apis/apigee_v1/classes.rb +378 -138
  42. data/generated/google/apis/apigee_v1/representations.rb +109 -18
  43. data/generated/google/apis/apigee_v1/service.rb +674 -56
  44. data/generated/google/apis/appengine_v1beta.rb +1 -1
  45. data/generated/google/apis/appengine_v1beta/classes.rb +8 -0
  46. data/generated/google/apis/appengine_v1beta/representations.rb +1 -0
  47. data/generated/google/apis/area120tables_v1alpha1.rb +49 -0
  48. data/generated/google/apis/area120tables_v1alpha1/classes.rb +481 -0
  49. data/generated/google/apis/area120tables_v1alpha1/representations.rb +279 -0
  50. data/generated/google/apis/area120tables_v1alpha1/service.rb +448 -0
  51. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  52. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +0 -7
  53. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +0 -1
  54. data/generated/google/apis/artifactregistry_v1beta2.rb +38 -0
  55. data/generated/google/apis/artifactregistry_v1beta2/classes.rb +1037 -0
  56. data/generated/google/apis/artifactregistry_v1beta2/representations.rb +443 -0
  57. data/generated/google/apis/artifactregistry_v1beta2/service.rb +944 -0
  58. data/generated/google/apis/{assuredworkloads_v1beta1.rb → assuredworkloads_v1.rb} +6 -6
  59. data/generated/google/apis/{assuredworkloads_v1beta1 → assuredworkloads_v1}/classes.rb +69 -137
  60. data/generated/google/apis/{assuredworkloads_v1beta1 → assuredworkloads_v1}/representations.rb +29 -87
  61. data/generated/google/apis/{assuredworkloads_v1beta1 → assuredworkloads_v1}/service.rb +46 -46
  62. data/generated/google/apis/bigquery_v2.rb +1 -1
  63. data/generated/google/apis/bigquery_v2/classes.rb +78 -0
  64. data/generated/google/apis/bigquery_v2/representations.rb +34 -0
  65. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  66. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -0
  67. data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +1 -0
  68. data/generated/google/apis/billingbudgets_v1.rb +1 -1
  69. data/generated/google/apis/billingbudgets_v1/classes.rb +11 -0
  70. data/generated/google/apis/billingbudgets_v1/representations.rb +1 -0
  71. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  72. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +11 -0
  73. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  74. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  75. data/generated/google/apis/binaryauthorization_v1/classes.rb +2 -9
  76. data/generated/google/apis/binaryauthorization_v1/representations.rb +0 -1
  77. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  78. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +4 -10
  79. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +0 -1
  80. data/generated/google/apis/books_v1.rb +1 -1
  81. data/generated/google/apis/books_v1/service.rb +52 -52
  82. data/generated/google/apis/calendar_v3.rb +1 -1
  83. data/generated/google/apis/calendar_v3/classes.rb +2 -2
  84. data/generated/google/apis/chat_v1.rb +1 -1
  85. data/generated/google/apis/chat_v1/classes.rb +7 -0
  86. data/generated/google/apis/chat_v1/representations.rb +1 -0
  87. data/generated/google/apis/chat_v1/service.rb +176 -0
  88. data/generated/google/apis/cloudasset_v1.rb +1 -1
  89. data/generated/google/apis/cloudasset_v1/classes.rb +1125 -0
  90. data/generated/google/apis/cloudasset_v1/representations.rb +474 -0
  91. data/generated/google/apis/cloudasset_v1/service.rb +171 -0
  92. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  93. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  94. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  95. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  96. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  97. data/generated/google/apis/cloudbilling_v1/classes.rb +1 -1
  98. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  99. data/generated/google/apis/cloudbuild_v1/classes.rb +3 -2
  100. data/generated/google/apis/cloudbuild_v1/service.rb +11 -3
  101. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  102. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  103. data/generated/google/apis/cloudidentity_v1/service.rb +15 -7
  104. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  105. data/generated/google/apis/cloudidentity_v1beta1/service.rb +37 -21
  106. data/generated/google/apis/cloudiot_v1.rb +1 -1
  107. data/generated/google/apis/cloudiot_v1/classes.rb +0 -7
  108. data/generated/google/apis/cloudiot_v1/representations.rb +0 -1
  109. data/generated/google/apis/cloudkms_v1.rb +1 -1
  110. data/generated/google/apis/cloudkms_v1/classes.rb +1 -2
  111. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  112. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +401 -7
  113. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +280 -1
  114. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +401 -7
  116. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +280 -1
  117. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  118. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +405 -11
  119. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +280 -1
  120. data/generated/google/apis/cloudresourcemanager_v2/service.rb +13 -13
  121. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  122. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +405 -11
  123. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +280 -1
  124. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +13 -13
  125. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  126. data/generated/google/apis/cloudsearch_v1/classes.rb +10 -5
  127. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  128. data/generated/google/apis/cloudtasks_v2/classes.rb +0 -7
  129. data/generated/google/apis/cloudtasks_v2/representations.rb +0 -1
  130. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  131. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +0 -7
  132. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +0 -1
  133. data/generated/google/apis/cloudtasks_v2beta2/service.rb +12 -2
  134. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  135. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +0 -7
  136. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +0 -1
  137. data/generated/google/apis/composer_v1.rb +1 -1
  138. data/generated/google/apis/composer_v1/classes.rb +123 -0
  139. data/generated/google/apis/composer_v1/representations.rb +49 -0
  140. data/generated/google/apis/composer_v1/service.rb +19 -15
  141. data/generated/google/apis/composer_v1beta1.rb +1 -1
  142. data/generated/google/apis/composer_v1beta1/classes.rb +109 -0
  143. data/generated/google/apis/composer_v1beta1/representations.rb +46 -0
  144. data/generated/google/apis/composer_v1beta1/service.rb +39 -1
  145. data/generated/google/apis/compute_v1.rb +1 -1
  146. data/generated/google/apis/compute_v1/classes.rb +289 -31
  147. data/generated/google/apis/compute_v1/representations.rb +44 -0
  148. data/generated/google/apis/compute_v1/service.rb +695 -545
  149. data/generated/google/apis/container_v1beta1.rb +1 -1
  150. data/generated/google/apis/container_v1beta1/classes.rb +29 -0
  151. data/generated/google/apis/container_v1beta1/representations.rb +15 -0
  152. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  153. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +0 -7
  154. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +0 -1
  155. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  156. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +2 -8
  157. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +0 -1
  158. data/generated/google/apis/content_v2.rb +3 -4
  159. data/generated/google/apis/content_v2/classes.rb +514 -1222
  160. data/generated/google/apis/content_v2/service.rb +380 -651
  161. data/generated/google/apis/content_v2_1.rb +3 -4
  162. data/generated/google/apis/content_v2_1/classes.rb +1522 -1062
  163. data/generated/google/apis/content_v2_1/representations.rb +420 -0
  164. data/generated/google/apis/content_v2_1/service.rb +1127 -809
  165. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  166. data/generated/google/apis/datacatalog_v1beta1/classes.rb +25 -17
  167. data/generated/google/apis/datacatalog_v1beta1/representations.rb +5 -1
  168. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  169. data/generated/google/apis/dataflow_v1b3/classes.rb +29 -1
  170. data/generated/google/apis/dataflow_v1b3/representations.rb +5 -0
  171. data/generated/google/apis/datalabeling_v1beta1.rb +34 -0
  172. data/generated/google/apis/datalabeling_v1beta1/classes.rb +6207 -0
  173. data/generated/google/apis/datalabeling_v1beta1/representations.rb +3156 -0
  174. data/generated/google/apis/datalabeling_v1beta1/service.rb +1762 -0
  175. data/generated/google/apis/datamigration_v1beta1.rb +34 -0
  176. data/generated/google/apis/datamigration_v1beta1/classes.rb +1670 -0
  177. data/generated/google/apis/datamigration_v1beta1/representations.rb +678 -0
  178. data/generated/google/apis/datamigration_v1beta1/service.rb +1172 -0
  179. data/generated/google/apis/dataproc_v1.rb +1 -1
  180. data/generated/google/apis/dataproc_v1/classes.rb +95 -12
  181. data/generated/google/apis/dataproc_v1/representations.rb +23 -1
  182. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  183. data/generated/google/apis/dataproc_v1beta2/classes.rb +63 -12
  184. data/generated/google/apis/dataproc_v1beta2/representations.rb +19 -1
  185. data/generated/google/apis/datastore_v1.rb +1 -1
  186. data/generated/google/apis/datastore_v1/classes.rb +4 -4
  187. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  188. data/generated/google/apis/datastore_v1beta3/classes.rb +4 -4
  189. data/generated/google/apis/deploymentmanager_v2.rb +6 -4
  190. data/generated/google/apis/deploymentmanager_v2/classes.rb +203 -558
  191. data/generated/google/apis/deploymentmanager_v2/representations.rb +0 -132
  192. data/generated/google/apis/deploymentmanager_v2/service.rb +169 -213
  193. data/generated/google/apis/deploymentmanager_v2beta.rb +6 -5
  194. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +247 -609
  195. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +0 -132
  196. data/generated/google/apis/deploymentmanager_v2beta/service.rb +278 -359
  197. data/generated/google/apis/dfareporting_v3_3.rb +2 -2
  198. data/generated/google/apis/dfareporting_v3_3/classes.rb +6 -6
  199. data/generated/google/apis/dfareporting_v3_3/service.rb +12 -12
  200. data/generated/google/apis/dfareporting_v3_4.rb +2 -2
  201. data/generated/google/apis/dfareporting_v3_4/classes.rb +6 -6
  202. data/generated/google/apis/dfareporting_v3_4/service.rb +12 -12
  203. data/generated/google/apis/dialogflow_v2.rb +1 -1
  204. data/generated/google/apis/dialogflow_v2/classes.rb +19 -387
  205. data/generated/google/apis/dialogflow_v2/representations.rb +1 -212
  206. data/generated/google/apis/dialogflow_v2/service.rb +12 -4
  207. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  208. data/generated/google/apis/dialogflow_v2beta1/classes.rb +17 -390
  209. data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -212
  210. data/generated/google/apis/dialogflow_v2beta1/service.rb +510 -40
  211. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  212. data/generated/google/apis/dialogflow_v3beta1/classes.rb +76 -387
  213. data/generated/google/apis/dialogflow_v3beta1/representations.rb +20 -212
  214. data/generated/google/apis/dialogflow_v3beta1/service.rb +11 -3
  215. data/generated/google/apis/displayvideo_v1.rb +1 -1
  216. data/generated/google/apis/displayvideo_v1/classes.rb +306 -34
  217. data/generated/google/apis/displayvideo_v1/representations.rb +122 -0
  218. data/generated/google/apis/displayvideo_v1/service.rb +342 -38
  219. data/generated/google/apis/dlp_v2.rb +1 -1
  220. data/generated/google/apis/dlp_v2/classes.rb +35 -29
  221. data/generated/google/apis/dlp_v2/representations.rb +1 -0
  222. data/generated/google/apis/dns_v1.rb +2 -2
  223. data/generated/google/apis/dns_v1/classes.rb +6 -0
  224. data/generated/google/apis/dns_v1/representations.rb +1 -0
  225. data/generated/google/apis/dns_v1/service.rb +1 -1
  226. data/generated/google/apis/dns_v1beta2.rb +2 -2
  227. data/generated/google/apis/dns_v1beta2/classes.rb +20 -1
  228. data/generated/google/apis/dns_v1beta2/representations.rb +13 -0
  229. data/generated/google/apis/dns_v1beta2/service.rb +177 -1
  230. data/generated/google/apis/domains_v1alpha2.rb +1 -1
  231. data/generated/google/apis/domains_v1beta1.rb +1 -1
  232. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  233. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +3 -2
  234. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  235. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +3 -2
  236. data/generated/google/apis/drive_v2.rb +1 -1
  237. data/generated/google/apis/drive_v2/classes.rb +24 -21
  238. data/generated/google/apis/drive_v2/service.rb +26 -58
  239. data/generated/google/apis/drive_v3.rb +1 -1
  240. data/generated/google/apis/drive_v3/classes.rb +12 -8
  241. data/generated/google/apis/drive_v3/service.rb +14 -30
  242. data/generated/google/apis/eventarc_v1beta1.rb +34 -0
  243. data/generated/google/apis/eventarc_v1beta1/classes.rb +931 -0
  244. data/generated/google/apis/eventarc_v1beta1/representations.rb +379 -0
  245. data/generated/google/apis/eventarc_v1beta1/service.rb +579 -0
  246. data/generated/google/apis/file_v1.rb +1 -1
  247. data/generated/google/apis/file_v1/classes.rb +505 -4
  248. data/generated/google/apis/file_v1/representations.rb +203 -0
  249. data/generated/google/apis/file_v1/service.rb +229 -1
  250. data/generated/google/apis/file_v1beta1.rb +1 -1
  251. data/generated/google/apis/file_v1beta1/classes.rb +346 -6
  252. data/generated/google/apis/file_v1beta1/representations.rb +149 -0
  253. data/generated/google/apis/file_v1beta1/service.rb +6 -2
  254. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  255. data/generated/google/apis/firebase_v1beta1/service.rb +17 -4
  256. data/generated/google/apis/firebasedatabase_v1beta.rb +44 -0
  257. data/generated/google/apis/firebasedatabase_v1beta/classes.rb +130 -0
  258. data/generated/google/apis/{displayvideo_v1dev → firebasedatabase_v1beta}/representations.rb +26 -16
  259. data/generated/google/apis/firebasedatabase_v1beta/service.rb +292 -0
  260. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  261. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +2 -0
  262. data/generated/google/apis/firestore_v1.rb +1 -1
  263. data/generated/google/apis/firestore_v1/classes.rb +4 -4
  264. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  265. data/generated/google/apis/firestore_v1beta1/classes.rb +4 -4
  266. data/generated/google/apis/games_v1.rb +1 -1
  267. data/generated/google/apis/games_v1/classes.rb +353 -0
  268. data/generated/google/apis/games_v1/representations.rb +145 -0
  269. data/generated/google/apis/games_v1/service.rb +67 -0
  270. data/generated/google/apis/gameservices_v1.rb +1 -1
  271. data/generated/google/apis/gameservices_v1/classes.rb +1 -2
  272. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  273. data/generated/google/apis/gameservices_v1beta/classes.rb +1 -2
  274. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  275. data/generated/google/apis/genomics_v2alpha1/classes.rb +25 -0
  276. data/generated/google/apis/genomics_v2alpha1/representations.rb +15 -0
  277. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +1 -1
  278. data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +9 -0
  279. data/generated/google/apis/gmailpostmastertools_v1beta1/representations.rb +1 -0
  280. data/generated/google/apis/healthcare_v1.rb +1 -1
  281. data/generated/google/apis/healthcare_v1/classes.rb +24 -17
  282. data/generated/google/apis/healthcare_v1/representations.rb +1 -0
  283. data/generated/google/apis/healthcare_v1/service.rb +2 -1
  284. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  285. data/generated/google/apis/healthcare_v1beta1/classes.rb +361 -57
  286. data/generated/google/apis/healthcare_v1beta1/representations.rb +150 -18
  287. data/generated/google/apis/healthcare_v1beta1/service.rb +91 -13
  288. data/generated/google/apis/iam_v1.rb +2 -5
  289. data/generated/google/apis/iam_v1/classes.rb +109 -11
  290. data/generated/google/apis/iam_v1/representations.rb +33 -1
  291. data/generated/google/apis/iam_v1/service.rb +63 -4
  292. data/generated/google/apis/iamcredentials_v1.rb +3 -4
  293. data/generated/google/apis/iamcredentials_v1/service.rb +2 -3
  294. data/generated/google/apis/iap_v1.rb +1 -1
  295. data/generated/google/apis/iap_v1/classes.rb +1 -13
  296. data/generated/google/apis/iap_v1/representations.rb +0 -1
  297. data/generated/google/apis/iap_v1beta1.rb +1 -1
  298. data/generated/google/apis/iap_v1beta1/classes.rb +1 -2
  299. data/generated/google/apis/jobs_v3.rb +1 -1
  300. data/generated/google/apis/jobs_v3/classes.rb +9 -807
  301. data/generated/google/apis/jobs_v3/representations.rb +0 -272
  302. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  303. data/generated/google/apis/jobs_v3p1beta1/classes.rb +9 -768
  304. data/generated/google/apis/jobs_v3p1beta1/representations.rb +0 -257
  305. data/generated/google/apis/{jobs_v2.rb → jobs_v4.rb} +6 -6
  306. data/generated/google/apis/jobs_v4/classes.rb +2699 -0
  307. data/generated/google/apis/jobs_v4/representations.rb +934 -0
  308. data/generated/google/apis/jobs_v4/service.rb +903 -0
  309. data/generated/google/apis/licensing_v1.rb +1 -1
  310. data/generated/google/apis/licensing_v1/classes.rb +26 -8
  311. data/generated/google/apis/licensing_v1/representations.rb +12 -0
  312. data/generated/google/apis/licensing_v1/service.rb +34 -31
  313. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  314. data/generated/google/apis/lifesciences_v2beta/classes.rb +25 -0
  315. data/generated/google/apis/lifesciences_v2beta/representations.rb +15 -0
  316. data/generated/google/apis/localservices_v1.rb +1 -1
  317. data/generated/google/apis/localservices_v1/classes.rb +7 -0
  318. data/generated/google/apis/localservices_v1/representations.rb +2 -0
  319. data/generated/google/apis/logging_v2.rb +1 -1
  320. data/generated/google/apis/logging_v2/classes.rb +191 -14
  321. data/generated/google/apis/logging_v2/representations.rb +77 -0
  322. data/generated/google/apis/logging_v2/service.rb +446 -25
  323. data/generated/google/apis/managedidentities_v1.rb +1 -1
  324. data/generated/google/apis/managedidentities_v1/classes.rb +361 -16
  325. data/generated/google/apis/managedidentities_v1/representations.rb +149 -1
  326. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  327. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +363 -17
  328. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +149 -1
  329. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  330. data/generated/google/apis/managedidentities_v1beta1/classes.rb +349 -12
  331. data/generated/google/apis/managedidentities_v1beta1/representations.rb +149 -1
  332. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  333. data/generated/google/apis/memcache_v1beta2/classes.rb +345 -4
  334. data/generated/google/apis/memcache_v1beta2/representations.rb +149 -0
  335. data/generated/google/apis/ml_v1.rb +1 -1
  336. data/generated/google/apis/ml_v1/classes.rb +272 -84
  337. data/generated/google/apis/ml_v1/representations.rb +43 -1
  338. data/generated/google/apis/ml_v1/service.rb +35 -0
  339. data/generated/google/apis/monitoring_v3.rb +1 -1
  340. data/generated/google/apis/monitoring_v3/classes.rb +16 -9
  341. data/generated/google/apis/monitoring_v3/service.rb +55 -5
  342. data/generated/google/apis/networkmanagement_v1.rb +1 -1
  343. data/generated/google/apis/networkmanagement_v1/classes.rb +6 -0
  344. data/generated/google/apis/networkmanagement_v1/representations.rb +1 -0
  345. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  346. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +57 -0
  347. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +31 -0
  348. data/generated/google/apis/notebooks_v1.rb +34 -0
  349. data/generated/google/apis/notebooks_v1/classes.rb +1455 -0
  350. data/generated/google/apis/notebooks_v1/representations.rb +580 -0
  351. data/generated/google/apis/notebooks_v1/service.rb +1042 -0
  352. data/generated/google/apis/osconfig_v1.rb +1 -1
  353. data/generated/google/apis/osconfig_v1/classes.rb +419 -0
  354. data/generated/google/apis/osconfig_v1/representations.rb +168 -0
  355. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  356. data/generated/google/apis/osconfig_v1beta/classes.rb +419 -0
  357. data/generated/google/apis/osconfig_v1beta/representations.rb +168 -0
  358. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  359. data/generated/google/apis/pagespeedonline_v5/service.rb +3 -3
  360. data/generated/google/apis/people_v1.rb +1 -1
  361. data/generated/google/apis/people_v1/classes.rb +10 -6
  362. data/generated/google/apis/people_v1/service.rb +21 -18
  363. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  364. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  365. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  366. data/generated/google/apis/privateca_v1beta1.rb +36 -0
  367. data/generated/google/apis/privateca_v1beta1/classes.rb +2466 -0
  368. data/generated/google/apis/privateca_v1beta1/representations.rb +996 -0
  369. data/generated/google/apis/privateca_v1beta1/service.rb +1437 -0
  370. data/generated/google/apis/pubsub_v1.rb +1 -1
  371. data/generated/google/apis/pubsub_v1/classes.rb +0 -7
  372. data/generated/google/apis/pubsub_v1/representations.rb +0 -1
  373. data/generated/google/apis/pubsub_v1/service.rb +2 -2
  374. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  375. data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -7
  376. data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -1
  377. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  378. data/generated/google/apis/realtimebidding_v1/classes.rb +545 -0
  379. data/generated/google/apis/realtimebidding_v1/representations.rb +232 -0
  380. data/generated/google/apis/realtimebidding_v1/service.rb +450 -0
  381. data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
  382. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +32 -0
  383. data/generated/google/apis/recommendationengine_v1beta1/representations.rb +25 -0
  384. data/generated/google/apis/recommender_v1.rb +1 -1
  385. data/generated/google/apis/recommender_v1/classes.rb +3 -3
  386. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  387. data/generated/google/apis/recommender_v1beta1/classes.rb +3 -3
  388. data/generated/google/apis/redis_v1.rb +1 -1
  389. data/generated/google/apis/redis_v1/classes.rb +86 -0
  390. data/generated/google/apis/redis_v1/representations.rb +34 -0
  391. data/generated/google/apis/redis_v1/service.rb +34 -0
  392. data/generated/google/apis/redis_v1beta1.rb +1 -1
  393. data/generated/google/apis/redis_v1beta1/classes.rb +58 -0
  394. data/generated/google/apis/redis_v1beta1/representations.rb +20 -0
  395. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  396. data/generated/google/apis/remotebuildexecution_v1/classes.rb +5 -30
  397. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -16
  398. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  399. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +5 -30
  400. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -16
  401. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  402. data/generated/google/apis/remotebuildexecution_v2/classes.rb +5 -30
  403. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -16
  404. data/generated/google/apis/reseller_v1.rb +4 -4
  405. data/generated/google/apis/reseller_v1/service.rb +5 -5
  406. data/generated/google/apis/run_v1.rb +1 -1
  407. data/generated/google/apis/run_v1/classes.rb +2 -1
  408. data/generated/google/apis/run_v1alpha1.rb +1 -1
  409. data/generated/google/apis/run_v1alpha1/classes.rb +2 -1
  410. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  411. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +0 -7
  412. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +0 -1
  413. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  414. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  415. data/generated/google/apis/sasportal_v1alpha1/service.rb +109 -0
  416. data/generated/google/apis/secretmanager_v1.rb +1 -1
  417. data/generated/google/apis/secretmanager_v1/classes.rb +0 -7
  418. data/generated/google/apis/secretmanager_v1/representations.rb +0 -1
  419. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  420. data/generated/google/apis/secretmanager_v1beta1/classes.rb +0 -7
  421. data/generated/google/apis/secretmanager_v1beta1/representations.rb +0 -1
  422. data/generated/google/apis/securitycenter_v1.rb +1 -1
  423. data/generated/google/apis/securitycenter_v1/classes.rb +91 -0
  424. data/generated/google/apis/securitycenter_v1/representations.rb +37 -0
  425. data/generated/google/apis/securitycenter_v1/service.rb +1448 -414
  426. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  427. data/generated/google/apis/securitycenter_v1beta1/classes.rb +68 -0
  428. data/generated/google/apis/securitycenter_v1beta1/representations.rb +32 -0
  429. data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
  430. data/generated/google/apis/securitycenter_v1beta2/classes.rb +68 -0
  431. data/generated/google/apis/securitycenter_v1beta2/representations.rb +32 -0
  432. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  433. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +6 -64
  434. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -18
  435. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  436. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +6 -64
  437. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +0 -18
  438. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  439. data/generated/google/apis/servicecontrol_v1/classes.rb +77 -2
  440. data/generated/google/apis/servicecontrol_v1/representations.rb +10 -0
  441. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  442. data/generated/google/apis/servicecontrol_v2/classes.rb +62 -0
  443. data/generated/google/apis/servicecontrol_v2/representations.rb +8 -0
  444. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  445. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +26 -13
  446. data/generated/google/apis/servicedirectory_v1beta1/representations.rb +0 -1
  447. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  448. data/generated/google/apis/servicemanagement_v1/classes.rb +6 -64
  449. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -18
  450. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  451. data/generated/google/apis/servicenetworking_v1/classes.rb +156 -64
  452. data/generated/google/apis/servicenetworking_v1/representations.rb +62 -15
  453. data/generated/google/apis/servicenetworking_v1/service.rb +80 -0
  454. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  455. data/generated/google/apis/servicenetworking_v1beta/classes.rb +69 -64
  456. data/generated/google/apis/servicenetworking_v1beta/representations.rb +29 -15
  457. data/generated/google/apis/serviceusage_v1.rb +1 -1
  458. data/generated/google/apis/serviceusage_v1/classes.rb +6 -64
  459. data/generated/google/apis/serviceusage_v1/representations.rb +0 -18
  460. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  461. data/generated/google/apis/serviceusage_v1beta1/classes.rb +36 -64
  462. data/generated/google/apis/serviceusage_v1beta1/representations.rb +15 -18
  463. data/generated/google/apis/serviceusage_v1beta1/service.rb +36 -0
  464. data/generated/google/apis/sheets_v4.rb +1 -1
  465. data/generated/google/apis/sheets_v4/classes.rb +332 -7
  466. data/generated/google/apis/sheets_v4/representations.rb +102 -0
  467. data/generated/google/apis/slides_v1.rb +1 -1
  468. data/generated/google/apis/smartdevicemanagement_v1.rb +1 -1
  469. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +0 -34
  470. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +0 -16
  471. data/generated/google/apis/smartdevicemanagement_v1/service.rb +3 -8
  472. data/generated/google/apis/spanner_v1.rb +1 -1
  473. data/generated/google/apis/spanner_v1/classes.rb +10 -8
  474. data/generated/google/apis/spanner_v1/representations.rb +1 -1
  475. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  476. data/generated/google/apis/speech_v1p1beta1/classes.rb +22 -0
  477. data/generated/google/apis/speech_v1p1beta1/representations.rb +2 -0
  478. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  479. data/generated/google/apis/sqladmin_v1beta4/classes.rb +118 -11
  480. data/generated/google/apis/sqladmin_v1beta4/representations.rb +37 -0
  481. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  482. data/generated/google/apis/storage_v1.rb +1 -1
  483. data/generated/google/apis/storage_v1/classes.rb +7 -0
  484. data/generated/google/apis/storage_v1/representations.rb +1 -0
  485. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  486. data/generated/google/apis/storagetransfer_v1/classes.rb +72 -50
  487. data/generated/google/apis/storagetransfer_v1/representations.rb +3 -0
  488. data/generated/google/apis/storagetransfer_v1/service.rb +3 -3
  489. data/generated/google/apis/tagmanager_v2.rb +1 -1
  490. data/generated/google/apis/tagmanager_v2/classes.rb +12 -0
  491. data/generated/google/apis/tagmanager_v2/representations.rb +3 -0
  492. data/generated/google/apis/testing_v1.rb +1 -1
  493. data/generated/google/apis/testing_v1/classes.rb +45 -33
  494. data/generated/google/apis/testing_v1/representations.rb +1 -0
  495. data/generated/google/apis/testing_v1/service.rb +4 -4
  496. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  497. data/generated/google/apis/toolresults_v1beta3/classes.rb +13 -0
  498. data/generated/google/apis/toolresults_v1beta3/representations.rb +12 -0
  499. data/generated/google/apis/transcoder_v1beta1.rb +34 -0
  500. data/generated/google/apis/transcoder_v1beta1/classes.rb +1684 -0
  501. data/generated/google/apis/transcoder_v1beta1/representations.rb +756 -0
  502. data/generated/google/apis/transcoder_v1beta1/service.rb +329 -0
  503. data/generated/google/apis/translate_v3.rb +1 -1
  504. data/generated/google/apis/translate_v3/classes.rb +2 -1
  505. data/generated/google/apis/translate_v3beta1.rb +1 -1
  506. data/generated/google/apis/translate_v3beta1/classes.rb +2 -1
  507. data/generated/google/apis/vault_v1.rb +1 -1
  508. data/generated/google/apis/vault_v1/classes.rb +76 -0
  509. data/generated/google/apis/vault_v1/representations.rb +45 -0
  510. data/generated/google/apis/vectortile_v1.rb +1 -1
  511. data/generated/google/apis/vectortile_v1/classes.rb +59 -4
  512. data/generated/google/apis/vectortile_v1/representations.rb +19 -0
  513. data/generated/google/apis/videointelligence_v1.rb +1 -1
  514. data/generated/google/apis/videointelligence_v1/classes.rb +65 -0
  515. data/generated/google/apis/videointelligence_v1/representations.rb +15 -0
  516. data/generated/google/apis/videointelligence_v1/service.rb +0 -62
  517. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  518. data/generated/google/apis/videointelligence_v1beta2/classes.rb +65 -0
  519. data/generated/google/apis/videointelligence_v1beta2/representations.rb +15 -0
  520. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  521. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +65 -0
  522. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +15 -0
  523. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  524. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +65 -0
  525. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +15 -0
  526. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  527. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +65 -0
  528. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +15 -0
  529. data/generated/google/apis/vision_v1.rb +1 -1
  530. data/generated/google/apis/vision_v1/classes.rb +16 -16
  531. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  532. data/generated/google/apis/vision_v1p1beta1/classes.rb +16 -16
  533. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  534. data/generated/google/apis/vision_v1p2beta1/classes.rb +16 -16
  535. data/generated/google/apis/youtube_v3.rb +1 -1
  536. data/generated/google/apis/youtube_v3/classes.rb +2 -2
  537. data/generated/google/apis/youtube_v3/service.rb +6 -6
  538. data/google-api-client.gemspec +25 -25
  539. data/lib/google/apis/core/http_command.rb +2 -1
  540. data/lib/google/apis/options.rb +8 -5
  541. data/lib/google/apis/version.rb +1 -1
  542. metadata +53 -24
  543. data/generated/google/apis/displayvideo_v1beta.rb +0 -38
  544. data/generated/google/apis/displayvideo_v1beta/classes.rb +0 -146
  545. data/generated/google/apis/displayvideo_v1beta/representations.rb +0 -72
  546. data/generated/google/apis/displayvideo_v1beta/service.rb +0 -161
  547. data/generated/google/apis/displayvideo_v1beta2.rb +0 -38
  548. data/generated/google/apis/displayvideo_v1beta2/classes.rb +0 -146
  549. data/generated/google/apis/displayvideo_v1beta2/representations.rb +0 -72
  550. data/generated/google/apis/displayvideo_v1beta2/service.rb +0 -130
  551. data/generated/google/apis/displayvideo_v1dev.rb +0 -38
  552. data/generated/google/apis/displayvideo_v1dev/classes.rb +0 -146
  553. data/generated/google/apis/displayvideo_v1dev/service.rb +0 -130
  554. data/generated/google/apis/jobs_v2/classes.rb +0 -4012
  555. data/generated/google/apis/jobs_v2/representations.rb +0 -1396
  556. data/generated/google/apis/jobs_v2/service.rb +0 -693
data/Gemfile CHANGED
@@ -23,6 +23,7 @@ group :development do
23
23
  gem 'logging', '~> 2.2'
24
24
  gem 'opencensus', '~> 0.4'
25
25
  gem 'httparty'
26
+ gem 'gems', '~> 1.2'
26
27
  end
27
28
 
28
29
  platforms :jruby do
data/Rakefile CHANGED
@@ -79,10 +79,28 @@ namespace :kokoro do
79
79
  end
80
80
 
81
81
  task :release do
82
- # Until code generation process is updated and release-please is set up, just publish docs
83
- require_relative "rakelib/devsite/devsite_builder.rb"
82
+ Rake::Task["kokoro:publish_gem"].invoke
83
+ Rake::Task["kokoro:publish_docs"].invoke
84
+ end
85
+
86
+ task :publish_gem do
87
+ require "gems"
88
+
89
+ load_env_vars if ENV["KOKORO_GFILE_DIR"]
90
+ api_token = ENV["RUBYGEMS_API_TOKEN"]
91
+ if api_token
92
+ ::Gems.configure do |config|
93
+ config.key = api_token
94
+ end
95
+ end
96
+
97
+ rm_rf "pkg"
98
+ Rake::Task["build"].invoke
99
+ built_gem_path = Dir.glob("pkg/google-api-client-*.gem").last
84
100
 
85
- DevsiteBuilder.new.publish_if_missing ENV["DOCS_BUILD_TAG"]
101
+ response = ::Gems.push File.new built_gem_path
102
+ puts response
103
+ raise "Failed to release gem" unless response.include? "Successfully registered gem:"
86
104
  end
87
105
 
88
106
  desc "Publish docs for the latest git tag"
@@ -93,6 +111,16 @@ namespace :kokoro do
93
111
  end
94
112
  end
95
113
 
114
+ def load_env_vars
115
+ service_account = "#{ENV['KOKORO_GFILE_DIR']}/service-account.json"
116
+ raise "#{service_account} is not a file" unless File.file? service_account
117
+ ENV["GOOGLE_APPLICATION_CREDENTIALS"] = service_account
118
+ filename = "#{ENV['KOKORO_GFILE_DIR']}/ruby_env_vars.json"
119
+ raise "#{filename} is not a file" unless File.file? filename
120
+ env_vars = JSON.parse File.read(filename)
121
+ env_vars.each { |k, v| ENV[k] ||= v }
122
+ end
123
+
96
124
  def header str, token = "#"
97
125
  line_length = str.length + 8
98
126
  puts
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/access-approval/docs
26
26
  module AccessapprovalV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200930'
28
+ REVISION = '20201030'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -317,21 +317,19 @@ module Google
317
317
  include Google::Apis::Core::Hashable
318
318
 
319
319
  # The product for which Access Approval will be enrolled. Allowed values are
320
- # listed below (case-sensitive): * all * GA * App Engine * BigQuery * Cloud
321
- # Bigtable * Cloud Key Management Service * Compute Engine * Cloud Dataflow *
322
- # Cloud Identity and Access Management * Cloud Pub/Sub * Cloud Storage *
323
- # Persistent Disk Note: These values are supported as input for legacy purposes,
324
- # but will not be returned from the API. * all * ga-only * appengine.googleapis.
325
- # com * bigquery.googleapis.com * bigtable.googleapis.com * cloudkms.googleapis.
326
- # com * compute.googleapis.com * dataflow.googleapis.com * iam.googleapis.com *
327
- # pubsub.googleapis.com * storage.googleapis.com Calls to
328
- # UpdateAccessApprovalSettings using 'all', 'ga-only', or any of the XXX.
329
- # googleapis.com will be translated to the associated product name ('all', 'GA',
330
- # 'App Engine', etc.). Note: 'all' will enroll the resource in all products
331
- # supported at both 'GA' and 'Preview' levels. 'ga-only'/'GA' will only enroll
332
- # the resource in products supported at 'GA' level. More information about
333
- # levels of support is available at https://cloud.google.com/access-approval/
334
- # docs/supported-services
320
+ # listed below (case-sensitive): * all * App Engine * BigQuery * Cloud Bigtable *
321
+ # Cloud Key Management Service * Compute Engine * Cloud Dataflow * Cloud
322
+ # Identity and Access Management * Cloud Pub/Sub * Cloud Storage * Persistent
323
+ # Disk Note: These values are supported as input for legacy purposes, but will
324
+ # not be returned from the API. * all * appengine.googleapis.com * bigquery.
325
+ # googleapis.com * bigtable.googleapis.com * cloudkms.googleapis.com * compute.
326
+ # googleapis.com * dataflow.googleapis.com * iam.googleapis.com * pubsub.
327
+ # googleapis.com * storage.googleapis.com Calls to UpdateAccessApprovalSettings
328
+ # using 'all' or any of the XXX.googleapis.com will be translated to the
329
+ # associated product name ('all', 'App Engine', etc.). Note: 'all' will enroll
330
+ # the resource in all products supported at both 'GA' and 'Preview' levels. More
331
+ # information about levels of support is available at https://cloud.google.com/
332
+ # access-approval/docs/supported-services
335
333
  # Corresponds to the JSON property `cloudProduct`
336
334
  # @return [String]
337
335
  attr_accessor :cloud_product
@@ -268,9 +268,10 @@ module Google
268
268
  # A filter on the type of approval requests to retrieve. Must be one of the
269
269
  # following values: * [not set]: Requests that are pending or have active
270
270
  # approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE:
271
- # Only active (i.e. currently approved) requests. * DISMISSED: Only dismissed (
272
- # including expired) requests. * HISTORY: Active and dismissed (including
273
- # expired) requests.
271
+ # Only active (i.e. currently approved) requests. * DISMISSED: Only requests
272
+ # that have been dismissed, or requests that . are not approved and past
273
+ # expiration. * EXPIRED: Only requests that have been approved, and the approval
274
+ # has expired. * HISTORY: Active, dismissed and expired requests.
274
275
  # @param [Fixnum] page_size
275
276
  # Requested page size.
276
277
  # @param [String] page_token
@@ -526,9 +527,10 @@ module Google
526
527
  # A filter on the type of approval requests to retrieve. Must be one of the
527
528
  # following values: * [not set]: Requests that are pending or have active
528
529
  # approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE:
529
- # Only active (i.e. currently approved) requests. * DISMISSED: Only dismissed (
530
- # including expired) requests. * HISTORY: Active and dismissed (including
531
- # expired) requests.
530
+ # Only active (i.e. currently approved) requests. * DISMISSED: Only requests
531
+ # that have been dismissed, or requests that . are not approved and past
532
+ # expiration. * EXPIRED: Only requests that have been approved, and the approval
533
+ # has expired. * HISTORY: Active, dismissed and expired requests.
532
534
  # @param [Fixnum] page_size
533
535
  # Requested page size.
534
536
  # @param [String] page_token
@@ -784,9 +786,10 @@ module Google
784
786
  # A filter on the type of approval requests to retrieve. Must be one of the
785
787
  # following values: * [not set]: Requests that are pending or have active
786
788
  # approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE:
787
- # Only active (i.e. currently approved) requests. * DISMISSED: Only dismissed (
788
- # including expired) requests. * HISTORY: Active and dismissed (including
789
- # expired) requests.
789
+ # Only active (i.e. currently approved) requests. * DISMISSED: Only requests
790
+ # that have been dismissed, or requests that . are not approved and past
791
+ # expiration. * EXPIRED: Only requests that have been approved, and the approval
792
+ # has expired. * HISTORY: Active, dismissed and expired requests.
790
793
  # @param [Fixnum] page_size
791
794
  # Requested page size.
792
795
  # @param [String] page_token
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://developers.google.com/authorized-buyers/apis/reference/rest/
28
28
  module Adexchangebuyer2V2beta1
29
29
  VERSION = 'V2beta1'
30
- REVISION = '20201013'
30
+ REVISION = '20201202'
31
31
 
32
32
  # Manage your Ad Exchange buyer account configuration
33
33
  AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -1162,10 +1162,10 @@ module Google
1162
1162
  # @return [String]
1163
1163
  attr_accessor :available_end_time
1164
1164
 
1165
- # Optional proposed flight start time of the deal. This will generally be stored
1166
- # in the granularity of one second since deal serving starts at seconds boundary.
1167
- # Any time specified with more granularity (e.g., in milliseconds) will be
1168
- # truncated towards the start of time in seconds.
1165
+ # Optional. Proposed flight start time of the deal. This will generally be
1166
+ # stored in the granularity of one second since deal serving starts at seconds
1167
+ # boundary. Any time specified with more granularity (e.g., in milliseconds)
1168
+ # will be truncated towards the start of time in seconds.
1169
1169
  # Corresponds to the JSON property `availableStartTime`
1170
1170
  # @return [String]
1171
1171
  attr_accessor :available_start_time
@@ -1182,8 +1182,8 @@ module Google
1182
1182
  # @return [String]
1183
1183
  attr_accessor :create_product_id
1184
1184
 
1185
- # Optional revision number of the product that the deal was created from. If
1186
- # present on create, and the server `product_revision` has advanced sinced the
1185
+ # Optional. Revision number of the product that the deal was created from. If
1186
+ # present on create, and the server `product_revision` has advanced since the
1187
1187
  # passed-in `create_product_revision`, an `ABORTED` error will be returned. Note:
1188
1188
  # This field may be set only when creating the resource. Modifying this field
1189
1189
  # while updating the resource will result in an error.
@@ -3327,6 +3327,11 @@ module Google
3327
3327
  # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ContactInformation>]
3328
3328
  attr_accessor :seller_contacts
3329
3329
 
3330
+ # Output only. The terms and conditions set by the publisher for this proposal.
3331
+ # Corresponds to the JSON property `termsAndConditions`
3332
+ # @return [String]
3333
+ attr_accessor :terms_and_conditions
3334
+
3330
3335
  # Output only. The time when the proposal was last revised.
3331
3336
  # Corresponds to the JSON property `updateTime`
3332
3337
  # @return [String]
@@ -3355,6 +3360,7 @@ module Google
3355
3360
  @proposal_state = args[:proposal_state] if args.key?(:proposal_state)
3356
3361
  @seller = args[:seller] if args.key?(:seller)
3357
3362
  @seller_contacts = args[:seller_contacts] if args.key?(:seller_contacts)
3363
+ @terms_and_conditions = args[:terms_and_conditions] if args.key?(:terms_and_conditions)
3358
3364
  @update_time = args[:update_time] if args.key?(:update_time)
3359
3365
  end
3360
3366
  end
@@ -3426,6 +3432,12 @@ module Google
3426
3432
  # @return [String]
3427
3433
  attr_accessor :media_kit_url
3428
3434
 
3435
+ # The list of apps represented in this publisher profile. Empty if this is a
3436
+ # parent profile.
3437
+ # Corresponds to the JSON property `mobileApps`
3438
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::PublisherProfileMobileApplication>]
3439
+ attr_accessor :mobile_apps
3440
+
3429
3441
  # Overview of the publisher.
3430
3442
  # Corresponds to the JSON property `overview`
3431
3443
  # @return [String]
@@ -3480,6 +3492,7 @@ module Google
3480
3492
  @is_parent = args[:is_parent] if args.key?(:is_parent)
3481
3493
  @logo_url = args[:logo_url] if args.key?(:logo_url)
3482
3494
  @media_kit_url = args[:media_kit_url] if args.key?(:media_kit_url)
3495
+ @mobile_apps = args[:mobile_apps] if args.key?(:mobile_apps)
3483
3496
  @overview = args[:overview] if args.key?(:overview)
3484
3497
  @programmatic_deals_contact = args[:programmatic_deals_contact] if args.key?(:programmatic_deals_contact)
3485
3498
  @publisher_profile_id = args[:publisher_profile_id] if args.key?(:publisher_profile_id)
@@ -3490,6 +3503,37 @@ module Google
3490
3503
  end
3491
3504
  end
3492
3505
 
3506
+ # A mobile application that contains a external app ID, name, and app store.
3507
+ class PublisherProfileMobileApplication
3508
+ include Google::Apis::Core::Hashable
3509
+
3510
+ # The app store the app belongs to.
3511
+ # Corresponds to the JSON property `appStore`
3512
+ # @return [String]
3513
+ attr_accessor :app_store
3514
+
3515
+ # The external ID for the app from its app store.
3516
+ # Corresponds to the JSON property `externalAppId`
3517
+ # @return [String]
3518
+ attr_accessor :external_app_id
3519
+
3520
+ # The name of the app.
3521
+ # Corresponds to the JSON property `name`
3522
+ # @return [String]
3523
+ attr_accessor :name
3524
+
3525
+ def initialize(**args)
3526
+ update!(**args)
3527
+ end
3528
+
3529
+ # Update properties of this object
3530
+ def update!(**args)
3531
+ @app_store = args[:app_store] if args.key?(:app_store)
3532
+ @external_app_id = args[:external_app_id] if args.key?(:external_app_id)
3533
+ @name = args[:name] if args.key?(:name)
3534
+ end
3535
+ end
3536
+
3493
3537
  # An open-ended realtime time range specified by the start timestamp. For filter
3494
3538
  # sets that specify a realtime time range RTB metrics continue to be aggregated
3495
3539
  # throughout the lifetime of the filter set.
@@ -532,6 +532,12 @@ module Google
532
532
  include Google::Apis::Core::JsonObjectSupport
533
533
  end
534
534
 
535
+ class PublisherProfileMobileApplication
536
+ class Representation < Google::Apis::Core::JsonRepresentation; end
537
+
538
+ include Google::Apis::Core::JsonObjectSupport
539
+ end
540
+
535
541
  class RealtimeTimeRange
536
542
  class Representation < Google::Apis::Core::JsonRepresentation; end
537
543
 
@@ -1575,6 +1581,7 @@ module Google
1575
1581
 
1576
1582
  collection :seller_contacts, as: 'sellerContacts', class: Google::Apis::Adexchangebuyer2V2beta1::ContactInformation, decorator: Google::Apis::Adexchangebuyer2V2beta1::ContactInformation::Representation
1577
1583
 
1584
+ property :terms_and_conditions, as: 'termsAndConditions'
1578
1585
  property :update_time, as: 'updateTime'
1579
1586
  end
1580
1587
  end
@@ -1591,6 +1598,8 @@ module Google
1591
1598
  property :is_parent, as: 'isParent'
1592
1599
  property :logo_url, as: 'logoUrl'
1593
1600
  property :media_kit_url, as: 'mediaKitUrl'
1601
+ collection :mobile_apps, as: 'mobileApps', class: Google::Apis::Adexchangebuyer2V2beta1::PublisherProfileMobileApplication, decorator: Google::Apis::Adexchangebuyer2V2beta1::PublisherProfileMobileApplication::Representation
1602
+
1594
1603
  property :overview, as: 'overview'
1595
1604
  property :programmatic_deals_contact, as: 'programmaticDealsContact'
1596
1605
  property :publisher_profile_id, as: 'publisherProfileId'
@@ -1602,6 +1611,15 @@ module Google
1602
1611
  end
1603
1612
  end
1604
1613
 
1614
+ class PublisherProfileMobileApplication
1615
+ # @private
1616
+ class Representation < Google::Apis::Core::JsonRepresentation
1617
+ property :app_store, as: 'appStore'
1618
+ property :external_app_id, as: 'externalAppId'
1619
+ property :name, as: 'name'
1620
+ end
1621
+ end
1622
+
1605
1623
  class RealtimeTimeRange
1606
1624
  # @private
1607
1625
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -930,7 +930,9 @@ module Google
930
930
  # Mark the proposal as accepted at the given revision number. If the number does
931
931
  # not match the server's revision number an `ABORTED` error message will be
932
932
  # returned. This call updates the proposal_state from `PROPOSED` to `
933
- # BUYER_ACCEPTED`, or from `SELLER_ACCEPTED` to `FINALIZED`.
933
+ # BUYER_ACCEPTED`, or from `SELLER_ACCEPTED` to `FINALIZED`. Upon calling this
934
+ # endpoint, the buyer implicitly agrees to the terms and conditions optionally
935
+ # set within the proposal by the publisher.
934
936
  # @param [String] account_id
935
937
  # Account ID of the buyer.
936
938
  # @param [String] proposal_id
@@ -26,7 +26,10 @@ module Google
26
26
  # @see https://developers.google.com/admob/api/
27
27
  module AdmobV1
28
28
  VERSION = 'V1'
29
- REVISION = '20201013'
29
+ REVISION = '20201114'
30
+
31
+ # See your AdMob data
32
+ AUTH_ADMOB_READONLY = 'https://www.googleapis.com/auth/admob.readonly'
30
33
 
31
34
  # See your AdMob data
32
35
  AUTH_ADMOB_REPORT = 'https://www.googleapis.com/auth/admob.report'
@@ -116,6 +116,8 @@ module Google
116
116
  end
117
117
 
118
118
  # Generates an AdMob Mediation report based on the provided report specification.
119
+ # Returns result of a server-side streaming RPC. The result is returned in a
120
+ # sequence of responses.
119
121
  # @param [String] parent
120
122
  # Resource name of the account to generate the report for. Example: accounts/pub-
121
123
  # 9876543210987654
@@ -150,6 +152,8 @@ module Google
150
152
  end
151
153
 
152
154
  # Generates an AdMob Network report based on the provided report specification.
155
+ # Returns result of a server-side streaming RPC. The result is returned in a
156
+ # sequence of responses.
153
157
  # @param [String] parent
154
158
  # Resource name of the account to generate the report for. Example: accounts/pub-
155
159
  # 9876543210987654
@@ -0,0 +1,38 @@
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/admob_v1beta/service.rb'
16
+ require 'google/apis/admob_v1beta/classes.rb'
17
+ require 'google/apis/admob_v1beta/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # AdMob API
22
+ #
23
+ # The AdMob API allows publishers to programmatically get information about
24
+ # their AdMob account.
25
+ #
26
+ # @see https://developers.google.com/admob/api/
27
+ module AdmobV1beta
28
+ VERSION = 'V1beta'
29
+ REVISION = '20201114'
30
+
31
+ # See your AdMob data
32
+ AUTH_ADMOB_READONLY = 'https://www.googleapis.com/auth/admob.readonly'
33
+
34
+ # See your AdMob data
35
+ AUTH_ADMOB_REPORT = 'https://www.googleapis.com/auth/admob.report'
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,1035 @@
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 AdmobV1beta
24
+
25
+ # Describes an AdMob ad unit.
26
+ class AdUnit
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # AdFormat of the ad unit. Possible values are as follows: "BANNER" - Banner ad
30
+ # format. "BANNER_INTERSTITIAL" - Legacy format that can be used as either
31
+ # banner or interstitial. This format can no longer be created but can be
32
+ # targeted by mediation groups. "INTERSTITIAL" - A full screen ad. Supported ad
33
+ # types are "RICH_MEDIA" and "VIDEO". "NATIVE" - Native ad format. "REWARDED" -
34
+ # An ad that, once viewed, gets a callback verifying the view so that a reward
35
+ # can be given to the user. Supported ad types are "RICH_MEDIA" (interactive)
36
+ # and video where video can not be excluded.
37
+ # Corresponds to the JSON property `adFormat`
38
+ # @return [String]
39
+ attr_accessor :ad_format
40
+
41
+ # Ad media type supported by this ad unit. Possible values as follows: "
42
+ # RICH_MEDIA" - Text, image, and other non-video media. "VIDEO" - Video media.
43
+ # Corresponds to the JSON property `adTypes`
44
+ # @return [Array<String>]
45
+ attr_accessor :ad_types
46
+
47
+ # The externally visible ID of the ad unit which can be used to integrate with
48
+ # the AdMob SDK. This is a read only property. Example: ca-app-pub-
49
+ # 9876543210987654/0123456789
50
+ # Corresponds to the JSON property `adUnitId`
51
+ # @return [String]
52
+ attr_accessor :ad_unit_id
53
+
54
+ # The externally visible ID of the app this ad unit is associated with. Example:
55
+ # ca-app-pub-9876543210987654~0123456789
56
+ # Corresponds to the JSON property `appId`
57
+ # @return [String]
58
+ attr_accessor :app_id
59
+
60
+ # The display name of the ad unit as shown in the AdMob UI, which is provided by
61
+ # the user. The maximum length allowed is 80 characters.
62
+ # Corresponds to the JSON property `displayName`
63
+ # @return [String]
64
+ attr_accessor :display_name
65
+
66
+ # Resource name for this ad unit. Format is accounts/`publisher_id`/adUnits/`
67
+ # ad_unit_id_fragment` Example: accounts/pub-9876543210987654/adUnits/0123456789
68
+ # Corresponds to the JSON property `name`
69
+ # @return [String]
70
+ attr_accessor :name
71
+
72
+ def initialize(**args)
73
+ update!(**args)
74
+ end
75
+
76
+ # Update properties of this object
77
+ def update!(**args)
78
+ @ad_format = args[:ad_format] if args.key?(:ad_format)
79
+ @ad_types = args[:ad_types] if args.key?(:ad_types)
80
+ @ad_unit_id = args[:ad_unit_id] if args.key?(:ad_unit_id)
81
+ @app_id = args[:app_id] if args.key?(:app_id)
82
+ @display_name = args[:display_name] if args.key?(:display_name)
83
+ @name = args[:name] if args.key?(:name)
84
+ end
85
+ end
86
+
87
+ # Describes an AdMob app for a specific platform (For example: Android or iOS).
88
+ class App
89
+ include Google::Apis::Core::Hashable
90
+
91
+ # The externally visible ID of the app which can be used to integrate with the
92
+ # AdMob SDK. This is a read only property. Example: ca-app-pub-9876543210987654~
93
+ # 0123456789
94
+ # Corresponds to the JSON property `appId`
95
+ # @return [String]
96
+ attr_accessor :app_id
97
+
98
+ # Information from the app store if the app is linked to an app store.
99
+ # Corresponds to the JSON property `linkedAppInfo`
100
+ # @return [Google::Apis::AdmobV1beta::AppLinkedAppInfo]
101
+ attr_accessor :linked_app_info
102
+
103
+ # Information provided for manual apps which are not linked to an application
104
+ # store (Example: Google Play, App Store).
105
+ # Corresponds to the JSON property `manualAppInfo`
106
+ # @return [Google::Apis::AdmobV1beta::AppManualAppInfo]
107
+ attr_accessor :manual_app_info
108
+
109
+ # Resource name for this app. Format is accounts/`publisher_id`/apps/`
110
+ # app_id_fragment` Example: accounts/pub-9876543210987654/apps/0123456789
111
+ # Corresponds to the JSON property `name`
112
+ # @return [String]
113
+ attr_accessor :name
114
+
115
+ # Describes the platform of the app. Limited to "IOS" and "ANDROID".
116
+ # Corresponds to the JSON property `platform`
117
+ # @return [String]
118
+ attr_accessor :platform
119
+
120
+ def initialize(**args)
121
+ update!(**args)
122
+ end
123
+
124
+ # Update properties of this object
125
+ def update!(**args)
126
+ @app_id = args[:app_id] if args.key?(:app_id)
127
+ @linked_app_info = args[:linked_app_info] if args.key?(:linked_app_info)
128
+ @manual_app_info = args[:manual_app_info] if args.key?(:manual_app_info)
129
+ @name = args[:name] if args.key?(:name)
130
+ @platform = args[:platform] if args.key?(:platform)
131
+ end
132
+ end
133
+
134
+ # Information from the app store if the app is linked to an app store.
135
+ class AppLinkedAppInfo
136
+ include Google::Apis::Core::Hashable
137
+
138
+ # The app store ID of the app; present if and only if the app is linked to an
139
+ # app store. If the app is added to the Google Play store, it will be the
140
+ # application ID of the app. For example: "com.example.myapp". See https://
141
+ # developer.android.com/studio/build/application-id. If the app is added to the
142
+ # Apple App Store, it will be app store ID. For example "105169111". Note that
143
+ # setting the app store id is considered an irreversible action. Once an app is
144
+ # linked, it cannot be unlinked.
145
+ # Corresponds to the JSON property `appStoreId`
146
+ # @return [String]
147
+ attr_accessor :app_store_id
148
+
149
+ # Output only. Display name of the app as it appears in the app store. This is
150
+ # an output-only field, and may be empty if the app cannot be found in the store.
151
+ # Corresponds to the JSON property `displayName`
152
+ # @return [String]
153
+ attr_accessor :display_name
154
+
155
+ def initialize(**args)
156
+ update!(**args)
157
+ end
158
+
159
+ # Update properties of this object
160
+ def update!(**args)
161
+ @app_store_id = args[:app_store_id] if args.key?(:app_store_id)
162
+ @display_name = args[:display_name] if args.key?(:display_name)
163
+ end
164
+ end
165
+
166
+ # Information provided for manual apps which are not linked to an application
167
+ # store (Example: Google Play, App Store).
168
+ class AppManualAppInfo
169
+ include Google::Apis::Core::Hashable
170
+
171
+ # The display name of the app as shown in the AdMob UI, which is provided by the
172
+ # user. The maximum length allowed is 80 characters.
173
+ # Corresponds to the JSON property `displayName`
174
+ # @return [String]
175
+ attr_accessor :display_name
176
+
177
+ def initialize(**args)
178
+ update!(**args)
179
+ end
180
+
181
+ # Update properties of this object
182
+ def update!(**args)
183
+ @display_name = args[:display_name] if args.key?(:display_name)
184
+ end
185
+ end
186
+
187
+ # Represents a whole or partial calendar date, such as a birthday. The time of
188
+ # day and time zone are either specified elsewhere or are insignificant. The
189
+ # date is relative to the Gregorian Calendar. This can represent one of the
190
+ # following: * A full date, with non-zero year, month, and day values * A month
191
+ # and day value, with a zero year, such as an anniversary * A year on its own,
192
+ # with zero month and day values * A year and month value, with a zero day, such
193
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
194
+ # google.protobuf.Timestamp`.
195
+ class Date
196
+ include Google::Apis::Core::Hashable
197
+
198
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
199
+ # specify a year by itself or a year and month where the day isn't significant.
200
+ # Corresponds to the JSON property `day`
201
+ # @return [Fixnum]
202
+ attr_accessor :day
203
+
204
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
205
+ # and day.
206
+ # Corresponds to the JSON property `month`
207
+ # @return [Fixnum]
208
+ attr_accessor :month
209
+
210
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
211
+ # year.
212
+ # Corresponds to the JSON property `year`
213
+ # @return [Fixnum]
214
+ attr_accessor :year
215
+
216
+ def initialize(**args)
217
+ update!(**args)
218
+ end
219
+
220
+ # Update properties of this object
221
+ def update!(**args)
222
+ @day = args[:day] if args.key?(:day)
223
+ @month = args[:month] if args.key?(:month)
224
+ @year = args[:year] if args.key?(:year)
225
+ end
226
+ end
227
+
228
+ # Specification of a single date range. Both dates are inclusive.
229
+ class DateRange
230
+ include Google::Apis::Core::Hashable
231
+
232
+ # Represents a whole or partial calendar date, such as a birthday. The time of
233
+ # day and time zone are either specified elsewhere or are insignificant. The
234
+ # date is relative to the Gregorian Calendar. This can represent one of the
235
+ # following: * A full date, with non-zero year, month, and day values * A month
236
+ # and day value, with a zero year, such as an anniversary * A year on its own,
237
+ # with zero month and day values * A year and month value, with a zero day, such
238
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
239
+ # google.protobuf.Timestamp`.
240
+ # Corresponds to the JSON property `endDate`
241
+ # @return [Google::Apis::AdmobV1beta::Date]
242
+ attr_accessor :end_date
243
+
244
+ # Represents a whole or partial calendar date, such as a birthday. The time of
245
+ # day and time zone are either specified elsewhere or are insignificant. The
246
+ # date is relative to the Gregorian Calendar. This can represent one of the
247
+ # following: * A full date, with non-zero year, month, and day values * A month
248
+ # and day value, with a zero year, such as an anniversary * A year on its own,
249
+ # with zero month and day values * A year and month value, with a zero day, such
250
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
251
+ # google.protobuf.Timestamp`.
252
+ # Corresponds to the JSON property `startDate`
253
+ # @return [Google::Apis::AdmobV1beta::Date]
254
+ attr_accessor :start_date
255
+
256
+ def initialize(**args)
257
+ update!(**args)
258
+ end
259
+
260
+ # Update properties of this object
261
+ def update!(**args)
262
+ @end_date = args[:end_date] if args.key?(:end_date)
263
+ @start_date = args[:start_date] if args.key?(:start_date)
264
+ end
265
+ end
266
+
267
+ # Request to generate an AdMob Mediation report.
268
+ class GenerateMediationReportRequest
269
+ include Google::Apis::Core::Hashable
270
+
271
+ # The specification for generating an AdMob Mediation report. For example, the
272
+ # specification to get observed ECPM sliced by ad source and app for the 'US'
273
+ # and 'CN' countries can look like the following example: ` "date_range": ` "
274
+ # start_date": `"year": 2018, "month": 9, "day": 1`, "end_date": `"year": 2018, "
275
+ # month": 9, "day": 30` `, "dimensions": ["AD_SOURCE", "APP", "COUNTRY"], "
276
+ # metrics": ["OBSERVED_ECPM"], "dimension_filters": [ ` "dimension": "COUNTRY", "
277
+ # matches_any": `"values": [`"value": "US", "value": "CN"`]` ` ], "
278
+ # sort_conditions": [ `"dimension":"APP", order: "ASCENDING"` ], "
279
+ # localization_settings": ` "currency_code": "USD", "language_code": "en-US" ` `
280
+ # For a better understanding, you can treat the preceding specification like the
281
+ # following pseudo SQL: SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM FROM
282
+ # MEDIATION_REPORT WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30' AND
283
+ # COUNTRY IN ('US', 'CN') GROUP BY AD_SOURCE, APP, COUNTRY ORDER BY APP ASC;
284
+ # Corresponds to the JSON property `reportSpec`
285
+ # @return [Google::Apis::AdmobV1beta::MediationReportSpec]
286
+ attr_accessor :report_spec
287
+
288
+ def initialize(**args)
289
+ update!(**args)
290
+ end
291
+
292
+ # Update properties of this object
293
+ def update!(**args)
294
+ @report_spec = args[:report_spec] if args.key?(:report_spec)
295
+ end
296
+ end
297
+
298
+ # The streaming response for the AdMob Mediation report where the first response
299
+ # contains the report header, then a stream of row responses, and finally a
300
+ # footer as the last response message. For example: [` "header": ` "date_range":
301
+ # ` "start_date": `"year": 2018, "month": 9, "day": 1`, "end_date": `"year":
302
+ # 2018, "month": 9, "day": 1` `, "localization_settings": ` "currency_code": "
303
+ # USD", "language_code": "en-US" ` ` `, ` "row": ` "dimension_values": ` "DATE":
304
+ # `"value": "20180918"`, "APP": ` "value": "ca-app-pub-8123415297019784~
305
+ # 1001342552", "display_label": "My app name!" ` `, "metric_values": ` "
306
+ # ESTIMATED_EARNINGS": `"decimal_value": "1324746"` ` ` `, ` "footer": `"
307
+ # matching_row_count": 1` `]
308
+ class GenerateMediationReportResponse
309
+ include Google::Apis::Core::Hashable
310
+
311
+ # Groups data available after report generation, for example, warnings and row
312
+ # counts. Always sent as the last message in the stream response.
313
+ # Corresponds to the JSON property `footer`
314
+ # @return [Google::Apis::AdmobV1beta::ReportFooter]
315
+ attr_accessor :footer
316
+
317
+ # Groups data helps to treat the generated report. Always sent as a first
318
+ # message in the stream response.
319
+ # Corresponds to the JSON property `header`
320
+ # @return [Google::Apis::AdmobV1beta::ReportHeader]
321
+ attr_accessor :header
322
+
323
+ # A row of the returning report.
324
+ # Corresponds to the JSON property `row`
325
+ # @return [Google::Apis::AdmobV1beta::ReportRow]
326
+ attr_accessor :row
327
+
328
+ def initialize(**args)
329
+ update!(**args)
330
+ end
331
+
332
+ # Update properties of this object
333
+ def update!(**args)
334
+ @footer = args[:footer] if args.key?(:footer)
335
+ @header = args[:header] if args.key?(:header)
336
+ @row = args[:row] if args.key?(:row)
337
+ end
338
+ end
339
+
340
+ # Request to generate an AdMob Network report.
341
+ class GenerateNetworkReportRequest
342
+ include Google::Apis::Core::Hashable
343
+
344
+ # The specification for generating an AdMob Network report. For example, the
345
+ # specification to get clicks and estimated earnings for only the 'US' and 'CN'
346
+ # countries can look like the following example: ` 'date_range': ` 'start_date':
347
+ # `'year': 2018, 'month': 9, 'day': 1`, 'end_date': `'year': 2018, 'month': 9, '
348
+ # day': 30` `, 'dimensions': ['DATE', 'APP', 'COUNTRY'], 'metrics': ['CLICKS', '
349
+ # ESTIMATED_EARNINGS'], 'dimension_filters': [ ` 'dimension': 'COUNTRY', '
350
+ # matches_any': `'values': [`'value': 'US', 'value': 'CN'`]` ` ], '
351
+ # sort_conditions': [ `'dimension':'APP', order: 'ASCENDING'`, `'metric':'CLICKS'
352
+ # , order: 'DESCENDING'` ], 'localization_settings': ` 'currency_code': 'USD', '
353
+ # language_code': 'en-US' ` ` For a better understanding, you can treat the
354
+ # preceding specification like the following pseudo SQL: SELECT DATE, APP,
355
+ # COUNTRY, CLICKS, ESTIMATED_EARNINGS FROM NETWORK_REPORT WHERE DATE >= '2018-09-
356
+ # 01' AND DATE <= '2018-09-30' AND COUNTRY IN ('US', 'CN') GROUP BY DATE, APP,
357
+ # COUNTRY ORDER BY APP ASC, CLICKS DESC;
358
+ # Corresponds to the JSON property `reportSpec`
359
+ # @return [Google::Apis::AdmobV1beta::NetworkReportSpec]
360
+ attr_accessor :report_spec
361
+
362
+ def initialize(**args)
363
+ update!(**args)
364
+ end
365
+
366
+ # Update properties of this object
367
+ def update!(**args)
368
+ @report_spec = args[:report_spec] if args.key?(:report_spec)
369
+ end
370
+ end
371
+
372
+ # The streaming response for the AdMob Network report where the first response
373
+ # contains the report header, then a stream of row responses, and finally a
374
+ # footer as the last response message. For example: [` "header": ` "dateRange": `
375
+ # "startDate": `"year": 2018, "month": 9, "day": 1`, "endDate": `"year": 2018, "
376
+ # month": 9, "day": 1` `, "localizationSettings": ` "currencyCode": "USD", "
377
+ # languageCode": "en-US" ` ` `, ` "row": ` "dimensionValues": ` "DATE": `"value":
378
+ # "20180918"`, "APP": ` "value": "ca-app-pub-8123415297019784~1001342552",
379
+ # displayLabel: "My app name!" ` `, "metricValues": ` "ESTIMATED_EARNINGS": `"
380
+ # microsValue": 6500000` ` ` `, ` "footer": `"matchingRowCount": 1` `]
381
+ class GenerateNetworkReportResponse
382
+ include Google::Apis::Core::Hashable
383
+
384
+ # Groups data available after report generation, for example, warnings and row
385
+ # counts. Always sent as the last message in the stream response.
386
+ # Corresponds to the JSON property `footer`
387
+ # @return [Google::Apis::AdmobV1beta::ReportFooter]
388
+ attr_accessor :footer
389
+
390
+ # Groups data helps to treat the generated report. Always sent as a first
391
+ # message in the stream response.
392
+ # Corresponds to the JSON property `header`
393
+ # @return [Google::Apis::AdmobV1beta::ReportHeader]
394
+ attr_accessor :header
395
+
396
+ # A row of the returning report.
397
+ # Corresponds to the JSON property `row`
398
+ # @return [Google::Apis::AdmobV1beta::ReportRow]
399
+ attr_accessor :row
400
+
401
+ def initialize(**args)
402
+ update!(**args)
403
+ end
404
+
405
+ # Update properties of this object
406
+ def update!(**args)
407
+ @footer = args[:footer] if args.key?(:footer)
408
+ @header = args[:header] if args.key?(:header)
409
+ @row = args[:row] if args.key?(:row)
410
+ end
411
+ end
412
+
413
+ # Response for the ad units list request.
414
+ class ListAdUnitsResponse
415
+ include Google::Apis::Core::Hashable
416
+
417
+ # The resulting ad units for the requested account.
418
+ # Corresponds to the JSON property `adUnits`
419
+ # @return [Array<Google::Apis::AdmobV1beta::AdUnit>]
420
+ attr_accessor :ad_units
421
+
422
+ # If not empty, indicates that there may be more ad units for the request; this
423
+ # value should be passed in a new `ListAdUnitsRequest`.
424
+ # Corresponds to the JSON property `nextPageToken`
425
+ # @return [String]
426
+ attr_accessor :next_page_token
427
+
428
+ def initialize(**args)
429
+ update!(**args)
430
+ end
431
+
432
+ # Update properties of this object
433
+ def update!(**args)
434
+ @ad_units = args[:ad_units] if args.key?(:ad_units)
435
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
436
+ end
437
+ end
438
+
439
+ # Response for the apps list request.
440
+ class ListAppsResponse
441
+ include Google::Apis::Core::Hashable
442
+
443
+ # The resulting apps for the requested account.
444
+ # Corresponds to the JSON property `apps`
445
+ # @return [Array<Google::Apis::AdmobV1beta::App>]
446
+ attr_accessor :apps
447
+
448
+ # If not empty, indicates that there may be more apps for the request; this
449
+ # value should be passed in a new `ListAppsRequest`.
450
+ # Corresponds to the JSON property `nextPageToken`
451
+ # @return [String]
452
+ attr_accessor :next_page_token
453
+
454
+ def initialize(**args)
455
+ update!(**args)
456
+ end
457
+
458
+ # Update properties of this object
459
+ def update!(**args)
460
+ @apps = args[:apps] if args.key?(:apps)
461
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
462
+ end
463
+ end
464
+
465
+ # Response for the publisher account list request.
466
+ class ListPublisherAccountsResponse
467
+ include Google::Apis::Core::Hashable
468
+
469
+ # Publisher that the client credentials can access.
470
+ # Corresponds to the JSON property `account`
471
+ # @return [Array<Google::Apis::AdmobV1beta::PublisherAccount>]
472
+ attr_accessor :account
473
+
474
+ # If not empty, indicates that there might be more accounts for the request; you
475
+ # must pass this value in a new `ListPublisherAccountsRequest`.
476
+ # Corresponds to the JSON property `nextPageToken`
477
+ # @return [String]
478
+ attr_accessor :next_page_token
479
+
480
+ def initialize(**args)
481
+ update!(**args)
482
+ end
483
+
484
+ # Update properties of this object
485
+ def update!(**args)
486
+ @account = args[:account] if args.key?(:account)
487
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
488
+ end
489
+ end
490
+
491
+ # Localization settings for reports, such as currency and language. It affects
492
+ # how metrics are calculated.
493
+ class LocalizationSettings
494
+ include Google::Apis::Core::Hashable
495
+
496
+ # Currency code of the earning related metrics, which is the 3-letter code
497
+ # defined in ISO 4217. The daily average rate is used for the currency
498
+ # conversion. Defaults to the account currency code if unspecified.
499
+ # Corresponds to the JSON property `currencyCode`
500
+ # @return [String]
501
+ attr_accessor :currency_code
502
+
503
+ # Language used for any localized text, such as some dimension value display
504
+ # labels. The language tag defined in the IETF BCP47. Defaults to 'en-US' if
505
+ # unspecified.
506
+ # Corresponds to the JSON property `languageCode`
507
+ # @return [String]
508
+ attr_accessor :language_code
509
+
510
+ def initialize(**args)
511
+ update!(**args)
512
+ end
513
+
514
+ # Update properties of this object
515
+ def update!(**args)
516
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
517
+ @language_code = args[:language_code] if args.key?(:language_code)
518
+ end
519
+ end
520
+
521
+ # The specification for generating an AdMob Mediation report. For example, the
522
+ # specification to get observed ECPM sliced by ad source and app for the 'US'
523
+ # and 'CN' countries can look like the following example: ` "date_range": ` "
524
+ # start_date": `"year": 2018, "month": 9, "day": 1`, "end_date": `"year": 2018, "
525
+ # month": 9, "day": 30` `, "dimensions": ["AD_SOURCE", "APP", "COUNTRY"], "
526
+ # metrics": ["OBSERVED_ECPM"], "dimension_filters": [ ` "dimension": "COUNTRY", "
527
+ # matches_any": `"values": [`"value": "US", "value": "CN"`]` ` ], "
528
+ # sort_conditions": [ `"dimension":"APP", order: "ASCENDING"` ], "
529
+ # localization_settings": ` "currency_code": "USD", "language_code": "en-US" ` `
530
+ # For a better understanding, you can treat the preceding specification like the
531
+ # following pseudo SQL: SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM FROM
532
+ # MEDIATION_REPORT WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30' AND
533
+ # COUNTRY IN ('US', 'CN') GROUP BY AD_SOURCE, APP, COUNTRY ORDER BY APP ASC;
534
+ class MediationReportSpec
535
+ include Google::Apis::Core::Hashable
536
+
537
+ # Specification of a single date range. Both dates are inclusive.
538
+ # Corresponds to the JSON property `dateRange`
539
+ # @return [Google::Apis::AdmobV1beta::DateRange]
540
+ attr_accessor :date_range
541
+
542
+ # Describes which report rows to match based on their dimension values.
543
+ # Corresponds to the JSON property `dimensionFilters`
544
+ # @return [Array<Google::Apis::AdmobV1beta::MediationReportSpecDimensionFilter>]
545
+ attr_accessor :dimension_filters
546
+
547
+ # List of dimensions of the report. The value combination of these dimensions
548
+ # determines the row of the report. If no dimensions are specified, the report
549
+ # returns a single row of requested metrics for the entire account.
550
+ # Corresponds to the JSON property `dimensions`
551
+ # @return [Array<String>]
552
+ attr_accessor :dimensions
553
+
554
+ # Localization settings for reports, such as currency and language. It affects
555
+ # how metrics are calculated.
556
+ # Corresponds to the JSON property `localizationSettings`
557
+ # @return [Google::Apis::AdmobV1beta::LocalizationSettings]
558
+ attr_accessor :localization_settings
559
+
560
+ # Maximum number of report data rows to return. If the value is not set, the API
561
+ # returns as many rows as possible, up to 100000. Acceptable values are 1-100000,
562
+ # inclusive. Values larger than 100000 return an error.
563
+ # Corresponds to the JSON property `maxReportRows`
564
+ # @return [Fixnum]
565
+ attr_accessor :max_report_rows
566
+
567
+ # List of metrics of the report. A report must specify at least one metric.
568
+ # Corresponds to the JSON property `metrics`
569
+ # @return [Array<String>]
570
+ attr_accessor :metrics
571
+
572
+ # Describes the sorting of report rows. The order of the condition in the list
573
+ # defines its precedence; the earlier the condition, the higher its precedence.
574
+ # If no sort conditions are specified, the row ordering is undefined.
575
+ # Corresponds to the JSON property `sortConditions`
576
+ # @return [Array<Google::Apis::AdmobV1beta::MediationReportSpecSortCondition>]
577
+ attr_accessor :sort_conditions
578
+
579
+ # A report time zone. Accepts an IANA TZ name values, such as "America/
580
+ # Los_Angeles." If no time zone is defined, the account default takes effect.
581
+ # Check default value by the get account action. **Warning:** The "America/
582
+ # Los_Angeles" is the only supported value at the moment.
583
+ # Corresponds to the JSON property `timeZone`
584
+ # @return [String]
585
+ attr_accessor :time_zone
586
+
587
+ def initialize(**args)
588
+ update!(**args)
589
+ end
590
+
591
+ # Update properties of this object
592
+ def update!(**args)
593
+ @date_range = args[:date_range] if args.key?(:date_range)
594
+ @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters)
595
+ @dimensions = args[:dimensions] if args.key?(:dimensions)
596
+ @localization_settings = args[:localization_settings] if args.key?(:localization_settings)
597
+ @max_report_rows = args[:max_report_rows] if args.key?(:max_report_rows)
598
+ @metrics = args[:metrics] if args.key?(:metrics)
599
+ @sort_conditions = args[:sort_conditions] if args.key?(:sort_conditions)
600
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
601
+ end
602
+ end
603
+
604
+ # Describes which report rows to match based on their dimension values.
605
+ class MediationReportSpecDimensionFilter
606
+ include Google::Apis::Core::Hashable
607
+
608
+ # Applies the filter criterion to the specified dimension.
609
+ # Corresponds to the JSON property `dimension`
610
+ # @return [String]
611
+ attr_accessor :dimension
612
+
613
+ # List of string values.
614
+ # Corresponds to the JSON property `matchesAny`
615
+ # @return [Google::Apis::AdmobV1beta::StringList]
616
+ attr_accessor :matches_any
617
+
618
+ def initialize(**args)
619
+ update!(**args)
620
+ end
621
+
622
+ # Update properties of this object
623
+ def update!(**args)
624
+ @dimension = args[:dimension] if args.key?(:dimension)
625
+ @matches_any = args[:matches_any] if args.key?(:matches_any)
626
+ end
627
+ end
628
+
629
+ # Sorting direction to be applied on a dimension or a metric.
630
+ class MediationReportSpecSortCondition
631
+ include Google::Apis::Core::Hashable
632
+
633
+ # Sort by the specified dimension.
634
+ # Corresponds to the JSON property `dimension`
635
+ # @return [String]
636
+ attr_accessor :dimension
637
+
638
+ # Sort by the specified metric.
639
+ # Corresponds to the JSON property `metric`
640
+ # @return [String]
641
+ attr_accessor :metric
642
+
643
+ # Sorting order of the dimension or metric.
644
+ # Corresponds to the JSON property `order`
645
+ # @return [String]
646
+ attr_accessor :order
647
+
648
+ def initialize(**args)
649
+ update!(**args)
650
+ end
651
+
652
+ # Update properties of this object
653
+ def update!(**args)
654
+ @dimension = args[:dimension] if args.key?(:dimension)
655
+ @metric = args[:metric] if args.key?(:metric)
656
+ @order = args[:order] if args.key?(:order)
657
+ end
658
+ end
659
+
660
+ # The specification for generating an AdMob Network report. For example, the
661
+ # specification to get clicks and estimated earnings for only the 'US' and 'CN'
662
+ # countries can look like the following example: ` 'date_range': ` 'start_date':
663
+ # `'year': 2018, 'month': 9, 'day': 1`, 'end_date': `'year': 2018, 'month': 9, '
664
+ # day': 30` `, 'dimensions': ['DATE', 'APP', 'COUNTRY'], 'metrics': ['CLICKS', '
665
+ # ESTIMATED_EARNINGS'], 'dimension_filters': [ ` 'dimension': 'COUNTRY', '
666
+ # matches_any': `'values': [`'value': 'US', 'value': 'CN'`]` ` ], '
667
+ # sort_conditions': [ `'dimension':'APP', order: 'ASCENDING'`, `'metric':'CLICKS'
668
+ # , order: 'DESCENDING'` ], 'localization_settings': ` 'currency_code': 'USD', '
669
+ # language_code': 'en-US' ` ` For a better understanding, you can treat the
670
+ # preceding specification like the following pseudo SQL: SELECT DATE, APP,
671
+ # COUNTRY, CLICKS, ESTIMATED_EARNINGS FROM NETWORK_REPORT WHERE DATE >= '2018-09-
672
+ # 01' AND DATE <= '2018-09-30' AND COUNTRY IN ('US', 'CN') GROUP BY DATE, APP,
673
+ # COUNTRY ORDER BY APP ASC, CLICKS DESC;
674
+ class NetworkReportSpec
675
+ include Google::Apis::Core::Hashable
676
+
677
+ # Specification of a single date range. Both dates are inclusive.
678
+ # Corresponds to the JSON property `dateRange`
679
+ # @return [Google::Apis::AdmobV1beta::DateRange]
680
+ attr_accessor :date_range
681
+
682
+ # Describes which report rows to match based on their dimension values.
683
+ # Corresponds to the JSON property `dimensionFilters`
684
+ # @return [Array<Google::Apis::AdmobV1beta::NetworkReportSpecDimensionFilter>]
685
+ attr_accessor :dimension_filters
686
+
687
+ # List of dimensions of the report. The value combination of these dimensions
688
+ # determines the row of the report. If no dimensions are specified, the report
689
+ # returns a single row of requested metrics for the entire account.
690
+ # Corresponds to the JSON property `dimensions`
691
+ # @return [Array<String>]
692
+ attr_accessor :dimensions
693
+
694
+ # Localization settings for reports, such as currency and language. It affects
695
+ # how metrics are calculated.
696
+ # Corresponds to the JSON property `localizationSettings`
697
+ # @return [Google::Apis::AdmobV1beta::LocalizationSettings]
698
+ attr_accessor :localization_settings
699
+
700
+ # Maximum number of report data rows to return. If the value is not set, the API
701
+ # returns as many rows as possible, up to 100000. Acceptable values are 1-100000,
702
+ # inclusive. Values larger than 100000 return an error.
703
+ # Corresponds to the JSON property `maxReportRows`
704
+ # @return [Fixnum]
705
+ attr_accessor :max_report_rows
706
+
707
+ # List of metrics of the report. A report must specify at least one metric.
708
+ # Corresponds to the JSON property `metrics`
709
+ # @return [Array<String>]
710
+ attr_accessor :metrics
711
+
712
+ # Describes the sorting of report rows. The order of the condition in the list
713
+ # defines its precedence; the earlier the condition, the higher its precedence.
714
+ # If no sort conditions are specified, the row ordering is undefined.
715
+ # Corresponds to the JSON property `sortConditions`
716
+ # @return [Array<Google::Apis::AdmobV1beta::NetworkReportSpecSortCondition>]
717
+ attr_accessor :sort_conditions
718
+
719
+ # A report time zone. Accepts an IANA TZ name values, such as "America/
720
+ # Los_Angeles." If no time zone is defined, the account default takes effect.
721
+ # Check default value by the get account action. **Warning:** The "America/
722
+ # Los_Angeles" is the only supported value at the moment.
723
+ # Corresponds to the JSON property `timeZone`
724
+ # @return [String]
725
+ attr_accessor :time_zone
726
+
727
+ def initialize(**args)
728
+ update!(**args)
729
+ end
730
+
731
+ # Update properties of this object
732
+ def update!(**args)
733
+ @date_range = args[:date_range] if args.key?(:date_range)
734
+ @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters)
735
+ @dimensions = args[:dimensions] if args.key?(:dimensions)
736
+ @localization_settings = args[:localization_settings] if args.key?(:localization_settings)
737
+ @max_report_rows = args[:max_report_rows] if args.key?(:max_report_rows)
738
+ @metrics = args[:metrics] if args.key?(:metrics)
739
+ @sort_conditions = args[:sort_conditions] if args.key?(:sort_conditions)
740
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
741
+ end
742
+ end
743
+
744
+ # Describes which report rows to match based on their dimension values.
745
+ class NetworkReportSpecDimensionFilter
746
+ include Google::Apis::Core::Hashable
747
+
748
+ # Applies the filter criterion to the specified dimension.
749
+ # Corresponds to the JSON property `dimension`
750
+ # @return [String]
751
+ attr_accessor :dimension
752
+
753
+ # List of string values.
754
+ # Corresponds to the JSON property `matchesAny`
755
+ # @return [Google::Apis::AdmobV1beta::StringList]
756
+ attr_accessor :matches_any
757
+
758
+ def initialize(**args)
759
+ update!(**args)
760
+ end
761
+
762
+ # Update properties of this object
763
+ def update!(**args)
764
+ @dimension = args[:dimension] if args.key?(:dimension)
765
+ @matches_any = args[:matches_any] if args.key?(:matches_any)
766
+ end
767
+ end
768
+
769
+ # Sorting direction to be applied on a dimension or a metric.
770
+ class NetworkReportSpecSortCondition
771
+ include Google::Apis::Core::Hashable
772
+
773
+ # Sort by the specified dimension.
774
+ # Corresponds to the JSON property `dimension`
775
+ # @return [String]
776
+ attr_accessor :dimension
777
+
778
+ # Sort by the specified metric.
779
+ # Corresponds to the JSON property `metric`
780
+ # @return [String]
781
+ attr_accessor :metric
782
+
783
+ # Sorting order of the dimension or metric.
784
+ # Corresponds to the JSON property `order`
785
+ # @return [String]
786
+ attr_accessor :order
787
+
788
+ def initialize(**args)
789
+ update!(**args)
790
+ end
791
+
792
+ # Update properties of this object
793
+ def update!(**args)
794
+ @dimension = args[:dimension] if args.key?(:dimension)
795
+ @metric = args[:metric] if args.key?(:metric)
796
+ @order = args[:order] if args.key?(:order)
797
+ end
798
+ end
799
+
800
+ # A publisher account contains information relevant to the use of this API, such
801
+ # as the time zone used for the reports.
802
+ class PublisherAccount
803
+ include Google::Apis::Core::Hashable
804
+
805
+ # Currency code of the earning-related metrics, which is the 3-letter code
806
+ # defined in ISO 4217. The daily average rate is used for the currency
807
+ # conversion.
808
+ # Corresponds to the JSON property `currencyCode`
809
+ # @return [String]
810
+ attr_accessor :currency_code
811
+
812
+ # Resource name of this account. Format is accounts/`publisher_id`.
813
+ # Corresponds to the JSON property `name`
814
+ # @return [String]
815
+ attr_accessor :name
816
+
817
+ # The unique ID by which this publisher account can be identified in the API
818
+ # requests (for example, pub-1234567890).
819
+ # Corresponds to the JSON property `publisherId`
820
+ # @return [String]
821
+ attr_accessor :publisher_id
822
+
823
+ # The time zone that is used in reports that are generated for this account. The
824
+ # value is a time-zone ID as specified by the CLDR project, for example, "
825
+ # America/Los_Angeles".
826
+ # Corresponds to the JSON property `reportingTimeZone`
827
+ # @return [String]
828
+ attr_accessor :reporting_time_zone
829
+
830
+ def initialize(**args)
831
+ update!(**args)
832
+ end
833
+
834
+ # Update properties of this object
835
+ def update!(**args)
836
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
837
+ @name = args[:name] if args.key?(:name)
838
+ @publisher_id = args[:publisher_id] if args.key?(:publisher_id)
839
+ @reporting_time_zone = args[:reporting_time_zone] if args.key?(:reporting_time_zone)
840
+ end
841
+ end
842
+
843
+ # Groups data available after report generation, for example, warnings and row
844
+ # counts. Always sent as the last message in the stream response.
845
+ class ReportFooter
846
+ include Google::Apis::Core::Hashable
847
+
848
+ # Total number of rows that matched the request. Warning: This count does NOT
849
+ # always match the number of rows in the response. Do not make that assumption
850
+ # when processing the response.
851
+ # Corresponds to the JSON property `matchingRowCount`
852
+ # @return [Fixnum]
853
+ attr_accessor :matching_row_count
854
+
855
+ # Warnings associated with generation of the report.
856
+ # Corresponds to the JSON property `warnings`
857
+ # @return [Array<Google::Apis::AdmobV1beta::ReportWarning>]
858
+ attr_accessor :warnings
859
+
860
+ def initialize(**args)
861
+ update!(**args)
862
+ end
863
+
864
+ # Update properties of this object
865
+ def update!(**args)
866
+ @matching_row_count = args[:matching_row_count] if args.key?(:matching_row_count)
867
+ @warnings = args[:warnings] if args.key?(:warnings)
868
+ end
869
+ end
870
+
871
+ # Groups data helps to treat the generated report. Always sent as a first
872
+ # message in the stream response.
873
+ class ReportHeader
874
+ include Google::Apis::Core::Hashable
875
+
876
+ # Specification of a single date range. Both dates are inclusive.
877
+ # Corresponds to the JSON property `dateRange`
878
+ # @return [Google::Apis::AdmobV1beta::DateRange]
879
+ attr_accessor :date_range
880
+
881
+ # Localization settings for reports, such as currency and language. It affects
882
+ # how metrics are calculated.
883
+ # Corresponds to the JSON property `localizationSettings`
884
+ # @return [Google::Apis::AdmobV1beta::LocalizationSettings]
885
+ attr_accessor :localization_settings
886
+
887
+ # The report time zone. The value is a time-zone ID as specified by the CLDR
888
+ # project, for example, "America/Los_Angeles".
889
+ # Corresponds to the JSON property `reportingTimeZone`
890
+ # @return [String]
891
+ attr_accessor :reporting_time_zone
892
+
893
+ def initialize(**args)
894
+ update!(**args)
895
+ end
896
+
897
+ # Update properties of this object
898
+ def update!(**args)
899
+ @date_range = args[:date_range] if args.key?(:date_range)
900
+ @localization_settings = args[:localization_settings] if args.key?(:localization_settings)
901
+ @reporting_time_zone = args[:reporting_time_zone] if args.key?(:reporting_time_zone)
902
+ end
903
+ end
904
+
905
+ # A row of the returning report.
906
+ class ReportRow
907
+ include Google::Apis::Core::Hashable
908
+
909
+ # Map of dimension values in a row, with keys as enum name of the dimensions.
910
+ # Corresponds to the JSON property `dimensionValues`
911
+ # @return [Hash<String,Google::Apis::AdmobV1beta::ReportRowDimensionValue>]
912
+ attr_accessor :dimension_values
913
+
914
+ # Map of metric values in a row, with keys as enum name of the metrics. If a
915
+ # metric being requested has no value returned, the map will not include it.
916
+ # Corresponds to the JSON property `metricValues`
917
+ # @return [Hash<String,Google::Apis::AdmobV1beta::ReportRowMetricValue>]
918
+ attr_accessor :metric_values
919
+
920
+ def initialize(**args)
921
+ update!(**args)
922
+ end
923
+
924
+ # Update properties of this object
925
+ def update!(**args)
926
+ @dimension_values = args[:dimension_values] if args.key?(:dimension_values)
927
+ @metric_values = args[:metric_values] if args.key?(:metric_values)
928
+ end
929
+ end
930
+
931
+ # Representation of a dimension value.
932
+ class ReportRowDimensionValue
933
+ include Google::Apis::Core::Hashable
934
+
935
+ # The localized string representation of the value. If unspecified, the display
936
+ # label should be derived from the value.
937
+ # Corresponds to the JSON property `displayLabel`
938
+ # @return [String]
939
+ attr_accessor :display_label
940
+
941
+ # Dimension value in the format specified in the report's spec Dimension enum.
942
+ # Corresponds to the JSON property `value`
943
+ # @return [String]
944
+ attr_accessor :value
945
+
946
+ def initialize(**args)
947
+ update!(**args)
948
+ end
949
+
950
+ # Update properties of this object
951
+ def update!(**args)
952
+ @display_label = args[:display_label] if args.key?(:display_label)
953
+ @value = args[:value] if args.key?(:value)
954
+ end
955
+ end
956
+
957
+ # Representation of a metric value.
958
+ class ReportRowMetricValue
959
+ include Google::Apis::Core::Hashable
960
+
961
+ # Double precision (approximate) decimal values. Rates are from 0 to 1.
962
+ # Corresponds to the JSON property `doubleValue`
963
+ # @return [Float]
964
+ attr_accessor :double_value
965
+
966
+ # Metric integer value.
967
+ # Corresponds to the JSON property `integerValue`
968
+ # @return [Fixnum]
969
+ attr_accessor :integer_value
970
+
971
+ # Amount in micros. One million is equivalent to one unit. Currency value is in
972
+ # the unit (USD, EUR or other) specified by the request. For example, $6.50
973
+ # whould be represented as 6500000 micros.
974
+ # Corresponds to the JSON property `microsValue`
975
+ # @return [Fixnum]
976
+ attr_accessor :micros_value
977
+
978
+ def initialize(**args)
979
+ update!(**args)
980
+ end
981
+
982
+ # Update properties of this object
983
+ def update!(**args)
984
+ @double_value = args[:double_value] if args.key?(:double_value)
985
+ @integer_value = args[:integer_value] if args.key?(:integer_value)
986
+ @micros_value = args[:micros_value] if args.key?(:micros_value)
987
+ end
988
+ end
989
+
990
+ # Warnings associated with generation of the report.
991
+ class ReportWarning
992
+ include Google::Apis::Core::Hashable
993
+
994
+ # Describes the details of the warning message, in English.
995
+ # Corresponds to the JSON property `description`
996
+ # @return [String]
997
+ attr_accessor :description
998
+
999
+ # Type of the warning.
1000
+ # Corresponds to the JSON property `type`
1001
+ # @return [String]
1002
+ attr_accessor :type
1003
+
1004
+ def initialize(**args)
1005
+ update!(**args)
1006
+ end
1007
+
1008
+ # Update properties of this object
1009
+ def update!(**args)
1010
+ @description = args[:description] if args.key?(:description)
1011
+ @type = args[:type] if args.key?(:type)
1012
+ end
1013
+ end
1014
+
1015
+ # List of string values.
1016
+ class StringList
1017
+ include Google::Apis::Core::Hashable
1018
+
1019
+ # The string values.
1020
+ # Corresponds to the JSON property `values`
1021
+ # @return [Array<String>]
1022
+ attr_accessor :values
1023
+
1024
+ def initialize(**args)
1025
+ update!(**args)
1026
+ end
1027
+
1028
+ # Update properties of this object
1029
+ def update!(**args)
1030
+ @values = args[:values] if args.key?(:values)
1031
+ end
1032
+ end
1033
+ end
1034
+ end
1035
+ end