google-api-client 0.28.4 → 0.28.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (426) hide show
  1. checksums.yaml +5 -5
  2. data/.kokoro/build.sh +3 -5
  3. data/.kokoro/continuous/linux.cfg +1 -1
  4. data/.kokoro/presubmit/linux.cfg +1 -1
  5. data/CHANGELOG.md +147 -0
  6. data/generated/google/apis/accesscontextmanager_v1.rb +34 -0
  7. data/generated/google/apis/accesscontextmanager_v1/classes.rb +755 -0
  8. data/generated/google/apis/accesscontextmanager_v1/representations.rb +282 -0
  9. data/generated/google/apis/accesscontextmanager_v1/service.rb +788 -0
  10. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  11. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +46 -30
  12. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +4 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +2 -2
  15. data/generated/google/apis/admin_directory_v1.rb +1 -1
  16. data/generated/google/apis/admin_directory_v1/classes.rb +5 -50
  17. data/generated/google/apis/admin_directory_v1/representations.rb +0 -2
  18. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  19. data/generated/google/apis/alertcenter_v1beta1/classes.rb +3 -2
  20. data/generated/google/apis/alertcenter_v1beta1/service.rb +7 -7
  21. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  22. data/generated/google/apis/analyticsreporting_v4/classes.rb +638 -0
  23. data/generated/google/apis/analyticsreporting_v4/representations.rb +248 -0
  24. data/generated/google/apis/analyticsreporting_v4/service.rb +30 -0
  25. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  26. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +10 -10
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -0
  29. data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
  30. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  31. data/generated/google/apis/androidmanagement_v1/classes.rb +59 -2
  32. data/generated/google/apis/androidmanagement_v1/representations.rb +33 -0
  33. data/generated/google/apis/appengine_v1.rb +1 -1
  34. data/generated/google/apis/appengine_v1/classes.rb +43 -98
  35. data/generated/google/apis/appengine_v1/representations.rb +17 -35
  36. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  37. data/generated/google/apis/appengine_v1alpha/classes.rb +0 -97
  38. data/generated/google/apis/appengine_v1alpha/representations.rb +0 -35
  39. data/generated/google/apis/appengine_v1beta.rb +1 -1
  40. data/generated/google/apis/appengine_v1beta/classes.rb +3 -99
  41. data/generated/google/apis/appengine_v1beta/representations.rb +0 -35
  42. data/generated/google/apis/bigquery_v2.rb +1 -1
  43. data/generated/google/apis/bigquery_v2/classes.rb +244 -173
  44. data/generated/google/apis/bigquery_v2/representations.rb +79 -58
  45. data/generated/google/apis/bigquerydatatransfer_v1.rb +3 -3
  46. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +10 -10
  47. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +38 -6
  48. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  49. data/generated/google/apis/bigtableadmin_v2/classes.rb +4 -4
  50. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  51. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +66 -6
  52. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +17 -0
  53. data/generated/google/apis/cloudasset_v1.rb +34 -0
  54. data/generated/google/apis/cloudasset_v1/classes.rb +805 -0
  55. data/generated/google/apis/cloudasset_v1/representations.rb +263 -0
  56. data/generated/google/apis/cloudasset_v1/service.rb +190 -0
  57. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudasset_v1beta1/classes.rb +20 -18
  59. data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
  60. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  61. data/generated/google/apis/cloudbilling_v1/classes.rb +1 -1
  62. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  63. data/generated/google/apis/cloudbuild_v1/classes.rb +149 -10
  64. data/generated/google/apis/cloudbuild_v1/representations.rb +65 -0
  65. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +6 -0
  67. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +2 -0
  68. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +1 -1
  69. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  70. data/generated/google/apis/cloudfunctions_v1/classes.rb +11 -4
  71. data/generated/google/apis/cloudfunctions_v1/service.rb +8 -2
  72. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  73. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +2 -1
  74. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +6 -0
  75. data/generated/google/apis/cloudidentity_v1.rb +7 -1
  76. data/generated/google/apis/cloudidentity_v1/classes.rb +13 -13
  77. data/generated/google/apis/cloudidentity_v1/service.rb +6 -15
  78. data/generated/google/apis/cloudidentity_v1beta1.rb +7 -1
  79. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +10 -10
  80. data/generated/google/apis/cloudidentity_v1beta1/service.rb +4 -10
  81. data/generated/google/apis/cloudiot_v1.rb +1 -1
  82. data/generated/google/apis/cloudiot_v1/classes.rb +11 -11
  83. data/generated/google/apis/cloudkms_v1.rb +1 -1
  84. data/generated/google/apis/cloudkms_v1/classes.rb +7 -3
  85. data/generated/google/apis/cloudprivatecatalog_v1beta1.rb +35 -0
  86. data/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb +358 -0
  87. data/generated/google/apis/cloudprivatecatalog_v1beta1/representations.rb +123 -0
  88. data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +486 -0
  89. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +35 -0
  90. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +1212 -0
  91. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb +399 -0
  92. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +1073 -0
  93. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  94. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +17 -16
  95. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  96. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +3 -3
  97. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  98. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +14 -15
  99. data/generated/google/apis/cloudresourcemanager_v2/service.rb +1 -1
  100. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  101. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +14 -15
  102. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +1 -1
  103. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  104. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +60 -44
  105. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +5 -2
  106. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  107. data/generated/google/apis/cloudsearch_v1/classes.rb +220 -48
  108. data/generated/google/apis/cloudsearch_v1/representations.rb +91 -0
  109. data/generated/google/apis/cloudsearch_v1/service.rb +15 -13
  110. data/generated/google/apis/cloudshell_v1.rb +1 -1
  111. data/generated/google/apis/cloudshell_v1/classes.rb +10 -10
  112. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  113. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +17 -10
  114. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +1 -0
  115. data/generated/google/apis/{partners_v2.rb → cloudtasks_v2.rb} +11 -9
  116. data/generated/google/apis/cloudtasks_v2/classes.rb +1432 -0
  117. data/generated/google/apis/cloudtasks_v2/representations.rb +408 -0
  118. data/generated/google/apis/cloudtasks_v2/service.rb +856 -0
  119. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  120. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +119 -88
  121. data/generated/google/apis/cloudtasks_v2beta2/service.rb +3 -2
  122. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  123. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +122 -90
  124. data/generated/google/apis/cloudtasks_v2beta3/service.rb +3 -2
  125. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  126. data/generated/google/apis/cloudtrace_v2/classes.rb +10 -10
  127. data/generated/google/apis/composer_v1.rb +1 -1
  128. data/generated/google/apis/composer_v1/classes.rb +21 -15
  129. data/generated/google/apis/composer_v1beta1.rb +1 -1
  130. data/generated/google/apis/composer_v1beta1/classes.rb +165 -29
  131. data/generated/google/apis/composer_v1beta1/representations.rb +50 -0
  132. data/generated/google/apis/compute_alpha.rb +1 -1
  133. data/generated/google/apis/compute_alpha/classes.rb +7147 -4656
  134. data/generated/google/apis/compute_alpha/representations.rb +1205 -236
  135. data/generated/google/apis/compute_alpha/service.rb +4338 -3274
  136. data/generated/google/apis/compute_beta.rb +1 -1
  137. data/generated/google/apis/compute_beta/classes.rb +5974 -4567
  138. data/generated/google/apis/compute_beta/representations.rb +846 -283
  139. data/generated/google/apis/compute_beta/service.rb +4274 -3153
  140. data/generated/google/apis/compute_v1.rb +1 -1
  141. data/generated/google/apis/compute_v1/classes.rb +325 -50
  142. data/generated/google/apis/compute_v1/representations.rb +104 -1
  143. data/generated/google/apis/compute_v1/service.rb +153 -2
  144. data/generated/google/apis/container_v1.rb +1 -1
  145. data/generated/google/apis/container_v1/classes.rb +1 -0
  146. data/generated/google/apis/container_v1/service.rb +4 -4
  147. data/generated/google/apis/container_v1beta1.rb +1 -1
  148. data/generated/google/apis/container_v1beta1/classes.rb +7 -0
  149. data/generated/google/apis/container_v1beta1/representations.rb +2 -0
  150. data/generated/google/apis/container_v1beta1/service.rb +4 -4
  151. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  152. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +25 -17
  153. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
  154. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  155. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +137 -12
  156. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +33 -0
  157. data/generated/google/apis/content_v2.rb +1 -1
  158. data/generated/google/apis/content_v2/classes.rb +204 -93
  159. data/generated/google/apis/content_v2/representations.rb +49 -0
  160. data/generated/google/apis/content_v2/service.rb +82 -41
  161. data/generated/google/apis/content_v2_1.rb +1 -1
  162. data/generated/google/apis/content_v2_1/classes.rb +360 -209
  163. data/generated/google/apis/content_v2_1/representations.rb +129 -56
  164. data/generated/google/apis/content_v2_1/service.rb +97 -10
  165. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  166. data/generated/google/apis/dataflow_v1b3/classes.rb +51 -19
  167. data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
  168. data/generated/google/apis/dataflow_v1b3/service.rb +133 -25
  169. data/generated/google/apis/dataproc_v1.rb +1 -1
  170. data/generated/google/apis/dataproc_v1/classes.rb +20 -15
  171. data/generated/google/apis/dataproc_v1/representations.rb +1 -0
  172. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  173. data/generated/google/apis/dataproc_v1beta2/classes.rb +516 -45
  174. data/generated/google/apis/dataproc_v1beta2/representations.rb +185 -7
  175. data/generated/google/apis/dataproc_v1beta2/service.rb +575 -6
  176. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  177. data/generated/google/apis/dfareporting_v3_3/classes.rb +3 -3
  178. data/generated/google/apis/dialogflow_v2.rb +1 -1
  179. data/generated/google/apis/dialogflow_v2/classes.rb +126 -77
  180. data/generated/google/apis/dialogflow_v2/service.rb +40 -24
  181. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  182. data/generated/google/apis/dialogflow_v2beta1/classes.rb +126 -77
  183. data/generated/google/apis/dialogflow_v2beta1/service.rb +40 -24
  184. data/generated/google/apis/dlp_v2.rb +1 -1
  185. data/generated/google/apis/dlp_v2/classes.rb +44 -41
  186. data/generated/google/apis/dlp_v2/representations.rb +12 -0
  187. data/generated/google/apis/dlp_v2/service.rb +35 -0
  188. data/generated/google/apis/dns_v1.rb +1 -1
  189. data/generated/google/apis/dns_v1/classes.rb +163 -190
  190. data/generated/google/apis/dns_v1/representations.rb +34 -0
  191. data/generated/google/apis/dns_v1/service.rb +15 -110
  192. data/generated/google/apis/dns_v1beta2.rb +1 -1
  193. data/generated/google/apis/dns_v1beta2/classes.rb +117 -248
  194. data/generated/google/apis/dns_v1beta2/service.rb +21 -141
  195. data/generated/google/apis/dns_v2beta1.rb +1 -1
  196. data/generated/google/apis/dns_v2beta1/classes.rb +163 -190
  197. data/generated/google/apis/dns_v2beta1/representations.rb +34 -0
  198. data/generated/google/apis/dns_v2beta1/service.rb +15 -110
  199. data/generated/google/apis/docs_v1.rb +1 -1
  200. data/generated/google/apis/docs_v1/classes.rb +118 -47
  201. data/generated/google/apis/docs_v1/representations.rb +39 -0
  202. data/generated/google/apis/drive_v2.rb +1 -1
  203. data/generated/google/apis/drive_v2/service.rb +3 -1
  204. data/generated/google/apis/drive_v3.rb +1 -1
  205. data/generated/google/apis/drive_v3/service.rb +3 -2
  206. data/generated/google/apis/factchecktools_v1alpha1.rb +34 -0
  207. data/generated/google/apis/factchecktools_v1alpha1/classes.rb +459 -0
  208. data/generated/google/apis/factchecktools_v1alpha1/representations.rb +207 -0
  209. data/generated/google/apis/factchecktools_v1alpha1/service.rb +300 -0
  210. data/generated/google/apis/file_v1.rb +1 -1
  211. data/generated/google/apis/file_v1/classes.rb +203 -10
  212. data/generated/google/apis/file_v1/representations.rb +70 -0
  213. data/generated/google/apis/file_v1/service.rb +190 -0
  214. data/generated/google/apis/file_v1beta1.rb +1 -1
  215. data/generated/google/apis/file_v1beta1/classes.rb +10 -10
  216. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  217. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +13 -10
  218. data/generated/google/apis/firebaserules_v1.rb +1 -1
  219. data/generated/google/apis/firebaserules_v1/service.rb +1 -1
  220. data/generated/google/apis/fitness_v1.rb +1 -1
  221. data/generated/google/apis/fitness_v1/classes.rb +3 -0
  222. data/generated/google/apis/fitness_v1/service.rb +1 -45
  223. data/generated/google/apis/games_management_v1management.rb +2 -2
  224. data/generated/google/apis/games_v1.rb +2 -2
  225. data/generated/google/apis/genomics_v1.rb +1 -10
  226. data/generated/google/apis/genomics_v1/classes.rb +190 -3321
  227. data/generated/google/apis/genomics_v1/representations.rb +128 -1265
  228. data/generated/google/apis/genomics_v1/service.rb +75 -1982
  229. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  230. data/generated/google/apis/genomics_v1alpha2/classes.rb +11 -51
  231. data/generated/google/apis/genomics_v1alpha2/representations.rb +0 -26
  232. data/generated/google/apis/genomics_v1alpha2/service.rb +1 -2
  233. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  234. data/generated/google/apis/genomics_v2alpha1/classes.rb +19 -58
  235. data/generated/google/apis/genomics_v2alpha1/representations.rb +0 -26
  236. data/generated/google/apis/genomics_v2alpha1/service.rb +1 -2
  237. data/generated/google/apis/groupssettings_v1.rb +2 -2
  238. data/generated/google/apis/groupssettings_v1/classes.rb +126 -1
  239. data/generated/google/apis/groupssettings_v1/representations.rb +18 -0
  240. data/generated/google/apis/groupssettings_v1/service.rb +1 -1
  241. data/generated/google/apis/iam_v1.rb +1 -1
  242. data/generated/google/apis/iam_v1/classes.rb +123 -1
  243. data/generated/google/apis/iam_v1/representations.rb +67 -0
  244. data/generated/google/apis/iam_v1/service.rb +198 -5
  245. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  246. data/generated/google/apis/iamcredentials_v1/classes.rb +8 -4
  247. data/generated/google/apis/iamcredentials_v1/service.rb +10 -5
  248. data/generated/google/apis/iap_v1.rb +1 -1
  249. data/generated/google/apis/iap_v1/classes.rb +1 -1
  250. data/generated/google/apis/iap_v1beta1.rb +1 -1
  251. data/generated/google/apis/iap_v1beta1/classes.rb +1 -1
  252. data/generated/google/apis/jobs_v2.rb +1 -1
  253. data/generated/google/apis/jobs_v2/classes.rb +7 -9
  254. data/generated/google/apis/jobs_v3.rb +1 -1
  255. data/generated/google/apis/jobs_v3/classes.rb +1 -1
  256. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  257. data/generated/google/apis/jobs_v3p1beta1/classes.rb +11 -11
  258. data/generated/google/apis/language_v1.rb +1 -1
  259. data/generated/google/apis/language_v1/classes.rb +5 -5
  260. data/generated/google/apis/language_v1beta1.rb +1 -1
  261. data/generated/google/apis/language_v1beta1/classes.rb +5 -5
  262. data/generated/google/apis/language_v1beta2.rb +1 -1
  263. data/generated/google/apis/language_v1beta2/classes.rb +5 -5
  264. data/generated/google/apis/logging_v2.rb +1 -1
  265. data/generated/google/apis/logging_v2/classes.rb +2 -3
  266. data/generated/google/apis/logging_v2beta1.rb +1 -1
  267. data/generated/google/apis/logging_v2beta1/classes.rb +2 -3
  268. data/generated/google/apis/ml_v1.rb +1 -1
  269. data/generated/google/apis/ml_v1/classes.rb +158 -36
  270. data/generated/google/apis/ml_v1/representations.rb +23 -2
  271. data/generated/google/apis/monitoring_v3.rb +1 -1
  272. data/generated/google/apis/monitoring_v3/classes.rb +8 -7
  273. data/generated/google/apis/monitoring_v3/service.rb +6 -1
  274. data/generated/google/apis/oauth2_v1.rb +2 -5
  275. data/generated/google/apis/oauth2_v1/classes.rb +0 -124
  276. data/generated/google/apis/oauth2_v1/representations.rb +0 -62
  277. data/generated/google/apis/oauth2_v1/service.rb +0 -159
  278. data/generated/google/apis/oauth2_v2.rb +2 -5
  279. data/generated/google/apis/people_v1.rb +3 -3
  280. data/generated/google/apis/people_v1/classes.rb +19 -18
  281. data/generated/google/apis/people_v1/service.rb +4 -0
  282. data/generated/google/apis/plus_domains_v1.rb +3 -3
  283. data/generated/google/apis/plus_v1.rb +3 -3
  284. data/generated/google/apis/poly_v1.rb +1 -1
  285. data/generated/google/apis/poly_v1/classes.rb +5 -4
  286. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  287. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +8 -6
  288. data/generated/google/apis/pubsub_v1.rb +1 -1
  289. data/generated/google/apis/pubsub_v1/classes.rb +53 -38
  290. data/generated/google/apis/pubsub_v1/representations.rb +16 -0
  291. data/generated/google/apis/pubsub_v1/service.rb +6 -29
  292. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  293. data/generated/google/apis/pubsub_v1beta2/classes.rb +45 -1
  294. data/generated/google/apis/pubsub_v1beta2/representations.rb +16 -0
  295. data/generated/google/apis/redis_v1.rb +1 -1
  296. data/generated/google/apis/redis_v1beta1.rb +1 -1
  297. data/generated/google/apis/redis_v1beta1/classes.rb +0 -10
  298. data/generated/google/apis/redis_v1beta1/representations.rb +0 -1
  299. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  300. data/generated/google/apis/remotebuildexecution_v1/classes.rb +42 -28
  301. data/generated/google/apis/remotebuildexecution_v1/representations.rb +2 -0
  302. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  303. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +42 -28
  304. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +2 -0
  305. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  306. data/generated/google/apis/remotebuildexecution_v2/classes.rb +52 -38
  307. data/generated/google/apis/remotebuildexecution_v2/representations.rb +2 -0
  308. data/generated/google/apis/reseller_v1.rb +1 -1
  309. data/generated/google/apis/reseller_v1/classes.rb +32 -39
  310. data/generated/google/apis/reseller_v1/service.rb +1 -1
  311. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  312. data/generated/google/apis/runtimeconfig_v1/classes.rb +10 -10
  313. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  314. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +25 -24
  315. data/generated/google/apis/script_v1.rb +1 -1
  316. data/generated/google/apis/script_v1/classes.rb +0 -6
  317. data/generated/google/apis/script_v1/representations.rb +0 -1
  318. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  319. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +73 -151
  320. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +48 -50
  321. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  322. data/generated/google/apis/servicecontrol_v1/classes.rb +108 -24
  323. data/generated/google/apis/servicecontrol_v1/representations.rb +45 -0
  324. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  325. data/generated/google/apis/servicemanagement_v1/classes.rb +35 -113
  326. data/generated/google/apis/servicemanagement_v1/service.rb +6 -3
  327. data/generated/google/apis/servicenetworking_v1.rb +38 -0
  328. data/generated/google/apis/servicenetworking_v1/classes.rb +3591 -0
  329. data/generated/google/apis/servicenetworking_v1/representations.rb +1082 -0
  330. data/generated/google/apis/servicenetworking_v1/service.rb +440 -0
  331. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  332. data/generated/google/apis/servicenetworking_v1beta/classes.rb +32 -110
  333. data/generated/google/apis/serviceusage_v1.rb +1 -1
  334. data/generated/google/apis/serviceusage_v1/classes.rb +33 -150
  335. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  336. data/generated/google/apis/serviceusage_v1beta1/classes.rb +34 -190
  337. data/generated/google/apis/sheets_v4.rb +1 -1
  338. data/generated/google/apis/sheets_v4/classes.rb +115 -26
  339. data/generated/google/apis/slides_v1.rb +1 -1
  340. data/generated/google/apis/slides_v1/classes.rb +2 -2
  341. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  342. data/generated/google/apis/sourcerepo_v1/classes.rb +1 -1
  343. data/generated/google/apis/spanner_v1.rb +1 -1
  344. data/generated/google/apis/spanner_v1/classes.rb +171 -0
  345. data/generated/google/apis/spanner_v1/representations.rb +49 -0
  346. data/generated/google/apis/spanner_v1/service.rb +51 -1
  347. data/generated/google/apis/speech_v1.rb +1 -1
  348. data/generated/google/apis/speech_v1/classes.rb +107 -10
  349. data/generated/google/apis/speech_v1/representations.rb +24 -0
  350. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  351. data/generated/google/apis/speech_v1p1beta1/classes.rb +16 -10
  352. data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
  353. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  354. data/generated/google/apis/sqladmin_v1beta4/classes.rb +11 -15
  355. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  356. data/generated/google/apis/storage_v1.rb +1 -1
  357. data/generated/google/apis/storage_v1/classes.rb +57 -4
  358. data/generated/google/apis/storage_v1/representations.rb +19 -1
  359. data/generated/google/apis/storagetransfer_v1.rb +2 -2
  360. data/generated/google/apis/storagetransfer_v1/classes.rb +28 -21
  361. data/generated/google/apis/storagetransfer_v1/service.rb +4 -4
  362. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  363. data/generated/google/apis/streetviewpublish_v1/classes.rb +26 -26
  364. data/generated/google/apis/streetviewpublish_v1/service.rb +27 -31
  365. data/generated/google/apis/tagmanager_v1.rb +1 -1
  366. data/generated/google/apis/tagmanager_v1/service.rb +0 -46
  367. data/generated/google/apis/tagmanager_v2.rb +1 -1
  368. data/generated/google/apis/tagmanager_v2/classes.rb +197 -292
  369. data/generated/google/apis/tagmanager_v2/representations.rb +62 -103
  370. data/generated/google/apis/tagmanager_v2/service.rb +219 -181
  371. data/generated/google/apis/tasks_v1.rb +2 -2
  372. data/generated/google/apis/tasks_v1/service.rb +5 -5
  373. data/generated/google/apis/testing_v1.rb +1 -1
  374. data/generated/google/apis/testing_v1/classes.rb +13 -13
  375. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  376. data/generated/google/apis/toolresults_v1beta3/classes.rb +92 -0
  377. data/generated/google/apis/toolresults_v1beta3/representations.rb +47 -0
  378. data/generated/google/apis/tpu_v1.rb +1 -1
  379. data/generated/google/apis/tpu_v1/classes.rb +10 -10
  380. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  381. data/generated/google/apis/tpu_v1alpha1/classes.rb +10 -10
  382. data/generated/google/apis/vault_v1.rb +1 -1
  383. data/generated/google/apis/vault_v1/classes.rb +7 -0
  384. data/generated/google/apis/vault_v1/representations.rb +1 -0
  385. data/generated/google/apis/videointelligence_v1.rb +3 -2
  386. data/generated/google/apis/videointelligence_v1/classes.rb +2193 -350
  387. data/generated/google/apis/videointelligence_v1/representations.rb +805 -6
  388. data/generated/google/apis/videointelligence_v1/service.rb +2 -1
  389. data/generated/google/apis/videointelligence_v1beta2.rb +3 -2
  390. data/generated/google/apis/videointelligence_v1beta2/classes.rb +2448 -605
  391. data/generated/google/apis/videointelligence_v1beta2/representations.rb +806 -7
  392. data/generated/google/apis/videointelligence_v1beta2/service.rb +2 -1
  393. data/generated/google/apis/videointelligence_v1p1beta1.rb +3 -2
  394. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +2422 -579
  395. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +806 -7
  396. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +2 -1
  397. data/generated/google/apis/videointelligence_v1p2beta1.rb +3 -2
  398. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +2645 -830
  399. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +796 -12
  400. data/generated/google/apis/videointelligence_v1p2beta1/service.rb +2 -1
  401. data/generated/google/apis/videointelligence_v1p3beta1.rb +36 -0
  402. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +4687 -0
  403. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +2005 -0
  404. data/generated/google/apis/videointelligence_v1p3beta1/service.rb +94 -0
  405. data/generated/google/apis/vision_v1.rb +1 -1
  406. data/generated/google/apis/vision_v1/classes.rb +1977 -40
  407. data/generated/google/apis/vision_v1/representations.rb +833 -0
  408. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  409. data/generated/google/apis/vision_v1p1beta1/classes.rb +1972 -35
  410. data/generated/google/apis/vision_v1p1beta1/representations.rb +833 -0
  411. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  412. data/generated/google/apis/vision_v1p2beta1/classes.rb +1972 -35
  413. data/generated/google/apis/vision_v1p2beta1/representations.rb +833 -0
  414. data/generated/google/apis/websecurityscanner_v1beta.rb +34 -0
  415. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +973 -0
  416. data/generated/google/apis/websecurityscanner_v1beta/representations.rb +452 -0
  417. data/generated/google/apis/websecurityscanner_v1beta/service.rb +548 -0
  418. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  419. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  420. data/lib/google/apis/core/http_command.rb +1 -0
  421. data/lib/google/apis/generator/model.rb +1 -1
  422. data/lib/google/apis/version.rb +1 -1
  423. metadata +39 -8
  424. data/generated/google/apis/partners_v2/classes.rb +0 -2260
  425. data/generated/google/apis/partners_v2/representations.rb +0 -905
  426. data/generated/google/apis/partners_v2/service.rb +0 -1077
@@ -1,1077 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'google/apis/core/base_service'
16
- require 'google/apis/core/json_representation'
17
- require 'google/apis/core/hashable'
18
- require 'google/apis/errors'
19
-
20
- module Google
21
- module Apis
22
- module PartnersV2
23
- # Google Partners API
24
- #
25
- # Searches certified companies and creates contact leads with them, and also
26
- # audits the usage of clients.
27
- #
28
- # @example
29
- # require 'google/apis/partners_v2'
30
- #
31
- # Partners = Google::Apis::PartnersV2 # Alias the module
32
- # service = Partners::PartnersService.new
33
- #
34
- # @see https://developers.google.com/partners/
35
- class PartnersService < Google::Apis::Core::BaseService
36
- # @return [String]
37
- # API key. Your API key identifies your project and provides you with API access,
38
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
- attr_accessor :key
40
-
41
- # @return [String]
42
- # Available to use for quota purposes for server-side applications. Can be any
43
- # arbitrary string assigned to a user, but should not exceed 40 characters.
44
- attr_accessor :quota_user
45
-
46
- def initialize
47
- super('https://partners.googleapis.com/', '')
48
- @batch_path = 'batch'
49
- end
50
-
51
- # Lists analytics data for a user's associated company.
52
- # Should only be called within the context of an authorized logged in user.
53
- # @param [Fixnum] page_size
54
- # Requested page size. Server may return fewer analytics than requested.
55
- # If unspecified or set to 0, default value is 30.
56
- # Specifies the number of days in the date range when querying analytics.
57
- # The `page_token` represents the end date of the date range
58
- # and the start date is calculated using the `page_size` as the number
59
- # of days BEFORE the end date.
60
- # Must be a non-negative integer.
61
- # @param [String] page_token
62
- # A token identifying a page of results that the server returns.
63
- # Typically, this is the value of `ListAnalyticsResponse.next_page_token`
64
- # returned from the previous call to
65
- # ListAnalytics.
66
- # Will be a date string in `YYYY-MM-DD` format representing the end date
67
- # of the date range of results to return.
68
- # If unspecified or set to "", default value is the current date.
69
- # @param [Array<String>, String] request_metadata_experiment_ids
70
- # Experiment IDs the current request belongs to.
71
- # @param [String] request_metadata_locale
72
- # Locale to use for the current request.
73
- # @param [String] request_metadata_partners_session_id
74
- # Google Partners session ID.
75
- # @param [String] request_metadata_traffic_source_traffic_source_id
76
- # Identifier to indicate where the traffic comes from.
77
- # An identifier has multiple letters created by a team which redirected the
78
- # traffic to us.
79
- # @param [String] request_metadata_traffic_source_traffic_sub_id
80
- # Second level identifier to indicate where the traffic comes from.
81
- # An identifier has multiple letters created by a team which redirected the
82
- # traffic to us.
83
- # @param [String] request_metadata_user_overrides_ip_address
84
- # IP address to use instead of the user's geo-located IP address.
85
- # @param [String] request_metadata_user_overrides_user_id
86
- # Logged-in user ID to impersonate instead of the user's ID.
87
- # @param [String] fields
88
- # Selector specifying which fields to include in a partial response.
89
- # @param [String] quota_user
90
- # Available to use for quota purposes for server-side applications. Can be any
91
- # arbitrary string assigned to a user, but should not exceed 40 characters.
92
- # @param [Google::Apis::RequestOptions] options
93
- # Request-specific options
94
- #
95
- # @yield [result, err] Result & error if block supplied
96
- # @yieldparam result [Google::Apis::PartnersV2::ListAnalyticsResponse] parsed result object
97
- # @yieldparam err [StandardError] error object if request failed
98
- #
99
- # @return [Google::Apis::PartnersV2::ListAnalyticsResponse]
100
- #
101
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
102
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
103
- # @raise [Google::Apis::AuthorizationError] Authorization is required
104
- def list_analytics(page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
105
- command = make_simple_command(:get, 'v2/analytics', options)
106
- command.response_representation = Google::Apis::PartnersV2::ListAnalyticsResponse::Representation
107
- command.response_class = Google::Apis::PartnersV2::ListAnalyticsResponse
108
- command.query['pageSize'] = page_size unless page_size.nil?
109
- command.query['pageToken'] = page_token unless page_token.nil?
110
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
111
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
112
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
113
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
114
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
115
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
116
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
117
- command.query['fields'] = fields unless fields.nil?
118
- command.query['quotaUser'] = quota_user unless quota_user.nil?
119
- execute_or_queue_command(command, &block)
120
- end
121
-
122
- # Logs a generic message from the client, such as
123
- # `Failed to render component`, `Profile page is running slow`,
124
- # `More than 500 users have accessed this result.`, etc.
125
- # @param [Google::Apis::PartnersV2::LogMessageRequest] log_message_request_object
126
- # @param [String] fields
127
- # Selector specifying which fields to include in a partial response.
128
- # @param [String] quota_user
129
- # Available to use for quota purposes for server-side applications. Can be any
130
- # arbitrary string assigned to a user, but should not exceed 40 characters.
131
- # @param [Google::Apis::RequestOptions] options
132
- # Request-specific options
133
- #
134
- # @yield [result, err] Result & error if block supplied
135
- # @yieldparam result [Google::Apis::PartnersV2::LogMessageResponse] parsed result object
136
- # @yieldparam err [StandardError] error object if request failed
137
- #
138
- # @return [Google::Apis::PartnersV2::LogMessageResponse]
139
- #
140
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
141
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
142
- # @raise [Google::Apis::AuthorizationError] Authorization is required
143
- def log_client_message_message(log_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
144
- command = make_simple_command(:post, 'v2/clientMessages:log', options)
145
- command.request_representation = Google::Apis::PartnersV2::LogMessageRequest::Representation
146
- command.request_object = log_message_request_object
147
- command.response_representation = Google::Apis::PartnersV2::LogMessageResponse::Representation
148
- command.response_class = Google::Apis::PartnersV2::LogMessageResponse
149
- command.query['fields'] = fields unless fields.nil?
150
- command.query['quotaUser'] = quota_user unless quota_user.nil?
151
- execute_or_queue_command(command, &block)
152
- end
153
-
154
- # Gets a company.
155
- # @param [String] company_id
156
- # The ID of the company to retrieve.
157
- # @param [String] address
158
- # The address to use for sorting the company's addresses by proximity.
159
- # If not given, the geo-located address of the request is used.
160
- # Used when order_by is set.
161
- # @param [String] currency_code
162
- # If the company's budget is in a different currency code than this one, then
163
- # the converted budget is converted to this currency code.
164
- # @param [String] order_by
165
- # How to order addresses within the returned company. Currently, only
166
- # `address` and `address desc` is supported which will sorted by closest to
167
- # farthest in distance from given address and farthest to closest distance
168
- # from given address respectively.
169
- # @param [Array<String>, String] request_metadata_experiment_ids
170
- # Experiment IDs the current request belongs to.
171
- # @param [String] request_metadata_locale
172
- # Locale to use for the current request.
173
- # @param [String] request_metadata_partners_session_id
174
- # Google Partners session ID.
175
- # @param [String] request_metadata_traffic_source_traffic_source_id
176
- # Identifier to indicate where the traffic comes from.
177
- # An identifier has multiple letters created by a team which redirected the
178
- # traffic to us.
179
- # @param [String] request_metadata_traffic_source_traffic_sub_id
180
- # Second level identifier to indicate where the traffic comes from.
181
- # An identifier has multiple letters created by a team which redirected the
182
- # traffic to us.
183
- # @param [String] request_metadata_user_overrides_ip_address
184
- # IP address to use instead of the user's geo-located IP address.
185
- # @param [String] request_metadata_user_overrides_user_id
186
- # Logged-in user ID to impersonate instead of the user's ID.
187
- # @param [String] view
188
- # The view of `Company` resource to be returned. This must not be
189
- # `COMPANY_VIEW_UNSPECIFIED`.
190
- # @param [String] fields
191
- # Selector specifying which fields to include in a partial response.
192
- # @param [String] quota_user
193
- # Available to use for quota purposes for server-side applications. Can be any
194
- # arbitrary string assigned to a user, but should not exceed 40 characters.
195
- # @param [Google::Apis::RequestOptions] options
196
- # Request-specific options
197
- #
198
- # @yield [result, err] Result & error if block supplied
199
- # @yieldparam result [Google::Apis::PartnersV2::GetCompanyResponse] parsed result object
200
- # @yieldparam err [StandardError] error object if request failed
201
- #
202
- # @return [Google::Apis::PartnersV2::GetCompanyResponse]
203
- #
204
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
205
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
206
- # @raise [Google::Apis::AuthorizationError] Authorization is required
207
- def get_company(company_id, address: nil, currency_code: nil, order_by: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
208
- command = make_simple_command(:get, 'v2/companies/{companyId}', options)
209
- command.response_representation = Google::Apis::PartnersV2::GetCompanyResponse::Representation
210
- command.response_class = Google::Apis::PartnersV2::GetCompanyResponse
211
- command.params['companyId'] = company_id unless company_id.nil?
212
- command.query['address'] = address unless address.nil?
213
- command.query['currencyCode'] = currency_code unless currency_code.nil?
214
- command.query['orderBy'] = order_by unless order_by.nil?
215
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
216
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
217
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
218
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
219
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
220
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
221
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
222
- command.query['view'] = view unless view.nil?
223
- command.query['fields'] = fields unless fields.nil?
224
- command.query['quotaUser'] = quota_user unless quota_user.nil?
225
- execute_or_queue_command(command, &block)
226
- end
227
-
228
- # Lists companies.
229
- # @param [String] address
230
- # The address to use when searching for companies.
231
- # If not given, the geo-located address of the request is used.
232
- # @param [String] company_name
233
- # Company name to search for.
234
- # @param [Array<String>, String] gps_motivations
235
- # List of reasons for using Google Partner Search to get companies.
236
- # @param [Array<String>, String] industries
237
- # List of industries the company can help with.
238
- # @param [Array<String>, String] language_codes
239
- # List of language codes that company can support. Only primary language
240
- # subtags are accepted as defined by
241
- # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
242
- # (IETF BCP 47, "Tags for Identifying Languages").
243
- # @param [String] max_monthly_budget_currency_code
244
- # The 3-letter currency code defined in ISO 4217.
245
- # @param [Fixnum] max_monthly_budget_nanos
246
- # Number of nano (10^-9) units of the amount.
247
- # The value must be between -999,999,999 and +999,999,999 inclusive.
248
- # If `units` is positive, `nanos` must be positive or zero.
249
- # If `units` is zero, `nanos` can be positive, zero, or negative.
250
- # If `units` is negative, `nanos` must be negative or zero.
251
- # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
252
- # @param [Fixnum] max_monthly_budget_units
253
- # The whole units of the amount.
254
- # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
255
- # @param [String] min_monthly_budget_currency_code
256
- # The 3-letter currency code defined in ISO 4217.
257
- # @param [Fixnum] min_monthly_budget_nanos
258
- # Number of nano (10^-9) units of the amount.
259
- # The value must be between -999,999,999 and +999,999,999 inclusive.
260
- # If `units` is positive, `nanos` must be positive or zero.
261
- # If `units` is zero, `nanos` can be positive, zero, or negative.
262
- # If `units` is negative, `nanos` must be negative or zero.
263
- # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
264
- # @param [Fixnum] min_monthly_budget_units
265
- # The whole units of the amount.
266
- # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
267
- # @param [String] order_by
268
- # How to order addresses within the returned companies. Currently, only
269
- # `address` and `address desc` is supported which will sorted by closest to
270
- # farthest in distance from given address and farthest to closest distance
271
- # from given address respectively.
272
- # @param [Fixnum] page_size
273
- # Requested page size. Server may return fewer companies than requested.
274
- # If unspecified, server picks an appropriate default.
275
- # @param [String] page_token
276
- # A token identifying a page of results that the server returns.
277
- # Typically, this is the value of `ListCompaniesResponse.next_page_token`
278
- # returned from the previous call to
279
- # ListCompanies.
280
- # @param [Array<String>, String] request_metadata_experiment_ids
281
- # Experiment IDs the current request belongs to.
282
- # @param [String] request_metadata_locale
283
- # Locale to use for the current request.
284
- # @param [String] request_metadata_partners_session_id
285
- # Google Partners session ID.
286
- # @param [String] request_metadata_traffic_source_traffic_source_id
287
- # Identifier to indicate where the traffic comes from.
288
- # An identifier has multiple letters created by a team which redirected the
289
- # traffic to us.
290
- # @param [String] request_metadata_traffic_source_traffic_sub_id
291
- # Second level identifier to indicate where the traffic comes from.
292
- # An identifier has multiple letters created by a team which redirected the
293
- # traffic to us.
294
- # @param [String] request_metadata_user_overrides_ip_address
295
- # IP address to use instead of the user's geo-located IP address.
296
- # @param [String] request_metadata_user_overrides_user_id
297
- # Logged-in user ID to impersonate instead of the user's ID.
298
- # @param [Array<String>, String] services
299
- # List of services that the returned agencies should provide. If this is
300
- # not empty, any returned agency must have at least one of these services,
301
- # or one of the specializations in the "specializations" field.
302
- # @param [Array<String>, String] specializations
303
- # List of specializations that the returned agencies should provide. If this
304
- # is not empty, any returned agency must have at least one of these
305
- # specializations, or one of the services in the "services" field.
306
- # @param [String] view
307
- # The view of the `Company` resource to be returned. This must not be
308
- # `COMPANY_VIEW_UNSPECIFIED`.
309
- # @param [String] website_url
310
- # Website URL that will help to find a better matched company.
311
- # .
312
- # @param [String] fields
313
- # Selector specifying which fields to include in a partial response.
314
- # @param [String] quota_user
315
- # Available to use for quota purposes for server-side applications. Can be any
316
- # arbitrary string assigned to a user, but should not exceed 40 characters.
317
- # @param [Google::Apis::RequestOptions] options
318
- # Request-specific options
319
- #
320
- # @yield [result, err] Result & error if block supplied
321
- # @yieldparam result [Google::Apis::PartnersV2::ListCompaniesResponse] parsed result object
322
- # @yieldparam err [StandardError] error object if request failed
323
- #
324
- # @return [Google::Apis::PartnersV2::ListCompaniesResponse]
325
- #
326
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
327
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
328
- # @raise [Google::Apis::AuthorizationError] Authorization is required
329
- def list_companies(address: nil, company_name: nil, gps_motivations: nil, industries: nil, language_codes: nil, max_monthly_budget_currency_code: nil, max_monthly_budget_nanos: nil, max_monthly_budget_units: nil, min_monthly_budget_currency_code: nil, min_monthly_budget_nanos: nil, min_monthly_budget_units: nil, order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, services: nil, specializations: nil, view: nil, website_url: nil, fields: nil, quota_user: nil, options: nil, &block)
330
- command = make_simple_command(:get, 'v2/companies', options)
331
- command.response_representation = Google::Apis::PartnersV2::ListCompaniesResponse::Representation
332
- command.response_class = Google::Apis::PartnersV2::ListCompaniesResponse
333
- command.query['address'] = address unless address.nil?
334
- command.query['companyName'] = company_name unless company_name.nil?
335
- command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil?
336
- command.query['industries'] = industries unless industries.nil?
337
- command.query['languageCodes'] = language_codes unless language_codes.nil?
338
- command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil?
339
- command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil?
340
- command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil?
341
- command.query['minMonthlyBudget.currencyCode'] = min_monthly_budget_currency_code unless min_monthly_budget_currency_code.nil?
342
- command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil?
343
- command.query['minMonthlyBudget.units'] = min_monthly_budget_units unless min_monthly_budget_units.nil?
344
- command.query['orderBy'] = order_by unless order_by.nil?
345
- command.query['pageSize'] = page_size unless page_size.nil?
346
- command.query['pageToken'] = page_token unless page_token.nil?
347
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
348
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
349
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
350
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
351
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
352
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
353
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
354
- command.query['services'] = services unless services.nil?
355
- command.query['specializations'] = specializations unless specializations.nil?
356
- command.query['view'] = view unless view.nil?
357
- command.query['websiteUrl'] = website_url unless website_url.nil?
358
- command.query['fields'] = fields unless fields.nil?
359
- command.query['quotaUser'] = quota_user unless quota_user.nil?
360
- execute_or_queue_command(command, &block)
361
- end
362
-
363
- # Creates an advertiser lead for the given company ID.
364
- # @param [String] company_id
365
- # The ID of the company to contact.
366
- # @param [Google::Apis::PartnersV2::CreateLeadRequest] create_lead_request_object
367
- # @param [String] fields
368
- # Selector specifying which fields to include in a partial response.
369
- # @param [String] quota_user
370
- # Available to use for quota purposes for server-side applications. Can be any
371
- # arbitrary string assigned to a user, but should not exceed 40 characters.
372
- # @param [Google::Apis::RequestOptions] options
373
- # Request-specific options
374
- #
375
- # @yield [result, err] Result & error if block supplied
376
- # @yieldparam result [Google::Apis::PartnersV2::CreateLeadResponse] parsed result object
377
- # @yieldparam err [StandardError] error object if request failed
378
- #
379
- # @return [Google::Apis::PartnersV2::CreateLeadResponse]
380
- #
381
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
382
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
383
- # @raise [Google::Apis::AuthorizationError] Authorization is required
384
- def create_lead(company_id, create_lead_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
385
- command = make_simple_command(:post, 'v2/companies/{companyId}/leads', options)
386
- command.request_representation = Google::Apis::PartnersV2::CreateLeadRequest::Representation
387
- command.request_object = create_lead_request_object
388
- command.response_representation = Google::Apis::PartnersV2::CreateLeadResponse::Representation
389
- command.response_class = Google::Apis::PartnersV2::CreateLeadResponse
390
- command.params['companyId'] = company_id unless company_id.nil?
391
- command.query['fields'] = fields unless fields.nil?
392
- command.query['quotaUser'] = quota_user unless quota_user.nil?
393
- execute_or_queue_command(command, &block)
394
- end
395
-
396
- # Lists advertiser leads for a user's associated company.
397
- # Should only be called within the context of an authorized logged in user.
398
- # @param [String] order_by
399
- # How to order Leads. Currently, only `create_time`
400
- # and `create_time desc` are supported
401
- # @param [Fixnum] page_size
402
- # Requested page size. Server may return fewer leads than requested.
403
- # If unspecified, server picks an appropriate default.
404
- # @param [String] page_token
405
- # A token identifying a page of results that the server returns.
406
- # Typically, this is the value of `ListLeadsResponse.next_page_token`
407
- # returned from the previous call to
408
- # ListLeads.
409
- # @param [Array<String>, String] request_metadata_experiment_ids
410
- # Experiment IDs the current request belongs to.
411
- # @param [String] request_metadata_locale
412
- # Locale to use for the current request.
413
- # @param [String] request_metadata_partners_session_id
414
- # Google Partners session ID.
415
- # @param [String] request_metadata_traffic_source_traffic_source_id
416
- # Identifier to indicate where the traffic comes from.
417
- # An identifier has multiple letters created by a team which redirected the
418
- # traffic to us.
419
- # @param [String] request_metadata_traffic_source_traffic_sub_id
420
- # Second level identifier to indicate where the traffic comes from.
421
- # An identifier has multiple letters created by a team which redirected the
422
- # traffic to us.
423
- # @param [String] request_metadata_user_overrides_ip_address
424
- # IP address to use instead of the user's geo-located IP address.
425
- # @param [String] request_metadata_user_overrides_user_id
426
- # Logged-in user ID to impersonate instead of the user's ID.
427
- # @param [String] fields
428
- # Selector specifying which fields to include in a partial response.
429
- # @param [String] quota_user
430
- # Available to use for quota purposes for server-side applications. Can be any
431
- # arbitrary string assigned to a user, but should not exceed 40 characters.
432
- # @param [Google::Apis::RequestOptions] options
433
- # Request-specific options
434
- #
435
- # @yield [result, err] Result & error if block supplied
436
- # @yieldparam result [Google::Apis::PartnersV2::ListLeadsResponse] parsed result object
437
- # @yieldparam err [StandardError] error object if request failed
438
- #
439
- # @return [Google::Apis::PartnersV2::ListLeadsResponse]
440
- #
441
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
442
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
443
- # @raise [Google::Apis::AuthorizationError] Authorization is required
444
- def list_leads(order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
445
- command = make_simple_command(:get, 'v2/leads', options)
446
- command.response_representation = Google::Apis::PartnersV2::ListLeadsResponse::Representation
447
- command.response_class = Google::Apis::PartnersV2::ListLeadsResponse
448
- command.query['orderBy'] = order_by unless order_by.nil?
449
- command.query['pageSize'] = page_size unless page_size.nil?
450
- command.query['pageToken'] = page_token unless page_token.nil?
451
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
452
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
453
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
454
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
455
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
456
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
457
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
458
- command.query['fields'] = fields unless fields.nil?
459
- command.query['quotaUser'] = quota_user unless quota_user.nil?
460
- execute_or_queue_command(command, &block)
461
- end
462
-
463
- # Lists the Offers available for the current user
464
- # @param [Array<String>, String] request_metadata_experiment_ids
465
- # Experiment IDs the current request belongs to.
466
- # @param [String] request_metadata_locale
467
- # Locale to use for the current request.
468
- # @param [String] request_metadata_partners_session_id
469
- # Google Partners session ID.
470
- # @param [String] request_metadata_traffic_source_traffic_source_id
471
- # Identifier to indicate where the traffic comes from.
472
- # An identifier has multiple letters created by a team which redirected the
473
- # traffic to us.
474
- # @param [String] request_metadata_traffic_source_traffic_sub_id
475
- # Second level identifier to indicate where the traffic comes from.
476
- # An identifier has multiple letters created by a team which redirected the
477
- # traffic to us.
478
- # @param [String] request_metadata_user_overrides_ip_address
479
- # IP address to use instead of the user's geo-located IP address.
480
- # @param [String] request_metadata_user_overrides_user_id
481
- # Logged-in user ID to impersonate instead of the user's ID.
482
- # @param [String] fields
483
- # Selector specifying which fields to include in a partial response.
484
- # @param [String] quota_user
485
- # Available to use for quota purposes for server-side applications. Can be any
486
- # arbitrary string assigned to a user, but should not exceed 40 characters.
487
- # @param [Google::Apis::RequestOptions] options
488
- # Request-specific options
489
- #
490
- # @yield [result, err] Result & error if block supplied
491
- # @yieldparam result [Google::Apis::PartnersV2::ListOffersResponse] parsed result object
492
- # @yieldparam err [StandardError] error object if request failed
493
- #
494
- # @return [Google::Apis::PartnersV2::ListOffersResponse]
495
- #
496
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
497
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
498
- # @raise [Google::Apis::AuthorizationError] Authorization is required
499
- def list_offers(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
500
- command = make_simple_command(:get, 'v2/offers', options)
501
- command.response_representation = Google::Apis::PartnersV2::ListOffersResponse::Representation
502
- command.response_class = Google::Apis::PartnersV2::ListOffersResponse
503
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
504
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
505
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
506
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
507
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
508
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
509
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
510
- command.query['fields'] = fields unless fields.nil?
511
- command.query['quotaUser'] = quota_user unless quota_user.nil?
512
- execute_or_queue_command(command, &block)
513
- end
514
-
515
- # Lists the Historical Offers for the current user (or user's entire company)
516
- # @param [Boolean] entire_company
517
- # if true, show history for the entire company. Requires user to be admin.
518
- # @param [String] order_by
519
- # Comma-separated list of fields to order by, e.g.: "foo,bar,baz".
520
- # Use "foo desc" to sort descending.
521
- # List of valid field names is: name, offer_code, expiration_time, status,
522
- # last_modified_time, sender_name, creation_time, country_code,
523
- # offer_type.
524
- # @param [Fixnum] page_size
525
- # Maximum number of rows to return per page.
526
- # @param [String] page_token
527
- # Token to retrieve a specific page.
528
- # @param [Array<String>, String] request_metadata_experiment_ids
529
- # Experiment IDs the current request belongs to.
530
- # @param [String] request_metadata_locale
531
- # Locale to use for the current request.
532
- # @param [String] request_metadata_partners_session_id
533
- # Google Partners session ID.
534
- # @param [String] request_metadata_traffic_source_traffic_source_id
535
- # Identifier to indicate where the traffic comes from.
536
- # An identifier has multiple letters created by a team which redirected the
537
- # traffic to us.
538
- # @param [String] request_metadata_traffic_source_traffic_sub_id
539
- # Second level identifier to indicate where the traffic comes from.
540
- # An identifier has multiple letters created by a team which redirected the
541
- # traffic to us.
542
- # @param [String] request_metadata_user_overrides_ip_address
543
- # IP address to use instead of the user's geo-located IP address.
544
- # @param [String] request_metadata_user_overrides_user_id
545
- # Logged-in user ID to impersonate instead of the user's ID.
546
- # @param [String] fields
547
- # Selector specifying which fields to include in a partial response.
548
- # @param [String] quota_user
549
- # Available to use for quota purposes for server-side applications. Can be any
550
- # arbitrary string assigned to a user, but should not exceed 40 characters.
551
- # @param [Google::Apis::RequestOptions] options
552
- # Request-specific options
553
- #
554
- # @yield [result, err] Result & error if block supplied
555
- # @yieldparam result [Google::Apis::PartnersV2::ListOffersHistoryResponse] parsed result object
556
- # @yieldparam err [StandardError] error object if request failed
557
- #
558
- # @return [Google::Apis::PartnersV2::ListOffersHistoryResponse]
559
- #
560
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
561
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
562
- # @raise [Google::Apis::AuthorizationError] Authorization is required
563
- def list_offer_histories(entire_company: nil, order_by: nil, page_size: nil, page_token: nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
564
- command = make_simple_command(:get, 'v2/offers/history', options)
565
- command.response_representation = Google::Apis::PartnersV2::ListOffersHistoryResponse::Representation
566
- command.response_class = Google::Apis::PartnersV2::ListOffersHistoryResponse
567
- command.query['entireCompany'] = entire_company unless entire_company.nil?
568
- command.query['orderBy'] = order_by unless order_by.nil?
569
- command.query['pageSize'] = page_size unless page_size.nil?
570
- command.query['pageToken'] = page_token unless page_token.nil?
571
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
572
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
573
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
574
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
575
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
576
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
577
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
578
- command.query['fields'] = fields unless fields.nil?
579
- command.query['quotaUser'] = quota_user unless quota_user.nil?
580
- execute_or_queue_command(command, &block)
581
- end
582
-
583
- # Logs a user event.
584
- # @param [Google::Apis::PartnersV2::LogUserEventRequest] log_user_event_request_object
585
- # @param [String] fields
586
- # Selector specifying which fields to include in a partial response.
587
- # @param [String] quota_user
588
- # Available to use for quota purposes for server-side applications. Can be any
589
- # arbitrary string assigned to a user, but should not exceed 40 characters.
590
- # @param [Google::Apis::RequestOptions] options
591
- # Request-specific options
592
- #
593
- # @yield [result, err] Result & error if block supplied
594
- # @yieldparam result [Google::Apis::PartnersV2::LogUserEventResponse] parsed result object
595
- # @yieldparam err [StandardError] error object if request failed
596
- #
597
- # @return [Google::Apis::PartnersV2::LogUserEventResponse]
598
- #
599
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
600
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
601
- # @raise [Google::Apis::AuthorizationError] Authorization is required
602
- def log_user_event(log_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
603
- command = make_simple_command(:post, 'v2/userEvents:log', options)
604
- command.request_representation = Google::Apis::PartnersV2::LogUserEventRequest::Representation
605
- command.request_object = log_user_event_request_object
606
- command.response_representation = Google::Apis::PartnersV2::LogUserEventResponse::Representation
607
- command.response_class = Google::Apis::PartnersV2::LogUserEventResponse
608
- command.query['fields'] = fields unless fields.nil?
609
- command.query['quotaUser'] = quota_user unless quota_user.nil?
610
- execute_or_queue_command(command, &block)
611
- end
612
-
613
- # Lists states for current user.
614
- # @param [Array<String>, String] request_metadata_experiment_ids
615
- # Experiment IDs the current request belongs to.
616
- # @param [String] request_metadata_locale
617
- # Locale to use for the current request.
618
- # @param [String] request_metadata_partners_session_id
619
- # Google Partners session ID.
620
- # @param [String] request_metadata_traffic_source_traffic_source_id
621
- # Identifier to indicate where the traffic comes from.
622
- # An identifier has multiple letters created by a team which redirected the
623
- # traffic to us.
624
- # @param [String] request_metadata_traffic_source_traffic_sub_id
625
- # Second level identifier to indicate where the traffic comes from.
626
- # An identifier has multiple letters created by a team which redirected the
627
- # traffic to us.
628
- # @param [String] request_metadata_user_overrides_ip_address
629
- # IP address to use instead of the user's geo-located IP address.
630
- # @param [String] request_metadata_user_overrides_user_id
631
- # Logged-in user ID to impersonate instead of the user's ID.
632
- # @param [String] fields
633
- # Selector specifying which fields to include in a partial response.
634
- # @param [String] quota_user
635
- # Available to use for quota purposes for server-side applications. Can be any
636
- # arbitrary string assigned to a user, but should not exceed 40 characters.
637
- # @param [Google::Apis::RequestOptions] options
638
- # Request-specific options
639
- #
640
- # @yield [result, err] Result & error if block supplied
641
- # @yieldparam result [Google::Apis::PartnersV2::ListUserStatesResponse] parsed result object
642
- # @yieldparam err [StandardError] error object if request failed
643
- #
644
- # @return [Google::Apis::PartnersV2::ListUserStatesResponse]
645
- #
646
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
647
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
648
- # @raise [Google::Apis::AuthorizationError] Authorization is required
649
- def list_user_states(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
650
- command = make_simple_command(:get, 'v2/userStates', options)
651
- command.response_representation = Google::Apis::PartnersV2::ListUserStatesResponse::Representation
652
- command.response_class = Google::Apis::PartnersV2::ListUserStatesResponse
653
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
654
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
655
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
656
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
657
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
658
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
659
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
660
- command.query['fields'] = fields unless fields.nil?
661
- command.query['quotaUser'] = quota_user unless quota_user.nil?
662
- execute_or_queue_command(command, &block)
663
- end
664
-
665
- # Creates a user's company relation. Affiliates the user to a company.
666
- # @param [String] user_id
667
- # The ID of the user. Can be set to <code>me</code> to mean
668
- # the currently authenticated user.
669
- # @param [Google::Apis::PartnersV2::CompanyRelation] company_relation_object
670
- # @param [Array<String>, String] request_metadata_experiment_ids
671
- # Experiment IDs the current request belongs to.
672
- # @param [String] request_metadata_locale
673
- # Locale to use for the current request.
674
- # @param [String] request_metadata_partners_session_id
675
- # Google Partners session ID.
676
- # @param [String] request_metadata_traffic_source_traffic_source_id
677
- # Identifier to indicate where the traffic comes from.
678
- # An identifier has multiple letters created by a team which redirected the
679
- # traffic to us.
680
- # @param [String] request_metadata_traffic_source_traffic_sub_id
681
- # Second level identifier to indicate where the traffic comes from.
682
- # An identifier has multiple letters created by a team which redirected the
683
- # traffic to us.
684
- # @param [String] request_metadata_user_overrides_ip_address
685
- # IP address to use instead of the user's geo-located IP address.
686
- # @param [String] request_metadata_user_overrides_user_id
687
- # Logged-in user ID to impersonate instead of the user's ID.
688
- # @param [String] fields
689
- # Selector specifying which fields to include in a partial response.
690
- # @param [String] quota_user
691
- # Available to use for quota purposes for server-side applications. Can be any
692
- # arbitrary string assigned to a user, but should not exceed 40 characters.
693
- # @param [Google::Apis::RequestOptions] options
694
- # Request-specific options
695
- #
696
- # @yield [result, err] Result & error if block supplied
697
- # @yieldparam result [Google::Apis::PartnersV2::CompanyRelation] parsed result object
698
- # @yieldparam err [StandardError] error object if request failed
699
- #
700
- # @return [Google::Apis::PartnersV2::CompanyRelation]
701
- #
702
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
703
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
704
- # @raise [Google::Apis::AuthorizationError] Authorization is required
705
- def create_user_company_relation(user_id, company_relation_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
706
- command = make_simple_command(:put, 'v2/users/{userId}/companyRelation', options)
707
- command.request_representation = Google::Apis::PartnersV2::CompanyRelation::Representation
708
- command.request_object = company_relation_object
709
- command.response_representation = Google::Apis::PartnersV2::CompanyRelation::Representation
710
- command.response_class = Google::Apis::PartnersV2::CompanyRelation
711
- command.params['userId'] = user_id unless user_id.nil?
712
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
713
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
714
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
715
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
716
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
717
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
718
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
719
- command.query['fields'] = fields unless fields.nil?
720
- command.query['quotaUser'] = quota_user unless quota_user.nil?
721
- execute_or_queue_command(command, &block)
722
- end
723
-
724
- # Deletes a user's company relation. Unaffiliaites the user from a company.
725
- # @param [String] user_id
726
- # The ID of the user. Can be set to <code>me</code> to mean
727
- # the currently authenticated user.
728
- # @param [Array<String>, String] request_metadata_experiment_ids
729
- # Experiment IDs the current request belongs to.
730
- # @param [String] request_metadata_locale
731
- # Locale to use for the current request.
732
- # @param [String] request_metadata_partners_session_id
733
- # Google Partners session ID.
734
- # @param [String] request_metadata_traffic_source_traffic_source_id
735
- # Identifier to indicate where the traffic comes from.
736
- # An identifier has multiple letters created by a team which redirected the
737
- # traffic to us.
738
- # @param [String] request_metadata_traffic_source_traffic_sub_id
739
- # Second level identifier to indicate where the traffic comes from.
740
- # An identifier has multiple letters created by a team which redirected the
741
- # traffic to us.
742
- # @param [String] request_metadata_user_overrides_ip_address
743
- # IP address to use instead of the user's geo-located IP address.
744
- # @param [String] request_metadata_user_overrides_user_id
745
- # Logged-in user ID to impersonate instead of the user's ID.
746
- # @param [String] fields
747
- # Selector specifying which fields to include in a partial response.
748
- # @param [String] quota_user
749
- # Available to use for quota purposes for server-side applications. Can be any
750
- # arbitrary string assigned to a user, but should not exceed 40 characters.
751
- # @param [Google::Apis::RequestOptions] options
752
- # Request-specific options
753
- #
754
- # @yield [result, err] Result & error if block supplied
755
- # @yieldparam result [Google::Apis::PartnersV2::Empty] parsed result object
756
- # @yieldparam err [StandardError] error object if request failed
757
- #
758
- # @return [Google::Apis::PartnersV2::Empty]
759
- #
760
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
761
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
762
- # @raise [Google::Apis::AuthorizationError] Authorization is required
763
- def delete_user_company_relation(user_id, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
764
- command = make_simple_command(:delete, 'v2/users/{userId}/companyRelation', options)
765
- command.response_representation = Google::Apis::PartnersV2::Empty::Representation
766
- command.response_class = Google::Apis::PartnersV2::Empty
767
- command.params['userId'] = user_id unless user_id.nil?
768
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
769
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
770
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
771
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
772
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
773
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
774
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
775
- command.query['fields'] = fields unless fields.nil?
776
- command.query['quotaUser'] = quota_user unless quota_user.nil?
777
- execute_or_queue_command(command, &block)
778
- end
779
-
780
- # Gets a user.
781
- # @param [String] user_id
782
- # Identifier of the user. Can be set to <code>me</code> to mean the currently
783
- # authenticated user.
784
- # @param [Array<String>, String] request_metadata_experiment_ids
785
- # Experiment IDs the current request belongs to.
786
- # @param [String] request_metadata_locale
787
- # Locale to use for the current request.
788
- # @param [String] request_metadata_partners_session_id
789
- # Google Partners session ID.
790
- # @param [String] request_metadata_traffic_source_traffic_source_id
791
- # Identifier to indicate where the traffic comes from.
792
- # An identifier has multiple letters created by a team which redirected the
793
- # traffic to us.
794
- # @param [String] request_metadata_traffic_source_traffic_sub_id
795
- # Second level identifier to indicate where the traffic comes from.
796
- # An identifier has multiple letters created by a team which redirected the
797
- # traffic to us.
798
- # @param [String] request_metadata_user_overrides_ip_address
799
- # IP address to use instead of the user's geo-located IP address.
800
- # @param [String] request_metadata_user_overrides_user_id
801
- # Logged-in user ID to impersonate instead of the user's ID.
802
- # @param [String] user_view
803
- # Specifies what parts of the user information to return.
804
- # @param [String] fields
805
- # Selector specifying which fields to include in a partial response.
806
- # @param [String] quota_user
807
- # Available to use for quota purposes for server-side applications. Can be any
808
- # arbitrary string assigned to a user, but should not exceed 40 characters.
809
- # @param [Google::Apis::RequestOptions] options
810
- # Request-specific options
811
- #
812
- # @yield [result, err] Result & error if block supplied
813
- # @yieldparam result [Google::Apis::PartnersV2::User] parsed result object
814
- # @yieldparam err [StandardError] error object if request failed
815
- #
816
- # @return [Google::Apis::PartnersV2::User]
817
- #
818
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
819
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
820
- # @raise [Google::Apis::AuthorizationError] Authorization is required
821
- def get_user(user_id, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, user_view: nil, fields: nil, quota_user: nil, options: nil, &block)
822
- command = make_simple_command(:get, 'v2/users/{userId}', options)
823
- command.response_representation = Google::Apis::PartnersV2::User::Representation
824
- command.response_class = Google::Apis::PartnersV2::User
825
- command.params['userId'] = user_id unless user_id.nil?
826
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
827
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
828
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
829
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
830
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
831
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
832
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
833
- command.query['userView'] = user_view unless user_view.nil?
834
- command.query['fields'] = fields unless fields.nil?
835
- command.query['quotaUser'] = quota_user unless quota_user.nil?
836
- execute_or_queue_command(command, &block)
837
- end
838
-
839
- # Updates a user's profile. A user can only update their own profile and
840
- # should only be called within the context of a logged in user.
841
- # @param [Google::Apis::PartnersV2::UserProfile] user_profile_object
842
- # @param [Array<String>, String] request_metadata_experiment_ids
843
- # Experiment IDs the current request belongs to.
844
- # @param [String] request_metadata_locale
845
- # Locale to use for the current request.
846
- # @param [String] request_metadata_partners_session_id
847
- # Google Partners session ID.
848
- # @param [String] request_metadata_traffic_source_traffic_source_id
849
- # Identifier to indicate where the traffic comes from.
850
- # An identifier has multiple letters created by a team which redirected the
851
- # traffic to us.
852
- # @param [String] request_metadata_traffic_source_traffic_sub_id
853
- # Second level identifier to indicate where the traffic comes from.
854
- # An identifier has multiple letters created by a team which redirected the
855
- # traffic to us.
856
- # @param [String] request_metadata_user_overrides_ip_address
857
- # IP address to use instead of the user's geo-located IP address.
858
- # @param [String] request_metadata_user_overrides_user_id
859
- # Logged-in user ID to impersonate instead of the user's ID.
860
- # @param [String] fields
861
- # Selector specifying which fields to include in a partial response.
862
- # @param [String] quota_user
863
- # Available to use for quota purposes for server-side applications. Can be any
864
- # arbitrary string assigned to a user, but should not exceed 40 characters.
865
- # @param [Google::Apis::RequestOptions] options
866
- # Request-specific options
867
- #
868
- # @yield [result, err] Result & error if block supplied
869
- # @yieldparam result [Google::Apis::PartnersV2::UserProfile] parsed result object
870
- # @yieldparam err [StandardError] error object if request failed
871
- #
872
- # @return [Google::Apis::PartnersV2::UserProfile]
873
- #
874
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
875
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
876
- # @raise [Google::Apis::AuthorizationError] Authorization is required
877
- def update_user_profile(user_profile_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
878
- command = make_simple_command(:patch, 'v2/users/profile', options)
879
- command.request_representation = Google::Apis::PartnersV2::UserProfile::Representation
880
- command.request_object = user_profile_object
881
- command.response_representation = Google::Apis::PartnersV2::UserProfile::Representation
882
- command.response_class = Google::Apis::PartnersV2::UserProfile
883
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
884
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
885
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
886
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
887
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
888
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
889
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
890
- command.query['fields'] = fields unless fields.nil?
891
- command.query['quotaUser'] = quota_user unless quota_user.nil?
892
- execute_or_queue_command(command, &block)
893
- end
894
-
895
- # Gets Partners Status of the logged in user's agency.
896
- # Should only be called if the logged in user is the admin of the agency.
897
- # @param [Array<String>, String] request_metadata_experiment_ids
898
- # Experiment IDs the current request belongs to.
899
- # @param [String] request_metadata_locale
900
- # Locale to use for the current request.
901
- # @param [String] request_metadata_partners_session_id
902
- # Google Partners session ID.
903
- # @param [String] request_metadata_traffic_source_traffic_source_id
904
- # Identifier to indicate where the traffic comes from.
905
- # An identifier has multiple letters created by a team which redirected the
906
- # traffic to us.
907
- # @param [String] request_metadata_traffic_source_traffic_sub_id
908
- # Second level identifier to indicate where the traffic comes from.
909
- # An identifier has multiple letters created by a team which redirected the
910
- # traffic to us.
911
- # @param [String] request_metadata_user_overrides_ip_address
912
- # IP address to use instead of the user's geo-located IP address.
913
- # @param [String] request_metadata_user_overrides_user_id
914
- # Logged-in user ID to impersonate instead of the user's ID.
915
- # @param [String] fields
916
- # Selector specifying which fields to include in a partial response.
917
- # @param [String] quota_user
918
- # Available to use for quota purposes for server-side applications. Can be any
919
- # arbitrary string assigned to a user, but should not exceed 40 characters.
920
- # @param [Google::Apis::RequestOptions] options
921
- # Request-specific options
922
- #
923
- # @yield [result, err] Result & error if block supplied
924
- # @yieldparam result [Google::Apis::PartnersV2::GetPartnersStatusResponse] parsed result object
925
- # @yieldparam err [StandardError] error object if request failed
926
- #
927
- # @return [Google::Apis::PartnersV2::GetPartnersStatusResponse]
928
- #
929
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
930
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
931
- # @raise [Google::Apis::AuthorizationError] Authorization is required
932
- def get_partnersstatus(request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
933
- command = make_simple_command(:get, 'v2/partnersstatus', options)
934
- command.response_representation = Google::Apis::PartnersV2::GetPartnersStatusResponse::Representation
935
- command.response_class = Google::Apis::PartnersV2::GetPartnersStatusResponse
936
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
937
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
938
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
939
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
940
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
941
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
942
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
943
- command.query['fields'] = fields unless fields.nil?
944
- command.query['quotaUser'] = quota_user unless quota_user.nil?
945
- execute_or_queue_command(command, &block)
946
- end
947
-
948
- # Update company.
949
- # Should only be called within the context of an authorized logged in user.
950
- # @param [Google::Apis::PartnersV2::Company] company_object
951
- # @param [Array<String>, String] request_metadata_experiment_ids
952
- # Experiment IDs the current request belongs to.
953
- # @param [String] request_metadata_locale
954
- # Locale to use for the current request.
955
- # @param [String] request_metadata_partners_session_id
956
- # Google Partners session ID.
957
- # @param [String] request_metadata_traffic_source_traffic_source_id
958
- # Identifier to indicate where the traffic comes from.
959
- # An identifier has multiple letters created by a team which redirected the
960
- # traffic to us.
961
- # @param [String] request_metadata_traffic_source_traffic_sub_id
962
- # Second level identifier to indicate where the traffic comes from.
963
- # An identifier has multiple letters created by a team which redirected the
964
- # traffic to us.
965
- # @param [String] request_metadata_user_overrides_ip_address
966
- # IP address to use instead of the user's geo-located IP address.
967
- # @param [String] request_metadata_user_overrides_user_id
968
- # Logged-in user ID to impersonate instead of the user's ID.
969
- # @param [String] update_mask
970
- # Standard field mask for the set of fields to be updated.
971
- # Required with at least 1 value in FieldMask's paths.
972
- # @param [String] fields
973
- # Selector specifying which fields to include in a partial response.
974
- # @param [String] quota_user
975
- # Available to use for quota purposes for server-side applications. Can be any
976
- # arbitrary string assigned to a user, but should not exceed 40 characters.
977
- # @param [Google::Apis::RequestOptions] options
978
- # Request-specific options
979
- #
980
- # @yield [result, err] Result & error if block supplied
981
- # @yieldparam result [Google::Apis::PartnersV2::Company] parsed result object
982
- # @yieldparam err [StandardError] error object if request failed
983
- #
984
- # @return [Google::Apis::PartnersV2::Company]
985
- #
986
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
987
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
988
- # @raise [Google::Apis::AuthorizationError] Authorization is required
989
- def update_companies(company_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
990
- command = make_simple_command(:patch, 'v2/companies', options)
991
- command.request_representation = Google::Apis::PartnersV2::Company::Representation
992
- command.request_object = company_object
993
- command.response_representation = Google::Apis::PartnersV2::Company::Representation
994
- command.response_class = Google::Apis::PartnersV2::Company
995
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
996
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
997
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
998
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
999
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
1000
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
1001
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
1002
- command.query['updateMask'] = update_mask unless update_mask.nil?
1003
- command.query['fields'] = fields unless fields.nil?
1004
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1005
- execute_or_queue_command(command, &block)
1006
- end
1007
-
1008
- # Updates the specified lead.
1009
- # @param [Google::Apis::PartnersV2::Lead] lead_object
1010
- # @param [Array<String>, String] request_metadata_experiment_ids
1011
- # Experiment IDs the current request belongs to.
1012
- # @param [String] request_metadata_locale
1013
- # Locale to use for the current request.
1014
- # @param [String] request_metadata_partners_session_id
1015
- # Google Partners session ID.
1016
- # @param [String] request_metadata_traffic_source_traffic_source_id
1017
- # Identifier to indicate where the traffic comes from.
1018
- # An identifier has multiple letters created by a team which redirected the
1019
- # traffic to us.
1020
- # @param [String] request_metadata_traffic_source_traffic_sub_id
1021
- # Second level identifier to indicate where the traffic comes from.
1022
- # An identifier has multiple letters created by a team which redirected the
1023
- # traffic to us.
1024
- # @param [String] request_metadata_user_overrides_ip_address
1025
- # IP address to use instead of the user's geo-located IP address.
1026
- # @param [String] request_metadata_user_overrides_user_id
1027
- # Logged-in user ID to impersonate instead of the user's ID.
1028
- # @param [String] update_mask
1029
- # Standard field mask for the set of fields to be updated.
1030
- # Required with at least 1 value in FieldMask's paths.
1031
- # Only `state` and `adwords_customer_id` are currently supported.
1032
- # @param [String] fields
1033
- # Selector specifying which fields to include in a partial response.
1034
- # @param [String] quota_user
1035
- # Available to use for quota purposes for server-side applications. Can be any
1036
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1037
- # @param [Google::Apis::RequestOptions] options
1038
- # Request-specific options
1039
- #
1040
- # @yield [result, err] Result & error if block supplied
1041
- # @yieldparam result [Google::Apis::PartnersV2::Lead] parsed result object
1042
- # @yieldparam err [StandardError] error object if request failed
1043
- #
1044
- # @return [Google::Apis::PartnersV2::Lead]
1045
- #
1046
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1047
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1048
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1049
- def update_leads(lead_object = nil, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1050
- command = make_simple_command(:patch, 'v2/leads', options)
1051
- command.request_representation = Google::Apis::PartnersV2::Lead::Representation
1052
- command.request_object = lead_object
1053
- command.response_representation = Google::Apis::PartnersV2::Lead::Representation
1054
- command.response_class = Google::Apis::PartnersV2::Lead
1055
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
1056
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
1057
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
1058
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
1059
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
1060
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
1061
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
1062
- command.query['updateMask'] = update_mask unless update_mask.nil?
1063
- command.query['fields'] = fields unless fields.nil?
1064
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1065
- execute_or_queue_command(command, &block)
1066
- end
1067
-
1068
- protected
1069
-
1070
- def apply_command_defaults(command)
1071
- command.query['key'] = key unless key.nil?
1072
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1073
- end
1074
- end
1075
- end
1076
- end
1077
- end