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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/glass
26
26
  module MirrorV1
27
27
  VERSION = 'V1'
28
- REVISION = '20150720'
28
+ REVISION = '20151206'
29
29
 
30
30
  # View your location
31
31
  AUTH_GLASS_LOCATION = 'https://www.googleapis.com/auth/glass.location'
@@ -82,8 +82,7 @@ module Google
82
82
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
83
83
  # @raise [Google::Apis::AuthorizationError] Authorization is required
84
84
  def insert_account(user_token, account_type, account_name, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
85
- path = 'accounts/{userToken}/{accountType}/{accountName}'
86
- command = make_simple_command(:post, path, options)
85
+ command = make_simple_command(:post, 'accounts/{userToken}/{accountType}/{accountName}', options)
87
86
  command.request_representation = Google::Apis::MirrorV1::Account::Representation
88
87
  command.request_object = account_object
89
88
  command.response_representation = Google::Apis::MirrorV1::Account::Representation
@@ -122,8 +121,7 @@ module Google
122
121
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
123
122
  # @raise [Google::Apis::AuthorizationError] Authorization is required
124
123
  def delete_contact(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
125
- path = 'contacts/{id}'
126
- command = make_simple_command(:delete, path, options)
124
+ command = make_simple_command(:delete, 'contacts/{id}', options)
127
125
  command.params['id'] = id unless id.nil?
128
126
  command.query['fields'] = fields unless fields.nil?
129
127
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -156,8 +154,7 @@ module Google
156
154
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
157
155
  # @raise [Google::Apis::AuthorizationError] Authorization is required
158
156
  def get_contact(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
159
- path = 'contacts/{id}'
160
- command = make_simple_command(:get, path, options)
157
+ command = make_simple_command(:get, 'contacts/{id}', options)
161
158
  command.response_representation = Google::Apis::MirrorV1::Contact::Representation
162
159
  command.response_class = Google::Apis::MirrorV1::Contact
163
160
  command.params['id'] = id unless id.nil?
@@ -191,8 +188,7 @@ module Google
191
188
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
192
189
  # @raise [Google::Apis::AuthorizationError] Authorization is required
193
190
  def insert_contact(contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
194
- path = 'contacts'
195
- command = make_simple_command(:post, path, options)
191
+ command = make_simple_command(:post, 'contacts', options)
196
192
  command.request_representation = Google::Apis::MirrorV1::Contact::Representation
197
193
  command.request_object = contact_object
198
194
  command.response_representation = Google::Apis::MirrorV1::Contact::Representation
@@ -226,8 +222,7 @@ module Google
226
222
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
227
223
  # @raise [Google::Apis::AuthorizationError] Authorization is required
228
224
  def list_contacts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
229
- path = 'contacts'
230
- command = make_simple_command(:get, path, options)
225
+ command = make_simple_command(:get, 'contacts', options)
231
226
  command.response_representation = Google::Apis::MirrorV1::ListContactsResponse::Representation
232
227
  command.response_class = Google::Apis::MirrorV1::ListContactsResponse
233
228
  command.query['fields'] = fields unless fields.nil?
@@ -262,8 +257,7 @@ module Google
262
257
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
263
258
  # @raise [Google::Apis::AuthorizationError] Authorization is required
264
259
  def patch_contact(id, contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
265
- path = 'contacts/{id}'
266
- command = make_simple_command(:patch, path, options)
260
+ command = make_simple_command(:patch, 'contacts/{id}', options)
267
261
  command.request_representation = Google::Apis::MirrorV1::Contact::Representation
268
262
  command.request_object = contact_object
269
263
  command.response_representation = Google::Apis::MirrorV1::Contact::Representation
@@ -301,8 +295,7 @@ module Google
301
295
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
302
296
  # @raise [Google::Apis::AuthorizationError] Authorization is required
303
297
  def update_contact(id, contact_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
304
- path = 'contacts/{id}'
305
- command = make_simple_command(:put, path, options)
298
+ command = make_simple_command(:put, 'contacts/{id}', options)
306
299
  command.request_representation = Google::Apis::MirrorV1::Contact::Representation
307
300
  command.request_object = contact_object
308
301
  command.response_representation = Google::Apis::MirrorV1::Contact::Representation
@@ -339,8 +332,7 @@ module Google
339
332
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
340
333
  # @raise [Google::Apis::AuthorizationError] Authorization is required
341
334
  def get_location(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
342
- path = 'locations/{id}'
343
- command = make_simple_command(:get, path, options)
335
+ command = make_simple_command(:get, 'locations/{id}', options)
344
336
  command.response_representation = Google::Apis::MirrorV1::Location::Representation
345
337
  command.response_class = Google::Apis::MirrorV1::Location
346
338
  command.params['id'] = id unless id.nil?
@@ -373,8 +365,7 @@ module Google
373
365
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
374
366
  # @raise [Google::Apis::AuthorizationError] Authorization is required
375
367
  def list_locations(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
376
- path = 'locations'
377
- command = make_simple_command(:get, path, options)
368
+ command = make_simple_command(:get, 'locations', options)
378
369
  command.response_representation = Google::Apis::MirrorV1::ListLocationsResponse::Representation
379
370
  command.response_class = Google::Apis::MirrorV1::ListLocationsResponse
380
371
  command.query['fields'] = fields unless fields.nil?
@@ -412,8 +403,7 @@ module Google
412
403
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
413
404
  # @raise [Google::Apis::AuthorizationError] Authorization is required
414
405
  def get_setting(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
415
- path = 'settings/{id}'
416
- command = make_simple_command(:get, path, options)
406
+ command = make_simple_command(:get, 'settings/{id}', options)
417
407
  command.response_representation = Google::Apis::MirrorV1::Setting::Representation
418
408
  command.response_class = Google::Apis::MirrorV1::Setting
419
409
  command.params['id'] = id unless id.nil?
@@ -448,8 +438,7 @@ module Google
448
438
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
449
439
  # @raise [Google::Apis::AuthorizationError] Authorization is required
450
440
  def delete_subscription(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
451
- path = 'subscriptions/{id}'
452
- command = make_simple_command(:delete, path, options)
441
+ command = make_simple_command(:delete, 'subscriptions/{id}', options)
453
442
  command.params['id'] = id unless id.nil?
454
443
  command.query['fields'] = fields unless fields.nil?
455
444
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -481,8 +470,7 @@ module Google
481
470
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
482
471
  # @raise [Google::Apis::AuthorizationError] Authorization is required
483
472
  def insert_subscription(subscription_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
484
- path = 'subscriptions'
485
- command = make_simple_command(:post, path, options)
473
+ command = make_simple_command(:post, 'subscriptions', options)
486
474
  command.request_representation = Google::Apis::MirrorV1::Subscription::Representation
487
475
  command.request_object = subscription_object
488
476
  command.response_representation = Google::Apis::MirrorV1::Subscription::Representation
@@ -516,8 +504,7 @@ module Google
516
504
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
517
505
  # @raise [Google::Apis::AuthorizationError] Authorization is required
518
506
  def list_subscriptions(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
519
- path = 'subscriptions'
520
- command = make_simple_command(:get, path, options)
507
+ command = make_simple_command(:get, 'subscriptions', options)
521
508
  command.response_representation = Google::Apis::MirrorV1::ListSubscriptionsResponse::Representation
522
509
  command.response_class = Google::Apis::MirrorV1::ListSubscriptionsResponse
523
510
  command.query['fields'] = fields unless fields.nil?
@@ -552,8 +539,7 @@ module Google
552
539
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
553
540
  # @raise [Google::Apis::AuthorizationError] Authorization is required
554
541
  def update_subscription(id, subscription_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
555
- path = 'subscriptions/{id}'
556
- command = make_simple_command(:put, path, options)
542
+ command = make_simple_command(:put, 'subscriptions/{id}', options)
557
543
  command.request_representation = Google::Apis::MirrorV1::Subscription::Representation
558
544
  command.request_object = subscription_object
559
545
  command.response_representation = Google::Apis::MirrorV1::Subscription::Representation
@@ -590,8 +576,7 @@ module Google
590
576
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
591
577
  # @raise [Google::Apis::AuthorizationError] Authorization is required
592
578
  def delete_timeline(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
593
- path = 'timeline/{id}'
594
- command = make_simple_command(:delete, path, options)
579
+ command = make_simple_command(:delete, 'timeline/{id}', options)
595
580
  command.params['id'] = id unless id.nil?
596
581
  command.query['fields'] = fields unless fields.nil?
597
582
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -624,8 +609,7 @@ module Google
624
609
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
625
610
  # @raise [Google::Apis::AuthorizationError] Authorization is required
626
611
  def get_timeline(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
627
- path = 'timeline/{id}'
628
- command = make_simple_command(:get, path, options)
612
+ command = make_simple_command(:get, 'timeline/{id}', options)
629
613
  command.response_representation = Google::Apis::MirrorV1::TimelineItem::Representation
630
614
  command.response_class = Google::Apis::MirrorV1::TimelineItem
631
615
  command.params['id'] = id unless id.nil?
@@ -663,11 +647,10 @@ module Google
663
647
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
664
648
  # @raise [Google::Apis::AuthorizationError] Authorization is required
665
649
  def insert_timeline(timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
666
- path = 'timeline'
667
650
  if upload_source.nil?
668
- command = make_simple_command(:post, path, options)
651
+ command = make_simple_command(:post, 'timeline', options)
669
652
  else
670
- command = make_upload_command(:post, path, options)
653
+ command = make_upload_command(:post, 'timeline', options)
671
654
  command.upload_source = upload_source
672
655
  command.upload_content_type = content_type
673
656
  end
@@ -718,8 +701,7 @@ module Google
718
701
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
719
702
  # @raise [Google::Apis::AuthorizationError] Authorization is required
720
703
  def list_timelines(bundle_id: nil, include_deleted: nil, max_results: nil, order_by: nil, page_token: nil, pinned_only: nil, source_item_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
721
- path = 'timeline'
722
- command = make_simple_command(:get, path, options)
704
+ command = make_simple_command(:get, 'timeline', options)
723
705
  command.response_representation = Google::Apis::MirrorV1::ListTimelineResponse::Representation
724
706
  command.response_class = Google::Apis::MirrorV1::ListTimelineResponse
725
707
  command.query['bundleId'] = bundle_id unless bundle_id.nil?
@@ -761,8 +743,7 @@ module Google
761
743
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
762
744
  # @raise [Google::Apis::AuthorizationError] Authorization is required
763
745
  def patch_timeline(id, timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
764
- path = 'timeline/{id}'
765
- command = make_simple_command(:patch, path, options)
746
+ command = make_simple_command(:patch, 'timeline/{id}', options)
766
747
  command.request_representation = Google::Apis::MirrorV1::TimelineItem::Representation
767
748
  command.request_object = timeline_item_object
768
749
  command.response_representation = Google::Apis::MirrorV1::TimelineItem::Representation
@@ -804,11 +785,10 @@ module Google
804
785
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
805
786
  # @raise [Google::Apis::AuthorizationError] Authorization is required
806
787
  def update_timeline(id, timeline_item_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
807
- path = 'timeline/{id}'
808
788
  if upload_source.nil?
809
- command = make_simple_command(:put, path, options)
789
+ command = make_simple_command(:put, 'timeline/{id}', options)
810
790
  else
811
- command = make_upload_command(:put, path, options)
791
+ command = make_upload_command(:put, 'timeline/{id}', options)
812
792
  command.upload_source = upload_source
813
793
  command.upload_content_type = content_type
814
794
  end
@@ -850,8 +830,7 @@ module Google
850
830
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
851
831
  # @raise [Google::Apis::AuthorizationError] Authorization is required
852
832
  def delete_timeline_attachment(item_id, attachment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
853
- path = 'timeline/{itemId}/attachments/{attachmentId}'
854
- command = make_simple_command(:delete, path, options)
833
+ command = make_simple_command(:delete, 'timeline/{itemId}/attachments/{attachmentId}', options)
855
834
  command.params['itemId'] = item_id unless item_id.nil?
856
835
  command.params['attachmentId'] = attachment_id unless attachment_id.nil?
857
836
  command.query['fields'] = fields unless fields.nil?
@@ -889,11 +868,10 @@ module Google
889
868
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
890
869
  # @raise [Google::Apis::AuthorizationError] Authorization is required
891
870
  def get_timeline_attachment(item_id, attachment_id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
892
- path = 'timeline/{itemId}/attachments/{attachmentId}'
893
871
  if download_dest.nil?
894
- command = make_simple_command(:get, path, options)
872
+ command = make_simple_command(:get, 'timeline/{itemId}/attachments/{attachmentId}', options)
895
873
  else
896
- command = make_download_command(:get, path, options)
874
+ command = make_download_command(:get, 'timeline/{itemId}/attachments/{attachmentId}', options)
897
875
  command.download_dest = download_dest
898
876
  end
899
877
  command.response_representation = Google::Apis::MirrorV1::Attachment::Representation
@@ -935,11 +913,10 @@ module Google
935
913
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
936
914
  # @raise [Google::Apis::AuthorizationError] Authorization is required
937
915
  def insert_timeline_attachment(item_id, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
938
- path = 'timeline/{itemId}/attachments'
939
916
  if upload_source.nil?
940
- command = make_simple_command(:post, path, options)
917
+ command = make_simple_command(:post, 'timeline/{itemId}/attachments', options)
941
918
  else
942
- command = make_upload_command(:post, path, options)
919
+ command = make_upload_command(:post, 'timeline/{itemId}/attachments', options)
943
920
  command.upload_source = upload_source
944
921
  command.upload_content_type = content_type
945
922
  end
@@ -977,8 +954,7 @@ module Google
977
954
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
978
955
  # @raise [Google::Apis::AuthorizationError] Authorization is required
979
956
  def list_timeline_attachments(item_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
980
- path = 'timeline/{itemId}/attachments'
981
- command = make_simple_command(:get, path, options)
957
+ command = make_simple_command(:get, 'timeline/{itemId}/attachments', options)
982
958
  command.response_representation = Google::Apis::MirrorV1::ListAttachmentsResponse::Representation
983
959
  command.response_class = Google::Apis::MirrorV1::ListAttachmentsResponse
984
960
  command.params['itemId'] = item_id unless item_id.nil?
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/accounts/docs/OAuth2
26
26
  module Oauth2V2
27
27
  VERSION = 'V2'
28
- REVISION = '20150714'
28
+ REVISION = '20151107'
29
29
 
30
30
  # Know your basic profile info and list of people in your circles.
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -75,8 +75,7 @@ module Google
75
75
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
76
  # @raise [Google::Apis::AuthorizationError] Authorization is required
77
77
  def get_cert_for_open_id_connect(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
78
- path = 'oauth2/v2/certs'
79
- command = make_simple_command(:get, path, options)
78
+ command = make_simple_command(:get, 'oauth2/v2/certs', options)
80
79
  command.response_representation = Google::Apis::Oauth2V2::Jwk::Representation
81
80
  command.response_class = Google::Apis::Oauth2V2::Jwk
82
81
  command.query['fields'] = fields unless fields.nil?
@@ -111,8 +110,7 @@ module Google
111
110
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
112
111
  # @raise [Google::Apis::AuthorizationError] Authorization is required
113
112
  def tokeninfo(access_token: nil, id_token: nil, token_handle: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
114
- path = 'oauth2/v2/tokeninfo'
115
- command = make_simple_command(:post, path, options)
113
+ command = make_simple_command(:post, 'oauth2/v2/tokeninfo', options)
116
114
  command.response_representation = Google::Apis::Oauth2V2::Tokeninfo::Representation
117
115
  command.response_class = Google::Apis::Oauth2V2::Tokeninfo
118
116
  command.query['access_token'] = access_token unless access_token.nil?
@@ -147,8 +145,7 @@ module Google
147
145
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
148
146
  # @raise [Google::Apis::AuthorizationError] Authorization is required
149
147
  def get_userinfo(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
150
- path = 'oauth2/v2/userinfo'
151
- command = make_simple_command(:get, path, options)
148
+ command = make_simple_command(:get, 'oauth2/v2/userinfo', options)
152
149
  command.response_representation = Google::Apis::Oauth2V2::Userinfoplus::Representation
153
150
  command.response_class = Google::Apis::Oauth2V2::Userinfoplus
154
151
  command.query['fields'] = fields unless fields.nil?
@@ -180,8 +177,7 @@ module Google
180
177
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
181
178
  # @raise [Google::Apis::AuthorizationError] Authorization is required
182
179
  def get_userinfo_v2(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
183
- path = 'userinfo/v2/me'
184
- command = make_simple_command(:get, path, options)
180
+ command = make_simple_command(:get, 'userinfo/v2/me', options)
185
181
  command.response_representation = Google::Apis::Oauth2V2::Userinfoplus::Representation
186
182
  command.response_class = Google::Apis::Oauth2V2::Userinfoplus
187
183
  command.query['fields'] = fields unless fields.nil?
@@ -91,8 +91,7 @@ module Google
91
91
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
92
92
  # @raise [Google::Apis::AuthorizationError] Authorization is required
93
93
  def run_pagespeed(url, filter_third_party_resources: nil, locale: nil, rule: nil, screenshot: nil, strategy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
94
- path = 'runPagespeed'
95
- command = make_simple_command(:get, path, options)
94
+ command = make_simple_command(:get, 'runPagespeed', options)
96
95
  command.response_representation = Google::Apis::PagespeedonlineV2::Result::Representation
97
96
  command.response_class = Google::Apis::PagespeedonlineV2::Result
98
97
  command.query['filter_third_party_resources'] = filter_third_party_resources unless filter_third_party_resources.nil?
@@ -0,0 +1,32 @@
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/partners_v2/service.rb'
16
+ require 'google/apis/partners_v2/classes.rb'
17
+ require 'google/apis/partners_v2/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Partners API
22
+ #
23
+ # Lets advertisers search certified companies and create contact leads with them,
24
+ # and also audits the usage of clients.
25
+ #
26
+ # @see https://developers.google.com/partners/
27
+ module PartnersV2
28
+ VERSION = 'V2'
29
+ REVISION = '20151009'
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,942 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module PartnersV2
24
+
25
+ # Request message for LogUserEvent.
26
+ class LogUserEventRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Common data that is in each API request.
30
+ # Corresponds to the JSON property `requestMetadata`
31
+ # @return [Google::Apis::PartnersV2::RequestMetadata]
32
+ attr_accessor :request_metadata
33
+
34
+ # The action that occurred.
35
+ # Corresponds to the JSON property `eventAction`
36
+ # @return [String]
37
+ attr_accessor :event_action
38
+
39
+ # The category the action belongs to.
40
+ # Corresponds to the JSON property `eventCategory`
41
+ # @return [String]
42
+ attr_accessor :event_category
43
+
44
+ # The scope of the event.
45
+ # Corresponds to the JSON property `eventScope`
46
+ # @return [String]
47
+ attr_accessor :event_scope
48
+
49
+ # List of event data for the event.
50
+ # Corresponds to the JSON property `eventDatas`
51
+ # @return [Array<Google::Apis::PartnersV2::EventData>]
52
+ attr_accessor :event_datas
53
+
54
+ # The URL where the event occurred.
55
+ # Corresponds to the JSON property `url`
56
+ # @return [String]
57
+ attr_accessor :url
58
+
59
+ # A lead resource that represents an advertiser contact for a `Company`. These
60
+ # are usually generated via Google Partner Search (the advertiser portal).
61
+ # Corresponds to the JSON property `lead`
62
+ # @return [Google::Apis::PartnersV2::Lead]
63
+ attr_accessor :lead
64
+
65
+ def initialize(**args)
66
+ update!(**args)
67
+ end
68
+
69
+ # Update properties of this object
70
+ def update!(**args)
71
+ @request_metadata = args[:request_metadata] unless args[:request_metadata].nil?
72
+ @event_action = args[:event_action] unless args[:event_action].nil?
73
+ @event_category = args[:event_category] unless args[:event_category].nil?
74
+ @event_scope = args[:event_scope] unless args[:event_scope].nil?
75
+ @event_datas = args[:event_datas] unless args[:event_datas].nil?
76
+ @url = args[:url] unless args[:url].nil?
77
+ @lead = args[:lead] unless args[:lead].nil?
78
+ end
79
+ end
80
+
81
+ # Common data that is in each API request.
82
+ class RequestMetadata
83
+ include Google::Apis::Core::Hashable
84
+
85
+ # Values to use instead of the user's respective defaults. These are only
86
+ # honored by whitelisted products.
87
+ # Corresponds to the JSON property `userOverrides`
88
+ # @return [Google::Apis::PartnersV2::UserOverrides]
89
+ attr_accessor :user_overrides
90
+
91
+ # Locale to use for the current request.
92
+ # Corresponds to the JSON property `locale`
93
+ # @return [String]
94
+ attr_accessor :locale
95
+
96
+ # Google Partners session ID.
97
+ # Corresponds to the JSON property `partnersSessionId`
98
+ # @return [String]
99
+ attr_accessor :partners_session_id
100
+
101
+ # Experiment IDs the current request belongs to.
102
+ # Corresponds to the JSON property `experimentIds`
103
+ # @return [Array<String>]
104
+ attr_accessor :experiment_ids
105
+
106
+ # Source of traffic for the current request.
107
+ # Corresponds to the JSON property `trafficSource`
108
+ # @return [Google::Apis::PartnersV2::TrafficSource]
109
+ attr_accessor :traffic_source
110
+
111
+ def initialize(**args)
112
+ update!(**args)
113
+ end
114
+
115
+ # Update properties of this object
116
+ def update!(**args)
117
+ @user_overrides = args[:user_overrides] unless args[:user_overrides].nil?
118
+ @locale = args[:locale] unless args[:locale].nil?
119
+ @partners_session_id = args[:partners_session_id] unless args[:partners_session_id].nil?
120
+ @experiment_ids = args[:experiment_ids] unless args[:experiment_ids].nil?
121
+ @traffic_source = args[:traffic_source] unless args[:traffic_source].nil?
122
+ end
123
+ end
124
+
125
+ # Values to use instead of the user's respective defaults. These are only
126
+ # honored by whitelisted products.
127
+ class UserOverrides
128
+ include Google::Apis::Core::Hashable
129
+
130
+ # IP address to use instead of the user's geo-located IP address.
131
+ # Corresponds to the JSON property `ipAddress`
132
+ # @return [String]
133
+ attr_accessor :ip_address
134
+
135
+ # Logged-in user ID to impersonate instead of the user's ID.
136
+ # Corresponds to the JSON property `userId`
137
+ # @return [String]
138
+ attr_accessor :user_id
139
+
140
+ def initialize(**args)
141
+ update!(**args)
142
+ end
143
+
144
+ # Update properties of this object
145
+ def update!(**args)
146
+ @ip_address = args[:ip_address] unless args[:ip_address].nil?
147
+ @user_id = args[:user_id] unless args[:user_id].nil?
148
+ end
149
+ end
150
+
151
+ # Source of traffic for the current request.
152
+ class TrafficSource
153
+ include Google::Apis::Core::Hashable
154
+
155
+ # Identifier to indicate where the traffic comes from. An identifier has
156
+ # multiple letters created by a team which redirected the traffic to us.
157
+ # Corresponds to the JSON property `trafficSourceId`
158
+ # @return [String]
159
+ attr_accessor :traffic_source_id
160
+
161
+ # Second level identifier to indicate where the traffic comes from. An
162
+ # identifier has multiple letters created by a team which redirected the traffic
163
+ # to us.
164
+ # Corresponds to the JSON property `trafficSubId`
165
+ # @return [String]
166
+ attr_accessor :traffic_sub_id
167
+
168
+ def initialize(**args)
169
+ update!(**args)
170
+ end
171
+
172
+ # Update properties of this object
173
+ def update!(**args)
174
+ @traffic_source_id = args[:traffic_source_id] unless args[:traffic_source_id].nil?
175
+ @traffic_sub_id = args[:traffic_sub_id] unless args[:traffic_sub_id].nil?
176
+ end
177
+ end
178
+
179
+ # Key value data pair for an event.
180
+ class EventData
181
+ include Google::Apis::Core::Hashable
182
+
183
+ # Data type.
184
+ # Corresponds to the JSON property `key`
185
+ # @return [String]
186
+ attr_accessor :key
187
+
188
+ # Data values.
189
+ # Corresponds to the JSON property `values`
190
+ # @return [Array<String>]
191
+ attr_accessor :values
192
+
193
+ def initialize(**args)
194
+ update!(**args)
195
+ end
196
+
197
+ # Update properties of this object
198
+ def update!(**args)
199
+ @key = args[:key] unless args[:key].nil?
200
+ @values = args[:values] unless args[:values].nil?
201
+ end
202
+ end
203
+
204
+ # A lead resource that represents an advertiser contact for a `Company`. These
205
+ # are usually generated via Google Partner Search (the advertiser portal).
206
+ class Lead
207
+ include Google::Apis::Core::Hashable
208
+
209
+ # ID of the lead.
210
+ # Corresponds to the JSON property `id`
211
+ # @return [String]
212
+ attr_accessor :id
213
+
214
+ # Type of lead.
215
+ # Corresponds to the JSON property `type`
216
+ # @return [String]
217
+ attr_accessor :type
218
+
219
+ # Email address of lead source.
220
+ # Corresponds to the JSON property `email`
221
+ # @return [String]
222
+ attr_accessor :email
223
+
224
+ # First name of lead source.
225
+ # Corresponds to the JSON property `givenName`
226
+ # @return [String]
227
+ attr_accessor :given_name
228
+
229
+ # Last name of lead source.
230
+ # Corresponds to the JSON property `familyName`
231
+ # @return [String]
232
+ attr_accessor :family_name
233
+
234
+ # Website URL of lead source.
235
+ # Corresponds to the JSON property `websiteUrl`
236
+ # @return [String]
237
+ attr_accessor :website_url
238
+
239
+ # Phone number of lead source.
240
+ # Corresponds to the JSON property `phoneNumber`
241
+ # @return [String]
242
+ attr_accessor :phone_number
243
+
244
+ # Comments lead source gave.
245
+ # Corresponds to the JSON property `comments`
246
+ # @return [String]
247
+ attr_accessor :comments
248
+
249
+ # List of reasons for using Google Partner Search and creating a lead.
250
+ # Corresponds to the JSON property `gpsMotivations`
251
+ # @return [Array<String>]
252
+ attr_accessor :gps_motivations
253
+
254
+ # Represents an amount of money with its currency type.
255
+ # Corresponds to the JSON property `minMonthlyBudget`
256
+ # @return [Google::Apis::PartnersV2::Money]
257
+ attr_accessor :min_monthly_budget
258
+
259
+ def initialize(**args)
260
+ update!(**args)
261
+ end
262
+
263
+ # Update properties of this object
264
+ def update!(**args)
265
+ @id = args[:id] unless args[:id].nil?
266
+ @type = args[:type] unless args[:type].nil?
267
+ @email = args[:email] unless args[:email].nil?
268
+ @given_name = args[:given_name] unless args[:given_name].nil?
269
+ @family_name = args[:family_name] unless args[:family_name].nil?
270
+ @website_url = args[:website_url] unless args[:website_url].nil?
271
+ @phone_number = args[:phone_number] unless args[:phone_number].nil?
272
+ @comments = args[:comments] unless args[:comments].nil?
273
+ @gps_motivations = args[:gps_motivations] unless args[:gps_motivations].nil?
274
+ @min_monthly_budget = args[:min_monthly_budget] unless args[:min_monthly_budget].nil?
275
+ end
276
+ end
277
+
278
+ # Represents an amount of money with its currency type.
279
+ class Money
280
+ include Google::Apis::Core::Hashable
281
+
282
+ # The 3-letter currency code defined in ISO 4217.
283
+ # Corresponds to the JSON property `currencyCode`
284
+ # @return [String]
285
+ attr_accessor :currency_code
286
+
287
+ # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
288
+ # 1 unit is one US dollar.
289
+ # Corresponds to the JSON property `units`
290
+ # @return [String]
291
+ attr_accessor :units
292
+
293
+ # Number of nano (10^-9) units of the amount. The value must be between -999,999,
294
+ # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
295
+ # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
296
+ # negative. If `units` is negative, `nanos` must be negative or zero. For
297
+ # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
298
+ # Corresponds to the JSON property `nanos`
299
+ # @return [Fixnum]
300
+ attr_accessor :nanos
301
+
302
+ def initialize(**args)
303
+ update!(**args)
304
+ end
305
+
306
+ # Update properties of this object
307
+ def update!(**args)
308
+ @currency_code = args[:currency_code] unless args[:currency_code].nil?
309
+ @units = args[:units] unless args[:units].nil?
310
+ @nanos = args[:nanos] unless args[:nanos].nil?
311
+ end
312
+ end
313
+
314
+ # Response message for LogUserEvent.
315
+ class LogUserEventResponse
316
+ include Google::Apis::Core::Hashable
317
+
318
+ # Common data that is in each API response.
319
+ # Corresponds to the JSON property `responseMetadata`
320
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
321
+ attr_accessor :response_metadata
322
+
323
+ def initialize(**args)
324
+ update!(**args)
325
+ end
326
+
327
+ # Update properties of this object
328
+ def update!(**args)
329
+ @response_metadata = args[:response_metadata] unless args[:response_metadata].nil?
330
+ end
331
+ end
332
+
333
+ # Common data that is in each API response.
334
+ class ResponseMetadata
335
+ include Google::Apis::Core::Hashable
336
+
337
+ # Debug information about this request.
338
+ # Corresponds to the JSON property `debugInfo`
339
+ # @return [Google::Apis::PartnersV2::DebugInfo]
340
+ attr_accessor :debug_info
341
+
342
+ def initialize(**args)
343
+ update!(**args)
344
+ end
345
+
346
+ # Update properties of this object
347
+ def update!(**args)
348
+ @debug_info = args[:debug_info] unless args[:debug_info].nil?
349
+ end
350
+ end
351
+
352
+ # Debug information about this request.
353
+ class DebugInfo
354
+ include Google::Apis::Core::Hashable
355
+
356
+ # Info about the server that serviced this request.
357
+ # Corresponds to the JSON property `serverInfo`
358
+ # @return [String]
359
+ attr_accessor :server_info
360
+
361
+ # URL of the service that handled this request.
362
+ # Corresponds to the JSON property `serviceUrl`
363
+ # @return [String]
364
+ attr_accessor :service_url
365
+
366
+ # Server-side debug stack trace.
367
+ # Corresponds to the JSON property `serverTraceInfo`
368
+ # @return [String]
369
+ attr_accessor :server_trace_info
370
+
371
+ def initialize(**args)
372
+ update!(**args)
373
+ end
374
+
375
+ # Update properties of this object
376
+ def update!(**args)
377
+ @server_info = args[:server_info] unless args[:server_info].nil?
378
+ @service_url = args[:service_url] unless args[:service_url].nil?
379
+ @server_trace_info = args[:server_trace_info] unless args[:server_trace_info].nil?
380
+ end
381
+ end
382
+
383
+ # Request message for LogClientMessage.
384
+ class LogMessageRequest
385
+ include Google::Apis::Core::Hashable
386
+
387
+ # Common data that is in each API request.
388
+ # Corresponds to the JSON property `requestMetadata`
389
+ # @return [Google::Apis::PartnersV2::RequestMetadata]
390
+ attr_accessor :request_metadata
391
+
392
+ # Message level of client message.
393
+ # Corresponds to the JSON property `level`
394
+ # @return [String]
395
+ attr_accessor :level
396
+
397
+ # Details about the client message.
398
+ # Corresponds to the JSON property `details`
399
+ # @return [String]
400
+ attr_accessor :details
401
+
402
+ # Map of client info, such as URL, browser navigator, browser platform, etc.
403
+ # Corresponds to the JSON property `clientInfo`
404
+ # @return [Hash<String,String>]
405
+ attr_accessor :client_info
406
+
407
+ def initialize(**args)
408
+ update!(**args)
409
+ end
410
+
411
+ # Update properties of this object
412
+ def update!(**args)
413
+ @request_metadata = args[:request_metadata] unless args[:request_metadata].nil?
414
+ @level = args[:level] unless args[:level].nil?
415
+ @details = args[:details] unless args[:details].nil?
416
+ @client_info = args[:client_info] unless args[:client_info].nil?
417
+ end
418
+ end
419
+
420
+ # Response message for LogClientMessage.
421
+ class LogMessageResponse
422
+ include Google::Apis::Core::Hashable
423
+
424
+ # Common data that is in each API response.
425
+ # Corresponds to the JSON property `responseMetadata`
426
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
427
+ attr_accessor :response_metadata
428
+
429
+ def initialize(**args)
430
+ update!(**args)
431
+ end
432
+
433
+ # Update properties of this object
434
+ def update!(**args)
435
+ @response_metadata = args[:response_metadata] unless args[:response_metadata].nil?
436
+ end
437
+ end
438
+
439
+ # Response message for ListUserStates.
440
+ class ListUserStatesResponse
441
+ include Google::Apis::Core::Hashable
442
+
443
+ # Common data that is in each API response.
444
+ # Corresponds to the JSON property `responseMetadata`
445
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
446
+ attr_accessor :response_metadata
447
+
448
+ # User's states.
449
+ # Corresponds to the JSON property `userStates`
450
+ # @return [Array<String>]
451
+ attr_accessor :user_states
452
+
453
+ def initialize(**args)
454
+ update!(**args)
455
+ end
456
+
457
+ # Update properties of this object
458
+ def update!(**args)
459
+ @response_metadata = args[:response_metadata] unless args[:response_metadata].nil?
460
+ @user_states = args[:user_states] unless args[:user_states].nil?
461
+ end
462
+ end
463
+
464
+ # Response message for GetCompany.
465
+ class GetCompanyResponse
466
+ include Google::Apis::Core::Hashable
467
+
468
+ # Common data that is in each API response.
469
+ # Corresponds to the JSON property `responseMetadata`
470
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
471
+ attr_accessor :response_metadata
472
+
473
+ # A company resource in the Google Partners API. Once certified, it qualifies
474
+ # for being searched by advertisers.
475
+ # Corresponds to the JSON property `company`
476
+ # @return [Google::Apis::PartnersV2::Company]
477
+ attr_accessor :company
478
+
479
+ def initialize(**args)
480
+ update!(**args)
481
+ end
482
+
483
+ # Update properties of this object
484
+ def update!(**args)
485
+ @response_metadata = args[:response_metadata] unless args[:response_metadata].nil?
486
+ @company = args[:company] unless args[:company].nil?
487
+ end
488
+ end
489
+
490
+ # A company resource in the Google Partners API. Once certified, it qualifies
491
+ # for being searched by advertisers.
492
+ class Company
493
+ include Google::Apis::Core::Hashable
494
+
495
+ # The ID of the company.
496
+ # Corresponds to the JSON property `id`
497
+ # @return [String]
498
+ attr_accessor :id
499
+
500
+ # The name of the company.
501
+ # Corresponds to the JSON property `name`
502
+ # @return [String]
503
+ attr_accessor :name
504
+
505
+ # The list of localized info for the company.
506
+ # Corresponds to the JSON property `localizedInfos`
507
+ # @return [Array<Google::Apis::PartnersV2::LocalizedCompanyInfo>]
508
+ attr_accessor :localized_infos
509
+
510
+ # The list of company locations.
511
+ # Corresponds to the JSON property `locations`
512
+ # @return [Array<Google::Apis::PartnersV2::Location>]
513
+ attr_accessor :locations
514
+
515
+ # Represents an amount of money with its currency type.
516
+ # Corresponds to the JSON property `convertedMinMonthlyBudget`
517
+ # @return [Google::Apis::PartnersV2::Money]
518
+ attr_accessor :converted_min_monthly_budget
519
+
520
+ # Represents an amount of money with its currency type.
521
+ # Corresponds to the JSON property `originalMinMonthlyBudget`
522
+ # @return [Google::Apis::PartnersV2::Money]
523
+ attr_accessor :original_min_monthly_budget
524
+
525
+ # Basic information from a public profile.
526
+ # Corresponds to the JSON property `publicProfile`
527
+ # @return [Google::Apis::PartnersV2::PublicProfile]
528
+ attr_accessor :public_profile
529
+
530
+ # The list of Google Partners certification statuses for the company.
531
+ # Corresponds to the JSON property `certificationStatuses`
532
+ # @return [Array<Google::Apis::PartnersV2::CertificationStatus>]
533
+ attr_accessor :certification_statuses
534
+
535
+ # Information related to the ranking of the company within the list of companies.
536
+ # Corresponds to the JSON property `ranks`
537
+ # @return [Array<Google::Apis::PartnersV2::Rank>]
538
+ attr_accessor :ranks
539
+
540
+ # URL of the company's website.
541
+ # Corresponds to the JSON property `websiteUrl`
542
+ # @return [String]
543
+ attr_accessor :website_url
544
+
545
+ # Industries the company can help with.
546
+ # Corresponds to the JSON property `industries`
547
+ # @return [Array<String>]
548
+ attr_accessor :industries
549
+
550
+ # Services the company can help with.
551
+ # Corresponds to the JSON property `services`
552
+ # @return [Array<String>]
553
+ attr_accessor :services
554
+
555
+ def initialize(**args)
556
+ update!(**args)
557
+ end
558
+
559
+ # Update properties of this object
560
+ def update!(**args)
561
+ @id = args[:id] unless args[:id].nil?
562
+ @name = args[:name] unless args[:name].nil?
563
+ @localized_infos = args[:localized_infos] unless args[:localized_infos].nil?
564
+ @locations = args[:locations] unless args[:locations].nil?
565
+ @converted_min_monthly_budget = args[:converted_min_monthly_budget] unless args[:converted_min_monthly_budget].nil?
566
+ @original_min_monthly_budget = args[:original_min_monthly_budget] unless args[:original_min_monthly_budget].nil?
567
+ @public_profile = args[:public_profile] unless args[:public_profile].nil?
568
+ @certification_statuses = args[:certification_statuses] unless args[:certification_statuses].nil?
569
+ @ranks = args[:ranks] unless args[:ranks].nil?
570
+ @website_url = args[:website_url] unless args[:website_url].nil?
571
+ @industries = args[:industries] unless args[:industries].nil?
572
+ @services = args[:services] unless args[:services].nil?
573
+ end
574
+ end
575
+
576
+ # The localized company information.
577
+ class LocalizedCompanyInfo
578
+ include Google::Apis::Core::Hashable
579
+
580
+ # Language code of the localized company info, as defined by BCP 47 (IETF BCP 47,
581
+ # "Tags for Identifying Languages").
582
+ # Corresponds to the JSON property `languageCode`
583
+ # @return [String]
584
+ attr_accessor :language_code
585
+
586
+ # Localized display name.
587
+ # Corresponds to the JSON property `displayName`
588
+ # @return [String]
589
+ attr_accessor :display_name
590
+
591
+ # Localized brief description that the company uses to advertise themselves.
592
+ # Corresponds to the JSON property `overview`
593
+ # @return [String]
594
+ attr_accessor :overview
595
+
596
+ # List of country codes for the localized company info.
597
+ # Corresponds to the JSON property `countryCodes`
598
+ # @return [Array<String>]
599
+ attr_accessor :country_codes
600
+
601
+ def initialize(**args)
602
+ update!(**args)
603
+ end
604
+
605
+ # Update properties of this object
606
+ def update!(**args)
607
+ @language_code = args[:language_code] unless args[:language_code].nil?
608
+ @display_name = args[:display_name] unless args[:display_name].nil?
609
+ @overview = args[:overview] unless args[:overview].nil?
610
+ @country_codes = args[:country_codes] unless args[:country_codes].nil?
611
+ end
612
+ end
613
+
614
+ # A location with address and geographic coordinates.
615
+ class Location
616
+ include Google::Apis::Core::Hashable
617
+
618
+ # The complete address of the location.
619
+ # Corresponds to the JSON property `address`
620
+ # @return [String]
621
+ attr_accessor :address
622
+
623
+ # An object representing a latitude/longitude pair. This is expressed as a pair
624
+ # of doubles representing degrees latitude and degrees longitude. Unless
625
+ # specified otherwise, this must conform to the WGS84 standard. Values must be
626
+ # within normalized ranges. Example of normalization code in Python: def
627
+ # NormalizeLongitude(longitude): """Wrapsdecimal degrees longitude to [-180.0,
628
+ # 180.0].""" q, r = divmod(longitude, 360.0) if r > 180.0 or (r == 180.0 and q <=
629
+ # -1.0): return r - 360.0 return r def NormalizeLatLng(latitude, longitude): """
630
+ # Wraps decimal degrees latitude and longitude to [-180.0, 180.0] and [-90.0, 90.
631
+ # 0], respectively.""" r = latitude % 360.0 if r = 270.0: return r - 360,
632
+ # NormalizeLongitude(longitude) else: return 180 - r, NormalizeLongitude(
633
+ # longitude + 180.0) assert 180.0 == NormalizeLongitude(180.0) assert -180.0 ==
634
+ # NormalizeLongitude(-180.0) assert -179.0 == NormalizeLongitude(181.0) assert (
635
+ # 0.0, 0.0) == NormalizeLatLng(360.0, 0.0) assert (0.0, 0.0) == NormalizeLatLng(-
636
+ # 360.0, 0.0) assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) assert (-85.0, -
637
+ # 170.0) == NormalizeLatLng(-95.0, 10.0) assert (90.0, 10.0) == NormalizeLatLng(
638
+ # 90.0, 10.0) assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) assert (0.0,
639
+ # -170.0) == NormalizeLatLng(-180.0, 10.0) assert (0.0, -170.0) ==
640
+ # NormalizeLatLng(180.0, 10.0) assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.
641
+ # 0) assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
642
+ # Corresponds to the JSON property `latLng`
643
+ # @return [Google::Apis::PartnersV2::LatLng]
644
+ attr_accessor :lat_lng
645
+
646
+ def initialize(**args)
647
+ update!(**args)
648
+ end
649
+
650
+ # Update properties of this object
651
+ def update!(**args)
652
+ @address = args[:address] unless args[:address].nil?
653
+ @lat_lng = args[:lat_lng] unless args[:lat_lng].nil?
654
+ end
655
+ end
656
+
657
+ # An object representing a latitude/longitude pair. This is expressed as a pair
658
+ # of doubles representing degrees latitude and degrees longitude. Unless
659
+ # specified otherwise, this must conform to the WGS84 standard. Values must be
660
+ # within normalized ranges. Example of normalization code in Python: def
661
+ # NormalizeLongitude(longitude): """Wrapsdecimal degrees longitude to [-180.0,
662
+ # 180.0].""" q, r = divmod(longitude, 360.0) if r > 180.0 or (r == 180.0 and q <=
663
+ # -1.0): return r - 360.0 return r def NormalizeLatLng(latitude, longitude): """
664
+ # Wraps decimal degrees latitude and longitude to [-180.0, 180.0] and [-90.0, 90.
665
+ # 0], respectively.""" r = latitude % 360.0 if r = 270.0: return r - 360,
666
+ # NormalizeLongitude(longitude) else: return 180 - r, NormalizeLongitude(
667
+ # longitude + 180.0) assert 180.0 == NormalizeLongitude(180.0) assert -180.0 ==
668
+ # NormalizeLongitude(-180.0) assert -179.0 == NormalizeLongitude(181.0) assert (
669
+ # 0.0, 0.0) == NormalizeLatLng(360.0, 0.0) assert (0.0, 0.0) == NormalizeLatLng(-
670
+ # 360.0, 0.0) assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) assert (-85.0, -
671
+ # 170.0) == NormalizeLatLng(-95.0, 10.0) assert (90.0, 10.0) == NormalizeLatLng(
672
+ # 90.0, 10.0) assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) assert (0.0,
673
+ # -170.0) == NormalizeLatLng(-180.0, 10.0) assert (0.0, -170.0) ==
674
+ # NormalizeLatLng(180.0, 10.0) assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.
675
+ # 0) assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
676
+ class LatLng
677
+ include Google::Apis::Core::Hashable
678
+
679
+ # The latitude in degrees. It must be in the range [-90.0, +90.0].
680
+ # Corresponds to the JSON property `latitude`
681
+ # @return [Float]
682
+ attr_accessor :latitude
683
+
684
+ # The longitude in degrees. It must be in the range [-180.0, +180.0].
685
+ # Corresponds to the JSON property `longitude`
686
+ # @return [Float]
687
+ attr_accessor :longitude
688
+
689
+ def initialize(**args)
690
+ update!(**args)
691
+ end
692
+
693
+ # Update properties of this object
694
+ def update!(**args)
695
+ @latitude = args[:latitude] unless args[:latitude].nil?
696
+ @longitude = args[:longitude] unless args[:longitude].nil?
697
+ end
698
+ end
699
+
700
+ # Basic information from a public profile.
701
+ class PublicProfile
702
+ include Google::Apis::Core::Hashable
703
+
704
+ # The ID which can be used to retrieve more details about the public profile.
705
+ # Corresponds to the JSON property `id`
706
+ # @return [String]
707
+ attr_accessor :id
708
+
709
+ # The display name of the public profile.
710
+ # Corresponds to the JSON property `displayName`
711
+ # @return [String]
712
+ attr_accessor :display_name
713
+
714
+ # The URL of the public profile.
715
+ # Corresponds to the JSON property `url`
716
+ # @return [String]
717
+ attr_accessor :url
718
+
719
+ # The URL to the main display image of the public profile.
720
+ # Corresponds to the JSON property `displayImageUrl`
721
+ # @return [String]
722
+ attr_accessor :display_image_url
723
+
724
+ def initialize(**args)
725
+ update!(**args)
726
+ end
727
+
728
+ # Update properties of this object
729
+ def update!(**args)
730
+ @id = args[:id] unless args[:id].nil?
731
+ @display_name = args[:display_name] unless args[:display_name].nil?
732
+ @url = args[:url] unless args[:url].nil?
733
+ @display_image_url = args[:display_image_url] unless args[:display_image_url].nil?
734
+ end
735
+ end
736
+
737
+ # Google Partners certification status.
738
+ class CertificationStatus
739
+ include Google::Apis::Core::Hashable
740
+
741
+ # The type of the certification.
742
+ # Corresponds to the JSON property `type`
743
+ # @return [String]
744
+ attr_accessor :type
745
+
746
+ # List of certification exam statuses.
747
+ # Corresponds to the JSON property `examStatuses`
748
+ # @return [Array<Google::Apis::PartnersV2::CertificationExamStatus>]
749
+ attr_accessor :exam_statuses
750
+
751
+ # Whether certification is passing.
752
+ # Corresponds to the JSON property `isCertified`
753
+ # @return [Boolean]
754
+ attr_accessor :is_certified
755
+ alias_method :is_certified?, :is_certified
756
+
757
+ def initialize(**args)
758
+ update!(**args)
759
+ end
760
+
761
+ # Update properties of this object
762
+ def update!(**args)
763
+ @type = args[:type] unless args[:type].nil?
764
+ @exam_statuses = args[:exam_statuses] unless args[:exam_statuses].nil?
765
+ @is_certified = args[:is_certified] unless args[:is_certified].nil?
766
+ end
767
+ end
768
+
769
+ # Status for a Google Partners certification exam.
770
+ class CertificationExamStatus
771
+ include Google::Apis::Core::Hashable
772
+
773
+ # The type of certification exam.
774
+ # Corresponds to the JSON property `type`
775
+ # @return [String]
776
+ attr_accessor :type
777
+
778
+ # The number of people who have passed the certification exam.
779
+ # Corresponds to the JSON property `numberUsersPass`
780
+ # @return [Fixnum]
781
+ attr_accessor :number_users_pass
782
+
783
+ def initialize(**args)
784
+ update!(**args)
785
+ end
786
+
787
+ # Update properties of this object
788
+ def update!(**args)
789
+ @type = args[:type] unless args[:type].nil?
790
+ @number_users_pass = args[:number_users_pass] unless args[:number_users_pass].nil?
791
+ end
792
+ end
793
+
794
+ # Information related to ranking of results.
795
+ class Rank
796
+ include Google::Apis::Core::Hashable
797
+
798
+ # The type of rank.
799
+ # Corresponds to the JSON property `type`
800
+ # @return [String]
801
+ attr_accessor :type
802
+
803
+ # The numerical value of the rank.
804
+ # Corresponds to the JSON property `value`
805
+ # @return [Float]
806
+ attr_accessor :value
807
+
808
+ def initialize(**args)
809
+ update!(**args)
810
+ end
811
+
812
+ # Update properties of this object
813
+ def update!(**args)
814
+ @type = args[:type] unless args[:type].nil?
815
+ @value = args[:value] unless args[:value].nil?
816
+ end
817
+ end
818
+
819
+ # Response message for ListCompanies.
820
+ class ListCompaniesResponse
821
+ include Google::Apis::Core::Hashable
822
+
823
+ # Common data that is in each API response.
824
+ # Corresponds to the JSON property `responseMetadata`
825
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
826
+ attr_accessor :response_metadata
827
+
828
+ # The list of companies.
829
+ # Corresponds to the JSON property `companies`
830
+ # @return [Array<Google::Apis::PartnersV2::Company>]
831
+ attr_accessor :companies
832
+
833
+ # A token to retrieve next page of results. Pass this value in the `
834
+ # ListCompaniesRequest.page_token` field in the subsequent call to ListCompanies
835
+ # to retrieve the next page of results.
836
+ # Corresponds to the JSON property `nextPageToken`
837
+ # @return [String]
838
+ attr_accessor :next_page_token
839
+
840
+ def initialize(**args)
841
+ update!(**args)
842
+ end
843
+
844
+ # Update properties of this object
845
+ def update!(**args)
846
+ @response_metadata = args[:response_metadata] unless args[:response_metadata].nil?
847
+ @companies = args[:companies] unless args[:companies].nil?
848
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
849
+ end
850
+ end
851
+
852
+ # Request message for CreateLead.
853
+ class CreateLeadRequest
854
+ include Google::Apis::Core::Hashable
855
+
856
+ # Common data that is in each API request.
857
+ # Corresponds to the JSON property `requestMetadata`
858
+ # @return [Google::Apis::PartnersV2::RequestMetadata]
859
+ attr_accessor :request_metadata
860
+
861
+ # A lead resource that represents an advertiser contact for a `Company`. These
862
+ # are usually generated via Google Partner Search (the advertiser portal).
863
+ # Corresponds to the JSON property `lead`
864
+ # @return [Google::Apis::PartnersV2::Lead]
865
+ attr_accessor :lead
866
+
867
+ # reCaptcha challenge info.
868
+ # Corresponds to the JSON property `recaptchaChallenge`
869
+ # @return [Google::Apis::PartnersV2::RecaptchaChallenge]
870
+ attr_accessor :recaptcha_challenge
871
+
872
+ def initialize(**args)
873
+ update!(**args)
874
+ end
875
+
876
+ # Update properties of this object
877
+ def update!(**args)
878
+ @request_metadata = args[:request_metadata] unless args[:request_metadata].nil?
879
+ @lead = args[:lead] unless args[:lead].nil?
880
+ @recaptcha_challenge = args[:recaptcha_challenge] unless args[:recaptcha_challenge].nil?
881
+ end
882
+ end
883
+
884
+ # reCaptcha challenge info.
885
+ class RecaptchaChallenge
886
+ include Google::Apis::Core::Hashable
887
+
888
+ # The ID of the reCaptcha challenge.
889
+ # Corresponds to the JSON property `id`
890
+ # @return [String]
891
+ attr_accessor :id
892
+
893
+ # The response to the reCaptcha challenge.
894
+ # Corresponds to the JSON property `response`
895
+ # @return [String]
896
+ attr_accessor :response
897
+
898
+ def initialize(**args)
899
+ update!(**args)
900
+ end
901
+
902
+ # Update properties of this object
903
+ def update!(**args)
904
+ @id = args[:id] unless args[:id].nil?
905
+ @response = args[:response] unless args[:response].nil?
906
+ end
907
+ end
908
+
909
+ # Response message for CreateLead. Debug information about this request.
910
+ class CreateLeadResponse
911
+ include Google::Apis::Core::Hashable
912
+
913
+ # Common data that is in each API response.
914
+ # Corresponds to the JSON property `responseMetadata`
915
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
916
+ attr_accessor :response_metadata
917
+
918
+ # A lead resource that represents an advertiser contact for a `Company`. These
919
+ # are usually generated via Google Partner Search (the advertiser portal).
920
+ # Corresponds to the JSON property `lead`
921
+ # @return [Google::Apis::PartnersV2::Lead]
922
+ attr_accessor :lead
923
+
924
+ # The outcome of reCaptcha validation.
925
+ # Corresponds to the JSON property `recaptchaStatus`
926
+ # @return [String]
927
+ attr_accessor :recaptcha_status
928
+
929
+ def initialize(**args)
930
+ update!(**args)
931
+ end
932
+
933
+ # Update properties of this object
934
+ def update!(**args)
935
+ @response_metadata = args[:response_metadata] unless args[:response_metadata].nil?
936
+ @lead = args[:lead] unless args[:lead].nil?
937
+ @recaptcha_status = args[:recaptcha_status] unless args[:recaptcha_status].nil?
938
+ end
939
+ end
940
+ end
941
+ end
942
+ end