google-api-client 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -22,8 +22,8 @@ module Google
22
22
  module PartnersV2
23
23
  # Google Partners API
24
24
  #
25
- # Lets advertisers search certified companies and create contact leads with them,
26
- # and also audits the usage of clients.
25
+ # Searches certified companies and creates contact leads with them, and also
26
+ # audits the usage of clients.
27
27
  #
28
28
  # @example
29
29
  # require 'google/apis/partners_v2'
@@ -47,8 +47,37 @@ module Google
47
47
  super('https://partners.googleapis.com/', '')
48
48
  end
49
49
 
50
- # Logs a user event.
51
- # @param [Google::Apis::PartnersV2::LogUserEventRequest] log_user_event_request_object
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] request_metadata_partners_session_id
53
+ # Google Partners session ID.
54
+ # @param [String] request_metadata_user_overrides_user_id
55
+ # Logged-in user ID to impersonate instead of the user's ID.
56
+ # @param [String] page_token
57
+ # A token identifying a page of results that the server returns.
58
+ # Typically, this is the value of `ListLeadsResponse.next_page_token`
59
+ # returned from the previous call to
60
+ # ListLeads.
61
+ # @param [Fixnum] page_size
62
+ # Requested page size. Server may return fewer leads than requested.
63
+ # If unspecified, server picks an appropriate default.
64
+ # @param [String] request_metadata_traffic_source_traffic_source_id
65
+ # Identifier to indicate where the traffic comes from.
66
+ # An identifier has multiple letters created by a team which redirected the
67
+ # traffic to us.
68
+ # @param [String] request_metadata_locale
69
+ # Locale to use for the current request.
70
+ # @param [String] request_metadata_user_overrides_ip_address
71
+ # IP address to use instead of the user's geo-located IP address.
72
+ # @param [Array<String>, String] request_metadata_experiment_ids
73
+ # Experiment IDs the current request belongs to.
74
+ # @param [String] order_by
75
+ # How to order Leads. Currently, only `create_time`
76
+ # and `create_time desc` are supported
77
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
78
+ # Second level identifier to indicate where the traffic comes from.
79
+ # An identifier has multiple letters created by a team which redirected the
80
+ # traffic to us.
52
81
  # @param [String] fields
53
82
  # Selector specifying which fields to include in a partial response.
54
83
  # @param [String] quota_user
@@ -58,29 +87,588 @@ module Google
58
87
  # Request-specific options
59
88
  #
60
89
  # @yield [result, err] Result & error if block supplied
61
- # @yieldparam result [Google::Apis::PartnersV2::LogUserEventResponse] parsed result object
90
+ # @yieldparam result [Google::Apis::PartnersV2::ListLeadsResponse] parsed result object
62
91
  # @yieldparam err [StandardError] error object if request failed
63
92
  #
64
- # @return [Google::Apis::PartnersV2::LogUserEventResponse]
93
+ # @return [Google::Apis::PartnersV2::ListLeadsResponse]
65
94
  #
66
95
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
67
96
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
68
97
  # @raise [Google::Apis::AuthorizationError] Authorization is required
69
- def log_user_event(log_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
70
- command = make_simple_command(:post, 'v2/userEvents:log', options)
71
- command.request_representation = Google::Apis::PartnersV2::LogUserEventRequest::Representation
72
- command.request_object = log_user_event_request_object
73
- command.response_representation = Google::Apis::PartnersV2::LogUserEventResponse::Representation
74
- command.response_class = Google::Apis::PartnersV2::LogUserEventResponse
98
+ def list_leads(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, order_by: nil, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block)
99
+ command = make_simple_command(:get, 'v2/leads', options)
100
+ command.response_representation = Google::Apis::PartnersV2::ListLeadsResponse::Representation
101
+ command.response_class = Google::Apis::PartnersV2::ListLeadsResponse
102
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
103
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
104
+ command.query['pageToken'] = page_token unless page_token.nil?
105
+ command.query['pageSize'] = page_size unless page_size.nil?
106
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
107
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
108
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
109
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
110
+ command.query['orderBy'] = order_by unless order_by.nil?
111
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
112
+ command.query['fields'] = fields unless fields.nil?
113
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
114
+ execute_or_queue_command(command, &block)
115
+ end
116
+
117
+ # Lists the Offers available for the current user
118
+ # @param [String] request_metadata_user_overrides_user_id
119
+ # Logged-in user ID to impersonate instead of the user's ID.
120
+ # @param [String] request_metadata_partners_session_id
121
+ # Google Partners session ID.
122
+ # @param [String] request_metadata_traffic_source_traffic_source_id
123
+ # Identifier to indicate where the traffic comes from.
124
+ # An identifier has multiple letters created by a team which redirected the
125
+ # traffic to us.
126
+ # @param [String] request_metadata_locale
127
+ # Locale to use for the current request.
128
+ # @param [String] request_metadata_user_overrides_ip_address
129
+ # IP address to use instead of the user's geo-located IP address.
130
+ # @param [Array<String>, String] request_metadata_experiment_ids
131
+ # Experiment IDs the current request belongs to.
132
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
133
+ # Second level identifier to indicate where the traffic comes from.
134
+ # An identifier has multiple letters created by a team which redirected the
135
+ # traffic to us.
136
+ # @param [String] fields
137
+ # Selector specifying which fields to include in a partial response.
138
+ # @param [String] quota_user
139
+ # Available to use for quota purposes for server-side applications. Can be any
140
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
141
+ # @param [Google::Apis::RequestOptions] options
142
+ # Request-specific options
143
+ #
144
+ # @yield [result, err] Result & error if block supplied
145
+ # @yieldparam result [Google::Apis::PartnersV2::ListOffersResponse] parsed result object
146
+ # @yieldparam err [StandardError] error object if request failed
147
+ #
148
+ # @return [Google::Apis::PartnersV2::ListOffersResponse]
149
+ #
150
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
151
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
152
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
153
+ def list_offers(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, fields: nil, quota_user: nil, options: nil, &block)
154
+ command = make_simple_command(:get, 'v2/offers', options)
155
+ command.response_representation = Google::Apis::PartnersV2::ListOffersResponse::Representation
156
+ command.response_class = Google::Apis::PartnersV2::ListOffersResponse
157
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
158
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
159
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
160
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
161
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
162
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
163
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
164
+ command.query['fields'] = fields unless fields.nil?
165
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
166
+ execute_or_queue_command(command, &block)
167
+ end
168
+
169
+ # Lists the Historical Offers for the current user (or user's entire company)
170
+ # @param [String] request_metadata_user_overrides_user_id
171
+ # Logged-in user ID to impersonate instead of the user's ID.
172
+ # @param [String] request_metadata_partners_session_id
173
+ # Google Partners session ID.
174
+ # @param [String] page_token
175
+ # Token to retrieve a specific page.
176
+ # @param [Fixnum] page_size
177
+ # Maximum number of rows to return per page.
178
+ # @param [String] request_metadata_traffic_source_traffic_source_id
179
+ # Identifier to indicate where the traffic comes from.
180
+ # An identifier has multiple letters created by a team which redirected the
181
+ # traffic to us.
182
+ # @param [String] request_metadata_locale
183
+ # Locale to use for the current request.
184
+ # @param [String] request_metadata_user_overrides_ip_address
185
+ # IP address to use instead of the user's geo-located IP address.
186
+ # @param [Array<String>, String] request_metadata_experiment_ids
187
+ # Experiment IDs the current request belongs to.
188
+ # @param [Boolean] entire_company
189
+ # if true, show history for the entire company. Requires user to be admin.
190
+ # @param [String] order_by
191
+ # Comma-separated list of fields to order by, e.g.: "foo,bar,baz".
192
+ # Use "foo desc" to sort descending.
193
+ # List of valid field names is: name, offer_code, expiration_time, status,
194
+ # last_modified_time, sender_name, creation_time, country_code,
195
+ # offer_type.
196
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
197
+ # Second level identifier to indicate where the traffic comes from.
198
+ # An identifier has multiple letters created by a team which redirected the
199
+ # traffic to us.
200
+ # @param [String] fields
201
+ # Selector specifying which fields to include in a partial response.
202
+ # @param [String] quota_user
203
+ # Available to use for quota purposes for server-side applications. Can be any
204
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
205
+ # @param [Google::Apis::RequestOptions] options
206
+ # Request-specific options
207
+ #
208
+ # @yield [result, err] Result & error if block supplied
209
+ # @yieldparam result [Google::Apis::PartnersV2::ListOffersHistoryResponse] parsed result object
210
+ # @yieldparam err [StandardError] error object if request failed
211
+ #
212
+ # @return [Google::Apis::PartnersV2::ListOffersHistoryResponse]
213
+ #
214
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
217
+ def list_offer_histories(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, entire_company: nil, order_by: nil, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block)
218
+ command = make_simple_command(:get, 'v2/offers/history', options)
219
+ command.response_representation = Google::Apis::PartnersV2::ListOffersHistoryResponse::Representation
220
+ command.response_class = Google::Apis::PartnersV2::ListOffersHistoryResponse
221
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
222
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
223
+ command.query['pageToken'] = page_token unless page_token.nil?
224
+ command.query['pageSize'] = page_size unless page_size.nil?
225
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
226
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
227
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
228
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
229
+ command.query['entireCompany'] = entire_company unless entire_company.nil?
230
+ command.query['orderBy'] = order_by unless order_by.nil?
231
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
232
+ command.query['fields'] = fields unless fields.nil?
233
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
234
+ execute_or_queue_command(command, &block)
235
+ end
236
+
237
+ # Lists analytics data for a user's associated company.
238
+ # Should only be called within the context of an authorized logged in user.
239
+ # @param [String] request_metadata_user_overrides_user_id
240
+ # Logged-in user ID to impersonate instead of the user's ID.
241
+ # @param [String] request_metadata_partners_session_id
242
+ # Google Partners session ID.
243
+ # @param [String] page_token
244
+ # A token identifying a page of results that the server returns.
245
+ # Typically, this is the value of `ListAnalyticsResponse.next_page_token`
246
+ # returned from the previous call to
247
+ # ListAnalytics.
248
+ # Will be a date string in `YYYY-MM-DD` format representing the end date
249
+ # of the date range of results to return.
250
+ # If unspecified or set to "", default value is the current date.
251
+ # @param [Fixnum] page_size
252
+ # Requested page size. Server may return fewer analytics than requested.
253
+ # If unspecified or set to 0, default value is 30.
254
+ # Specifies the number of days in the date range when querying analytics.
255
+ # The `page_token` represents the end date of the date range
256
+ # and the start date is calculated using the `page_size` as the number
257
+ # of days BEFORE the end date.
258
+ # Must be a non-negative integer.
259
+ # @param [String] request_metadata_traffic_source_traffic_source_id
260
+ # Identifier to indicate where the traffic comes from.
261
+ # An identifier has multiple letters created by a team which redirected the
262
+ # traffic to us.
263
+ # @param [String] request_metadata_locale
264
+ # Locale to use for the current request.
265
+ # @param [String] request_metadata_user_overrides_ip_address
266
+ # IP address to use instead of the user's geo-located IP address.
267
+ # @param [Array<String>, String] request_metadata_experiment_ids
268
+ # Experiment IDs the current request belongs to.
269
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
270
+ # Second level identifier to indicate where the traffic comes from.
271
+ # An identifier has multiple letters created by a team which redirected the
272
+ # traffic to us.
273
+ # @param [String] fields
274
+ # Selector specifying which fields to include in a partial response.
275
+ # @param [String] quota_user
276
+ # Available to use for quota purposes for server-side applications. Can be any
277
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
278
+ # @param [Google::Apis::RequestOptions] options
279
+ # Request-specific options
280
+ #
281
+ # @yield [result, err] Result & error if block supplied
282
+ # @yieldparam result [Google::Apis::PartnersV2::ListAnalyticsResponse] parsed result object
283
+ # @yieldparam err [StandardError] error object if request failed
284
+ #
285
+ # @return [Google::Apis::PartnersV2::ListAnalyticsResponse]
286
+ #
287
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
288
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
289
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
290
+ def list_analytics(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, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block)
291
+ command = make_simple_command(:get, 'v2/analytics', options)
292
+ command.response_representation = Google::Apis::PartnersV2::ListAnalyticsResponse::Representation
293
+ command.response_class = Google::Apis::PartnersV2::ListAnalyticsResponse
294
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
295
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
296
+ command.query['pageToken'] = page_token unless page_token.nil?
297
+ command.query['pageSize'] = page_size unless page_size.nil?
298
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
299
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
300
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
301
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
302
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
303
+ command.query['fields'] = fields unless fields.nil?
304
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
305
+ execute_or_queue_command(command, &block)
306
+ end
307
+
308
+ # Lists states for current user.
309
+ # @param [String] request_metadata_user_overrides_user_id
310
+ # Logged-in user ID to impersonate instead of the user's ID.
311
+ # @param [String] request_metadata_partners_session_id
312
+ # Google Partners session ID.
313
+ # @param [String] request_metadata_traffic_source_traffic_source_id
314
+ # Identifier to indicate where the traffic comes from.
315
+ # An identifier has multiple letters created by a team which redirected the
316
+ # traffic to us.
317
+ # @param [String] request_metadata_locale
318
+ # Locale to use for the current request.
319
+ # @param [String] request_metadata_user_overrides_ip_address
320
+ # IP address to use instead of the user's geo-located IP address.
321
+ # @param [Array<String>, String] request_metadata_experiment_ids
322
+ # Experiment IDs the current request belongs to.
323
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
324
+ # Second level identifier to indicate where the traffic comes from.
325
+ # An identifier has multiple letters created by a team which redirected the
326
+ # traffic to us.
327
+ # @param [String] fields
328
+ # Selector specifying which fields to include in a partial response.
329
+ # @param [String] quota_user
330
+ # Available to use for quota purposes for server-side applications. Can be any
331
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
332
+ # @param [Google::Apis::RequestOptions] options
333
+ # Request-specific options
334
+ #
335
+ # @yield [result, err] Result & error if block supplied
336
+ # @yieldparam result [Google::Apis::PartnersV2::ListUserStatesResponse] parsed result object
337
+ # @yieldparam err [StandardError] error object if request failed
338
+ #
339
+ # @return [Google::Apis::PartnersV2::ListUserStatesResponse]
340
+ #
341
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
342
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
343
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
344
+ 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, fields: nil, quota_user: nil, options: nil, &block)
345
+ command = make_simple_command(:get, 'v2/userStates', options)
346
+ command.response_representation = Google::Apis::PartnersV2::ListUserStatesResponse::Representation
347
+ command.response_class = Google::Apis::PartnersV2::ListUserStatesResponse
348
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
349
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
350
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
351
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
352
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
353
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
354
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
355
+ command.query['fields'] = fields unless fields.nil?
356
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
357
+ execute_or_queue_command(command, &block)
358
+ end
359
+
360
+ # Update company.
361
+ # Should only be called within the context of an authorized logged in user.
362
+ # @param [Google::Apis::PartnersV2::Company] company_object
363
+ # @param [String] request_metadata_locale
364
+ # Locale to use for the current request.
365
+ # @param [String] request_metadata_user_overrides_ip_address
366
+ # IP address to use instead of the user's geo-located IP address.
367
+ # @param [String] update_mask
368
+ # Standard field mask for the set of fields to be updated.
369
+ # Required with at least 1 value in FieldMask's paths.
370
+ # @param [Array<String>, String] request_metadata_experiment_ids
371
+ # Experiment IDs the current request belongs to.
372
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
373
+ # Second level identifier to indicate where the traffic comes from.
374
+ # An identifier has multiple letters created by a team which redirected the
375
+ # traffic to us.
376
+ # @param [String] request_metadata_partners_session_id
377
+ # Google Partners session ID.
378
+ # @param [String] request_metadata_user_overrides_user_id
379
+ # Logged-in user ID to impersonate instead of the user's ID.
380
+ # @param [String] request_metadata_traffic_source_traffic_source_id
381
+ # Identifier to indicate where the traffic comes from.
382
+ # An identifier has multiple letters created by a team which redirected the
383
+ # traffic to us.
384
+ # @param [String] fields
385
+ # Selector specifying which fields to include in a partial response.
386
+ # @param [String] quota_user
387
+ # Available to use for quota purposes for server-side applications. Can be any
388
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
389
+ # @param [Google::Apis::RequestOptions] options
390
+ # Request-specific options
391
+ #
392
+ # @yield [result, err] Result & error if block supplied
393
+ # @yieldparam result [Google::Apis::PartnersV2::Company] parsed result object
394
+ # @yieldparam err [StandardError] error object if request failed
395
+ #
396
+ # @return [Google::Apis::PartnersV2::Company]
397
+ #
398
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
399
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
400
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
401
+ def update_companies(company_object = 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_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, fields: nil, quota_user: nil, options: nil, &block)
402
+ command = make_simple_command(:patch, 'v2/companies', options)
403
+ command.request_representation = Google::Apis::PartnersV2::Company::Representation
404
+ command.request_object = company_object
405
+ command.response_representation = Google::Apis::PartnersV2::Company::Representation
406
+ command.response_class = Google::Apis::PartnersV2::Company
407
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
408
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
409
+ command.query['updateMask'] = update_mask unless update_mask.nil?
410
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
411
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
412
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
413
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
414
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
415
+ command.query['fields'] = fields unless fields.nil?
416
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
417
+ execute_or_queue_command(command, &block)
418
+ end
419
+
420
+ # Gets Partners Status of the logged in user's agency.
421
+ # Should only be called if the logged in user is the admin of the agency.
422
+ # @param [String] request_metadata_user_overrides_user_id
423
+ # Logged-in user ID to impersonate instead of the user's ID.
424
+ # @param [String] request_metadata_partners_session_id
425
+ # Google Partners session ID.
426
+ # @param [String] request_metadata_traffic_source_traffic_source_id
427
+ # Identifier to indicate where the traffic comes from.
428
+ # An identifier has multiple letters created by a team which redirected the
429
+ # traffic to us.
430
+ # @param [String] request_metadata_locale
431
+ # Locale to use for the current request.
432
+ # @param [String] request_metadata_user_overrides_ip_address
433
+ # IP address to use instead of the user's geo-located IP address.
434
+ # @param [Array<String>, String] request_metadata_experiment_ids
435
+ # Experiment IDs the current request belongs to.
436
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
437
+ # Second level identifier to indicate where the traffic comes from.
438
+ # An identifier has multiple letters created by a team which redirected the
439
+ # traffic to us.
440
+ # @param [String] fields
441
+ # Selector specifying which fields to include in a partial response.
442
+ # @param [String] quota_user
443
+ # Available to use for quota purposes for server-side applications. Can be any
444
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
445
+ # @param [Google::Apis::RequestOptions] options
446
+ # Request-specific options
447
+ #
448
+ # @yield [result, err] Result & error if block supplied
449
+ # @yieldparam result [Google::Apis::PartnersV2::GetPartnersStatusResponse] parsed result object
450
+ # @yieldparam err [StandardError] error object if request failed
451
+ #
452
+ # @return [Google::Apis::PartnersV2::GetPartnersStatusResponse]
453
+ #
454
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
455
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
456
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
457
+ def get_partnersstatus(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, fields: nil, quota_user: nil, options: nil, &block)
458
+ command = make_simple_command(:get, 'v2/partnersstatus', options)
459
+ command.response_representation = Google::Apis::PartnersV2::GetPartnersStatusResponse::Representation
460
+ command.response_class = Google::Apis::PartnersV2::GetPartnersStatusResponse
461
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
462
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
463
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
464
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
465
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
466
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
467
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
468
+ command.query['fields'] = fields unless fields.nil?
469
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
470
+ execute_or_queue_command(command, &block)
471
+ end
472
+
473
+ # Updates the specified lead.
474
+ # @param [Google::Apis::PartnersV2::Lead] lead_object
475
+ # @param [String] request_metadata_locale
476
+ # Locale to use for the current request.
477
+ # @param [String] request_metadata_user_overrides_ip_address
478
+ # IP address to use instead of the user's geo-located IP address.
479
+ # @param [String] update_mask
480
+ # Standard field mask for the set of fields to be updated.
481
+ # Required with at least 1 value in FieldMask's paths.
482
+ # Only `state` and `adwords_customer_id` are currently supported.
483
+ # @param [Array<String>, String] request_metadata_experiment_ids
484
+ # Experiment IDs the current request belongs to.
485
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
486
+ # Second level identifier to indicate where the traffic comes from.
487
+ # An identifier has multiple letters created by a team which redirected the
488
+ # traffic to us.
489
+ # @param [String] request_metadata_partners_session_id
490
+ # Google Partners session ID.
491
+ # @param [String] request_metadata_user_overrides_user_id
492
+ # Logged-in user ID to impersonate instead of the user's ID.
493
+ # @param [String] request_metadata_traffic_source_traffic_source_id
494
+ # Identifier to indicate where the traffic comes from.
495
+ # An identifier has multiple letters created by a team which redirected the
496
+ # traffic to us.
497
+ # @param [String] fields
498
+ # Selector specifying which fields to include in a partial response.
499
+ # @param [String] quota_user
500
+ # Available to use for quota purposes for server-side applications. Can be any
501
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
502
+ # @param [Google::Apis::RequestOptions] options
503
+ # Request-specific options
504
+ #
505
+ # @yield [result, err] Result & error if block supplied
506
+ # @yieldparam result [Google::Apis::PartnersV2::Lead] parsed result object
507
+ # @yieldparam err [StandardError] error object if request failed
508
+ #
509
+ # @return [Google::Apis::PartnersV2::Lead]
510
+ #
511
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
512
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
513
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
514
+ def update_leads(lead_object = 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_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, fields: nil, quota_user: nil, options: nil, &block)
515
+ command = make_simple_command(:patch, 'v2/leads', options)
516
+ command.request_representation = Google::Apis::PartnersV2::Lead::Representation
517
+ command.request_object = lead_object
518
+ command.response_representation = Google::Apis::PartnersV2::Lead::Representation
519
+ command.response_class = Google::Apis::PartnersV2::Lead
520
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
521
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
522
+ command.query['updateMask'] = update_mask unless update_mask.nil?
523
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
524
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
525
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
526
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
527
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
528
+ command.query['fields'] = fields unless fields.nil?
529
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
530
+ execute_or_queue_command(command, &block)
531
+ end
532
+
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
538
+ # @param [String] request_metadata_user_overrides_user_id
539
+ # Logged-in user ID to impersonate instead of the user's ID.
540
+ # @param [String] request_metadata_partners_session_id
541
+ # Google Partners session ID.
542
+ # @param [String] request_metadata_traffic_source_traffic_source_id
543
+ # Identifier to indicate where the traffic comes from.
544
+ # An identifier has multiple letters created by a team which redirected the
545
+ # traffic to us.
546
+ # @param [String] request_metadata_locale
547
+ # Locale to use for the current request.
548
+ # @param [String] request_metadata_user_overrides_ip_address
549
+ # IP address to use instead of the user's geo-located IP address.
550
+ # @param [Array<String>, String] request_metadata_experiment_ids
551
+ # Experiment IDs the current request belongs to.
552
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
553
+ # Second level identifier to indicate where the traffic comes from.
554
+ # An identifier has multiple letters created by a team which redirected the
555
+ # traffic to us.
556
+ # @param [String] fields
557
+ # Selector specifying which fields to include in a partial response.
558
+ # @param [String] quota_user
559
+ # Available to use for quota purposes for server-side applications. Can be any
560
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
561
+ # @param [Google::Apis::RequestOptions] options
562
+ # Request-specific options
563
+ #
564
+ # @yield [result, err] Result & error if block supplied
565
+ # @yieldparam result [Google::Apis::PartnersV2::CompanyRelation] parsed result object
566
+ # @yieldparam err [StandardError] error object if request failed
567
+ #
568
+ # @return [Google::Apis::PartnersV2::CompanyRelation]
569
+ #
570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
573
+ def create_user_company_relation(user_id, company_relation_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, fields: nil, quota_user: 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?
580
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
581
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
582
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
583
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
584
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
585
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
586
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
587
+ command.query['fields'] = fields unless fields.nil?
588
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
589
+ execute_or_queue_command(command, &block)
590
+ end
591
+
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.
596
+ # @param [Array<String>, String] request_metadata_experiment_ids
597
+ # Experiment IDs the current request belongs to.
598
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
599
+ # Second level identifier to indicate where the traffic comes from.
600
+ # An identifier has multiple letters created by a team which redirected the
601
+ # traffic to us.
602
+ # @param [String] request_metadata_user_overrides_user_id
603
+ # Logged-in user ID to impersonate instead of the user's ID.
604
+ # @param [String] request_metadata_partners_session_id
605
+ # Google Partners session ID.
606
+ # @param [String] request_metadata_traffic_source_traffic_source_id
607
+ # Identifier to indicate where the traffic comes from.
608
+ # An identifier has multiple letters created by a team which redirected the
609
+ # traffic to us.
610
+ # @param [String] request_metadata_locale
611
+ # Locale to use for the current request.
612
+ # @param [String] request_metadata_user_overrides_ip_address
613
+ # IP address to use instead of the user's geo-located IP address.
614
+ # @param [String] fields
615
+ # Selector specifying which fields to include in a partial response.
616
+ # @param [String] quota_user
617
+ # Available to use for quota purposes for server-side applications. Can be any
618
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
619
+ # @param [Google::Apis::RequestOptions] options
620
+ # Request-specific options
621
+ #
622
+ # @yield [result, err] Result & error if block supplied
623
+ # @yieldparam result [Google::Apis::PartnersV2::Empty] parsed result object
624
+ # @yieldparam err [StandardError] error object if request failed
625
+ #
626
+ # @return [Google::Apis::PartnersV2::Empty]
627
+ #
628
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
629
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
630
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
631
+ def delete_user_company_relation(user_id, 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, fields: nil, quota_user: 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?
636
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
637
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
638
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
639
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
640
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
641
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
642
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
75
643
  command.query['fields'] = fields unless fields.nil?
76
644
  command.query['quotaUser'] = quota_user unless quota_user.nil?
77
645
  execute_or_queue_command(command, &block)
78
646
  end
79
647
 
80
- # Logs a generic message from the client, such as `Failed to render component`, `
81
- # Profile page is running slow`, `More than 500 users have accessed this result.`
82
- # , etc.
83
- # @param [Google::Apis::PartnersV2::LogMessageRequest] log_message_request_object
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 [Array<String>, String] request_metadata_experiment_ids
653
+ # Experiment IDs the current request belongs to.
654
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
655
+ # Second level 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_partners_session_id
659
+ # Google Partners session ID.
660
+ # @param [String] request_metadata_user_overrides_user_id
661
+ # Logged-in user ID to impersonate instead of the user's ID.
662
+ # @param [String] user_view
663
+ # Specifies what parts of the user information to return.
664
+ # @param [String] request_metadata_traffic_source_traffic_source_id
665
+ # 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_locale
669
+ # Locale to use for the current request.
670
+ # @param [String] request_metadata_user_overrides_ip_address
671
+ # IP address to use instead of the user's geo-located IP address.
84
672
  # @param [String] fields
85
673
  # Selector specifying which fields to include in a partial response.
86
674
  # @param [String] quota_user
@@ -90,43 +678,53 @@ module Google
90
678
  # Request-specific options
91
679
  #
92
680
  # @yield [result, err] Result & error if block supplied
93
- # @yieldparam result [Google::Apis::PartnersV2::LogMessageResponse] parsed result object
681
+ # @yieldparam result [Google::Apis::PartnersV2::User] parsed result object
94
682
  # @yieldparam err [StandardError] error object if request failed
95
683
  #
96
- # @return [Google::Apis::PartnersV2::LogMessageResponse]
684
+ # @return [Google::Apis::PartnersV2::User]
97
685
  #
98
686
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
99
687
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
100
688
  # @raise [Google::Apis::AuthorizationError] Authorization is required
101
- def log_client_message_message(log_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
102
- command = make_simple_command(:post, 'v2/clientMessages:log', options)
103
- command.request_representation = Google::Apis::PartnersV2::LogMessageRequest::Representation
104
- command.request_object = log_message_request_object
105
- command.response_representation = Google::Apis::PartnersV2::LogMessageResponse::Representation
106
- command.response_class = Google::Apis::PartnersV2::LogMessageResponse
689
+ def get_user(user_id, 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, user_view: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, fields: nil, quota_user: 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['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
695
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
696
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
697
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
698
+ command.query['userView'] = user_view unless user_view.nil?
699
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
700
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
701
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
107
702
  command.query['fields'] = fields unless fields.nil?
108
703
  command.query['quotaUser'] = quota_user unless quota_user.nil?
109
704
  execute_or_queue_command(command, &block)
110
705
  end
111
706
 
112
- # Lists states for current user.
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
710
+ # @param [String] request_metadata_locale
711
+ # Locale to use for the current request.
113
712
  # @param [String] request_metadata_user_overrides_ip_address
114
713
  # IP address to use instead of the user's geo-located IP address.
714
+ # @param [Array<String>, String] request_metadata_experiment_ids
715
+ # Experiment IDs the current request belongs to.
716
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
717
+ # Second level identifier to indicate where the traffic comes from.
718
+ # An identifier has multiple letters created by a team which redirected the
719
+ # traffic to us.
115
720
  # @param [String] request_metadata_user_overrides_user_id
116
721
  # Logged-in user ID to impersonate instead of the user's ID.
117
- # @param [String] request_metadata_locale
118
- # Locale to use for the current request.
119
722
  # @param [String] request_metadata_partners_session_id
120
723
  # Google Partners session ID.
121
- # @param [Array<String>, String] request_metadata_experiment_ids
122
- # Experiment IDs the current request belongs to.
123
724
  # @param [String] request_metadata_traffic_source_traffic_source_id
124
- # Identifier to indicate where the traffic comes from. An identifier has
125
- # multiple letters created by a team which redirected the traffic to us.
126
- # @param [String] request_metadata_traffic_source_traffic_sub_id
127
- # Second level identifier to indicate where the traffic comes from. An
128
- # identifier has multiple letters created by a team which redirected the traffic
129
- # to us.
725
+ # 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.
130
728
  # @param [String] fields
131
729
  # Selector specifying which fields to include in a partial response.
132
730
  # @param [String] quota_user
@@ -136,25 +734,27 @@ module Google
136
734
  # Request-specific options
137
735
  #
138
736
  # @yield [result, err] Result & error if block supplied
139
- # @yieldparam result [Google::Apis::PartnersV2::ListUserStatesResponse] parsed result object
737
+ # @yieldparam result [Google::Apis::PartnersV2::UserProfile] parsed result object
140
738
  # @yieldparam err [StandardError] error object if request failed
141
739
  #
142
- # @return [Google::Apis::PartnersV2::ListUserStatesResponse]
740
+ # @return [Google::Apis::PartnersV2::UserProfile]
143
741
  #
144
742
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
145
743
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
146
744
  # @raise [Google::Apis::AuthorizationError] Authorization is required
147
- def list_user_states(request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, fields: nil, quota_user: nil, options: nil, &block)
148
- command = make_simple_command(:get, 'v2/userStates', options)
149
- command.response_representation = Google::Apis::PartnersV2::ListUserStatesResponse::Representation
150
- command.response_class = Google::Apis::PartnersV2::ListUserStatesResponse
745
+ def update_user_profile(user_profile_object = 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, request_metadata_traffic_source_traffic_source_id: nil, fields: nil, quota_user: 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
751
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
151
752
  command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
753
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
754
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
152
755
  command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
153
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
154
756
  command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
155
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
156
757
  command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
157
- command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
158
758
  command.query['fields'] = fields unless fields.nil?
159
759
  command.query['quotaUser'] = quota_user unless quota_user.nil?
160
760
  execute_or_queue_command(command, &block)
@@ -163,38 +763,39 @@ module Google
163
763
  # Gets a company.
164
764
  # @param [String] company_id
165
765
  # The ID of the company to retrieve.
166
- # @param [String] request_metadata_user_overrides_ip_address
167
- # IP address to use instead of the user's geo-located IP address.
168
- # @param [String] request_metadata_user_overrides_user_id
169
- # Logged-in user ID to impersonate instead of the user's ID.
170
- # @param [String] request_metadata_locale
171
- # Locale to use for the current request.
172
- # @param [String] request_metadata_partners_session_id
173
- # Google Partners session ID.
174
766
  # @param [Array<String>, String] request_metadata_experiment_ids
175
767
  # Experiment IDs the current request belongs to.
176
- # @param [String] request_metadata_traffic_source_traffic_source_id
177
- # Identifier to indicate where the traffic comes from. An identifier has
178
- # multiple letters created by a team which redirected the traffic to us.
179
- # @param [String] request_metadata_traffic_source_traffic_sub_id
180
- # Second level identifier to indicate where the traffic comes from. An
181
- # identifier has multiple letters created by a team which redirected the traffic
182
- # to us.
183
- # @param [String] view
184
- # The view of `Company` resource to be returned. This must not be `
185
- # COMPANY_VIEW_UNSPECIFIED`.
186
- # @param [String] order_by
187
- # How to order addresses within the returned company. Currently, only `address`
188
- # and `address desc` is supported which will sorted by closest to farthest in
189
- # distance from given address and farthest to closest distance from given
190
- # address respectively.
191
768
  # @param [String] currency_code
192
769
  # If the company's budget is in a different currency code than this one, then
193
770
  # the converted budget is converted to this currency code.
771
+ # @param [String] order_by
772
+ # How to order addresses within the returned company. Currently, only
773
+ # `address` and `address desc` is supported which will sorted by closest to
774
+ # farthest in distance from given address and farthest to closest distance
775
+ # from given address respectively.
776
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
777
+ # Second level identifier to indicate where the traffic comes from.
778
+ # An identifier has multiple letters created by a team which redirected the
779
+ # traffic to us.
780
+ # @param [String] request_metadata_user_overrides_user_id
781
+ # Logged-in user ID to impersonate instead of the user's ID.
782
+ # @param [String] request_metadata_partners_session_id
783
+ # Google Partners session ID.
784
+ # @param [String] view
785
+ # The view of `Company` resource to be returned. This must not be
786
+ # `COMPANY_VIEW_UNSPECIFIED`.
787
+ # @param [String] request_metadata_locale
788
+ # Locale to use for the current request.
194
789
  # @param [String] address
195
- # The address to use for sorting the company's addresses by proximity. If not
196
- # given, the geo-located address of the request is used. Used when order_by is
197
- # set.
790
+ # The address to use for sorting the company's addresses by proximity.
791
+ # If not given, the geo-located address of the request is used.
792
+ # Used when order_by is set.
793
+ # @param [String] request_metadata_traffic_source_traffic_source_id
794
+ # Identifier to indicate where the traffic comes from.
795
+ # An identifier has multiple letters created by a team which redirected the
796
+ # traffic to us.
797
+ # @param [String] request_metadata_user_overrides_ip_address
798
+ # IP address to use instead of the user's geo-located IP address.
198
799
  # @param [String] fields
199
800
  # Selector specifying which fields to include in a partial response.
200
801
  # @param [String] quota_user
@@ -212,22 +813,22 @@ module Google
212
813
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
213
814
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
214
815
  # @raise [Google::Apis::AuthorizationError] Authorization is required
215
- def get_company(company_id, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, view: nil, order_by: nil, currency_code: nil, address: nil, fields: nil, quota_user: nil, options: nil, &block)
816
+ def get_company(company_id, 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, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_user_overrides_ip_address: nil, fields: nil, quota_user: nil, options: nil, &block)
216
817
  command = make_simple_command(:get, 'v2/companies/{companyId}', options)
217
818
  command.response_representation = Google::Apis::PartnersV2::GetCompanyResponse::Representation
218
819
  command.response_class = Google::Apis::PartnersV2::GetCompanyResponse
219
820
  command.params['companyId'] = company_id unless company_id.nil?
220
- command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
221
- command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
222
- command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
223
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
224
821
  command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
225
- command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
822
+ command.query['currencyCode'] = currency_code unless currency_code.nil?
823
+ command.query['orderBy'] = order_by unless order_by.nil?
226
824
  command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
825
+ command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
826
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
227
827
  command.query['view'] = view unless view.nil?
228
- command.query['orderBy'] = order_by unless order_by.nil?
229
- command.query['currencyCode'] = currency_code unless currency_code.nil?
828
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
230
829
  command.query['address'] = address unless address.nil?
830
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
831
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
231
832
  command.query['fields'] = fields unless fields.nil?
232
833
  command.query['quotaUser'] = quota_user unless quota_user.nil?
233
834
  execute_or_queue_command(command, &block)
@@ -236,75 +837,87 @@ module Google
236
837
  # Lists companies.
237
838
  # @param [String] request_metadata_user_overrides_ip_address
238
839
  # IP address to use instead of the user's geo-located IP address.
840
+ # @param [Array<String>, String] request_metadata_experiment_ids
841
+ # Experiment IDs the current request belongs to.
842
+ # @param [String] order_by
843
+ # How to order addresses within the returned companies. Currently, only
844
+ # `address` and `address desc` is supported which will sorted by closest to
845
+ # farthest in distance from given address and farthest to closest distance
846
+ # from given address respectively.
847
+ # @param [Array<String>, String] specializations
848
+ # List of specializations that the returned agencies should provide. If this
849
+ # is not empty, any returned agency must have at least one of these
850
+ # specializations, or one of the services in the "services" field.
851
+ # @param [String] max_monthly_budget_currency_code
852
+ # The 3-letter currency code defined in ISO 4217.
853
+ # @param [String] min_monthly_budget_currency_code
854
+ # The 3-letter currency code defined in ISO 4217.
239
855
  # @param [String] request_metadata_user_overrides_user_id
240
856
  # Logged-in user ID to impersonate instead of the user's ID.
857
+ # @param [String] view
858
+ # The view of the `Company` resource to be returned. This must not be
859
+ # `COMPANY_VIEW_UNSPECIFIED`.
241
860
  # @param [String] request_metadata_locale
242
861
  # Locale to use for the current request.
243
- # @param [String] request_metadata_partners_session_id
244
- # Google Partners session ID.
245
- # @param [Array<String>, String] request_metadata_experiment_ids
246
- # Experiment IDs the current request belongs to.
862
+ # @param [String] address
863
+ # The address to use when searching for companies.
864
+ # If not given, the geo-located address of the request is used.
865
+ # @param [String] min_monthly_budget_units
866
+ # The whole units of the amount.
867
+ # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
868
+ # @param [Fixnum] max_monthly_budget_nanos
869
+ # Number of nano (10^-9) units of the amount.
870
+ # The value must be between -999,999,999 and +999,999,999 inclusive.
871
+ # If `units` is positive, `nanos` must be positive or zero.
872
+ # If `units` is zero, `nanos` can be positive, zero, or negative.
873
+ # If `units` is negative, `nanos` must be negative or zero.
874
+ # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
875
+ # @param [Array<String>, String] services
876
+ # List of services that the returned agencies should provide. If this is
877
+ # not empty, any returned agency must have at least one of these services,
878
+ # or one of the specializations in the "specializations" field.
247
879
  # @param [String] request_metadata_traffic_source_traffic_source_id
248
- # Identifier to indicate where the traffic comes from. An identifier has
249
- # multiple letters created by a team which redirected the traffic to us.
880
+ # Identifier to indicate where the traffic comes from.
881
+ # An identifier has multiple letters created by a team which redirected the
882
+ # traffic to us.
883
+ # @param [String] max_monthly_budget_units
884
+ # The whole units of the amount.
885
+ # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
886
+ # @param [Fixnum] min_monthly_budget_nanos
887
+ # Number of nano (10^-9) units of the amount.
888
+ # The value must be between -999,999,999 and +999,999,999 inclusive.
889
+ # If `units` is positive, `nanos` must be positive or zero.
890
+ # If `units` is zero, `nanos` can be positive, zero, or negative.
891
+ # If `units` is negative, `nanos` must be negative or zero.
892
+ # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
250
893
  # @param [String] request_metadata_traffic_source_traffic_sub_id
251
- # Second level identifier to indicate where the traffic comes from. An
252
- # identifier has multiple letters created by a team which redirected the traffic
253
- # to us.
254
- # @param [Fixnum] page_size
255
- # Requested page size. Server may return fewer companies than requested. If
256
- # unspecified, server picks an appropriate default.
894
+ # Second level identifier to indicate where the traffic comes from.
895
+ # An identifier has multiple letters created by a team which redirected the
896
+ # traffic to us.
897
+ # @param [String] request_metadata_partners_session_id
898
+ # Google Partners session ID.
257
899
  # @param [String] page_token
258
- # A token identifying a page of results that the server returns. Typically, this
259
- # is the value of `ListCompaniesResponse.next_page_token` returned from the
260
- # previous call to ListCompanies.
900
+ # A token identifying a page of results that the server returns.
901
+ # Typically, this is the value of `ListCompaniesResponse.next_page_token`
902
+ # returned from the previous call to
903
+ # ListCompanies.
261
904
  # @param [String] company_name
262
905
  # Company name to search for.
263
- # @param [String] view
264
- # The view of the `Company` resource to be returned. This must not be `
265
- # COMPANY_VIEW_UNSPECIFIED`.
266
- # @param [String] min_monthly_budget_currency_code
267
- # The 3-letter currency code defined in ISO 4217.
268
- # @param [String] min_monthly_budget_units
269
- # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
270
- # 1 unit is one US dollar.
271
- # @param [Fixnum] min_monthly_budget_nanos
272
- # Number of nano (10^-9) units of the amount. The value must be between -999,999,
273
- # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
274
- # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
275
- # negative. If `units` is negative, `nanos` must be negative or zero. For
276
- # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
277
- # @param [String] max_monthly_budget_currency_code
278
- # The 3-letter currency code defined in ISO 4217.
279
- # @param [String] max_monthly_budget_units
280
- # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
281
- # 1 unit is one US dollar.
282
- # @param [Fixnum] max_monthly_budget_nanos
283
- # Number of nano (10^-9) units of the amount. The value must be between -999,999,
284
- # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
285
- # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
286
- # negative. If `units` is negative, `nanos` must be negative or zero. For
287
- # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
288
906
  # @param [Array<String>, String] industries
289
907
  # List of industries the company can help with.
290
- # @param [Array<String>, String] services
291
- # List of services the company can help with.
292
- # @param [Array<String>, String] language_codes
293
- # List of language codes that company can support. Only primary language subtags
294
- # are accepted as defined by BCP 47 (IETF BCP 47, "Tags for Identifying
295
- # Languages").
296
- # @param [String] address
297
- # The address to use when searching for companies. If not given, the geo-located
298
- # address of the request is used.
299
- # @param [String] order_by
300
- # How to order addresses within the returned companies. Currently, only `address`
301
- # and `address desc` is supported which will sorted by closest to farthest in
302
- # distance from given address and farthest to closest distance from given
303
- # address respectively.
908
+ # @param [String] website_url
909
+ # Website URL that will help to find a better matched company.
910
+ # .
304
911
  # @param [Array<String>, String] gps_motivations
305
912
  # List of reasons for using Google Partner Search to get companies.
306
- # @param [String] website_url
307
- # Website URL that will help to find a better matched company. .
913
+ # @param [Array<String>, String] language_codes
914
+ # List of language codes that company can support. Only primary language
915
+ # subtags are accepted as defined by
916
+ # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
917
+ # (IETF BCP 47, "Tags for Identifying Languages").
918
+ # @param [Fixnum] page_size
919
+ # Requested page size. Server may return fewer companies than requested.
920
+ # If unspecified, server picks an appropriate default.
308
921
  # @param [String] fields
309
922
  # Selector specifying which fields to include in a partial response.
310
923
  # @param [String] quota_user
@@ -322,34 +935,35 @@ module Google
322
935
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
323
936
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
324
937
  # @raise [Google::Apis::AuthorizationError] Authorization is required
325
- def list_companies(request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, page_size: nil, page_token: nil, company_name: nil, view: nil, min_monthly_budget_currency_code: nil, min_monthly_budget_units: nil, min_monthly_budget_nanos: nil, max_monthly_budget_currency_code: nil, max_monthly_budget_units: nil, max_monthly_budget_nanos: nil, industries: nil, services: nil, language_codes: nil, address: nil, order_by: nil, gps_motivations: nil, website_url: nil, fields: nil, quota_user: nil, options: nil, &block)
938
+ def list_companies(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, request_metadata_locale: nil, address: 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, page_token: nil, company_name: nil, industries: nil, website_url: nil, gps_motivations: nil, language_codes: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
326
939
  command = make_simple_command(:get, 'v2/companies', options)
327
940
  command.response_representation = Google::Apis::PartnersV2::ListCompaniesResponse::Representation
328
941
  command.response_class = Google::Apis::PartnersV2::ListCompaniesResponse
329
942
  command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
943
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
944
+ command.query['orderBy'] = order_by unless order_by.nil?
945
+ command.query['specializations'] = specializations unless specializations.nil?
946
+ command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil?
947
+ command.query['minMonthlyBudget.currencyCode'] = min_monthly_budget_currency_code unless min_monthly_budget_currency_code.nil?
330
948
  command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
949
+ command.query['view'] = view unless view.nil?
331
950
  command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
332
- command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
333
- command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
951
+ command.query['address'] = address unless address.nil?
952
+ command.query['minMonthlyBudget.units'] = min_monthly_budget_units unless min_monthly_budget_units.nil?
953
+ command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil?
954
+ command.query['services'] = services unless services.nil?
334
955
  command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
956
+ command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil?
957
+ command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil?
335
958
  command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
336
- command.query['pageSize'] = page_size unless page_size.nil?
959
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
337
960
  command.query['pageToken'] = page_token unless page_token.nil?
338
961
  command.query['companyName'] = company_name unless company_name.nil?
339
- command.query['view'] = view unless view.nil?
340
- command.query['minMonthlyBudget.currencyCode'] = min_monthly_budget_currency_code unless min_monthly_budget_currency_code.nil?
341
- command.query['minMonthlyBudget.units'] = min_monthly_budget_units unless min_monthly_budget_units.nil?
342
- command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil?
343
- command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil?
344
- command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil?
345
- command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil?
346
962
  command.query['industries'] = industries unless industries.nil?
347
- command.query['services'] = services unless services.nil?
348
- command.query['languageCodes'] = language_codes unless language_codes.nil?
349
- command.query['address'] = address unless address.nil?
350
- command.query['orderBy'] = order_by unless order_by.nil?
351
- command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil?
352
963
  command.query['websiteUrl'] = website_url unless website_url.nil?
964
+ command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil?
965
+ command.query['languageCodes'] = language_codes unless language_codes.nil?
966
+ command.query['pageSize'] = page_size unless page_size.nil?
353
967
  command.query['fields'] = fields unless fields.nil?
354
968
  command.query['quotaUser'] = quota_user unless quota_user.nil?
355
969
  execute_or_queue_command(command, &block)
@@ -387,6 +1001,123 @@ module Google
387
1001
  command.query['quotaUser'] = quota_user unless quota_user.nil?
388
1002
  execute_or_queue_command(command, &block)
389
1003
  end
1004
+
1005
+ # Logs a user event.
1006
+ # @param [Google::Apis::PartnersV2::LogUserEventRequest] log_user_event_request_object
1007
+ # @param [String] fields
1008
+ # Selector specifying which fields to include in a partial response.
1009
+ # @param [String] quota_user
1010
+ # Available to use for quota purposes for server-side applications. Can be any
1011
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1012
+ # @param [Google::Apis::RequestOptions] options
1013
+ # Request-specific options
1014
+ #
1015
+ # @yield [result, err] Result & error if block supplied
1016
+ # @yieldparam result [Google::Apis::PartnersV2::LogUserEventResponse] parsed result object
1017
+ # @yieldparam err [StandardError] error object if request failed
1018
+ #
1019
+ # @return [Google::Apis::PartnersV2::LogUserEventResponse]
1020
+ #
1021
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1022
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1023
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1024
+ def log_user_event(log_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1025
+ command = make_simple_command(:post, 'v2/userEvents:log', options)
1026
+ command.request_representation = Google::Apis::PartnersV2::LogUserEventRequest::Representation
1027
+ command.request_object = log_user_event_request_object
1028
+ command.response_representation = Google::Apis::PartnersV2::LogUserEventResponse::Representation
1029
+ command.response_class = Google::Apis::PartnersV2::LogUserEventResponse
1030
+ command.query['fields'] = fields unless fields.nil?
1031
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1032
+ execute_or_queue_command(command, &block)
1033
+ end
1034
+
1035
+ # Logs a generic message from the client, such as
1036
+ # `Failed to render component`, `Profile page is running slow`,
1037
+ # `More than 500 users have accessed this result.`, etc.
1038
+ # @param [Google::Apis::PartnersV2::LogMessageRequest] log_message_request_object
1039
+ # @param [String] fields
1040
+ # Selector specifying which fields to include in a partial response.
1041
+ # @param [String] quota_user
1042
+ # Available to use for quota purposes for server-side applications. Can be any
1043
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1044
+ # @param [Google::Apis::RequestOptions] options
1045
+ # Request-specific options
1046
+ #
1047
+ # @yield [result, err] Result & error if block supplied
1048
+ # @yieldparam result [Google::Apis::PartnersV2::LogMessageResponse] parsed result object
1049
+ # @yieldparam err [StandardError] error object if request failed
1050
+ #
1051
+ # @return [Google::Apis::PartnersV2::LogMessageResponse]
1052
+ #
1053
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1054
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1055
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1056
+ def log_client_message_message(log_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1057
+ command = make_simple_command(:post, 'v2/clientMessages:log', options)
1058
+ command.request_representation = Google::Apis::PartnersV2::LogMessageRequest::Representation
1059
+ command.request_object = log_message_request_object
1060
+ command.response_representation = Google::Apis::PartnersV2::LogMessageResponse::Representation
1061
+ command.response_class = Google::Apis::PartnersV2::LogMessageResponse
1062
+ command.query['fields'] = fields unless fields.nil?
1063
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1064
+ execute_or_queue_command(command, &block)
1065
+ 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_user_id
1071
+ # Logged-in user ID to impersonate instead of the user's ID.
1072
+ # @param [String] request_metadata_partners_session_id
1073
+ # Google Partners session ID.
1074
+ # @param [String] request_metadata_traffic_source_traffic_source_id
1075
+ # 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_locale
1079
+ # Locale to use for the current request.
1080
+ # @param [String] request_metadata_user_overrides_ip_address
1081
+ # IP address to use instead of the user's geo-located IP address.
1082
+ # @param [Array<String>, String] request_metadata_experiment_ids
1083
+ # Experiment IDs the current request belongs to.
1084
+ # @param [String] request_metadata_traffic_source_traffic_sub_id
1085
+ # Second level identifier to indicate where the traffic comes from.
1086
+ # An identifier has multiple letters created by a team which redirected the
1087
+ # traffic to us.
1088
+ # @param [String] fields
1089
+ # Selector specifying which fields to include in a partial response.
1090
+ # @param [String] quota_user
1091
+ # Available to use for quota purposes for server-side applications. Can be any
1092
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
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_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, fields: nil, quota_user: 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.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
1111
+ command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
1112
+ command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
1113
+ command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
1114
+ command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
1115
+ command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
1116
+ command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
1117
+ command.query['fields'] = fields unless fields.nil?
1118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1119
+ execute_or_queue_command(command, &block)
1120
+ end
390
1121
 
391
1122
  protected
392
1123