google-api-client 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -47,24 +47,63 @@ module Google
47
47
  super('https://partners.googleapis.com/', '')
48
48
  end
49
49
 
50
- # Lists advertiser leads for a user's associated company.
51
- # Should only be called within the context of an authorized logged in user.
52
- # @param [String] order_by
53
- # How to order Leads. Currently, only `create_time`
54
- # and `create_time desc` are supported
50
+ # Gets an Exam Token for a Partner's user to take an exam in the Exams System
51
+ # @param [String] exam_type
52
+ # The exam type we are requesting a token for.
53
+ # @param [String] request_metadata_traffic_source_traffic_source_id
54
+ # Identifier to indicate where the traffic comes from.
55
+ # An identifier has multiple letters created by a team which redirected the
56
+ # traffic to us.
57
+ # @param [String] request_metadata_locale
58
+ # Locale to use for the current request.
59
+ # @param [String] request_metadata_user_overrides_ip_address
60
+ # IP address to use instead of the user's geo-located IP address.
61
+ # @param [Array<String>, String] request_metadata_experiment_ids
62
+ # Experiment IDs the current request belongs to.
55
63
  # @param [String] request_metadata_traffic_source_traffic_sub_id
56
64
  # Second level identifier to indicate where the traffic comes from.
57
65
  # An identifier has multiple letters created by a team which redirected the
58
66
  # traffic to us.
59
- # @param [String] request_metadata_user_overrides_user_id
60
- # Logged-in user ID to impersonate instead of the user's ID.
61
67
  # @param [String] request_metadata_partners_session_id
62
68
  # Google Partners session ID.
63
- # @param [String] page_token
64
- # A token identifying a page of results that the server returns.
65
- # Typically, this is the value of `ListLeadsResponse.next_page_token`
66
- # returned from the previous call to
67
- # ListLeads.
69
+ # @param [String] request_metadata_user_overrides_user_id
70
+ # Logged-in user ID to impersonate instead of the user's ID.
71
+ # @param [String] quota_user
72
+ # Available to use for quota purposes for server-side applications. Can be any
73
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
74
+ # @param [String] fields
75
+ # Selector specifying which fields to include in a partial response.
76
+ # @param [Google::Apis::RequestOptions] options
77
+ # Request-specific options
78
+ #
79
+ # @yield [result, err] Result & error if block supplied
80
+ # @yieldparam result [Google::Apis::PartnersV2::ExamToken] parsed result object
81
+ # @yieldparam err [StandardError] error object if request failed
82
+ #
83
+ # @return [Google::Apis::PartnersV2::ExamToken]
84
+ #
85
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
86
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
87
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
88
+ def get_exam_token(exam_type, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, quota_user: nil, fields: nil, options: nil, &block)
89
+ command = make_simple_command(:get, 'v2/exams/{examType}/token', options)
90
+ command.response_representation = Google::Apis::PartnersV2::ExamToken::Representation
91
+ command.response_class = Google::Apis::PartnersV2::ExamToken
92
+ command.params['examType'] = exam_type unless exam_type.nil?
93
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
94
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
95
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
96
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
97
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
98
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
99
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
100
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
101
+ command.query['fields'] = fields unless fields.nil?
102
+ execute_or_queue_command(command, &block)
103
+ end
104
+
105
+ # Lists advertiser leads for a user's associated company.
106
+ # Should only be called within the context of an authorized logged in user.
68
107
  # @param [Fixnum] page_size
69
108
  # Requested page size. Server may return fewer leads than requested.
70
109
  # If unspecified, server picks an appropriate default.
@@ -78,6 +117,22 @@ module Google
78
117
  # IP address to use instead of the user's geo-located IP address.
79
118
  # @param [Array<String>, String] request_metadata_experiment_ids
80
119
  # Experiment IDs the current request belongs to.
120
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
121
+ # Second level identifier to indicate where the traffic comes from.
122
+ # An identifier has multiple letters created by a team which redirected the
123
+ # traffic to us.
124
+ # @param [String] order_by
125
+ # How to order Leads. Currently, only `create_time`
126
+ # and `create_time desc` are supported
127
+ # @param [String] request_metadata_user_overrides_user_id
128
+ # Logged-in user ID to impersonate instead of the user's ID.
129
+ # @param [String] request_metadata_partners_session_id
130
+ # Google Partners session ID.
131
+ # @param [String] page_token
132
+ # A token identifying a page of results that the server returns.
133
+ # Typically, this is the value of `ListLeadsResponse.next_page_token`
134
+ # returned from the previous call to
135
+ # ListLeads.
81
136
  # @param [String] quota_user
82
137
  # Available to use for quota purposes for server-side applications. Can be any
83
138
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -95,20 +150,20 @@ module Google
95
150
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
96
151
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
97
152
  # @raise [Google::Apis::AuthorizationError] Authorization is required
98
- def list_leads(order_by: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, page_token: nil, page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, quota_user: nil, fields: nil, options: nil, &block)
153
+ def list_leads(page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, order_by: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
99
154
  command = make_simple_command(:get, 'v2/leads', options)
100
155
  command.response_representation = Google::Apis::PartnersV2::ListLeadsResponse::Representation
101
156
  command.response_class = Google::Apis::PartnersV2::ListLeadsResponse
102
- command.query['orderBy'] = order_by unless order_by.nil?
103
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
104
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
105
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
106
- command.query['pageToken'] = page_token unless page_token.nil?
107
157
  command.query['pageSize'] = page_size unless page_size.nil?
108
158
  command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
109
159
  command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
110
160
  command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
111
161
  command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
162
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
163
+ command.query['orderBy'] = order_by unless order_by.nil?
164
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
165
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
166
+ command.query['pageToken'] = page_token unless page_token.nil?
112
167
  command.query['quotaUser'] = quota_user unless quota_user.nil?
113
168
  command.query['fields'] = fields unless fields.nil?
114
169
  execute_or_queue_command(command, &block)
@@ -167,6 +222,20 @@ module Google
167
222
  end
168
223
 
169
224
  # Lists the Historical Offers for the current user (or user's entire company)
225
+ # @param [Fixnum] page_size
226
+ # Maximum number of rows to return per page.
227
+ # @param [String] request_metadata_traffic_source_traffic_source_id
228
+ # Identifier to indicate where the traffic comes from.
229
+ # An identifier has multiple letters created by a team which redirected the
230
+ # traffic to us.
231
+ # @param [String] request_metadata_locale
232
+ # Locale to use for the current request.
233
+ # @param [String] request_metadata_user_overrides_ip_address
234
+ # IP address to use instead of the user's geo-located IP address.
235
+ # @param [Array<String>, String] request_metadata_experiment_ids
236
+ # Experiment IDs the current request belongs to.
237
+ # @param [Boolean] entire_company
238
+ # if true, show history for the entire company. Requires user to be admin.
170
239
  # @param [String] order_by
171
240
  # Comma-separated list of fields to order by, e.g.: "foo,bar,baz".
172
241
  # Use "foo desc" to sort descending.
@@ -183,20 +252,6 @@ module Google
183
252
  # Google Partners session ID.
184
253
  # @param [String] page_token
185
254
  # Token to retrieve a specific page.
186
- # @param [Fixnum] page_size
187
- # Maximum number of rows to return per page.
188
- # @param [String] request_metadata_traffic_source_traffic_source_id
189
- # Identifier to indicate where the traffic comes from.
190
- # An identifier has multiple letters created by a team which redirected the
191
- # traffic to us.
192
- # @param [String] request_metadata_locale
193
- # Locale to use for the current request.
194
- # @param [String] request_metadata_user_overrides_ip_address
195
- # IP address to use instead of the user's geo-located IP address.
196
- # @param [Boolean] entire_company
197
- # if true, show history for the entire company. Requires user to be admin.
198
- # @param [Array<String>, String] request_metadata_experiment_ids
199
- # Experiment IDs the current request belongs to.
200
255
  # @param [String] quota_user
201
256
  # Available to use for quota purposes for server-side applications. Can be any
202
257
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -214,31 +269,27 @@ module Google
214
269
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
270
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
271
  # @raise [Google::Apis::AuthorizationError] Authorization is required
217
- def list_offer_histories(order_by: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, page_token: nil, page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, entire_company: nil, request_metadata_experiment_ids: nil, quota_user: nil, fields: nil, options: nil, &block)
272
+ def list_offer_histories(page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, entire_company: nil, order_by: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
218
273
  command = make_simple_command(:get, 'v2/offers/history', options)
219
274
  command.response_representation = Google::Apis::PartnersV2::ListOffersHistoryResponse::Representation
220
275
  command.response_class = Google::Apis::PartnersV2::ListOffersHistoryResponse
221
- command.query['orderBy'] = order_by unless order_by.nil?
222
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
223
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
224
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
225
- command.query['pageToken'] = page_token unless page_token.nil?
226
276
  command.query['pageSize'] = page_size unless page_size.nil?
227
277
  command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
228
278
  command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
229
279
  command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
230
- command.query['entireCompany'] = entire_company unless entire_company.nil?
231
280
  command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
281
+ command.query['entireCompany'] = entire_company unless entire_company.nil?
282
+ command.query['orderBy'] = order_by unless order_by.nil?
283
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
284
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
285
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
286
+ command.query['pageToken'] = page_token unless page_token.nil?
232
287
  command.query['quotaUser'] = quota_user unless quota_user.nil?
233
288
  command.query['fields'] = fields unless fields.nil?
234
289
  execute_or_queue_command(command, &block)
235
290
  end
236
291
 
237
292
  # Lists states for current user.
238
- # @param [String] request_metadata_traffic_source_traffic_sub_id
239
- # Second level identifier to indicate where the traffic comes from.
240
- # An identifier has multiple letters created by a team which redirected the
241
- # traffic to us.
242
293
  # @param [String] request_metadata_user_overrides_user_id
243
294
  # Logged-in user ID to impersonate instead of the user's ID.
244
295
  # @param [String] request_metadata_partners_session_id
@@ -253,6 +304,10 @@ module Google
253
304
  # IP address to use instead of the user's geo-located IP address.
254
305
  # @param [Array<String>, String] request_metadata_experiment_ids
255
306
  # Experiment IDs the current request belongs to.
307
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
308
+ # Second level identifier to indicate where the traffic comes from.
309
+ # An identifier has multiple letters created by a team which redirected the
310
+ # traffic to us.
256
311
  # @param [String] quota_user
257
312
  # Available to use for quota purposes for server-side applications. Can be any
258
313
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -270,17 +325,17 @@ module Google
270
325
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
271
326
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
272
327
  # @raise [Google::Apis::AuthorizationError] Authorization is required
273
- def list_user_states(request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, quota_user: nil, fields: nil, options: nil, &block)
328
+ def list_user_states(request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
274
329
  command = make_simple_command(:get, 'v2/userStates', options)
275
330
  command.response_representation = Google::Apis::PartnersV2::ListUserStatesResponse::Representation
276
331
  command.response_class = Google::Apis::PartnersV2::ListUserStatesResponse
277
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
278
332
  command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
279
333
  command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
280
334
  command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
281
335
  command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
282
336
  command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
283
337
  command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
338
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
284
339
  command.query['quotaUser'] = quota_user unless quota_user.nil?
285
340
  command.query['fields'] = fields unless fields.nil?
286
341
  execute_or_queue_command(command, &block)
@@ -288,18 +343,6 @@ module Google
288
343
 
289
344
  # Lists analytics data for a user's associated company.
290
345
  # Should only be called within the context of an authorized logged in user.
291
- # @param [String] request_metadata_partners_session_id
292
- # Google Partners session ID.
293
- # @param [String] request_metadata_user_overrides_user_id
294
- # Logged-in user ID to impersonate instead of the user's ID.
295
- # @param [String] page_token
296
- # A token identifying a page of results that the server returns.
297
- # Typically, this is the value of `ListAnalyticsResponse.next_page_token`
298
- # returned from the previous call to
299
- # ListAnalytics.
300
- # Will be a date string in `YYYY-MM-DD` format representing the end date
301
- # of the date range of results to return.
302
- # If unspecified or set to "", default value is the current date.
303
346
  # @param [Fixnum] page_size
304
347
  # Requested page size. Server may return fewer analytics than requested.
305
348
  # If unspecified or set to 0, default value is 30.
@@ -322,6 +365,18 @@ module Google
322
365
  # Second level identifier to indicate where the traffic comes from.
323
366
  # An identifier has multiple letters created by a team which redirected the
324
367
  # traffic to us.
368
+ # @param [String] request_metadata_user_overrides_user_id
369
+ # Logged-in user ID to impersonate instead of the user's ID.
370
+ # @param [String] request_metadata_partners_session_id
371
+ # Google Partners session ID.
372
+ # @param [String] page_token
373
+ # A token identifying a page of results that the server returns.
374
+ # Typically, this is the value of `ListAnalyticsResponse.next_page_token`
375
+ # returned from the previous call to
376
+ # ListAnalytics.
377
+ # Will be a date string in `YYYY-MM-DD` format representing the end date
378
+ # of the date range of results to return.
379
+ # If unspecified or set to "", default value is the current date.
325
380
  # @param [String] quota_user
326
381
  # Available to use for quota purposes for server-side applications. Can be any
327
382
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -339,19 +394,19 @@ module Google
339
394
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
340
395
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
341
396
  # @raise [Google::Apis::AuthorizationError] Authorization is required
342
- def list_analytics(request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, page_token: nil, page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
397
+ def list_analytics(page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
343
398
  command = make_simple_command(:get, 'v2/analytics', options)
344
399
  command.response_representation = Google::Apis::PartnersV2::ListAnalyticsResponse::Representation
345
400
  command.response_class = Google::Apis::PartnersV2::ListAnalyticsResponse
346
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
347
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
348
- command.query['pageToken'] = page_token unless page_token.nil?
349
401
  command.query['pageSize'] = page_size unless page_size.nil?
350
402
  command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
351
403
  command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
352
404
  command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
353
405
  command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
354
406
  command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
407
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
408
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
409
+ command.query['pageToken'] = page_token unless page_token.nil?
355
410
  command.query['quotaUser'] = quota_user unless quota_user.nil?
356
411
  command.query['fields'] = fields unless fields.nil?
357
412
  execute_or_queue_command(command, &block)
@@ -359,8 +414,6 @@ module Google
359
414
 
360
415
  # Gets Partners Status of the logged in user's agency.
361
416
  # Should only be called if the logged in user is the admin of the agency.
362
- # @param [String] request_metadata_user_overrides_ip_address
363
- # IP address to use instead of the user's geo-located IP address.
364
417
  # @param [Array<String>, String] request_metadata_experiment_ids
365
418
  # Experiment IDs the current request belongs to.
366
419
  # @param [String] request_metadata_traffic_source_traffic_sub_id
@@ -377,6 +430,8 @@ module Google
377
430
  # traffic to us.
378
431
  # @param [String] request_metadata_locale
379
432
  # Locale to use for the current request.
433
+ # @param [String] request_metadata_user_overrides_ip_address
434
+ # IP address to use instead of the user's geo-located IP address.
380
435
  # @param [String] quota_user
381
436
  # Available to use for quota purposes for server-side applications. Can be any
382
437
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -394,17 +449,17 @@ module Google
394
449
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
450
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
451
  # @raise [Google::Apis::AuthorizationError] Authorization is required
397
- def get_partnersstatus(request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, quota_user: nil, fields: nil, options: nil, &block)
452
+ def get_partnersstatus(request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, quota_user: nil, fields: nil, options: nil, &block)
398
453
  command = make_simple_command(:get, 'v2/partnersstatus', options)
399
454
  command.response_representation = Google::Apis::PartnersV2::GetPartnersStatusResponse::Representation
400
455
  command.response_class = Google::Apis::PartnersV2::GetPartnersStatusResponse
401
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
402
456
  command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
403
457
  command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
404
458
  command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
405
459
  command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
406
460
  command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
407
461
  command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
462
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
408
463
  command.query['quotaUser'] = quota_user unless quota_user.nil?
409
464
  command.query['fields'] = fields unless fields.nil?
410
465
  execute_or_queue_command(command, &block)
@@ -412,6 +467,10 @@ module Google
412
467
 
413
468
  # Updates the specified lead.
414
469
  # @param [Google::Apis::PartnersV2::Lead] lead_object
470
+ # @param [String] request_metadata_partners_session_id
471
+ # Google Partners session ID.
472
+ # @param [String] request_metadata_user_overrides_user_id
473
+ # Logged-in user ID to impersonate instead of the user's ID.
415
474
  # @param [String] request_metadata_traffic_source_traffic_source_id
416
475
  # Identifier to indicate where the traffic comes from.
417
476
  # An identifier has multiple letters created by a team which redirected the
@@ -430,10 +489,6 @@ module Google
430
489
  # Second level identifier to indicate where the traffic comes from.
431
490
  # An identifier has multiple letters created by a team which redirected the
432
491
  # traffic to us.
433
- # @param [String] request_metadata_user_overrides_user_id
434
- # Logged-in user ID to impersonate instead of the user's ID.
435
- # @param [String] request_metadata_partners_session_id
436
- # Google Partners session ID.
437
492
  # @param [String] quota_user
438
493
  # Available to use for quota purposes for server-side applications. Can be any
439
494
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -451,20 +506,20 @@ module Google
451
506
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
452
507
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
453
508
  # @raise [Google::Apis::AuthorizationError] Authorization is required
454
- def update_leads(lead_object = nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, update_mask: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, quota_user: nil, fields: nil, options: nil, &block)
509
+ def update_leads(lead_object = nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, update_mask: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
455
510
  command = make_simple_command(:patch, 'v2/leads', options)
456
511
  command.request_representation = Google::Apis::PartnersV2::Lead::Representation
457
512
  command.request_object = lead_object
458
513
  command.response_representation = Google::Apis::PartnersV2::Lead::Representation
459
514
  command.response_class = Google::Apis::PartnersV2::Lead
515
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
516
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
460
517
  command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
461
518
  command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
462
519
  command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
463
520
  command.query['updateMask'] = update_mask unless update_mask.nil?
464
521
  command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
465
522
  command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
466
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
467
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
468
523
  command.query['quotaUser'] = quota_user unless quota_user.nil?
469
524
  command.query['fields'] = fields unless fields.nil?
470
525
  execute_or_queue_command(command, &block)
@@ -530,15 +585,25 @@ module Google
530
585
  execute_or_queue_command(command, &block)
531
586
  end
532
587
 
533
- # Creates a user's company relation. Affiliates the user to a company.
534
- # @param [String] user_id
535
- # The ID of the user. Can be set to <code>me</code> to mean
536
- # the currently authenticated user.
537
- # @param [Google::Apis::PartnersV2::CompanyRelation] company_relation_object
588
+ # Gets a company.
589
+ # @param [String] company_id
590
+ # The ID of the company to retrieve.
591
+ # @param [String] request_metadata_traffic_source_traffic_source_id
592
+ # Identifier to indicate where the traffic comes from.
593
+ # An identifier has multiple letters created by a team which redirected the
594
+ # traffic to us.
538
595
  # @param [String] request_metadata_user_overrides_ip_address
539
596
  # IP address to use instead of the user's geo-located IP address.
540
597
  # @param [Array<String>, String] request_metadata_experiment_ids
541
598
  # Experiment IDs the current request belongs to.
599
+ # @param [String] currency_code
600
+ # If the company's budget is in a different currency code than this one, then
601
+ # the converted budget is converted to this currency code.
602
+ # @param [String] order_by
603
+ # How to order addresses within the returned company. Currently, only
604
+ # `address` and `address desc` is supported which will sorted by closest to
605
+ # farthest in distance from given address and farthest to closest distance
606
+ # from given address respectively.
542
607
  # @param [String] request_metadata_traffic_source_traffic_sub_id
543
608
  # Second level identifier to indicate where the traffic comes from.
544
609
  # An identifier has multiple letters created by a team which redirected the
@@ -547,10 +612,13 @@ module Google
547
612
  # Logged-in user ID to impersonate instead of the user's ID.
548
613
  # @param [String] request_metadata_partners_session_id
549
614
  # Google Partners session ID.
550
- # @param [String] request_metadata_traffic_source_traffic_source_id
551
- # Identifier to indicate where the traffic comes from.
552
- # An identifier has multiple letters created by a team which redirected the
553
- # traffic to us.
615
+ # @param [String] view
616
+ # The view of `Company` resource to be returned. This must not be
617
+ # `COMPANY_VIEW_UNSPECIFIED`.
618
+ # @param [String] address
619
+ # The address to use for sorting the company's addresses by proximity.
620
+ # If not given, the geo-located address of the request is used.
621
+ # Used when order_by is set.
554
622
  # @param [String] request_metadata_locale
555
623
  # Locale to use for the current request.
556
624
  # @param [String] quota_user
@@ -562,55 +630,119 @@ module Google
562
630
  # Request-specific options
563
631
  #
564
632
  # @yield [result, err] Result & error if block supplied
565
- # @yieldparam result [Google::Apis::PartnersV2::CompanyRelation] parsed result object
633
+ # @yieldparam result [Google::Apis::PartnersV2::GetCompanyResponse] parsed result object
566
634
  # @yieldparam err [StandardError] error object if request failed
567
635
  #
568
- # @return [Google::Apis::PartnersV2::CompanyRelation]
636
+ # @return [Google::Apis::PartnersV2::GetCompanyResponse]
569
637
  #
570
638
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
639
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
640
  # @raise [Google::Apis::AuthorizationError] Authorization is required
573
- def create_user_company_relation(user_id, company_relation_object = nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, quota_user: nil, fields: nil, options: nil, &block)
574
- command = make_simple_command(:put, 'v2/users/{userId}/companyRelation', options)
575
- command.request_representation = Google::Apis::PartnersV2::CompanyRelation::Representation
576
- command.request_object = company_relation_object
577
- command.response_representation = Google::Apis::PartnersV2::CompanyRelation::Representation
578
- command.response_class = Google::Apis::PartnersV2::CompanyRelation
579
- command.params['userId'] = user_id unless user_id.nil?
641
+ def get_company(company_id, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, currency_code: nil, order_by: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, view: nil, address: nil, request_metadata_locale: nil, quota_user: nil, fields: nil, options: nil, &block)
642
+ command = make_simple_command(:get, 'v2/companies/{companyId}', options)
643
+ command.response_representation = Google::Apis::PartnersV2::GetCompanyResponse::Representation
644
+ command.response_class = Google::Apis::PartnersV2::GetCompanyResponse
645
+ command.params['companyId'] = company_id unless company_id.nil?
646
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
580
647
  command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
581
648
  command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
649
+ command.query['currencyCode'] = currency_code unless currency_code.nil?
650
+ command.query['orderBy'] = order_by unless order_by.nil?
582
651
  command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
583
652
  command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
584
653
  command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
585
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
654
+ command.query['view'] = view unless view.nil?
655
+ command.query['address'] = address unless address.nil?
586
656
  command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
587
657
  command.query['quotaUser'] = quota_user unless quota_user.nil?
588
658
  command.query['fields'] = fields unless fields.nil?
589
659
  execute_or_queue_command(command, &block)
590
660
  end
591
661
 
592
- # Deletes a user's company relation. Unaffiliaites the user from a company.
593
- # @param [String] user_id
594
- # The ID of the user. Can be set to <code>me</code> to mean
595
- # the currently authenticated user.
662
+ # Lists companies.
663
+ # @param [String] max_monthly_budget_currency_code
664
+ # The 3-letter currency code defined in ISO 4217.
665
+ # @param [String] min_monthly_budget_currency_code
666
+ # The 3-letter currency code defined in ISO 4217.
596
667
  # @param [String] request_metadata_user_overrides_user_id
597
668
  # Logged-in user ID to impersonate instead of the user's ID.
598
- # @param [String] request_metadata_partners_session_id
599
- # Google Partners session ID.
600
- # @param [String] request_metadata_traffic_source_traffic_source_id
601
- # Identifier to indicate where the traffic comes from.
602
- # An identifier has multiple letters created by a team which redirected the
603
- # traffic to us.
669
+ # @param [String] view
670
+ # The view of the `Company` resource to be returned. This must not be
671
+ # `COMPANY_VIEW_UNSPECIFIED`.
604
672
  # @param [String] request_metadata_locale
605
673
  # Locale to use for the current request.
606
- # @param [String] request_metadata_user_overrides_ip_address
607
- # IP address to use instead of the user's geo-located IP address.
608
- # @param [Array<String>, String] request_metadata_experiment_ids
609
- # Experiment IDs the current request belongs to.
674
+ # @param [String] address
675
+ # The address to use when searching for companies.
676
+ # If not given, the geo-located address of the request is used.
677
+ # @param [String] min_monthly_budget_units
678
+ # The whole units of the amount.
679
+ # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
680
+ # @param [Fixnum] max_monthly_budget_nanos
681
+ # Number of nano (10^-9) units of the amount.
682
+ # The value must be between -999,999,999 and +999,999,999 inclusive.
683
+ # If `units` is positive, `nanos` must be positive or zero.
684
+ # If `units` is zero, `nanos` can be positive, zero, or negative.
685
+ # If `units` is negative, `nanos` must be negative or zero.
686
+ # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
687
+ # @param [Array<String>, String] services
688
+ # List of services that the returned agencies should provide. If this is
689
+ # not empty, any returned agency must have at least one of these services,
690
+ # or one of the specializations in the "specializations" field.
691
+ # @param [String] max_monthly_budget_units
692
+ # The whole units of the amount.
693
+ # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
694
+ # @param [String] request_metadata_traffic_source_traffic_source_id
695
+ # Identifier to indicate where the traffic comes from.
696
+ # An identifier has multiple letters created by a team which redirected the
697
+ # traffic to us.
610
698
  # @param [String] request_metadata_traffic_source_traffic_sub_id
611
699
  # Second level identifier to indicate where the traffic comes from.
612
700
  # An identifier has multiple letters created by a team which redirected the
613
701
  # traffic to us.
702
+ # @param [Fixnum] min_monthly_budget_nanos
703
+ # Number of nano (10^-9) units of the amount.
704
+ # The value must be between -999,999,999 and +999,999,999 inclusive.
705
+ # If `units` is positive, `nanos` must be positive or zero.
706
+ # If `units` is zero, `nanos` can be positive, zero, or negative.
707
+ # If `units` is negative, `nanos` must be negative or zero.
708
+ # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
709
+ # @param [String] request_metadata_partners_session_id
710
+ # Google Partners session ID.
711
+ # @param [String] page_token
712
+ # A token identifying a page of results that the server returns.
713
+ # Typically, this is the value of `ListCompaniesResponse.next_page_token`
714
+ # returned from the previous call to
715
+ # ListCompanies.
716
+ # @param [String] company_name
717
+ # Company name to search for.
718
+ # @param [Array<String>, String] industries
719
+ # List of industries the company can help with.
720
+ # @param [String] website_url
721
+ # Website URL that will help to find a better matched company.
722
+ # .
723
+ # @param [Array<String>, String] gps_motivations
724
+ # List of reasons for using Google Partner Search to get companies.
725
+ # @param [Array<String>, String] language_codes
726
+ # List of language codes that company can support. Only primary language
727
+ # subtags are accepted as defined by
728
+ # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
729
+ # (IETF BCP 47, "Tags for Identifying Languages").
730
+ # @param [Fixnum] page_size
731
+ # Requested page size. Server may return fewer companies than requested.
732
+ # If unspecified, server picks an appropriate default.
733
+ # @param [String] request_metadata_user_overrides_ip_address
734
+ # IP address to use instead of the user's geo-located IP address.
735
+ # @param [Array<String>, String] request_metadata_experiment_ids
736
+ # Experiment IDs the current request belongs to.
737
+ # @param [String] order_by
738
+ # How to order addresses within the returned companies. Currently, only
739
+ # `address` and `address desc` is supported which will sorted by closest to
740
+ # farthest in distance from given address and farthest to closest distance
741
+ # from given address respectively.
742
+ # @param [Array<String>, String] specializations
743
+ # List of specializations that the returned agencies should provide. If this
744
+ # is not empty, any returned agency must have at least one of these
745
+ # specializations, or one of the services in the "services" field.
614
746
  # @param [String] quota_user
615
747
  # Available to use for quota purposes for server-side applications. Can be any
616
748
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -620,55 +752,52 @@ module Google
620
752
  # Request-specific options
621
753
  #
622
754
  # @yield [result, err] Result & error if block supplied
623
- # @yieldparam result [Google::Apis::PartnersV2::Empty] parsed result object
755
+ # @yieldparam result [Google::Apis::PartnersV2::ListCompaniesResponse] parsed result object
624
756
  # @yieldparam err [StandardError] error object if request failed
625
757
  #
626
- # @return [Google::Apis::PartnersV2::Empty]
758
+ # @return [Google::Apis::PartnersV2::ListCompaniesResponse]
627
759
  #
628
760
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
629
761
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
630
762
  # @raise [Google::Apis::AuthorizationError] Authorization is required
631
- def delete_user_company_relation(user_id, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
632
- command = make_simple_command(:delete, 'v2/users/{userId}/companyRelation', options)
633
- command.response_representation = Google::Apis::PartnersV2::Empty::Representation
634
- command.response_class = Google::Apis::PartnersV2::Empty
635
- command.params['userId'] = user_id unless user_id.nil?
763
+ def list_companies(max_monthly_budget_currency_code: nil, min_monthly_budget_currency_code: nil, request_metadata_user_overrides_user_id: nil, view: nil, request_metadata_locale: nil, address: nil, min_monthly_budget_units: nil, max_monthly_budget_nanos: nil, services: nil, max_monthly_budget_units: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, min_monthly_budget_nanos: nil, request_metadata_partners_session_id: nil, page_token: nil, company_name: nil, industries: nil, website_url: nil, gps_motivations: nil, language_codes: nil, page_size: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, order_by: nil, specializations: nil, quota_user: nil, fields: nil, options: nil, &block)
764
+ command = make_simple_command(:get, 'v2/companies', options)
765
+ command.response_representation = Google::Apis::PartnersV2::ListCompaniesResponse::Representation
766
+ command.response_class = Google::Apis::PartnersV2::ListCompaniesResponse
767
+ command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil?
768
+ command.query['minMonthlyBudget.currencyCode'] = min_monthly_budget_currency_code unless min_monthly_budget_currency_code.nil?
636
769
  command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
637
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
638
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
770
+ command.query['view'] = view unless view.nil?
639
771
  command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
772
+ command.query['address'] = address unless address.nil?
773
+ command.query['minMonthlyBudget.units'] = min_monthly_budget_units unless min_monthly_budget_units.nil?
774
+ command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil?
775
+ command.query['services'] = services unless services.nil?
776
+ command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil?
777
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
778
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
779
+ command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil?
780
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
781
+ command.query['pageToken'] = page_token unless page_token.nil?
782
+ command.query['companyName'] = company_name unless company_name.nil?
783
+ command.query['industries'] = industries unless industries.nil?
784
+ command.query['websiteUrl'] = website_url unless website_url.nil?
785
+ command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil?
786
+ command.query['languageCodes'] = language_codes unless language_codes.nil?
787
+ command.query['pageSize'] = page_size unless page_size.nil?
640
788
  command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
641
789
  command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
642
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
790
+ command.query['orderBy'] = order_by unless order_by.nil?
791
+ command.query['specializations'] = specializations unless specializations.nil?
643
792
  command.query['quotaUser'] = quota_user unless quota_user.nil?
644
793
  command.query['fields'] = fields unless fields.nil?
645
794
  execute_or_queue_command(command, &block)
646
795
  end
647
796
 
648
- # Gets a user.
649
- # @param [String] user_id
650
- # Identifier of the user. Can be set to <code>me</code> to mean the currently
651
- # authenticated user.
652
- # @param [String] user_view
653
- # Specifies what parts of the user information to return.
654
- # @param [String] request_metadata_traffic_source_traffic_source_id
655
- # Identifier to indicate where the traffic comes from.
656
- # An identifier has multiple letters created by a team which redirected the
657
- # traffic to us.
658
- # @param [String] request_metadata_locale
659
- # Locale to use for the current request.
660
- # @param [String] request_metadata_user_overrides_ip_address
661
- # IP address to use instead of the user's geo-located IP address.
662
- # @param [Array<String>, String] request_metadata_experiment_ids
663
- # Experiment IDs the current request belongs to.
664
- # @param [String] request_metadata_traffic_source_traffic_sub_id
665
- # Second level identifier to indicate where the traffic comes from.
666
- # An identifier has multiple letters created by a team which redirected the
667
- # traffic to us.
668
- # @param [String] request_metadata_user_overrides_user_id
669
- # Logged-in user ID to impersonate instead of the user's ID.
670
- # @param [String] request_metadata_partners_session_id
671
- # Google Partners session ID.
797
+ # Creates an advertiser lead for the given company ID.
798
+ # @param [String] company_id
799
+ # The ID of the company to contact.
800
+ # @param [Google::Apis::PartnersV2::CreateLeadRequest] create_lead_request_object
672
801
  # @param [String] quota_user
673
802
  # Available to use for quota purposes for server-side applications. Can be any
674
803
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -678,35 +807,37 @@ module Google
678
807
  # Request-specific options
679
808
  #
680
809
  # @yield [result, err] Result & error if block supplied
681
- # @yieldparam result [Google::Apis::PartnersV2::User] parsed result object
810
+ # @yieldparam result [Google::Apis::PartnersV2::CreateLeadResponse] parsed result object
682
811
  # @yieldparam err [StandardError] error object if request failed
683
812
  #
684
- # @return [Google::Apis::PartnersV2::User]
813
+ # @return [Google::Apis::PartnersV2::CreateLeadResponse]
685
814
  #
686
815
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
687
816
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
688
817
  # @raise [Google::Apis::AuthorizationError] Authorization is required
689
- def get_user(user_id, user_view: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, quota_user: nil, fields: nil, options: nil, &block)
690
- command = make_simple_command(:get, 'v2/users/{userId}', options)
691
- command.response_representation = Google::Apis::PartnersV2::User::Representation
692
- command.response_class = Google::Apis::PartnersV2::User
693
- command.params['userId'] = user_id unless user_id.nil?
694
- command.query['userView'] = user_view unless user_view.nil?
695
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
696
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
697
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
698
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
699
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
700
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
701
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
818
+ def create_lead(company_id, create_lead_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
819
+ command = make_simple_command(:post, 'v2/companies/{companyId}/leads', options)
820
+ command.request_representation = Google::Apis::PartnersV2::CreateLeadRequest::Representation
821
+ command.request_object = create_lead_request_object
822
+ command.response_representation = Google::Apis::PartnersV2::CreateLeadResponse::Representation
823
+ command.response_class = Google::Apis::PartnersV2::CreateLeadResponse
824
+ command.params['companyId'] = company_id unless company_id.nil?
702
825
  command.query['quotaUser'] = quota_user unless quota_user.nil?
703
826
  command.query['fields'] = fields unless fields.nil?
704
827
  execute_or_queue_command(command, &block)
705
828
  end
706
829
 
707
- # Updates a user's profile. A user can only update their own profile and
708
- # should only be called within the context of a logged in user.
709
- # @param [Google::Apis::PartnersV2::UserProfile] user_profile_object
830
+ # Creates a user's company relation. Affiliates the user to a company.
831
+ # @param [String] user_id
832
+ # The ID of the user. Can be set to <code>me</code> to mean
833
+ # the currently authenticated user.
834
+ # @param [Google::Apis::PartnersV2::CompanyRelation] company_relation_object
835
+ # @param [Array<String>, String] request_metadata_experiment_ids
836
+ # Experiment IDs the current request belongs to.
837
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
838
+ # Second level identifier to indicate where the traffic comes from.
839
+ # An identifier has multiple letters created by a team which redirected the
840
+ # traffic to us.
710
841
  # @param [String] request_metadata_partners_session_id
711
842
  # Google Partners session ID.
712
843
  # @param [String] request_metadata_user_overrides_user_id
@@ -719,12 +850,6 @@ module Google
719
850
  # Locale to use for the current request.
720
851
  # @param [String] request_metadata_user_overrides_ip_address
721
852
  # IP address to use instead of the user's geo-located IP address.
722
- # @param [Array<String>, String] request_metadata_experiment_ids
723
- # Experiment IDs the current request belongs to.
724
- # @param [String] request_metadata_traffic_source_traffic_sub_id
725
- # Second level identifier to indicate where the traffic comes from.
726
- # An identifier has multiple letters created by a team which redirected the
727
- # traffic to us.
728
853
  # @param [String] quota_user
729
854
  # Available to use for quota purposes for server-side applications. Can be any
730
855
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -734,68 +859,55 @@ module Google
734
859
  # Request-specific options
735
860
  #
736
861
  # @yield [result, err] Result & error if block supplied
737
- # @yieldparam result [Google::Apis::PartnersV2::UserProfile] parsed result object
862
+ # @yieldparam result [Google::Apis::PartnersV2::CompanyRelation] parsed result object
738
863
  # @yieldparam err [StandardError] error object if request failed
739
864
  #
740
- # @return [Google::Apis::PartnersV2::UserProfile]
865
+ # @return [Google::Apis::PartnersV2::CompanyRelation]
741
866
  #
742
867
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
743
868
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
744
869
  # @raise [Google::Apis::AuthorizationError] Authorization is required
745
- def update_user_profile(user_profile_object = nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
746
- command = make_simple_command(:patch, 'v2/users/profile', options)
747
- command.request_representation = Google::Apis::PartnersV2::UserProfile::Representation
748
- command.request_object = user_profile_object
749
- command.response_representation = Google::Apis::PartnersV2::UserProfile::Representation
750
- command.response_class = Google::Apis::PartnersV2::UserProfile
870
+ def create_user_company_relation(user_id, company_relation_object = nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, quota_user: nil, fields: nil, options: nil, &block)
871
+ command = make_simple_command(:put, 'v2/users/{userId}/companyRelation', options)
872
+ command.request_representation = Google::Apis::PartnersV2::CompanyRelation::Representation
873
+ command.request_object = company_relation_object
874
+ command.response_representation = Google::Apis::PartnersV2::CompanyRelation::Representation
875
+ command.response_class = Google::Apis::PartnersV2::CompanyRelation
876
+ command.params['userId'] = user_id unless user_id.nil?
877
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
878
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
751
879
  command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
752
880
  command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
753
881
  command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
754
882
  command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
755
883
  command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
756
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
757
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
758
884
  command.query['quotaUser'] = quota_user unless quota_user.nil?
759
885
  command.query['fields'] = fields unless fields.nil?
760
886
  execute_or_queue_command(command, &block)
761
887
  end
762
888
 
763
- # Gets a company.
764
- # @param [String] company_id
765
- # The ID of the company to retrieve.
889
+ # Deletes a user's company relation. Unaffiliaites the user from a company.
890
+ # @param [String] user_id
891
+ # The ID of the user. Can be set to <code>me</code> to mean
892
+ # the currently authenticated user.
893
+ # @param [String] request_metadata_user_overrides_user_id
894
+ # Logged-in user ID to impersonate instead of the user's ID.
895
+ # @param [String] request_metadata_partners_session_id
896
+ # Google Partners session ID.
766
897
  # @param [String] request_metadata_traffic_source_traffic_source_id
767
898
  # Identifier to indicate where the traffic comes from.
768
899
  # An identifier has multiple letters created by a team which redirected the
769
900
  # traffic to us.
901
+ # @param [String] request_metadata_locale
902
+ # Locale to use for the current request.
770
903
  # @param [String] request_metadata_user_overrides_ip_address
771
904
  # IP address to use instead of the user's geo-located IP address.
772
905
  # @param [Array<String>, String] request_metadata_experiment_ids
773
906
  # Experiment IDs the current request belongs to.
774
- # @param [String] currency_code
775
- # If the company's budget is in a different currency code than this one, then
776
- # the converted budget is converted to this currency code.
777
- # @param [String] order_by
778
- # How to order addresses within the returned company. Currently, only
779
- # `address` and `address desc` is supported which will sorted by closest to
780
- # farthest in distance from given address and farthest to closest distance
781
- # from given address respectively.
782
907
  # @param [String] request_metadata_traffic_source_traffic_sub_id
783
908
  # Second level identifier to indicate where the traffic comes from.
784
909
  # An identifier has multiple letters created by a team which redirected the
785
910
  # traffic to us.
786
- # @param [String] request_metadata_user_overrides_user_id
787
- # Logged-in user ID to impersonate instead of the user's ID.
788
- # @param [String] request_metadata_partners_session_id
789
- # Google Partners session ID.
790
- # @param [String] view
791
- # The view of `Company` resource to be returned. This must not be
792
- # `COMPANY_VIEW_UNSPECIFIED`.
793
- # @param [String] request_metadata_locale
794
- # Locale to use for the current request.
795
- # @param [String] address
796
- # The address to use for sorting the company's addresses by proximity.
797
- # If not given, the geo-located address of the request is used.
798
- # Used when order_by is set.
799
911
  # @param [String] quota_user
800
912
  # Available to use for quota purposes for server-side applications. Can be any
801
913
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -805,119 +917,55 @@ module Google
805
917
  # Request-specific options
806
918
  #
807
919
  # @yield [result, err] Result & error if block supplied
808
- # @yieldparam result [Google::Apis::PartnersV2::GetCompanyResponse] parsed result object
920
+ # @yieldparam result [Google::Apis::PartnersV2::Empty] parsed result object
809
921
  # @yieldparam err [StandardError] error object if request failed
810
922
  #
811
- # @return [Google::Apis::PartnersV2::GetCompanyResponse]
923
+ # @return [Google::Apis::PartnersV2::Empty]
812
924
  #
813
925
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
814
926
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
815
927
  # @raise [Google::Apis::AuthorizationError] Authorization is required
816
- def get_company(company_id, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, currency_code: nil, order_by: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, view: nil, request_metadata_locale: nil, address: nil, quota_user: nil, fields: nil, options: nil, &block)
817
- command = make_simple_command(:get, 'v2/companies/{companyId}', options)
818
- command.response_representation = Google::Apis::PartnersV2::GetCompanyResponse::Representation
819
- command.response_class = Google::Apis::PartnersV2::GetCompanyResponse
820
- command.params['companyId'] = company_id unless company_id.nil?
928
+ def delete_user_company_relation(user_id, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
929
+ command = make_simple_command(:delete, 'v2/users/{userId}/companyRelation', options)
930
+ command.response_representation = Google::Apis::PartnersV2::Empty::Representation
931
+ command.response_class = Google::Apis::PartnersV2::Empty
932
+ command.params['userId'] = user_id unless user_id.nil?
933
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
934
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
821
935
  command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
936
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
822
937
  command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
823
938
  command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
824
- command.query['currencyCode'] = currency_code unless currency_code.nil?
825
- command.query['orderBy'] = order_by unless order_by.nil?
826
939
  command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
827
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
828
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
829
- command.query['view'] = view unless view.nil?
830
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
831
- command.query['address'] = address unless address.nil?
832
940
  command.query['quotaUser'] = quota_user unless quota_user.nil?
833
941
  command.query['fields'] = fields unless fields.nil?
834
942
  execute_or_queue_command(command, &block)
835
943
  end
836
944
 
837
- # Lists companies.
838
- # @param [Array<String>, String] industries
839
- # List of industries the company can help with.
840
- # @param [String] website_url
841
- # Website URL that will help to find a better matched company.
842
- # .
843
- # @param [Array<String>, String] gps_motivations
844
- # List of reasons for using Google Partner Search to get companies.
845
- # @param [Array<String>, String] language_codes
846
- # List of language codes that company can support. Only primary language
847
- # subtags are accepted as defined by
848
- # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
849
- # (IETF BCP 47, "Tags for Identifying Languages").
850
- # @param [Fixnum] page_size
851
- # Requested page size. Server may return fewer companies than requested.
852
- # If unspecified, server picks an appropriate default.
853
- # @param [String] request_metadata_user_overrides_ip_address
854
- # IP address to use instead of the user's geo-located IP address.
855
- # @param [Array<String>, String] request_metadata_experiment_ids
856
- # Experiment IDs the current request belongs to.
857
- # @param [String] order_by
858
- # How to order addresses within the returned companies. Currently, only
859
- # `address` and `address desc` is supported which will sorted by closest to
860
- # farthest in distance from given address and farthest to closest distance
861
- # from given address respectively.
862
- # @param [Array<String>, String] specializations
863
- # List of specializations that the returned agencies should provide. If this
864
- # is not empty, any returned agency must have at least one of these
865
- # specializations, or one of the services in the "services" field.
866
- # @param [String] max_monthly_budget_currency_code
867
- # The 3-letter currency code defined in ISO 4217.
868
- # @param [String] min_monthly_budget_currency_code
869
- # The 3-letter currency code defined in ISO 4217.
945
+ # Gets a user.
946
+ # @param [String] user_id
947
+ # Identifier of the user. Can be set to <code>me</code> to mean the currently
948
+ # authenticated user.
949
+ # @param [String] request_metadata_partners_session_id
950
+ # Google Partners session ID.
870
951
  # @param [String] request_metadata_user_overrides_user_id
871
952
  # Logged-in user ID to impersonate instead of the user's ID.
872
- # @param [String] view
873
- # The view of the `Company` resource to be returned. This must not be
874
- # `COMPANY_VIEW_UNSPECIFIED`.
875
- # @param [String] address
876
- # The address to use when searching for companies.
877
- # If not given, the geo-located address of the request is used.
878
- # @param [String] request_metadata_locale
879
- # Locale to use for the current request.
880
- # @param [String] min_monthly_budget_units
881
- # The whole units of the amount.
882
- # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
883
- # @param [Fixnum] max_monthly_budget_nanos
884
- # Number of nano (10^-9) units of the amount.
885
- # The value must be between -999,999,999 and +999,999,999 inclusive.
886
- # If `units` is positive, `nanos` must be positive or zero.
887
- # If `units` is zero, `nanos` can be positive, zero, or negative.
888
- # If `units` is negative, `nanos` must be negative or zero.
889
- # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
890
- # @param [Array<String>, String] services
891
- # List of services that the returned agencies should provide. If this is
892
- # not empty, any returned agency must have at least one of these services,
893
- # or one of the specializations in the "specializations" field.
953
+ # @param [String] user_view
954
+ # Specifies what parts of the user information to return.
894
955
  # @param [String] request_metadata_traffic_source_traffic_source_id
895
956
  # Identifier to indicate where the traffic comes from.
896
957
  # An identifier has multiple letters created by a team which redirected the
897
958
  # traffic to us.
898
- # @param [String] max_monthly_budget_units
899
- # The whole units of the amount.
900
- # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
901
- # @param [Fixnum] min_monthly_budget_nanos
902
- # Number of nano (10^-9) units of the amount.
903
- # The value must be between -999,999,999 and +999,999,999 inclusive.
904
- # If `units` is positive, `nanos` must be positive or zero.
905
- # If `units` is zero, `nanos` can be positive, zero, or negative.
906
- # If `units` is negative, `nanos` must be negative or zero.
907
- # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
959
+ # @param [String] request_metadata_locale
960
+ # Locale to use for the current request.
961
+ # @param [String] request_metadata_user_overrides_ip_address
962
+ # IP address to use instead of the user's geo-located IP address.
963
+ # @param [Array<String>, String] request_metadata_experiment_ids
964
+ # Experiment IDs the current request belongs to.
908
965
  # @param [String] request_metadata_traffic_source_traffic_sub_id
909
966
  # Second level identifier to indicate where the traffic comes from.
910
967
  # An identifier has multiple letters created by a team which redirected the
911
968
  # traffic to us.
912
- # @param [String] request_metadata_partners_session_id
913
- # Google Partners session ID.
914
- # @param [String] company_name
915
- # Company name to search for.
916
- # @param [String] page_token
917
- # A token identifying a page of results that the server returns.
918
- # Typically, this is the value of `ListCompaniesResponse.next_page_token`
919
- # returned from the previous call to
920
- # ListCompanies.
921
969
  # @param [String] quota_user
922
970
  # Available to use for quota purposes for server-side applications. Can be any
923
971
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -927,52 +975,53 @@ module Google
927
975
  # Request-specific options
928
976
  #
929
977
  # @yield [result, err] Result & error if block supplied
930
- # @yieldparam result [Google::Apis::PartnersV2::ListCompaniesResponse] parsed result object
978
+ # @yieldparam result [Google::Apis::PartnersV2::User] parsed result object
931
979
  # @yieldparam err [StandardError] error object if request failed
932
980
  #
933
- # @return [Google::Apis::PartnersV2::ListCompaniesResponse]
981
+ # @return [Google::Apis::PartnersV2::User]
934
982
  #
935
983
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
936
984
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
937
985
  # @raise [Google::Apis::AuthorizationError] Authorization is required
938
- def list_companies(industries: nil, website_url: nil, gps_motivations: nil, language_codes: nil, page_size: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, order_by: nil, specializations: nil, max_monthly_budget_currency_code: nil, min_monthly_budget_currency_code: nil, request_metadata_user_overrides_user_id: nil, view: nil, address: nil, request_metadata_locale: nil, min_monthly_budget_units: nil, max_monthly_budget_nanos: nil, services: nil, request_metadata_traffic_source_traffic_source_id: nil, max_monthly_budget_units: nil, min_monthly_budget_nanos: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, company_name: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
939
- command = make_simple_command(:get, 'v2/companies', options)
940
- command.response_representation = Google::Apis::PartnersV2::ListCompaniesResponse::Representation
941
- command.response_class = Google::Apis::PartnersV2::ListCompaniesResponse
942
- command.query['industries'] = industries unless industries.nil?
943
- command.query['websiteUrl'] = website_url unless website_url.nil?
944
- command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil?
945
- command.query['languageCodes'] = language_codes unless language_codes.nil?
946
- command.query['pageSize'] = page_size unless page_size.nil?
947
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
948
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
949
- command.query['orderBy'] = order_by unless order_by.nil?
950
- command.query['specializations'] = specializations unless specializations.nil?
951
- command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil?
952
- command.query['minMonthlyBudget.currencyCode'] = min_monthly_budget_currency_code unless min_monthly_budget_currency_code.nil?
986
+ def get_user(user_id, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, user_view: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
987
+ command = make_simple_command(:get, 'v2/users/{userId}', options)
988
+ command.response_representation = Google::Apis::PartnersV2::User::Representation
989
+ command.response_class = Google::Apis::PartnersV2::User
990
+ command.params['userId'] = user_id unless user_id.nil?
991
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
953
992
  command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
954
- command.query['view'] = view unless view.nil?
955
- command.query['address'] = address unless address.nil?
956
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
957
- command.query['minMonthlyBudget.units'] = min_monthly_budget_units unless min_monthly_budget_units.nil?
958
- command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil?
959
- command.query['services'] = services unless services.nil?
993
+ command.query['userView'] = user_view unless user_view.nil?
960
994
  command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
961
- command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil?
962
- command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil?
995
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
996
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
997
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
963
998
  command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
964
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
965
- command.query['companyName'] = company_name unless company_name.nil?
966
- command.query['pageToken'] = page_token unless page_token.nil?
967
999
  command.query['quotaUser'] = quota_user unless quota_user.nil?
968
1000
  command.query['fields'] = fields unless fields.nil?
969
1001
  execute_or_queue_command(command, &block)
970
1002
  end
971
1003
 
972
- # Creates an advertiser lead for the given company ID.
973
- # @param [String] company_id
974
- # The ID of the company to contact.
975
- # @param [Google::Apis::PartnersV2::CreateLeadRequest] create_lead_request_object
1004
+ # Updates a user's profile. A user can only update their own profile and
1005
+ # should only be called within the context of a logged in user.
1006
+ # @param [Google::Apis::PartnersV2::UserProfile] user_profile_object
1007
+ # @param [String] request_metadata_user_overrides_user_id
1008
+ # Logged-in user ID to impersonate instead of the user's ID.
1009
+ # @param [String] request_metadata_partners_session_id
1010
+ # Google Partners session ID.
1011
+ # @param [String] request_metadata_traffic_source_traffic_source_id
1012
+ # Identifier to indicate where the traffic comes from.
1013
+ # An identifier has multiple letters created by a team which redirected the
1014
+ # traffic to us.
1015
+ # @param [String] request_metadata_locale
1016
+ # Locale to use for the current request.
1017
+ # @param [String] request_metadata_user_overrides_ip_address
1018
+ # IP address to use instead of the user's geo-located IP address.
1019
+ # @param [Array<String>, String] request_metadata_experiment_ids
1020
+ # Experiment IDs the current request belongs to.
1021
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
1022
+ # Second level identifier to indicate where the traffic comes from.
1023
+ # An identifier has multiple letters created by a team which redirected the
1024
+ # traffic to us.
976
1025
  # @param [String] quota_user
977
1026
  # Available to use for quota purposes for server-side applications. Can be any
978
1027
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -982,21 +1031,27 @@ module Google
982
1031
  # Request-specific options
983
1032
  #
984
1033
  # @yield [result, err] Result & error if block supplied
985
- # @yieldparam result [Google::Apis::PartnersV2::CreateLeadResponse] parsed result object
1034
+ # @yieldparam result [Google::Apis::PartnersV2::UserProfile] parsed result object
986
1035
  # @yieldparam err [StandardError] error object if request failed
987
1036
  #
988
- # @return [Google::Apis::PartnersV2::CreateLeadResponse]
1037
+ # @return [Google::Apis::PartnersV2::UserProfile]
989
1038
  #
990
1039
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
991
1040
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
992
1041
  # @raise [Google::Apis::AuthorizationError] Authorization is required
993
- def create_lead(company_id, create_lead_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
994
- command = make_simple_command(:post, 'v2/companies/{companyId}/leads', options)
995
- command.request_representation = Google::Apis::PartnersV2::CreateLeadRequest::Representation
996
- command.request_object = create_lead_request_object
997
- command.response_representation = Google::Apis::PartnersV2::CreateLeadResponse::Representation
998
- command.response_class = Google::Apis::PartnersV2::CreateLeadResponse
999
- command.params['companyId'] = company_id unless company_id.nil?
1042
+ def update_user_profile(user_profile_object = nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
1043
+ command = make_simple_command(:patch, 'v2/users/profile', options)
1044
+ command.request_representation = Google::Apis::PartnersV2::UserProfile::Representation
1045
+ command.request_object = user_profile_object
1046
+ command.response_representation = Google::Apis::PartnersV2::UserProfile::Representation
1047
+ command.response_class = Google::Apis::PartnersV2::UserProfile
1048
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
1049
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
1050
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
1051
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
1052
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
1053
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
1054
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
1000
1055
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1001
1056
  command.query['fields'] = fields unless fields.nil?
1002
1057
  execute_or_queue_command(command, &block)
@@ -1063,61 +1118,6 @@ module Google
1063
1118
  command.query['fields'] = fields unless fields.nil?
1064
1119
  execute_or_queue_command(command, &block)
1065
1120
  end
1066
-
1067
- # Gets an Exam Token for a Partner's user to take an exam in the Exams System
1068
- # @param [String] exam_type
1069
- # The exam type we are requesting a token for.
1070
- # @param [String] request_metadata_user_overrides_ip_address
1071
- # IP address to use instead of the user's geo-located IP address.
1072
- # @param [Array<String>, String] request_metadata_experiment_ids
1073
- # Experiment IDs the current request belongs to.
1074
- # @param [String] request_metadata_traffic_source_traffic_sub_id
1075
- # Second level identifier to indicate where the traffic comes from.
1076
- # An identifier has multiple letters created by a team which redirected the
1077
- # traffic to us.
1078
- # @param [String] request_metadata_user_overrides_user_id
1079
- # Logged-in user ID to impersonate instead of the user's ID.
1080
- # @param [String] request_metadata_partners_session_id
1081
- # Google Partners session ID.
1082
- # @param [String] request_metadata_traffic_source_traffic_source_id
1083
- # Identifier to indicate where the traffic comes from.
1084
- # An identifier has multiple letters created by a team which redirected the
1085
- # traffic to us.
1086
- # @param [String] request_metadata_locale
1087
- # Locale to use for the current request.
1088
- # @param [String] quota_user
1089
- # Available to use for quota purposes for server-side applications. Can be any
1090
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1091
- # @param [String] fields
1092
- # Selector specifying which fields to include in a partial response.
1093
- # @param [Google::Apis::RequestOptions] options
1094
- # Request-specific options
1095
- #
1096
- # @yield [result, err] Result & error if block supplied
1097
- # @yieldparam result [Google::Apis::PartnersV2::ExamToken] parsed result object
1098
- # @yieldparam err [StandardError] error object if request failed
1099
- #
1100
- # @return [Google::Apis::PartnersV2::ExamToken]
1101
- #
1102
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1103
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1104
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1105
- def get_exam_token(exam_type, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, quota_user: nil, fields: nil, options: nil, &block)
1106
- command = make_simple_command(:get, 'v2/exams/{examType}/token', options)
1107
- command.response_representation = Google::Apis::PartnersV2::ExamToken::Representation
1108
- command.response_class = Google::Apis::PartnersV2::ExamToken
1109
- command.params['examType'] = exam_type unless exam_type.nil?
1110
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
1111
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
1112
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
1113
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
1114
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
1115
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
1116
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
1117
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1118
- command.query['fields'] = fields unless fields.nil?
1119
- execute_or_queue_command(command, &block)
1120
- end
1121
1121
 
1122
1122
  protected
1123
1123